File tree Expand file tree Collapse file tree 9 files changed +71
-2
lines changed Expand file tree Collapse file tree 9 files changed +71
-2
lines changed Original file line number Diff line number Diff line change 26
26
strategy :
27
27
matrix :
28
28
ruby : ["3.2", "3.3", "3.4"]
29
+ gemfile :
30
+ - rails_61
31
+ - rails_70
32
+ - rails_71
33
+ exclude :
34
+ - ruby : " 3.4"
35
+ gemfile : rails_61
36
+ - ruby : " 3.4"
37
+ gemfile : rails_70
38
+
39
+ env :
40
+ BUNDLE_GEMFILE : gemfiles/${{ matrix.gemfile }}.gemfile
29
41
30
42
steps :
31
43
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change 1
1
.bundle /
2
2
Gemfile.lock
3
+ gemfiles /* .lock
3
4
coverage /
4
5
log /* .log
5
6
pkg /
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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: "../"
Original file line number Diff line number Diff line change
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: "../"
Original file line number Diff line number Diff line change
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: "../"
Original file line number Diff line number Diff line change 3
3
namespace :manifest do
4
4
def gemmable_files
5
5
`git ls-files -z` . split ( "\x0 " ) . reject do |file |
6
- file . match ( %r{^(bin|spec)/} ) ||
6
+ file . match ( %r{^(bin|spec|gemfiles )/} ) ||
7
7
file . end_with? ( "/.keep" ) ||
8
8
file . start_with? ( "." ) ||
9
- %w( Manifest.txt Gemfile Rakefile publify_amazon_sidebar.gemspec ) . include? ( file )
9
+ %w( Manifest.txt Gemfile Rakefile Appraisals publify_amazon_sidebar.gemspec )
10
+ . include? ( file )
10
11
end
11
12
end
12
13
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ Gem::Specification.new do |spec|
22
22
23
23
spec . add_dependency "publify_core" , "~> 10.0.0"
24
24
25
+ spec . add_development_dependency "appraisal" , "~> 2.5"
25
26
spec . add_development_dependency "rspec-rails" , "~> 6.0"
26
27
spec . add_development_dependency "rubocop" , "~> 1.77.0"
27
28
spec . add_development_dependency "rubocop-capybara" , "~> 2.21.0"
Original file line number Diff line number Diff line change 2
2
3
3
require_relative "boot"
4
4
5
+ # FIXME: Remove after support for Rails < 7.1 is dropped
6
+ require "logger"
5
7
require "rails"
6
8
# Pick the frameworks you want:
7
9
require "active_model/railtie"
You can’t perform that action at this time.
0 commit comments