Skip to content

Commit

Permalink
Fill in the remaining Rails dependencies
Browse files Browse the repository at this point in the history
shoulda has a whole suite of Rails dependencies copied from
shoulda-matchers, so we might as well follow suit.
  • Loading branch information
mcmire committed Apr 5, 2020
1 parent 6858b4a commit d0afbfd
Show file tree
Hide file tree
Showing 15 changed files with 632 additions and 94 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ os: linux
cache:
directories:
- vendor/bundle
script: "bundle exec rake"
# Source: <https://docs.travis-ci.com/user/languages/ruby/#bundler-20>
before_install:
- gem update --system '3.1.2' --no-document
Expand All @@ -13,6 +12,7 @@ before_install:
- nvm use v11.0.0
- bundle config set path vendor/bundle
install: "bundle install --jobs=3 --retry=3"
script: "bundle exec rake"
rvm:
- 2.3.7
- 2.4.9
Expand Down
115 changes: 98 additions & 17 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,34 +1,115 @@
appraise "rails_4_2" do
gem "rails", "~> 4.2.0"
gem "sprockets", "~> 3.0"
# Note: All of the dependencies here were obtained by running `rails new` with
# various versions of Rails and copying lines from the generated Gemfile. It's
# best to keep the gems here in the same order as they're listed there so you
# can compare them more easily.

shared_rails_dependencies = proc do
gem "sqlite3", "~> 1.3.6"
end

shared_spring_dependencies = proc do
gem "spring"
gem "spring-commands-rspec"
end

shared_test_dependencies = proc do
gem "minitest-reporters"
end

shared_dependencies = proc do
instance_eval(&shared_rails_dependencies)
instance_eval(&shared_spring_dependencies)
instance_eval(&shared_test_dependencies)
end

appraise "rails_4_2" do
instance_eval(&shared_dependencies)

gem "rails", "~> 4.2.10"
gem "sass-rails", "~> 5.0"
gem "uglifier", ">= 1.3.0"
gem "coffee-rails", "~> 4.1.0"
gem "jquery-rails"
gem "turbolinks"
gem "jbuilder", "~> 2.0"
gem "sdoc", "~> 0.4.0", group: :doc
gem "bcrypt", "~> 3.1.7"

# Other dependencies we use
gem "activeresource", "4.0.0"
gem "json", "~> 1.4"
gem "protected_attributes", "~> 1.0.6"
end

appraise "rails_5_0" do
gem "rails", "~> 5.0.0"
gem "sprockets", "~> 3.0"
gem "sqlite3", "~> 1.3.6"
instance_eval(&shared_dependencies)

gem "rails", "~> 5.0.7"
gem "rails-controller-testing", ">= 1.0.1"
gem "puma", "~> 3.0"
gem "sass-rails", "~> 5.0"
gem "jquery-rails"
gem "turbolinks", "~> 5"
gem "jbuilder", "~> 2.5"
gem "bcrypt", "~> 3.1.7"
gem "listen", "~> 3.0.5"
gem "spring-watcher-listen", "~> 2.0.0"
end

appraise "rails_5_1" do
gem "rails", "~> 5.1.0"
gem "sprockets", "~> 3.0"
gem "sqlite3", "~> 1.3.6"
instance_eval(&shared_dependencies)
gem "rails", "~> 5.1.6"
gem "rails-controller-testing", ">= 1.0.1"
gem "puma", "~> 3.7"
gem "sass-rails", "~> 5.0"
gem "turbolinks", "~> 5"
gem "jbuilder", "~> 2.5"
gem "bcrypt", "~> 3.1.7"
gem "capybara", "~> 2.13"
gem "selenium-webdriver"
gem "listen", ">= 3.0.5", "< 3.2"
gem "spring-watcher-listen", "~> 2.0.0"
end

appraise "rails_5_2" do
gem "rails", "~> 5.2.0"
gem "sprockets", "~> 3.0"
gem "sqlite3", "~> 1.3.6"
instance_eval(&shared_dependencies)

gem "rails", "~> 5.2.2"
gem "rails-controller-testing", ">= 1.0.1"
gem "puma", "~> 3.11"
gem "bootsnap", ">= 1.1.0", require: false
gem "sass-rails", "~> 5.0"
gem "turbolinks", "~> 5"
gem "jbuilder", "~> 2.5"
gem "bcrypt", "~> 3.1.7"
gem "capybara", "~> 3.1.1"
gem "selenium-webdriver"
gem "chromedriver-helper"
gem "listen", ">= 3.0.5", "< 3.2"
gem "spring-watcher-listen", "~> 2.0.0"
end

