From 98f097e45a0acc916e29154ae1070255e9a458fa Mon Sep 17 00:00:00 2001 From: Mathieu Jobin <99191+mathieujobin@users.noreply.github.com> Date: Mon, 30 Oct 2023 12:15:19 +0900 Subject: [PATCH] Support for Rails 7.1 (#188) * add rails 7.1 to the build matrix * bump rails versions * bump version, add 7.1.1 to the regular build matrix * bump requirement * skip coverage check on jruby * array syntax * add ruby 3.3 to the mix * puts ruby version --- .github/workflows/build.yml | 7 +++++-- haml_coffee_assets.gemspec | 2 +- lib/haml_coffee_assets/version.rb | 2 +- spec/spec_helper.rb | 3 ++- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d9ef52b..a28617f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,10 +15,13 @@ jobs: strategy: fail-fast: false matrix: - rails: [7.0.4, 6.1.4] - ruby: [3.2, 3.1, 3.0.6, jruby-9.4] + rails: [7.1.1, 7.0.8, 6.1.7] + ruby: [3.3, 3.2, 3.1, 3.0.6, jruby-9.4] sprockets: [3, 4] include: + - rails: 7.1.1 + ruby: 3.2 + sprockets: 4 - rails: 6.0.4 ruby: 2.7 sprockets: 3 diff --git a/haml_coffee_assets.gemspec b/haml_coffee_assets.gemspec index 73fb64b..0f88061 100644 --- a/haml_coffee_assets.gemspec +++ b/haml_coffee_assets.gemspec @@ -17,7 +17,7 @@ Gem::Specification.new do |s| s.files = Dir.glob('{app,lib,vendor}/**/*') + %w[LICENSE README.md] s.add_runtime_dependency 'coffee-script', '>= 2' - s.add_runtime_dependency 'railties', '>= 5.2', "< 7.1" + s.add_runtime_dependency 'railties', '>= 5.2', "< 7.2" s.add_runtime_dependency 'sprockets', '>= 3.7' s.add_development_dependency 'jasmine' diff --git a/lib/haml_coffee_assets/version.rb b/lib/haml_coffee_assets/version.rb index 761c39f..72c7fc9 100644 --- a/lib/haml_coffee_assets/version.rb +++ b/lib/haml_coffee_assets/version.rb @@ -1,5 +1,5 @@ # coding: UTF-8 module HamlCoffeeAssets - VERSION = '1.23.0' unless defined?(HamlCoffeeAssets::VERSION) + VERSION = '1.24.0' unless defined?(HamlCoffeeAssets::VERSION) end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index e4cefeb..3f09525 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,8 +1,9 @@ require 'rails' require 'rspec' require 'simplecov' -SimpleCov.minimum_coverage 86 if RUBY_VERSION > '3.0' +SimpleCov.minimum_coverage 86 if RUBY_VERSION > '3.0' && RUBY_ENGINE == 'ruby' SimpleCov.start 'rails' +puts [Rails.version, RUBY_VERSION, RUBY_ENGINE, RUBY_DESCRIPTION].inspect require 'haml_coffee_assets'