rails (~> 4.2.4) 已解析为 4.2.10
rails (~> 4.2.4) was resolved to 4.2.10
我正在尝试更新我的 ROR 应用程序,目前是 Ruby 1.9.3 和 Rails 4.2.4
我正在尝试升级到 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?
下面的 Gemfile。
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'
波浪箭头~>
符号表示最后的次要版本将更新为最新版本。因此 4.2.4
将解析为 4.2.X
,其中 X 是最新可用的。
如果您想坚持 4.2.4
,请像 gem 'rails', '= 4.2.4'
一样使用 =
。
我正在尝试更新我的 ROR 应用程序,目前是 Ruby 1.9.3 和 Rails 4.2.4
我正在尝试升级到 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?
下面的 Gemfile。
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'
波浪箭头~>
符号表示最后的次要版本将更新为最新版本。因此 4.2.4
将解析为 4.2.X
,其中 X 是最新可用的。
如果您想坚持 4.2.4
,请像 gem 'rails', '= 4.2.4'
一样使用 =
。