haml_lint 0.76.0 → 0.77.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 188328ae96f24b3a739665a5d3ccc7271a753afbe0ae63a1fbe3f33897492caa
4
- data.tar.gz: 52b39c0992433545f610c7c18af3d06b224027edea3a9cdb97f71c7c1cf4f8c5
3
+ metadata.gz: 7921fe8a1e26942508760439ec035df56857a187940b4ffca065a5c4ec429707
4
+ data.tar.gz: cd1bda4743a43b50187964816f169440e65fc18e9630f1a42d3e6e8213a80d8c
5
5
  SHA512:
6
- metadata.gz: 31c53c1177acc7679c9f3c5b633a2b14278252f447ddea3b03c9d49e82d6e3d4587d44803e7b2b5ca677b726702c1a716cb02c848b8d2b71ed7bd402b78d8519
7
- data.tar.gz: 253e971535ea2d8c38340e2e13a882fbe215cded72f5faa96b26dd88bb39024efe5b03d8334cc7692de4edbab2a7e49db9d4bb55a6a55e10319b52e3770a9ea4
6
+ metadata.gz: 5f7e19ddafb3f3d1e501bead0e05e93bc79d11ef677da990ff87e705131919151dbad1f8c949498783c9db506a9cfa83e96186be992b1774fedd1c1cfd361fc6
7
+ data.tar.gz: e9342ee6f6d106b32d5da3f606eb1b6e0c8110d24b9527ac8b937e2dd7fdb344b3f963ded1f8bce01fc3a75bb53686dafb84cf90e3c213bce550c08cb2fafd10
@@ -18,21 +18,18 @@ module HamlLint
18
18
  def self.detect_class
19
19
  version = haml_version
20
20
  case version
21
- when '~> 5.0', '~> 5.1', '~> 5.2' then HamlLint::Adapter::Haml5
22
- when '~> 6.0', '~> 6.0.a', '~> 6.1', '~> 6.2', '~> 6.3', '~> 6.4' then HamlLint::Adapter::Haml6
23
- when '~> 7.0', '~> 7.1', '~> 7.2' then HamlLint::Adapter::Haml6
21
+ when Gem::Requirement.new('~> 5.0') then HamlLint::Adapter::Haml5
22
+ when Gem::Requirement.new('>= 6.0.a') then HamlLint::Adapter::Haml6
24
23
  else fail HamlLint::Exceptions::UnknownHamlVersion, "Cannot handle Haml version: #{version}"
25
24
  end
26
25
  end
27
26
 
28
- # Determines the approximate version of Haml that is installed
27
+ # Determines the version of Haml that is installed
29
28
  #
30
29
  # @api private
31
- # @return [String] the approximate Haml version
30
+ # @return [Gem::Version] the Haml version
32
31
  def self.haml_version
33
- Gem::Version
34
- .new(Haml::VERSION)
35
- .approximate_recommendation
32
+ Gem::Version.new(Haml::VERSION)
36
33
  end
37
34
  private_class_method :haml_version
38
35
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Defines the gem version.
4
4
  module HamlLint
5
- VERSION = '0.76.0'
5
+ VERSION = '0.77.0'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haml_lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.76.0
4
+ version: 0.77.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane da Silva
@@ -205,6 +205,7 @@ metadata:
205
205
  bug_tracker_uri: https://github.com/sds/haml-lint/issues
206
206
  changelog_uri: https://github.com/sds/haml-lint/blob/main/CHANGELOG.md
207
207
  source_code_uri: https://github.com/sds/haml-lint
208
+ rubygems_mfa_required: 'true'
208
209
  rdoc_options: []
209
210
  require_paths:
210
211
  - lib
@@ -219,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
219
220
  - !ruby/object:Gem::Version
220
221
  version: '0'
221
222
  requirements: []
222
- rubygems_version: 4.0.10
223
+ rubygems_version: 4.0.16
223
224
  specification_version: 4
224
225
  summary: HAML lint tool
225
226
  test_files: []