Skip to content

Commit ff16db1

Browse files
committed
Introduce appraisals to allow easy testing with supported Rails versions
1 parent ae9bc52 commit ff16db1

File tree

6 files changed

+55
-1
lines changed

6 files changed

+55
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.bundle/
22
Gemfile.lock
3+
gemfiles/*.lock
34
coverage/
45
log/*.log
56
pkg/

Appraisals

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# frozen_string_literal: true
2+
3+
# HACK: This uses odd syntax to make appraisal customization work on newer Rubies.
4+
# See https://github.com/thoughtbot/appraisal/pull/214. Once that one has been
5+
# released, we should use customize_gemfiles instead.
6+
Customize.new heading: <<~HEADING.chomp
7+
frozen_string_literal: true
8+
9+
This file was generated by Appraisal
10+
HEADING
11+
12+
appraise "rails_61" do
13+
gem "rails", "~> 6.1.0"
14+
end
15+
16+
appraise "rails_70" do
17+
gem "rails", "~> 7.0.0"
18+
end
19+
20+
appraise "rails_71" do
21+
gem "rails", "~> 7.1.0"
22+
end

gemfiles/rails_61.gemfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# frozen_string_literal: true
2+
3+
# This file was generated by Appraisal
4+
5+
source "https://rubygems.org"
6+
7+
gem "publify_core", git: "https://github.com/publify/publify_core.git"
8+
gem "rails", "~> 6.1.0"
9+
10+
gemspec path: "../"

gemfiles/rails_70.gemfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# frozen_string_literal: true
2+
3+
# This file was generated by Appraisal
4+
5+
source "https://rubygems.org"
6+
7+
gem "publify_core", git: "https://github.com/publify/publify_core.git"
8+
gem "rails", "~> 7.0.0"
9+
10+
gemspec path: "../"

gemfiles/rails_71.gemfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# frozen_string_literal: true
2+
3+
# This file was generated by Appraisal
4+
5+
source "https://rubygems.org"
6+
7+
gem "publify_core", git: "https://github.com/publify/publify_core.git"
8+
gem "rails", "~> 7.1.0"
9+
10+
gemspec path: "../"

publify_textfilter_code.gemspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ Gem::Specification.new do |s|
2222
s.add_dependency "htmlentities", "~> 4.3"
2323
s.add_dependency "publify_core", "~> 10.0.0"
2424

25-
s.add_development_dependency "rspec-rails", "~> 7.1"
25+
s.add_development_dependency "appraisal", "~> 2.3"
26+
s.add_development_dependency "rspec-rails", "~> 6.0"
2627
s.add_development_dependency "rubocop", "~> 1.77.0"
2728
s.add_development_dependency "rubocop-performance", "~> 1.23.1"
2829
s.add_development_dependency "rubocop-rails", "~> 2.32.0"

0 commit comments

Comments
 (0)