简体   繁体   中英

Using bundler in Rails 2 issues

I am working on a task where i am moving gems from config/environment.rb to Gemfile in rails v2.3.18.

In the project they are using gems like below which are no longer available.

gem 'resource-query', '0.0.1'
gem 'data_tiles','0.0.3'

Is there a way that i can create a gem from

vendor/gems/resource-query or vendor/gems/data_tiles, 

so that i can bundle it in Gemfile.

What is the easiest way to deal with this?

If both of those gems exist in vendor/gems why don't you just do something like this in your Gemfile:

gem "resource-query", :path => "vendor/gems/resource-query"
gem "data_tiles", :path => "vendor/gems/data_tiles"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM