source "https://rubygems.org/" gemspec if ENV["RAILS_VERSION"] && (ENV["RAILS_VERSION"].to_i == 4) gem "rails", "< 5" gem "rspec-rails" elsif ENV["RAILS_VERSION"] && (ENV["RAILS_VERSION"].to_i == 0) # no-op. No Rails. else gem "rails", "< 6" gem "rspec-rails" end if RUBY_VERSION < '2.0' gem "mime-types", "< 3.0.0" gem "nokogiri", "~> 1.6.8" gem "rack", "~> 1.6.8" gem "sidekiq", "< 3.2" gem "rack-timeout", "0.3.0" else gem "rack" gem "sidekiq" gem "rack-timeout" end gem "pry" gem "pry-coolline" gem "benchmark-ips" gem "benchmark-ipsa" if RUBY_VERSION > '2.0' gem "ruby-prof", platform: :mri gem "rake" gem "rubocop", "~> 0.41.1" gem "rspec" gem "capybara" # rspec system tests gem "puma" # rspec system tests gem "timecop" gem "test-unit", platform: :mri if RUBY_VERSION > '2.2'