Skip to content

Commit a57fd16

Browse files
authored
fix: remove dependency of Rails 7 so it could run in Rails 8 too. (#61)
1 parent ecf0cfe commit a57fd16

8 files changed

+41
-13
lines changed

.github/workflows/rubyonrails.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
gemfile: [rails-7.0, rails-7.1, rails-7.2]
18+
gemfile: [rails-7.0, rails-7.1, rails-7.2, rails-8.0.0-beta1]
1919
runs-on: ubuntu-latest
2020
env:
2121
RAILS_ENV: test
@@ -26,7 +26,7 @@ jobs:
2626
- name: Install Ruby and gems
2727
uses: ruby/setup-ruby@v1
2828
with:
29-
ruby-version: "3.1"
29+
ruby-version: "3.2"
3030
bundler-cache: true
3131
- name: Run tests
3232
run: bin/rails t

Gemfile

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ gem 'sprockets-rails'
1212

1313
gem 'rack-cors'
1414

15+
gem 'rails', '~> 7.0'
16+
1517
group :development, :test do
1618
gem "rubocop"
1719

Gemfile.lock

+5-6
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ PATH
33
specs:
44
oas_rails (0.8.1)
55
method_source (~> 1.0)
6-
model-to-schema (~> 0.1.1)
7-
rails (~> 7.0)
6+
model-to-schema (~> 0.1.2)
87
yard (~> 0.9)
98

109
GEM
@@ -110,7 +109,7 @@ GEM
110109
rdoc (>= 4.0.0)
111110
reline (>= 0.4.2)
112111
json (2.7.2)
113-
jwt (2.9.1)
112+
jwt (2.9.3)
114113
base64
115114
language_server-protocol (3.17.0.3)
116115
logger (1.6.1)
@@ -126,8 +125,7 @@ GEM
126125
method_source (1.1.0)
127126
mini_mime (1.1.5)
128127
minitest (5.25.1)
129-
model-to-schema (0.1.1)
130-
activerecord (~> 7.0)
128+
model-to-schema (0.1.2)
131129
net-imap (0.4.16)
132130
date
133131
net-protocol
@@ -244,7 +242,7 @@ GEM
244242
websocket-extensions (>= 0.1.0)
245243
websocket-extensions (0.1.5)
246244
yard (0.9.37)
247-
zeitwerk (2.6.18)
245+
zeitwerk (2.7.0)
248246

249247
PLATFORMS
250248
aarch64-linux
@@ -263,6 +261,7 @@ DEPENDENCIES
263261
oas_rails!
264262
puma
265263
rack-cors
264+
rails (~> 7.0)
266265
rubocop
267266
sprockets-rails
268267
sqlite3 (~> 1.4)

gemfiles/rails-7.0.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
33

44
gem 'rails', '~> 7.0.0'
55

6-
gem 'model-to-schema', '~> 0.1.0'
6+
gem 'model-to-schema', '~> 0.1.2'
77

88
gem 'method_source', '~> 1.0'
99

gemfiles/rails-7.1.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
33

44
gem 'rails', '~> 7.1.0'
55

6-
gem 'model-to-schema', '~> 0.1.0'
6+
gem 'model-to-schema', '~> 0.1.2'
77

88
gem 'method_source', '~> 1.0'
99

gemfiles/rails-7.2.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
33

44
gem 'rails', '~> 7.2.0'
55

6-
gem 'model-to-schema', '~> 0.1.0'
6+
gem 'model-to-schema', '~> 0.1.2'
77

88
gem 'method_source', '~> 1.0'
99

gemfiles/rails-8.0.0-beta1.gemfile

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
source 'https://rubygems.org'
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
gem 'rails', '~> 8.0.0.beta1'
5+
6+
gem 'model-to-schema', '~> 0.1.2'
7+
8+
gem 'method_source', '~> 1.0'
9+
10+
gem 'yard', '~> 0.9'
11+
12+
gem 'puma'
13+
14+
gem 'sqlite3', ">= 2.1"
15+
16+
gem 'sprockets-rails'
17+
18+
gem 'rack-cors'
19+
20+
group :development, :test do
21+
gem "bcrypt", "~> 3.1.7"
22+
23+
gem 'factory_bot_rails'
24+
25+
gem 'jwt'
26+
27+
gem 'faker'
28+
end

oas_rails.gemspec

+1-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ Gem::Specification.new do |spec|
2323
spec.required_ruby_version = ">= 3.1"
2424

2525
spec.add_dependency 'method_source', '~> 1.0'
26-
spec.add_dependency 'model-to-schema', '~> 0.1.1' # Esquema
27-
spec.add_dependency 'rails', '~> 7.0'
26+
spec.add_dependency 'model-to-schema', '~> 0.1.2' # Esquema
2827
spec.add_dependency 'yard', '~> 0.9'
2928
end

0 commit comments

Comments
 (0)