appraise 'rails_3_2' do gem 'rails', '~> 3.2.22.5' gem 'rack', '~> 1.0', :platforms => [:ruby_20, :ruby_21] gem 'nokogiri', '~> 1.6.0', :platforms => [:ruby_20] gem 'mysql2', '~> 0.3.10' end if RUBY_VERSION.to_f < 2.2 appraise 'rails_4_0' do gem 'rails', '~> 4.0.13' gem 'rack', '~> 1.0', :platforms => [:ruby_20, :ruby_21] gem 'nokogiri', '~> 1.6.0', :platforms => [:ruby_20] gem 'mysql2', '~> 0.3.10' end if RUBY_VERSION.to_f < 2.4 appraise 'rails_4_1' do gem 'rails', '~> 4.1.16' gem 'rack', '~> 1.0', :platforms => [:ruby_20, :ruby_21] gem 'nokogiri', '~> 1.6.0', :platforms => [:ruby_20] gem 'mysql2', '~> 0.3.13' end if RUBY_VERSION.to_f < 2.4 appraise 'rails_4_2' do gem 'rails', '~> 4.2.7' gem 'rack', '~> 1.0', :platforms => [:ruby_20, :ruby_21] gem 'nokogiri', '~> 1.6.0', :platforms => [:ruby_20] end if RUBY_VERSION.to_f < 2.4 appraise 'rails_5_0' do gem 'rails', '~> 5.0.1' end if RUBY_VERSION.to_f >= 2.2 appraise 'rails_5_1' do gem 'rails', '~> 5.1.0' end if RUBY_VERSION.to_f >= 2.2