diff --git a/Appraisals b/Appraisals index 68acb48f..d558d257 100644 --- a/Appraisals +++ b/Appraisals @@ -5,5 +5,5 @@ appraise 'haml4' do end appraise 'haml5' do - gem 'haml', '~> 5.0.0' + gem 'haml', '~> 5.1.0' end diff --git a/gemfiles/haml5.gemfile b/gemfiles/haml5.gemfile index 2b0b198d..1f4d003f 100644 --- a/gemfiles/haml5.gemfile +++ b/gemfiles/haml5.gemfile @@ -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: "../" diff --git a/haml_lint.gemspec b/haml_lint.gemspec index c3203c08..1448951f 100644 --- a/haml_lint.gemspec +++ b/haml_lint.gemspec @@ -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' diff --git a/lib/haml_lint/adapter.rb b/lib/haml_lint/adapter.rb index adb110ee..72d4eb67 100644 --- a/lib/haml_lint/adapter.rb +++ b/lib/haml_lint/adapter.rb @@ -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