简体   繁体   English

在Rails 2问题中使用捆绑程序

[英]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. 我正在执行一项任务,其中我将gems从config / environment.rb移动到Rails v2.3.18中的Gemfile。

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. 这样我就可以将其捆绑在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: 如果这两个宝石都存在于供应商/宝石中,为什么不在Gemfile中执行以下操作:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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