if Gem::Requirement.new(">= 2.5.0").satisfied_by?(Gem::Version.new(RUBY_VERSION))
if Gem::Requirement.new('>= 2.5.0').satisfied_by?(Gem::Version.new(RUBY_VERSION))
appraise "rails_6_0" do
gem "rails", "~> 6.0.0"
instance_eval(&shared_dependencies)

gem "rails", "~> 6.0.2"
gem "puma", "~> 4.1"
gem "sass-rails", ">= 6"
gem "webpacker", "~> 4.0"
gem "turbolinks", "~> 5"
gem "jbuilder", "~> 2.7"
gem "bcrypt", "~> 3.1.7"
gem "bootsnap", ">= 1.4.2", require: false
gem "listen", ">= 3.0.5", "< 3.2"
gem "sqlite3", "~> 1.4"
gem "sprockets", "~> 4.0"
gem "webpacker", "~> 4.0"
gem "spring-watcher-listen", "~> 2.0.0"
gem "capybara", ">= 2.15"
gem "selenium-webdriver"
gem "sqlite3", "~> 1.4.0"
gem "webdrivers"

# Other dependencies
gem "rails-controller-testing", ">= 1.0.4"
gem "pg", "~> 1.1", platform: :ruby
end
end
10 changes: 10 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ source "https://rubygems.org"

gemspec

gem "appraisal"
gem "bundler", "~> 1.0"
gem "byebug"
gem "m"
gem "minitest"
gem "mocha"
gem "pry", "~> 0.12.0"
gem "pry-byebug", "~> 3.6.0"
gem "rake"
gem "rubocop", "0.71.0"
gem "snowglobe", ">= 0.3.0"
gem "test-unit"
gem "warnings_logger"
12 changes: 5 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ GEM
parser (2.7.1.0)
ast (~> 2.4.0)
power_assert (1.1.7)
powerpack (0.1.2)
pry (0.12.2)
coderay (~> 1.1.0)
method_source (~> 0.9.0)
Expand All @@ -33,20 +32,19 @@ GEM
pry (~> 0.10)
rainbow (3.0.0)
rake (13.0.1)
rubocop (0.64.0)
rubocop (0.71.0)
jaro_winkler (~> 1.5.1)
parallel (~> 1.10)
parser (>= 2.5, != 2.5.1.1)
powerpack (~> 0.1)
parser (>= 2.6)
rainbow (>= 2.2.2, < 4.0)
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.4.0)
unicode-display_width (>= 1.4.0, < 1.7)
ruby-progressbar (1.10.1)
snowglobe (0.3.0)
test-unit (3.3.5)
power_assert
thor (1.0.1)
unicode-display_width (1.4.1)
unicode-display_width (1.6.1)
warnings_logger (0.1.0)

PLATFORMS
Expand All @@ -62,7 +60,7 @@ DEPENDENCIES
pry (~> 0.12.0)
pry-byebug (~> 3.6.0)
rake
rubocop (= 0.64.0)
rubocop (= 0.71.0)
shoulda-context!
snowglobe (>= 0.3.0)
test-unit
Expand Down
27 changes: 25 additions & 2 deletions gemfiles/rails_4_2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,34 @@

source "https://rubygems.org"

gem "appraisal"
gem "bundler", "~> 1.0"
gem "byebug"
gem "m"
gem "minitest"
gem "mocha"
gem "pry", "~> 0.12.0"
gem "pry-byebug", "~> 3.6.0"
gem "rake"
gem "rubocop", "0.71.0"
gem "snowglobe", ">= 0.3.0"
gem "test-unit"
gem "warnings_logger"
gem "rails", "~> 4.2.0"
gem "sprockets", "~> 3.0"
gem "sqlite3", "~> 1.3.6"
gem "spring"
gem "spring-commands-rspec"
gem "minitest-reporters"
gem "rails", "~> 4.2.10"
gem "sass-rails", "~> 5.0"
gem "uglifier", ">= 1.3.0"
gem "coffee-rails", "~> 4.1.0"
gem "jquery-rails"
gem "turbolinks"
gem "jbuilder", "~> 2.0"
gem "sdoc", "~> 0.4.0", group: :doc
gem "bcrypt", "~> 3.1.7"
gem "activeresource", "4.0.0"
gem "json", "~> 1.4"
gem "protected_attributes", "~> 1.0.6"

gemspec path: "../"
Loading

0 comments on commit d0afbfd

Please sign in to comment.