Skip to content

Commit 9e4b3b2

Browse files
authored
Added support for Rails 7.1. (#11)
Signed-off-by: Hermann Mayer <[email protected]>
1 parent 99fc3c2 commit 9e4b3b2

File tree

8 files changed

+37
-3
lines changed

8 files changed

+37
-3
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
ruby: ['2.7', '3.0']
22-
rails: ['6.1']
22+
rails: ['6.1', '7.1']
2323
env:
2424
BUNDLE_GEMFILE: 'gemfiles/rails_${{ matrix.rails }}.gemfile'
2525
steps:

Appraisals

+4
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@
33
appraise 'rails-6.1' do
44
gem 'railties', '~> 6.1.0'
55
end
6+
7+
appraise 'rails-7.1' do
8+
gem 'railties', '~> 7.1.0'
9+
end

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### next
22

3-
* TODO: Replace this bullet point with an actual description of a change.
3+
* Added support for Rails 7.1 (#11)
44

55
### 3.8.1 (17 January 2025)
66

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ gem 'rubocop', '~> 1.28'
2020
gem 'rubocop-rails', '~> 2.14'
2121
gem 'rubocop-rspec', '~> 2.10'
2222
gem 'simplecov', '>= 0.22'
23+
gem 'sprockets-rails', '~> 3.5'
2324
gem 'yard', '>= 0.9.28'
2425
gem 'yard-activesupport-concern', '>= 0.0.1'

Makefile

+6
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ RUBY_VERSION := ruby-version
4343
GEMFILES ?= $(subst _,-,$(patsubst $(GEMFILES_DIR)/%.gemfile,%,\
4444
$(wildcard $(GEMFILES_DIR)/*.gemfile)))
4545
TEST_GEMFILES := $(GEMFILES:%=test-%)
46+
WATCH_GEMFILES := $(GEMFILES:%=watch-%)
4647

4748
# Define a generic shell run wrapper
4849
# $1 - The command to run
@@ -98,6 +99,11 @@ watch: install .interactive
9899
# Watch for code changes and rerun the test suite
99100
@$(call run-shell,$(BUNDLE) exec $(GUARD))
100101

102+
$(WATCH_GEMFILES): GEMFILE=$(@:watch-%=%)
103+
$(WATCH_GEMFILES):
104+
# Watch for code changes and rerun the test suite ($(GEMFILE))
105+
@$(call run-shell,$(BUNDLE) exec $(APPRAISAL) $(GEMFILE) $(GUARD))
106+
101107
test: \
102108
test-specs \
103109
test-style

conversejs.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ Gem::Specification.new do |spec|
3333

3434
spec.required_ruby_version = '>= 2.7'
3535

36-
spec.add_dependency 'railties', '>= 6.1', '< 7.0'
36+
spec.add_dependency 'railties', '>= 6.1', '< 8.0'
3737
spec.add_dependency 'zeitwerk', '~> 2.6'
3838
end

gemfiles/rails_6.1.gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ gem "rubocop", "~> 1.28"
1414
gem "rubocop-rails", "~> 2.14"
1515
gem "rubocop-rspec", "~> 2.10"
1616
gem "simplecov", ">= 0.22"
17+
gem "sprockets-rails", "~> 3.5"
1718
gem "yard", ">= 0.9.28"
1819
gem "yard-activesupport-concern", ">= 0.0.1"
1920
gem "railties", "~> 6.1.0"

gemfiles/rails_7.1.gemfile

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# This file was generated by Appraisal
2+
3+
source "https://rubygems.org"
4+
5+
gem "appraisal", "~> 2.4"
6+
gem "bundler", "~> 2.3"
7+
gem "countless", "~> 1.1"
8+
gem "guard-rspec", "~> 4.7"
9+
gem "rails", ">= 6.1"
10+
gem "rake", "~> 13.0"
11+
gem "rspec", "~> 3.12"
12+
gem "rspec-rails", "~> 5.1"
13+
gem "rubocop", "~> 1.28"
14+
gem "rubocop-rails", "~> 2.14"
15+
gem "rubocop-rspec", "~> 2.10"
16+
gem "simplecov", ">= 0.22"
17+
gem "sprockets-rails", "~> 3.5"
18+
gem "yard", ">= 0.9.28"
19+
gem "yard-activesupport-concern", ">= 0.0.1"
20+
gem "railties", "~> 7.1.0"
21+
22+
gemspec path: "../"

0 commit comments

Comments
 (0)