rubocop-erb 0.7.0 → 0.7.1

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: 543291fcf8f7203bc704dd84084df69318f1f596c4ad5ba26d4a904c06472b74
4
- data.tar.gz: 490f8db2895f273c1818e70dcb656deee3287b3d16a3e7f60a02307619582634
3
+ metadata.gz: e1bcc90b702c7acd89b91a4f0e20852ba42aaf827a9facaf776a5bea6bc09254
4
+ data.tar.gz: b470e1920d30f2f18f14964b5bd2927992f2d71d4ace4ee4d406c8d0e2466cce
5
5
  SHA512:
6
- metadata.gz: c3abc86fed80b72f45ac335be071ffc50f90a5160ae8bbc7e2a4e8ecfec9bd0e239ba481793f0f745439224dc10f45985c9d1d812a3262d240ab2ccb212698e7
7
- data.tar.gz: ca7e099b8b8821c788d4e5ad3ea96e470eda7b13ff94f09e6b90cf498919d4ae7a972c8fcafba99d1e6e65fab280bd159bfc559ba9aff0d08f750e549b6a1137
6
+ metadata.gz: 48de696c9afbb4eda39ffd31a740b26f22e5bd5199409518050c393ffc7546393bf287d48b2838dd43b2ae2ae4d2427dbc4db9749c852a8a3dca12d86978ec74
7
+ data.tar.gz: eb2905a7113fd5a3e55b624c608c0968311f4019a1975a14d2f8db008b95cbf9b48a9cc9a6d0cc5fda0b37d0a14b54e8fb1e8714db3f5b3ab08fce5b71de5571
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubocop-erb (0.7.0)
4
+ rubocop-erb (0.7.1)
5
5
  herb (~> 0.7)
6
6
  lint_roller (~> 1.1)
7
7
  rubocop (~> 1.72, >= 1.72.1)
@@ -30,8 +30,8 @@ GEM
30
30
  connection_pool (2.5.0)
31
31
  diff-lcs (1.6.0)
32
32
  drb (2.2.1)
33
- herb (0.7.1)
34
- herb (0.7.1-x86_64-linux-gnu)
33
+ herb (0.9.2)
34
+ herb (0.9.2-x86_64-linux-gnu)
35
35
  i18n (1.14.7)
36
36
  concurrent-ruby (~> 1.0)
37
37
  json (2.10.1)
@@ -97,12 +97,12 @@ module RuboCop
97
97
 
98
98
  # @return [Boolean]
99
99
  def comment?(node)
100
- node.tag_opening.value == '<%#'
100
+ node.tag_opening&.value == '<%#'
101
101
  end
102
102
 
103
103
  # @return [Boolean]
104
104
  def escape?(node)
105
- node.tag_opening.value == '<%%'
105
+ node.tag_opening&.value == '<%%'
106
106
  end
107
107
 
108
108
  erb_visitor_methods.each do |method_name|
@@ -115,6 +115,7 @@ module RuboCop
115
115
  end
116
116
 
117
117
  def record_node(node)
118
+ return unless node.respond_to?(:content) && node.content
118
119
  return if comment?(node) || escape?(node)
119
120
 
120
121
  @erb_nodes << node
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Erb
5
- VERSION = '0.7.0'
5
+ VERSION = '0.7.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-erb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2025-09-16 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: herb
@@ -58,7 +57,6 @@ dependencies:
58
57
  - - ">="
59
58
  - !ruby/object:Gem::Version
60
59
  version: 1.72.1
61
- description:
62
60
  email:
63
61
  - r7kamura@gmail.com
64
62
  executables: []
@@ -91,7 +89,6 @@ metadata:
91
89
  source_code_uri: https://github.com/r7kamura/rubocop-erb
92
90
  changelog_uri: https://github.com/r7kamura/rubocop-erb/releases
93
91
  default_lint_roller_plugin: RuboCop::Erb::Plugin
94
- post_install_message:
95
92
  rdoc_options: []
96
93
  require_paths:
97
94
  - lib
@@ -106,8 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
103
  - !ruby/object:Gem::Version
107
104
  version: '0'
108
105
  requirements: []
109
- rubygems_version: 3.3.27
110
- signing_key:
106
+ rubygems_version: 3.6.9
111
107
  specification_version: 4
112
108
  summary: RuboCop plugin for ERB template.
113
109
  test_files: []