简体   繁体   English

rails和ruby gems最新版本

[英]rails and ruby gems up-to-date version

This is my gem gem file as you can see I use outdated version of rails and may be ruby and may be something else. 这是我的gem gem文件,您可以看到我使用了过时的rails版本,可能是红宝石,可能还有其他东西。 This happened because I Followed Michel's Hart tutorial and took this gems from there. 之所以发生这种情况,是因为我遵循了Michel的Hart教程,并从那里学到了这些宝石。

source 'https://rubygems.org'
ruby '2.0.0'
#ruby-gemset=railstutorial_rails_4_0

gem 'rails', '4.0.2'
gem 'bootstrap-sass', '2.3.2.0'
gem 'sprockets', '2.11.0'
gem 'bcrypt-ruby', '3.1.2'
gem 'faker', '1.1.2'
gem 'will_paginate', '3.0.4'
gem 'bootstrap-will_paginate', '0.0.9'
gem 'ffaker'
gem 'carrierwave', '~> 0.9'
gem "font-awesome-rails"
gem 'sprockets-rails'
gem 'rest-client'
gem 'blogo'

group :development, :test do
  gem 'sqlite3', '1.3.8'
  gem 'rspec-rails', '2.13.1'
end

group :test do
  gem 'selenium-webdriver', '2.35.1'
  gem 'capybara', '2.1.0'
  gem 'factory_girl_rails', '4.2.1'

end


gem 'sass-rails', '4.0.1'
gem 'uglifier', '2.1.1'
gem 'coffee-rails', '4.0.1'
gem 'jquery-rails', '3.0.4'
gem 'turbolinks', '1.1.1'
gem 'jbuilder', '1.0.2'

group :doc do
  gem 'sdoc', '0.3.20', require: false
end

group :production do
  gem 'pg', '0.15.1'
  gem 'rails_12factor', '0.0.2'
  gem 'heroku-deflater'
end

Hello, 你好,

On Feb 24, 2016, Ruby 2.0.0 security maintenance will reach its end-of-life. 2016年2月24日,Ruby 2.0.0安全维护将终止其寿命。 When this happens, Ruby 2.0.0 will no longer receive security updates. 发生这种情况时,Ruby 2.0.0将不再接收安全更新。 We recommend that you upgrade your app to a supported Ruby version, eg 2.2.4, to ensure that your application is running in a secure environment. 我们建议您将应用程序升级到受支持的Ruby版本,例如2.2.4,以确保您的应用程序在安全的环境中运行。

So which version of the ruby and rails do you suggest to put into my gemfile? 那么,您建议将哪个版本的红宝石和铁轨放入我的gemfile中?

I would put the most current stable rails and ruby versions. 我会使用最新的稳定导轨和红宝石版本。 at this point that would be ruby '2.3' and rails '4.2' 在这一点上,将是ruby '2.3'rails '4.2'

At the time of writing most current ruby supported on heroku is 2.3.0. 在撰写本文时,heroku支持的最新红宝石为2.3.0。 To run rails on 2.3 without warnings about some cyclic dependencies you need rails 4.2+, but note that some things changed from 4.0 to 4.2 and you may have to do a migration, see guide on that 要在2.3上运行Rails而不警告某些周期性依赖关系,您需要Rails 4.2+,但请注意,某些事情已从4.0更改为4.2,并且您可能必须进行迁移,请参见该指南

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

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