Skip to content

Commit

Permalink
Merge pull request #11 from stormmaster42/add-haml-6-3-support
Browse files Browse the repository at this point in the history
Add support for haml 6.3
  • Loading branch information
ghiculescu authored Mar 5, 2024
2 parents cf503ef + 2599029 commit 653139e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ end
appraise 'haml-6.2' do
gem 'haml', '>= 6.2', '< 6.3'
end

appraise 'haml-6.3' do
gem 'haml', '>= 6.3', '< 6.4'
end
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
### Added

- Support for Haml 6 - [@stormmaster42](https://github.com/stormmaster42)

### Changed

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion lib/rails-route-checker/parsers/haml_parser/document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def initialize(source)
when '~> 5.0', '~> 5.1', '~> 5.2'
options = Haml::Options.new
Haml::Parser.new(options).call(@source)
when '~> 6.0', '~> 6.1', '~> 6.2'
when '~> 6.0', '~> 6.1', '~> 6.2', '~> 6.3'
Haml::Parser.new({}).call(@source)
else
raise "Cannot handle Haml version: #{version}"
Expand Down

0 comments on commit 653139e

Please sign in to comment.