我正在尝试更新当前为Ruby 1.9.3和Rails 4.2.4的ROR应用程序
我正在尝试使用Ruby 2.2.2和Rails 4.2.4,这是使MongoDB 3.2运行的最低要求。
当我将Gemfile更改为Ruby 2.2.2并运行bundle install
时,并且bundle update
我将rails(〜> 4.2.4)解析为4.2.10
当我在Gemfile中将rails设置为(〜> 4.2.4)时,为什么将其解析为4.2.10?
下面的宝石文件。
source 'https://rubygems.org'
ruby '2.2.2'
gem 'rails', '~> 4.2.4'
gem 'mongo', '~> 2.1.1'
gem 'bson_ext', '~> 1.12.1'
gem 'mongoid', '~> 5.0.0'
# mongoid seemed to want these to run the generator
gem 'execjs', '~> 2.6.0'
gem 'therubyracer', '~> 0.12.2'
gem 'devise', '~> 3.5.2'
gem 'grape', '~> 0.13.0'
#gem 'grape-swagger'
gem 'thin', '~> 1.6.4'
gem 'geocoder', '~> 1.2.11'
#gem 'mongoid_geospatial'
gem 'kaminari', '~>1.0.0' # pagination
#gem 'iron_worker_ng', '~> 1.6.6'
gem 'iron_worker', '~> 3.1.0'
gem 'newrelic_rpm', '~> 3.13.2.302'
gem 'newrelic-grape', '~> 2.0.0'
#gem "opentok"
gem 'mandrill-api', '~> 1.0.53'
gem 'aws-sdk', "~> 1"
gem 'nexmo', '~> 3.0.0'
gem 'rmagick', '~> 2.15.4', :ref => '69db6635c2630ffd63c1858646cbc280226f31a7bc34e1c9d1322c2c73e1e386'
#gem 'stripe', :git => 'https://github.com/stripe/stripe-ruby', :ref =>'df2e36287d88726c6a03ec6c1fdc19b5d6e2b274'
gem 'stripe', '~> 1.22.0'
gem 'gibberish', "~> 2.0.0"
#gem 'mongoid-encrypted-fields', :path => "./vendor/plugins/mongoid-encrypted-fields-1.2.2"
gem 'twilio-ruby', '~> 4.4.0'
gem 'gcm', '~> 0.1.0'
gem 'chronic', '~> 0.10.2'
gem 'oauth2', '~> 1.1.0'# for stripe connect
gem 'aescrypt', '~> 1.0.0'
gem 'houston', '~> 2.2.3'
gem 'hashids', '~> 1.0.3'
gem 'rack-cors', '~> 0.4.0', :require => 'rack/cors'
gem 'mail', '~> 2.6.4'
gem 'sendgrid-ruby', '~> 1.1.6'
group :production, :staging do
gem 'rails_12factor', '~> 0.0.3'
end
group :development, :test do
gem 'factory_girl_rails', '~> 4.6.0'
gem 'timecop', '~> 0.8.0'
gem 'debugger', '~> 1.6.8'
gem 'typhoeus', '~> 0.8.0'
end
# Gems used only for assets and not required
# in production environments by default.
#group :assets do
# gem 'sass-rails'
# gem 'coffee-rails'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
# gem 'uglifier'
#end
gem 'uglifier', '~> 2.7.2'
gem 'jquery-rails', '~> 4.0.5'
答案 0 :(得分:3)
波浪形箭头~>
表示最后一个次要版本将更新为最新版本。因此,4.2.4
将解析为4.2.X
,其中X是最新的可用值。
如果您要坚持使用4.2.4
,请像=
一样使用gem 'rails', '= 4.2.4'
。