2011-10-19 9 views
1

私はhttps://github.com/evolve75/RubyTreeをフォークし、アプリケーションでの使用にいくつかの変更を加えました。また、私は自分のアプリケーションにGemfileを使用してバンドラでそれをインストールするために、(元レポには存在しなかった)rubytree.gemspec追加:私は私のアプリでbundle installを行うと、すべてが順調に進めカスタム宝飾品が必要

gem 'rubytree', :git => '[email protected]:anthonylebrun/RubyTree.git' 

をが、私はできません

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 

アイデアをお持ちですか?私が明確にすることができるものがあれば、私にも教えてください!

答えて

0

これを試しましたか?

require 'rubygems' 
require 'bundler/setup' 
require 'tree' 
0

はあなたにも

require 'rubytree' 

を試してみましたか?

関連する問題