diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d0a5441..f756624 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,6 +25,7 @@ jobs: - haml6.0 - haml6.1 - haml6.2 + - haml6.3 - rubocop1.0 os: - ubuntu diff --git a/Appraisals b/Appraisals index d6650b1..72682e5 100644 --- a/Appraisals +++ b/Appraisals @@ -31,6 +31,10 @@ appraise 'haml6.2' do gem 'haml', '~> 6.2.0' end +appraise 'haml6.3' do + gem 'haml', '~> 6.3.0' +end + appraise 'rubocop1.0' do gem 'rubocop', '~> 1.0.0' end diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c3bef0..fa11a03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,12 @@ # HAML-Lint Changelog +### main + +* Add Haml 6.3 compatibility + ### 0.51.0 -* Allow HAML > 6.1 +* Allow Haml > 6.1 ### 0.50.0 diff --git a/gemfiles/haml6.3.gemfile b/gemfiles/haml6.3.gemfile new file mode 100644 index 0000000..5c26d55 --- /dev/null +++ b/gemfiles/haml6.3.gemfile @@ -0,0 +1,15 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "rake" +gem "rspec", "~> 3.8" +gem "rspec-its", "~> 1.0" +gem "appraisal" +gem "overcommit", "0.60.0" +gem "rubocop", "1.57.2" +gem "simplecov", "~> 0.22.0" +gem "simplecov-lcov", "~> 0.8.0" +gem "haml", "~> 6.3.0" + +gemspec path: "../" diff --git a/lib/haml_lint/adapter.rb b/lib/haml_lint/adapter.rb index 9f1d2ba..b868af5 100644 --- a/lib/haml_lint/adapter.rb +++ b/lib/haml_lint/adapter.rb @@ -21,7 +21,7 @@ def self.detect_class case version when '~> 4.0' then HamlLint::Adapter::Haml4 when '~> 5.0', '~> 5.1', '~> 5.2' then HamlLint::Adapter::Haml5 - when '~> 6.0', '~> 6.0.a', '~> 6.1', '~> 6.2' then HamlLint::Adapter::Haml6 + when '~> 6.0', '~> 6.0.a', '~> 6.1', '~> 6.2', '~> 6.3' then HamlLint::Adapter::Haml6 else fail HamlLint::Exceptions::UnknownHamlVersion, "Cannot handle Haml version: #{version}" end end