Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ jobs:
strategy:
matrix:
ruby: ["3.0", "3.1", "3.2", "3.3"]
gemfile:
- rails_61
- rails_70
- rails_71

env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile

steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.bundle/
Gemfile.lock
gemfiles/*.lock
coverage/
log/*.log
pkg/
Expand Down
22 changes: 22 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# frozen_string_literal: true

# HACK: This uses odd syntax to make appraisal customization work on newer Rubies.
# See https://github.com/thoughtbot/appraisal/pull/214. Once that one has been
# released, we should use customize_gemfiles instead.
Customize.new heading: <<~HEADING.chomp
frozen_string_literal: true

This file was generated by Appraisal
HEADING

appraise "rails_61" do
gem "rails", "~> 6.1.0"
end

appraise "rails_70" do
gem "rails", "~> 7.0.0"
end

appraise "rails_71" do
gem "rails", "~> 7.1.0"
end
10 changes: 10 additions & 0 deletions gemfiles/rails_61.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# frozen_string_literal: true

# This file was generated by Appraisal

source "https://rubygems.org"

gem "publify_core", git: "https://github.com/publify/publify_core.git"
gem "rails", "~> 6.1.0"

gemspec path: "../"
10 changes: 10 additions & 0 deletions gemfiles/rails_70.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# frozen_string_literal: true

# This file was generated by Appraisal

source "https://rubygems.org"

gem "publify_core", git: "https://github.com/publify/publify_core.git"
gem "rails", "~> 7.0.0"

gemspec path: "../"
10 changes: 10 additions & 0 deletions gemfiles/rails_71.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# frozen_string_literal: true

# This file was generated by Appraisal

source "https://rubygems.org"

gem "publify_core", git: "https://github.com/publify/publify_core.git"
gem "rails", "~> 7.1.0"

gemspec path: "../"
5 changes: 3 additions & 2 deletions lib/tasks/manifest.rake
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
namespace :manifest do
def gemmable_files
`git ls-files -z`.split("\x0").reject do |file|
file.match(%r{^(bin|spec)/}) ||
file.match(%r{^(bin|spec|gemfiles)/}) ||
file.end_with?("/.keep") ||
file.start_with?(".") ||
%w(Manifest.txt Gemfile Rakefile publify_textfilter_code.gemspec).include?(file)
%w(Manifest.txt Gemfile Rakefile Appraisals publify_textfilter_code.gemspec)
.include?(file)
end
end

Expand Down
3 changes: 2 additions & 1 deletion publify_textfilter_code.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ Gem::Specification.new do |s|
s.add_dependency "htmlentities", "~> 4.3"
s.add_dependency "publify_core", "~> 10.0.0"

s.add_development_dependency "rspec-rails", "~> 7.1"
s.add_development_dependency "appraisal", "~> 2.3"
s.add_development_dependency "rspec-rails", "~> 6.0"
s.add_development_dependency "rubocop", "~> 1.77.0"
s.add_development_dependency "rubocop-performance", "~> 1.23.1"
s.add_development_dependency "rubocop-rails", "~> 2.32.0"
Expand Down
2 changes: 2 additions & 0 deletions spec/dummy/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

require_relative "boot"

# FIXME: Remove after support for Rails < 7.1 is dropped
require "logger"
require "rails"
# Pick the frameworks you want:
require "active_model/railtie"
Expand Down