Skip to content

Commit

Permalink
Support haml 5.1
Browse files Browse the repository at this point in the history
Let's see if CI passes 😈
  • Loading branch information
jaredbeck committed May 20, 2019
1 parent 1c58857 commit 0c64c07
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ appraise 'haml4' do
end

appraise 'haml5' do
gem 'haml', '~> 5.0.0'
gem 'haml', '~> 5.1.0'
end
2 changes: 1 addition & 1 deletion gemfiles/haml5.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ gem "appraisal"
gem "overcommit", "0.48.0"
gem "rubocop", "0.68.1"
gem "coveralls", require: false
gem "haml", "~> 5.0.0"
gem "haml", "~> 5.1.0"

gemspec path: "../"
2 changes: 1 addition & 1 deletion haml_lint.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Gem::Specification.new do |s|

s.required_ruby_version = '>= 2.4.0'

s.add_dependency 'haml', '>= 4.0', '< 5.1'
s.add_dependency 'haml', '>= 4.0', '< 5.2'
s.add_dependency 'rainbow'
s.add_dependency 'rake', '>= 10', '< 13'
s.add_dependency 'rubocop', '>= 0.50.0'
Expand Down
2 changes: 1 addition & 1 deletion lib/haml_lint/adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def self.detect_class
version = haml_version
case version
when '~> 4.0' then HamlLint::Adapter::Haml4
when '~> 5.0' then HamlLint::Adapter::Haml5
when '~> 5.0', '~> 5.1' then HamlLint::Adapter::Haml5
else fail HamlLint::Exceptions::UnknownHamlVersion, "Cannot handle Haml version: #{version}"
end
end
Expand Down

0 comments on commit 0c64c07

Please sign in to comment.