Skip to content

Commit

Permalink
Allow Haml 6.3 (#459)
Browse files Browse the repository at this point in the history
Close #458
  • Loading branch information
tagliala authored Dec 13, 2023
1 parent 5a232f4 commit 2befd56
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
- haml6.0
- haml6.1
- haml6.2
- haml6.3
- rubocop1.0
os:
- ubuntu
Expand Down
4 changes: 4 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
15 changes: 15 additions & 0 deletions gemfiles/haml6.3.gemfile
Original file line number Diff line number Diff line change
@@ -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: "../"
2 changes: 1 addition & 1 deletion lib/haml_lint/adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2befd56

Please sign in to comment.