我分叉了https://github.com/evolve75/RubyTree並對應用程序中的使用進行了一些更改。我還添加了rubytree.gemspec(這是不是在原來的回購存在),以便與在我的應用程序中使用的Gemfile捆綁安裝:需要一個自定義寶石
gem 'rubytree', :git => '[email protected]:anthonylebrun/RubyTree.git'
我做我的應用程序一個bundle install
和一切順利,但我不能
require 'rubygems'
require 'tree'
只是它的工作。相反,我得到:
LoadError: no such file to load -- tree
所以我懷疑我可能會設置路徑錯誤?我不是gemspec親,我只是看着另一顆寶石扔在一起。這裏是:
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = 'rubytree'
s.version = '0.8.1'
s.summary = 'Tree data structure'
s.description = 'RubyTree allows you to create and manipulate tree structures in ruby'
s.required_ruby_version = '>= 1.8.7'
s.required_rubygems_version = ">= 1.3.6"
s.author = 'Anupam Sengupta'
s.email = '[email protected]'
s.homepage = 'http://rubytree.rubyforge.org/'
s.files = ['lib/tree.rb']
s.require_path = ['lib']
end
任何想法?如果有什麼我可以澄清的,讓我知道!