Skip to content

Commit

Permalink
test: update Appraisal dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
blocknotes committed Feb 29, 2024
1 parent fa1567a commit 12bca5d
Show file tree
Hide file tree
Showing 18 changed files with 234 additions and 214 deletions.
60 changes: 30 additions & 30 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,34 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }

gemspec

group :development, :test do
if ENV['DB_TEST'] == 'mssql'
gem 'activerecord-sqlserver-adapter', '7.0.3.0'
gem 'tiny_tds'
end
gem 'mysql2' if ENV['DB_TEST'] == 'mysql'
gem 'pg' if ['postgres', 'postgresql'].include? ENV['DB_TEST']

gem "image_processing", ">= 1.2"

gem 'simplecov'
gem 'simplecov-lcov'

# Testing
gem 'capybara'
gem 'rspec_junit_formatter'
gem 'rspec-rails'
gem 'selenium-webdriver'

# Linters
gem 'brakeman'
gem 'fasterer'
gem 'rubocop'
gem 'rubocop-packaging'
gem 'rubocop-performance'
gem 'rubocop-rails'
gem 'rubocop-rspec'

# Tools
gem 'pry-rails'
if ENV['DB_TEST'] == 'mssql'
gem 'activerecord-sqlserver-adapter', '7.0.3.0'
gem 'tiny_tds'
end
gem 'mysql2' if ENV['DB_TEST'] == 'mysql'
gem 'pg' if ['postgres', 'postgresql'].include? ENV['DB_TEST']

gem 'image_processing', '>= 1.2'

gem 'webrick'

gem 'simplecov'
gem 'simplecov-lcov'

# Testing
gem 'capybara'
gem 'rspec_junit_formatter'
gem 'rspec-rails'
gem 'selenium-webdriver'

# Linters
gem 'brakeman'
gem 'fasterer'
gem 'rubocop'
gem 'rubocop-packaging'
gem 'rubocop-performance'
gem 'rubocop-rails'
gem 'rubocop-rspec'

# Tools
gem 'pry-rails'
6 changes: 6 additions & 0 deletions extra/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ DB_TEST=postgres RAILS=7.0 bin/appraisal rails-7_1-postgres rspec
DB_TEST=postgres RAILS=7.0 bin/appraisal rails-7_0-postgres rails db:drop db:create db:migrate
```

```ruby
# Create a test post in the dummy app
post = Post.create!(title: "test1")
post.some_file.attach(io: Rails.root.join("../../README.md").open, filename: "README.md")
```

## Tests using Docker

```sh
Expand Down
34 changes: 16 additions & 18 deletions gemfiles/rails_6_1_mssql.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,24 @@

source "https://rubygems.org"

gem "image_processing", ">= 1.2"
gem "webrick"
gem "simplecov"
gem "simplecov-lcov"
gem "capybara"
gem "rspec_junit_formatter"
gem "rspec-rails"
gem "selenium-webdriver"
gem "brakeman"
gem "fasterer"
gem "rubocop"
gem "rubocop-packaging"
gem "rubocop-performance"
gem "rubocop-rails"
gem "rubocop-rspec"
gem "pry-rails"
gem "activerecord-sqlserver-adapter", "~> 6.1.0"
gem "rails", "~> 6.1.0"
gem "tiny_tds"

group :development, :test do
gem "image_processing", ">= 1.2"
gem "simplecov"
gem "simplecov-lcov"
gem "capybara"
gem "rspec_junit_formatter"
gem "rspec-rails"
gem "selenium-webdriver"
gem "brakeman"
gem "fasterer"
gem "rubocop"
gem "rubocop-packaging"
gem "rubocop-performance"
gem "rubocop-rails"
gem "rubocop-rspec"
gem "pry-rails"
end

gemspec path: "../"
14 changes: 9 additions & 5 deletions gemfiles/rails_6_1_mssql.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ GEM
net-imap
net-pop
net-smtp
marcel (1.0.2)
marcel (1.0.3)
matrix (0.4.2)
method_source (1.0.0)
mini_magick (4.12.0)
Expand All @@ -146,6 +146,7 @@ GEM
parser (3.3.0.5)
ast (~> 2.4.1)
racc
prism (0.24.0)
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
Expand Down Expand Up @@ -207,7 +208,7 @@ GEM
rspec-support (3.13.1)
rspec_junit_formatter (0.6.0)
rspec-core (>= 2, < 4, != 2.12.0)
rubocop (1.60.2)
rubocop (1.61.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
Expand All @@ -218,8 +219,9 @@ GEM
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-ast (1.31.0)
parser (>= 3.3.0.4)
prism (>= 0.24.0)
rubocop-capybara (2.20.0)
rubocop (~> 1.41)
rubocop-factory_bot (2.25.1)
Expand Down Expand Up @@ -265,12 +267,13 @@ GEM
actionpack (>= 5.2)
activesupport (>= 5.2)
sprockets (>= 3.0.0)
thor (1.3.0)
thor (1.3.1)
timeout (0.4.1)
tiny_tds (2.1.7)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.5.0)
webrick (1.8.1)
websocket (1.2.10)
websocket-driver (0.7.6)
websocket-extensions (>= 0.1.0)
Expand Down Expand Up @@ -306,6 +309,7 @@ DEPENDENCIES
simplecov
simplecov-lcov
tiny_tds
webrick

BUNDLED WITH
2.4.19
34 changes: 16 additions & 18 deletions gemfiles/rails_6_1_mysql.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,23 @@

