Skip to content

Commit

Permalink
Update gemspec to support rails 7.2 and 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kiskoza committed Dec 3, 2024
1 parent 7354283 commit 52f38f6
Show file tree
Hide file tree
Showing 9 changed files with 450 additions and 11 deletions.
37 changes: 34 additions & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,36 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby-version: [2.7, "3.0", 3.1, 3.2]
lockfile: ['Gemfile.lock', 'Gemfile.rails-7.0.lock']
ruby-version:
- '2.7'
- '3.0'
- '3.1'
- '3.2'
- '3.3'
lockfile:
- 'rails-7.0'
- 'Gemfile.lock' # rails-7.1
- 'rails-7.2'
- 'rails-8.0'

include:
- ruby-version: '3.0'
bundler: '2.5.23'
- ruby-version: '3.1'
bundler: '2.5.23'

exclude:
- ruby-version: '2.7'
lockfile: 'rails-7.2'
- ruby-version: '3.0'
lockfile: 'rails-7.2'

- ruby-version: '2.7'
lockfile: 'rails-8.0'
- ruby-version: '3.0'
lockfile: 'rails-8.0'
- ruby-version: '3.1'
lockfile: 'rails-8.0'

services:
postgres:
Expand All @@ -29,11 +57,15 @@ jobs:
ports:
- 5432:5432

env:
BUNDLE_LOCKFILE: ${{ matrix.lockfile }}

steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler: ${{ matrix.bundler }}
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
env:
Expand All @@ -44,7 +76,6 @@ jobs:
PGHOST: localhost
PGUSER: postgres
PGPASSWORD: postgres
BUNDLE_LOCKFILE: ${{ matrix.lockfile }}

lint:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3.1
FROM ruby:3.2

RUN apt update && \
apt install -y --no-install-recommends \
Expand Down
12 changes: 11 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source "https://rubygems.org"

plugin "bundler-multilock", "1.2.0"
plugin "bundler-multilock", "1.3.4"
return unless Plugin.installed?("bundler-multilock")

Plugin.send(:load_plugin, "bundler-multilock")
Expand All @@ -18,3 +18,13 @@ lockfile do
gem "activerecord", "~> 7.1.0"
gem "railties", "~> 7.1.0"
end

lockfile "rails-7.2" do
gem "activerecord", "~> 7.2.0"
gem "railties", "~> 7.2.0"
end

lockfile "rails-8.0" do
gem "activerecord", "~> 8.0.0"
gem "railties", "~> 8.0.0"
end
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ PATH
remote: .
specs:
activerecord-pg-extensions (0.5.4)
activerecord (>= 7.0, < 7.2)
railties (>= 7.0, < 7.2)
activerecord (>= 7.0, < 8.1)
railties (>= 7.0, < 8.1)

GEM
remote: https://rubygems.org/
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.rails-7.0.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ PATH
remote: .
specs:
activerecord-pg-extensions (0.5.4)
activerecord (>= 7.0, < 7.2)
railties (>= 7.0, < 7.2)
activerecord (>= 7.0, < 8.1)
railties (>= 7.0, < 8.1)

GEM
remote: https://rubygems.org/
Expand Down
193 changes: 193 additions & 0 deletions Gemfile.rails-7.2.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
PATH
remote: .
specs:
activerecord-pg-extensions (0.5.4)
activerecord (>= 7.0, < 8.1)
railties (>= 7.0, < 8.1)

GEM
remote: https://rubygems.org/
specs:
actionpack (7.2.2)
actionview (= 7.2.2)
activesupport (= 7.2.2)
nokogiri (>= 1.8.5)
racc
rack (>= 2.2.4, < 3.2)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
useragent (~> 0.16)
actionview (7.2.2)
activesupport (= 7.2.2)
builder (~> 3.1)
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
activemodel (7.2.2)
activesupport (= 7.2.2)
activerecord (7.2.2)
activemodel (= 7.2.2)
activesupport (= 7.2.2)
timeout (>= 0.4.0)
activesupport (7.2.2)
base64
benchmark (>= 0.3)
bigdecimal
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
ast (2.4.2)
base64 (0.1.1)
benchmark (0.4.0)
bigdecimal (3.1.4)
builder (3.2.4)
concurrent-ruby (1.3.1)
connection_pool (2.4.1)
crass (1.0.6)
debug (1.8.0)
irb (>= 1.5.0)
reline (>= 0.3.1)
diff-lcs (1.5.0)
drb (2.2.1)
erubi (1.13.0)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
io-console (0.6.0)
irb (1.14.1)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
json (2.6.3)
language_server-protocol (3.17.0.3)
logger (1.6.2)
loofah (2.23.1)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
mini_portile2 (2.8.8)
minitest (5.25.2)
nokogiri (1.16.7)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogiri (1.16.7-arm64-darwin)
racc (~> 1.4)
nokogiri (1.16.7-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.16.7-x86_64-linux)
racc (~> 1.4)
parallel (1.23.0)
parser (3.2.2.4)
ast (~> 2.4.1)
racc
pg (1.5.4)
psych (5.1.1.1)
stringio
racc (1.7.1)
rack (3.1.8)
rack-session (2.0.0)
rack (>= 3.0.0)
rack-test (2.1.0)
rack (>= 1.3)
rackup (2.2.1)
rack (>= 3)
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.2.2)
actionpack (= 7.2.2)
activesupport (= 7.2.2)
irb (~> 1.13)
rackup (>= 1.0.0)
rake (>= 12.2)
thor (~> 1.0, >= 1.2.2)
zeitwerk (~> 2.6)
rainbow (3.1.1)
rake (13.1.0)
rdoc (6.5.0)
psych (>= 4.0.0)
regexp_parser (2.8.2)
reline (0.5.12)
io-console (~> 0.5)
rexml (3.2.6)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.12.0)
rspec-core (3.12.2)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-mocks (3.12.6)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.1)
rubocop (1.57.2)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.2.2.4)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.28.1, < 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-capybara (2.19.0)
rubocop (~> 1.41)
rubocop-factory_bot (2.24.0)
rubocop (~> 1.33)
rubocop-inst (1.0.2)
rubocop (~> 1.50)
rubocop-performance (~> 1.17)
rubocop-performance (1.19.1)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
rubocop-rake (0.6.0)
rubocop (~> 1.0)
rubocop-rspec (2.25.0)
rubocop (~> 1.40)
rubocop-capybara (~> 2.17)
rubocop-factory_bot (~> 2.22)
ruby-progressbar (1.13.0)
securerandom (0.4.0)
stringio (3.0.8)
thor (1.3.2)
timeout (0.4.2)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.5.0)
useragent (0.16.10)
zeitwerk (2.6.18)

PLATFORMS
arm64-darwin
ruby
x86_64-darwin
x86_64-linux

DEPENDENCIES
activerecord (~> 7.2.0)
activerecord-pg-extensions!
debug (~> 1.8)
pg (~> 1.2)
railties (~> 7.2.0)
rake (~> 13.0)
rspec (~> 3.0)
rubocop-inst (~> 1)
rubocop-rake (~> 0.5)
rubocop-rspec (~> 2.3)

BUNDLED WITH
2.4.20
Loading

0 comments on commit 52f38f6

Please sign in to comment.