haml_lint 0.65.1 → 0.66.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: 479b1f45c672749fa534b80d9de462db3ce770b8e3c981c6dc0bf333fe107f9e
4
- data.tar.gz: b113befff0c47cfad5c5d2b13283ec4eef299c0a2f32ed8431dfaeb79a700895
3
+ metadata.gz: 72b5b45a5cd4460ed96b560ba9fdd7325d12a730fab2318cf7d7183da48f27f5
4
+ data.tar.gz: 97029f3c1b3204a49760a42063992dd22b363944f388366e15483acb5059ae4b
5
5
  SHA512:
6
- metadata.gz: 10bc8f4d80f76247645d6a41a5f6871e221ccd4bb385fe343b92944de976e4675d2ec6032ddac122ee860ca00ec57d2735c85075ce077f0a1af89014ad84a7db
7
- data.tar.gz: 9b7b0511a48d09b805b11b6f3869e6a14787c2bc013ba4549553e6ead74fd9eebc1accacbf0e9fb045142d95c1750a05b4b1ef7964cdae7f87ee57d560fc6bc6
6
+ metadata.gz: aadac9bba20b5d32a27f1085e25886fd5ef5b3085bc82338e7fc1afb065dea65099e0823cc8570e97e052d71e2fe7fc7dfec87bd12661e5de975507ab06b2f8c
7
+ data.tar.gz: 2584cbed2219fdd0484369d6585b4df2a667cebbeb965612c0a7564194b399c825a262b15b8590f6ba5c31c8d83fe44f911e6d5d430a4679c8ddb5894fee824f
@@ -10,7 +10,7 @@ module HamlLint
10
10
  # @param [HamlLint::Tree::RootNode] the root of a syntax tree
11
11
  # @return [true, false] whether the linter is enabled for the tree
12
12
  def visit_root(node)
13
- @enabled = matcher.match(File.basename(node.file)) ? true : false
13
+ @enabled = matcher.match?(File.basename(node.file))
14
14
  end
15
15
 
16
16
  # Checks for instance variables in script nodes when the linter is enabled.
@@ -26,7 +26,7 @@ module HamlLint
26
26
  # Plain text nodes are allowed to consist of a single pipe
27
27
  return if line.strip == '|'
28
28
 
29
- record_lint(node, MESSAGE) if line.match(MULTILINE_PIPE_REGEX)
29
+ record_lint(node, MESSAGE) if line.match?(MULTILINE_PIPE_REGEX)
30
30
  end
31
31
 
32
32
  private
@@ -39,7 +39,7 @@ module HamlLint
39
39
 
40
40
  def check(node)
41
41
  line = line_text_for_node(node)
42
- record_lint(node, MESSAGE) if line.match(MULTILINE_PIPE_REGEX)
42
+ record_lint(node, MESSAGE) if line.match?(MULTILINE_PIPE_REGEX)
43
43
  end
44
44
  end
45
45
  end
@@ -35,7 +35,7 @@ module HamlLint
35
35
  # @api private
36
36
  # @return [true, false]
37
37
  def enabled?(root)
38
- return false unless matcher.match(File.basename(root.file))
38
+ return false unless matcher.match?(File.basename(root.file))
39
39
 
40
40
  # This linter can also be disabled by a comment at the top of the file
41
41
  first_child = root.children.first
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Defines the gem version.
4
4
  module HamlLint
5
- VERSION = '0.65.1'
5
+ VERSION = '0.66.0'
6
6
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haml_lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.65.1
4
+ version: 0.66.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane da Silva
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-07-24 00:00:00.000000000 Z
10
+ date: 2025-08-03 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: haml