[英]Use ActiveSupport 2.3.5 in a Rails 3 application?
Is it possible to use ActiveSupport 2.3.5 within a Rails 3 application? 是否可以在Rails 3应用程序中使用ActiveSupport 2.3.5?
I have my Rails 3 application setup and working, however, a gem I would like to use to work with an API only supports ActiveSupport 2.3.5. 我有我的Rails 3应用程序设置和工作,但是,我想用来使用API的gem只支持ActiveSupport 2.3.5。 Is there a way of running the two in parallel?
有没有办法并行运行这两个?
For further information - the application can be seen here: 有关详细信息,请参阅此处的应用程序:
https://github.com/dannymcc/Beanstalk-Deployment https://github.com/dannymcc/Beanstalk-Deployment
and the gem can be seen here: 这里可以看到宝石:
https://github.com/iSabanin/beanstalkapp https://github.com/iSabanin/beanstalkapp
If not, is the only alternative to downgrade to Rails 2.3? 如果没有,是降级到Rails 2.3的唯一选择吗?
Thanks, 谢谢,
Danny 丹尼
Try forking the repo and change: 尝试分配回购并更改:
s.add_runtime_dependency(%q<activeresource>, ["= 2.3.5"])
in beanstalkapp.gemspec
to 在
beanstalkapp.gemspec
中
s.add_runtime_dependency(%q<activeresource>, ["= 3.0.4"])
After that you can use it in your Gemfile: 之后,您可以在Gemfile中使用它:
gem 'beanstalkapp', :git => 'https://github.com/dannymcc/beanstalkapp.git'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.