Skip to content

Commit

Permalink
Switch to using appraisals
Browse files Browse the repository at this point in the history
  • Loading branch information
xjunior committed Feb 8, 2024
1 parent b8a0d6a commit 7d30b12
Show file tree
Hide file tree
Showing 13 changed files with 1,170 additions and 7 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/.bundle/
/.yardoc
/Gemfile.lock
/_yardoc/
/coverage/
/doc/
Expand Down
15 changes: 15 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
appraise "rails-6-0" do
gem "rails", "6.0.6.1"
end

appraise "rails-6-1" do
gem "rails", "6.1.7.6"
end

appraise "rails-7-0" do
gem "rails", "7.0.8"
end

appraise "rails-7-1" do
gem "rails", "7.1.3"
end
181 changes: 181 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
PATH
remote: .
specs:
departure (6.6.0)
activerecord (>= 6.0.0, < 7.2.0, != 7.0.0)
mysql2 (>= 0.4.0, <= 0.5.5)
railties (>= 6.0.0, < 7.2.0, != 7.0.0)

GEM
remote: https://rubygems.org/
specs:
actionpack (7.1.3)
actionview (= 7.1.3)
activesupport (= 7.1.3)
nokogiri (>= 1.8.5)
racc
rack (>= 2.2.4)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
actionview (7.1.3)
activesupport (= 7.1.3)
builder (~> 3.1)
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
activemodel (7.1.3)
activesupport (= 7.1.3)
activerecord (7.1.3)
activemodel (= 7.1.3)
activesupport (= 7.1.3)
timeout (>= 0.4.0)
activesupport (7.1.3)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
appraisal (2.4.1)
bundler
rake
thor (>= 0.14.0)
ast (2.4.2)
base64 (0.2.0)
bigdecimal (3.1.6)
builder (3.2.4)
byebug (11.1.3)
climate_control (0.0.4)
activesupport (>= 3.0)
codeclimate-test-reporter (1.0.9)
simplecov (<= 0.13)
coderay (1.1.3)
concurrent-ruby (1.1.10)
connection_pool (2.4.1)
crass (1.0.6)
diff-lcs (1.5.0)
docile (1.1.5)
drb (2.2.0)
ruby2_keywords
erubi (1.12.0)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
io-console (0.7.2)
irb (1.11.2)
rdoc
reline (>= 0.4.2)
json (2.6.2)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
method_source (1.0.0)
minitest (5.16.2)
mutex_m (0.2.0)
mysql2 (0.5.5)
nokogiri (1.16.0-arm64-darwin)
racc (~> 1.4)
parallel (1.22.1)
parser (2.7.2.0)
ast (~> 2.4.1)
powerpack (0.1.3)
pry (0.13.1)
coderay (~> 1.1)
method_source (~> 1.0)
pry-byebug (3.9.0)
byebug (~> 11.0)
pry (~> 0.13.0)
psych (5.1.2)
stringio
racc (1.7.3)
rack (2.2.8)
rack-session (1.0.2)
rack (< 3)
rack-test (2.1.0)
rack (>= 1.3)
rackup (1.0.0)
rack (< 3)
webrick
rails-dom-testing (2.2.0)
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-html-sanitizer (1.6.0)
loofah (~> 2.21)
nokogiri (~> 1.14)
railties (7.1.3)
actionpack (= 7.1.3)
activesupport (= 7.1.3)
irb
rackup (>= 1.0.0)
rake (>= 12.2)
thor (~> 1.0, >= 1.2.2)
zeitwerk (~> 2.6)
rainbow (2.2.2)
rake
rake (13.0.6)
rdoc (6.6.2)
psych (>= 4.0.0)
reline (0.4.2)
io-console (~> 0.5)
rspec (3.11.0)
rspec-core (~> 3.11.0)
rspec-expectations (~> 3.11.0)
rspec-mocks (~> 3.11.0)
rspec-core (3.11.0)
rspec-support (~> 3.11.0)
rspec-expectations (3.11.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0)
rspec-its (1.3.0)
rspec-core (>= 3.0.0)
rspec-expectations (>= 3.0.0)
rspec-mocks (3.11.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0)
rspec-support (3.11.0)
rubocop (0.49.1)
parallel (~> 1.10)
parser (>= 2.3.3.1, < 3.0)
powerpack (~> 0.1)
rainbow (>= 1.99.1, < 3.0)
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1)
ruby-progressbar (1.11.0)
ruby2_keywords (0.0.5)
simplecov (0.13.0)
docile (~> 1.1.0)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
stringio (3.1.0)
thor (1.3.0)
timeout (0.4.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (1.8.0)
webrick (1.8.1)
zeitwerk (2.6.13)

PLATFORMS
arm64-darwin-21
arm64-darwin-22
arm64-darwin-23

DEPENDENCIES
appraisal (~> 2.4.1)
climate_control (~> 0.0.3)
codeclimate-test-reporter (~> 1.0.3)
departure!
pry-byebug
rake (>= 10.0)
rspec (~> 3.4, >= 3.4.0)
rspec-its (~> 1.2)
rubocop (~> 0.49.1)

BUNDLED WITH
2.4.22
9 changes: 3 additions & 6 deletions departure.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require 'departure/version'

# This environment variable is set on CI to facilitate testing with multiple
# versions of Rails.
RAILS_DEPENDENCY_VERSION = ENV.fetch('RAILS_VERSION', ['>= 6.0.0', '!= 7.0.0', '< 7.2.0'])

Gem::Specification.new do |spec|
spec.name = 'departure'
spec.version = Departure::VERSION
Expand All @@ -25,10 +21,11 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = '>= 2.7.0'

spec.add_runtime_dependency 'railties', *Array(RAILS_DEPENDENCY_VERSION)
spec.add_runtime_dependency 'activerecord', *Array(RAILS_DEPENDENCY_VERSION)
spec.add_runtime_dependency 'railties', '>= 6.0.0', '!= 7.0.0', '< 7.2.0'
spec.add_runtime_dependency 'activerecord', '>= 6.0.0', '!= 7.0.0', '< 7.2.0'
spec.add_runtime_dependency 'mysql2', '>= 0.4.0', '<= 0.5.5'

spec.add_development_dependency 'appraisal', '~> 2.4.1'
spec.add_development_dependency 'rake', '>= 10.0'
spec.add_development_dependency 'rspec', '~> 3.4', '>= 3.4.0'
spec.add_development_dependency 'rspec-its', '~> 1.2'
Expand Down
2 changes: 2 additions & 0 deletions gemfiles/.bundle/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
BUNDLE_RETRY: "1"
9 changes: 9 additions & 0 deletions gemfiles/rails_6_0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "codeclimate-test-reporter", "~> 1.0.3", group: :test, require: nil
gem "rubocop", "~> 0.49.1", require: false
gem "rails", "6.0.6.1"

gemspec path: "../"
Loading

0 comments on commit 7d30b12

Please sign in to comment.