Skip to content

Commit 0c0c439

Browse files
committed
Introduce appraisals to allow easy testing with supported Rails versions
1 parent 4ffabf4 commit 0c0c439

File tree

6 files changed

+54
-0
lines changed

6 files changed

+54
-0
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_amazon_sidebar.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Gem::Specification.new do |spec|
2222

2323
spec.add_dependency "publify_core", "~> 10.0.0"
2424

25+
spec.add_development_dependency "appraisal", "~> 2.5"
2526
spec.add_development_dependency "rspec-rails", "~> 6.0"
2627
spec.add_development_dependency "rubocop", "~> 1.77.0"
2728
spec.add_development_dependency "rubocop-capybara", "~> 2.21.0"

0 commit comments

Comments
 (0)