按照以下简单步骤:
gem unpack spree_easy_contact -v 1.0.2 --target vendor/gems Unpacked gem: '../vendor/gems/spree_easy_contact-1.0.2'
然后在我的Gemfile中添加以下行:
gem "spree_easy_contact",:path => "vendor/gems/spree_easy_contact-1.0.2"
但是当我运行bundle install时它失败了.
Could not find gem 'spree_easy_contact (>= 0,runtime)' in source at vendor/gems/spree_easy_contact-1.0.2. Source does not contain any versions of 'spree_easy_contact (>= 0,runtime)'
我相信这是因为gem中没有gemspec文件.有没有办法为它建立一个?
解决方法
我忘了把版本留在我的宝石上!超级重要:
gem "spree_easy_contact",'1.0.2',:path => "#{File.expand_path(__FILE__)}/../vendor/gems/spree_easy_contact-1.0.2"
这也很奇怪..这个Gem也需要honeypot-captcha,所以我不得不把它包含在我的Gemfile中.一切都很好.