Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[D-349] QueryDiet: Gems und Rails 8 (und Ruby 3.4) #39

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 28 additions & 42 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,55 +13,41 @@ jobs:
fail-fast: false
matrix:
include:
- ruby: 2.5.8
directory: 'spec/rails-3.2'
- ruby: 2.5.8
directory: 'spec/rails-4.2'
- ruby: 2.5.8
directory: 'spec/rails-5.2'
- ruby: 2.5.8
directory: 'spec/rails-6.1'
- ruby: 2.6.6
directory: 'spec/rails-4.2'
- ruby: 2.6.6
directory: 'spec/rails-5.2'
- ruby: 2.6.6
directory: 'spec/rails-6.1'
- ruby: 2.7.2
directory: 'spec/rails-5.2'
- ruby: 2.7.2
directory: 'spec/rails-6.1'
- ruby: 2.7.2
directory: 'spec/rails-7.0'
- ruby: 2.7.8
gemfile: Gemfile.6.1.sqlite
- ruby: 2.7.8
gemfile: Gemfile.7.0.sqlite
- ruby: 3.0.0
directory: 'spec/rails-6.1'
gemfile: Gemfile.6.1.sqlite
- ruby: 3.0.0
directory: 'spec/rails-7.0'
- ruby: 3.1.1
directory: 'spec/rails-6.1'
- ruby: 3.1.1
directory: 'spec/rails-7.0'
- ruby: 3.1.1
directory: 'spec/rails-7.1'
- ruby: 3.1.1
directory: 'spec/rails-7.2'
- ruby: 3.3.3
directory: 'spec/rails-7.0'
- ruby: 3.3.3
directory: 'spec/rails-7.1'
- ruby: 3.3.3
directory: 'spec/rails-7.2'
gemfile: Gemfile.7.0.sqlite
- ruby: 3.1.6
gemfile: Gemfile.6.1.sqlite
- ruby: 3.1.6
gemfile: Gemfile.7.0.sqlite
- ruby: 3.1.6
gemfile: Gemfile.7.1.sqlite
- ruby: 3.1.6
gemfile: Gemfile.7.2.sqlite
- ruby: 3.3.4
gemfile: Gemfile.7.0.sqlite
- ruby: 3.3.4
gemfile: Gemfile.7.1.sqlite
- ruby: 3.3.4
gemfile: Gemfile.7.2.sqlite
- ruby: 3.3.4
gemfile: Gemfile.8.0.sqlite
env:
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
steps:
- uses: actions/checkout@v2
- name: Install ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ matrix.ruby }}"
- name: Install bundler
run: gem install bundler:1.17.3
- name: Bundle
run: bundle install
working-directory: "${{ matrix.directory }}"
run: |
gem install bundler:2.4.22
bundle install --no-deployment
- name: Run tests
run: bundle exec rake spec
working-directory: "${{ matrix.directory }}"
run: bundle exec rspec
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ doc
pkg
*.gem
.idea
*.db
*.log
.bundle
spec/support/database.yml
.byebug_history
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--color
--require spec_helper
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.1.1
1 change: 1 addition & 0 deletions Gemfile
12 changes: 10 additions & 2 deletions spec/rails-6.1/Gemfile → Gemfile.6.1.sqlite
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
source 'https://rubygems.org'

gem 'sqlite3'
# Runtime dependencies
gem 'rails', '=6.1.2.1'

# Development dependencies
gem 'rspec'
gem 'rspec-rails'
gem 'sqlite3'
gem 'database_cleaner'
gem 'query_diet', :path => '../..'
gem 'capybara'
gem 'byebug'
gem 'gemika'

# For Ruby 3.1.1
gem 'matrix'
gem 'net-smtp'

# Gem under test
gem 'query_diet', :path => '.'
8 changes: 5 additions & 3 deletions spec/rails-6.1/Gemfile.lock → Gemfile.6.1.sqlite.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PATH
remote: ../..
remote: .
specs:
query_diet (0.7.2)

Expand Down Expand Up @@ -86,6 +86,7 @@ GEM
database_cleaner-core (2.0.1)
diff-lcs (1.4.4)
erubi (1.10.0)
gemika (0.8.3)
globalid (1.0.0)
activesupport (>= 5.0)
i18n (1.8.9)
Expand Down Expand Up @@ -187,11 +188,12 @@ GEM
zeitwerk (2.4.2)

PLATFORMS
ruby
x86_64-linux

DEPENDENCIES
capybara
database_cleaner
gemika
matrix
net-smtp
query_diet!
Expand All @@ -201,4 +203,4 @@ DEPENDENCIES
sqlite3

BUNDLED WITH
2.5.17
2.4.22
11 changes: 9 additions & 2 deletions spec/rails-7.0/Gemfile → Gemfile.7.0.sqlite
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
source 'https://rubygems.org'

gem 'sqlite3'
# Runtime dependencies
gem 'rails', '=7.0.1'

