这是我得到的错误:
% rake gems:install
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)
gem install deep_cloning --source https://DerNalia@github.com/DerNalia/deep_cloning.git
ERROR: Could not find a valid gem 'deep_cloning' (>= 0) in any repository
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
bad response Not Found 404 (https://DerNalia@github.com/DerNalia/deep_cloning.git/latest_specs.4.8.gz)
显然,我无法在我的代码中指定该URL的latest_specs,因为github url在blob中组织了一些东西......
这就是我试图在我的environment.rb文件中包含gem的方法
config.gem "deep_cloning",:source => "https://DerNalia@github.com/DerNalia/deep_cloning.git"
现在,在捆绑商中,它将是:
gem "deep_cloning", :git => "git://github.com/DerNalia/deep_cloning.git"
(有效)
但是我正在使用Rails 2.3.8,并且其中一个gem(attr_encrypted)不能与bundler一起使用,因此我被迫使用config.gem来获取所有宝石......
如何修改我的config.gem行,以便rake gems:install
从我的github存储库下载.gem文件?