source "https://rubygems.org"

gem "image_processing", ">= 1.2"
gem "webrick"
gem "simplecov"
gem "simplecov-lcov"
gem "capybara"
gem "rspec_junit_formatter"
gem "rspec-rails"
gem "selenium-webdriver"
gem "brakeman"
gem "fasterer"
gem "rubocop"
gem "rubocop-packaging"
gem "rubocop-performance"
gem "rubocop-rails"
gem "rubocop-rspec"
gem "pry-rails"
gem "mysql2"
gem "rails", "~> 6.1.0"

group :development, :test do
gem "image_processing", ">= 1.2"
gem "simplecov"
gem "simplecov-lcov"
gem "capybara"
gem "rspec_junit_formatter"
gem "rspec-rails"
gem "selenium-webdriver"
gem "brakeman"
gem "fasterer"
gem "rubocop"
gem "rubocop-packaging"
gem "rubocop-performance"
gem "rubocop-rails"
gem "rubocop-rspec"
gem "pry-rails"
end

gemspec path: "../"
14 changes: 9 additions & 5 deletions gemfiles/rails_6_1_mysql.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ GEM
net-imap
net-pop
net-smtp
marcel (1.0.2)
marcel (1.0.3)
matrix (0.4.2)
method_source (1.0.0)
mini_magick (4.12.0)
Expand All @@ -146,6 +146,7 @@ GEM
parser (3.3.0.5)
ast (~> 2.4.1)
racc
prism (0.24.0)
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
Expand Down Expand Up @@ -207,7 +208,7 @@ GEM
rspec-support (3.13.1)
rspec_junit_formatter (0.6.0)
rspec-core (>= 2, < 4, != 2.12.0)
rubocop (1.60.2)
rubocop (1.61.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
Expand All @@ -218,8 +219,9 @@ GEM
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-ast (1.31.0)
parser (>= 3.3.0.4)
prism (>= 0.24.0)
rubocop-capybara (2.20.0)
rubocop (~> 1.41)
rubocop-factory_bot (2.25.1)
Expand Down Expand Up @@ -265,11 +267,12 @@ GEM
actionpack (>= 5.2)
activesupport (>= 5.2)
sprockets (>= 3.0.0)
thor (1.3.0)
thor (1.3.1)
timeout (0.4.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.5.0)
webrick (1.8.1)
websocket (1.2.10)
websocket-driver (0.7.6)
websocket-extensions (>= 0.1.0)
Expand Down Expand Up @@ -305,6 +308,7 @@ DEPENDENCIES
selenium-webdriver
simplecov
simplecov-lcov
webrick

BUNDLED WITH
2.3.8
34 changes: 16 additions & 18 deletions gemfiles/rails_6_1_postgres.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,23 @@

source "https://rubygems.org"

gem "image_processing", ">= 1.2"
gem "webrick"
gem "simplecov"
gem "simplecov-lcov"
gem "capybara"
gem "rspec_junit_formatter"
gem "rspec-rails"
gem "selenium-webdriver"
gem "brakeman"
gem "fasterer"
gem "rubocop"
gem "rubocop-packaging"
gem "rubocop-performance"
gem "rubocop-rails"
gem "rubocop-rspec"
gem "pry-rails"
gem "pg"
gem "rails", "~> 6.1.0"

group :development, :test do
gem "image_processing", ">= 1.2"
gem "simplecov"
gem "simplecov-lcov"
gem "capybara"
gem "rspec_junit_formatter"
gem "rspec-rails"
gem "selenium-webdriver"
gem "brakeman"
gem "fasterer"
gem "rubocop"
gem "rubocop-packaging"
gem "rubocop-performance"
gem "rubocop-rails"
gem "rubocop-rspec"
gem "pry-rails"
end

gemspec path: "../"
14 changes: 9 additions & 5 deletions gemfiles/rails_6_1_postgres.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ GEM
net-imap
net-pop
net-smtp
marcel (1.0.2)
marcel (1.0.3)
matrix (0.4.2)
method_source (1.0.0)
mini_magick (4.12.0)
Expand All @@ -146,6 +146,7 @@ GEM
ast (~> 2.4.1)
racc
pg (1.5.5)
prism (0.24.0)
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
Expand Down Expand Up @@ -207,7 +208,7 @@ GEM
rspec-support (3.13.1)
rspec_junit_formatter (0.6.0)
rspec-core (>= 2, < 4, != 2.12.0)
rubocop (1.60.2)
rubocop (1.61.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
Expand All @@ -218,8 +219,9 @@ GEM
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-ast (1.31.0)
parser (>= 3.3.0.4)
prism (>= 0.24.0)
rubocop-capybara (2.20.0)
rubocop (~> 1.41)
rubocop-factory_bot (2.25.1)
Expand Down Expand Up @@ -265,11 +267,12 @@ GEM
actionpack (>= 5.2)
activesupport (>= 5.2)
sprockets (>= 3.0.0)
thor (1.3.0)
thor (1.3.1)
timeout (0.4.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.5.0)
webrick (1.8.1)
websocket (1.2.10)
websocket-driver (0.7.6)
websocket-extensions (>= 0.1.0)
Expand Down Expand Up @@ -305,6 +308,7 @@ DEPENDENCIES
selenium-webdriver
simplecov
simplecov-lcov
webrick

BUNDLED WITH
2.3.8
Loading

0 comments on commit 12bca5d

Please sign in to comment.