# Development dependencies
gem 'rspec'
gem 'rspec-rails'
gem 'sqlite3'
gem 'database_cleaner'
gem 'query_diet', :path => '../..'
gem 'capybara'
gem 'byebug'
gem 'gemika'

# Gem under test
gem 'query_diet', :path => '.'
8 changes: 6 additions & 2 deletions spec/rails-7.0/Gemfile.lock → Gemfile.7.0.sqlite.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PATH
remote: ../..
remote: .
specs:
query_diet (0.7.2)

Expand Down Expand Up @@ -74,6 +74,7 @@ GEM
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
builder (3.3.0)
byebug (11.1.3)
capybara (3.36.0)
addressable
matrix
Expand All @@ -94,6 +95,7 @@ GEM
diff-lcs (1.5.1)
digest (3.1.0)
erubi (1.13.0)
gemika (0.8.3)
globalid (1.0.0)
activesupport (>= 5.0)
i18n (1.14.5)
Expand Down Expand Up @@ -200,13 +202,15 @@ PLATFORMS
x86_64-linux

DEPENDENCIES
byebug
capybara
database_cleaner
gemika
query_diet!
rails (= 7.0.1)
rspec
rspec-rails
sqlite3

BUNDLED WITH
2.5.17
2.4.22
11 changes: 9 additions & 2 deletions spec/rails-7.1/Gemfile → Gemfile.7.1.sqlite
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
source 'https://rubygems.org'

gem 'sqlite3', '~> 1.7'
# Runtime dependencies
gem 'rails', '=7.1.4'

# Development dependencies
gem 'rspec'
gem 'rspec-rails'
gem 'sqlite3', '~> 1.7'
gem 'database_cleaner'
gem 'query_diet', :path => '../..'
gem 'capybara'
gem 'byebug'
gem 'gemika'

# Gem under test
gem 'query_diet', :path => '.'
6 changes: 5 additions & 1 deletion spec/rails-7.1/Gemfile.lock → Gemfile.7.1.sqlite.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PATH
remote: ../..
remote: .
specs:
query_diet (0.7.2)

Expand Down Expand Up @@ -85,6 +85,7 @@ GEM
base64 (0.2.0)
bigdecimal (3.1.8)
builder (3.3.0)
byebug (11.1.3)
capybara (3.40.0)
addressable
matrix
Expand All @@ -107,6 +108,7 @@ GEM
diff-lcs (1.5.1)
drb (2.2.1)
erubi (1.13.0)
gemika (0.8.3)
globalid (1.2.1)
activesupport (>= 6.1)
i18n (1.14.5)
Expand Down Expand Up @@ -226,8 +228,10 @@ PLATFORMS
x86_64-linux

DEPENDENCIES
byebug
capybara
database_cleaner
gemika
query_diet!
rails (= 7.1.4)
rspec
Expand Down
11 changes: 9 additions & 2 deletions spec/rails-7.2/Gemfile → Gemfile.7.2.sqlite
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
source 'https://rubygems.org'

gem 'sqlite3', '~> 1.7'
# Runtime dependencies
gem 'rails', '=7.2.1'

# Development dependencies
gem 'rspec'
gem 'rspec-rails'
gem 'sqlite3', '~> 1.7'
gem 'database_cleaner'
gem 'query_diet', :path => '../..'
gem 'capybara'
gem 'byebug'
gem 'gemika'

# Gem under test
gem 'query_diet', :path => '.'
6 changes: 5 additions & 1 deletion spec/rails-7.2/Gemfile.lock → Gemfile.7.2.sqlite.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PATH
remote: ../..
remote: .
specs:
query_diet (0.7.2)

Expand Down Expand Up @@ -81,6 +81,7 @@ GEM
base64 (0.2.0)
bigdecimal (3.1.8)
builder (3.3.0)
byebug (11.1.3)
capybara (3.40.0)
addressable
matrix
Expand All @@ -103,6 +104,7 @@ GEM
diff-lcs (1.5.1)
drb (2.2.1)
erubi (1.13.0)
gemika (0.8.3)
globalid (1.2.1)
activesupport (>= 6.1)
i18n (1.14.5)
Expand Down Expand Up @@ -224,8 +226,10 @@ PLATFORMS
x86_64-linux

DEPENDENCIES
byebug
capybara
database_cleaner
gemika
query_diet!
rails (= 7.2.1)
rspec
Expand Down
16 changes: 16 additions & 0 deletions Gemfile.8.0.sqlite
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
source 'https://rubygems.org'

# Runtime dependencies
gem 'rails', '=8.0.1'

# Development dependencies
gem 'rspec'
gem 'rspec-rails'
gem 'sqlite3', '~> 2.4'
gem 'database_cleaner'
gem 'capybara'
gem 'byebug'
gem 'gemika'

# Gem under test
gem 'query_diet', :path => '.'
Loading