rubocop-haml 0.3.0 → 0.4.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 +4 -4
- data/.rubocop.yml +1 -1
- data/Gemfile.lock +6 -6
- data/README.md +1 -5
- data/lib/rubocop/haml/ruby_clipper.rb +2 -2
- data/lib/rubocop/haml/version.rb +1 -1
- data/rubocop-haml.gemspec +3 -3
- metadata +8 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a3e2bb7aa1e4013cda2c2888a461552cb382d2272fa7fb64bf676e72b0b7ca7f
|
|
4
|
+
data.tar.gz: 80bdbb6394b1fab43a1817e5aeac60a4b20b90252b45029f0a58b2a2eb04d64d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 381c9b921eb03bf8247f4a520200ca458111664d388289cd8ddd75e6cf444036dc397885f8e68b27dc66b52b5d0d0b456623a24587eae16b25ea3671f8281d3d
|
|
7
|
+
data.tar.gz: acfb8bac907bc97419d5f3c62a2d323d32335612af671d5f41b14291bdd23398c0396bf19df8fba080d2b92a418605d039363ab63df973750664c1e80f482ea2
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
rubocop-haml (0.
|
|
4
|
+
rubocop-haml (0.4.0)
|
|
5
5
|
hamli (~> 0.5)
|
|
6
|
-
lint_roller (
|
|
7
|
-
rubocop (
|
|
6
|
+
lint_roller (>= 1.1)
|
|
7
|
+
rubocop (>= 1.72.1)
|
|
8
8
|
|
|
9
9
|
GEM
|
|
10
10
|
remote: https://rubygems.org/
|
|
11
11
|
specs:
|
|
12
12
|
ast (2.4.2)
|
|
13
13
|
diff-lcs (1.6.0)
|
|
14
|
-
hamli (0.
|
|
14
|
+
hamli (0.6.0)
|
|
15
15
|
temple
|
|
16
16
|
json (2.10.1)
|
|
17
17
|
language_server-protocol (3.17.0.4)
|
|
@@ -57,10 +57,10 @@ GEM
|
|
|
57
57
|
lint_roller (~> 1.1)
|
|
58
58
|
rubocop (~> 1.72, >= 1.72.1)
|
|
59
59
|
ruby-progressbar (1.13.0)
|
|
60
|
-
temple (0.10.
|
|
60
|
+
temple (0.10.7)
|
|
61
61
|
unicode-display_width (3.1.4)
|
|
62
62
|
unicode-emoji (~> 4.0, >= 4.0.4)
|
|
63
|
-
unicode-emoji (4.0
|
|
63
|
+
unicode-emoji (4.3.0)
|
|
64
64
|
|
|
65
65
|
PLATFORMS
|
|
66
66
|
x86_64-linux
|
data/README.md
CHANGED
|
@@ -26,9 +26,6 @@ plugins:
|
|
|
26
26
|
- rubocop-haml
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
> [!NOTE]
|
|
30
|
-
> The plugin system is supported in RuboCop 1.72+. In earlier versions, use `require` instead of `plugins`.
|
|
31
|
-
|
|
32
29
|
Now you can use RuboCop also for Haml templates.
|
|
33
30
|
|
|
34
31
|
```
|
|
@@ -54,5 +51,4 @@ spec/fixtures/dummy.haml:2:13: C: [Correctable] Style/StringLiterals: Prefer sin
|
|
|
54
51
|
## Related projects
|
|
55
52
|
|
|
56
53
|
- https://github.com/r7kamura/rubocop-erb
|
|
57
|
-
- https://github.com/r7kamura/rubocop-
|
|
58
|
-
- https://github.com/r7kamura/rubocop-markdown
|
|
54
|
+
- https://github.com/r7kamura/rubocop-slim
|
|
@@ -55,7 +55,7 @@ module RuboCop
|
|
|
55
55
|
| for[ \t]+\w+[ \t]+in
|
|
56
56
|
)
|
|
57
57
|
\b[ \t]*
|
|
58
|
-
/x
|
|
58
|
+
/x
|
|
59
59
|
|
|
60
60
|
class << self
|
|
61
61
|
# @param [String] code
|
|
@@ -98,7 +98,7 @@ module RuboCop
|
|
|
98
98
|
[ \t]*
|
|
99
99
|
(\#.*)?
|
|
100
100
|
\Z
|
|
101
|
-
/x
|
|
101
|
+
/x
|
|
102
102
|
|
|
103
103
|
class << self
|
|
104
104
|
# @param [String] code
|
data/lib/rubocop/haml/version.rb
CHANGED
data/rubocop-haml.gemspec
CHANGED
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
|
11
11
|
spec.summary = 'RuboCop plugin for Haml template.'
|
|
12
12
|
spec.homepage = 'https://github.com/r7kamura/rubocop-haml'
|
|
13
13
|
spec.license = 'MIT'
|
|
14
|
-
spec.required_ruby_version = '>=
|
|
14
|
+
spec.required_ruby_version = '>= 3.3'
|
|
15
15
|
|
|
16
16
|
spec.metadata['homepage_uri'] = spec.homepage
|
|
17
17
|
spec.metadata['source_code_uri'] = spec.homepage
|
|
@@ -30,6 +30,6 @@ Gem::Specification.new do |spec|
|
|
|
30
30
|
spec.require_paths = ['lib']
|
|
31
31
|
|
|
32
32
|
spec.add_dependency 'hamli', '~> 0.5'
|
|
33
|
-
spec.add_dependency 'lint_roller', '
|
|
34
|
-
spec.add_dependency 'rubocop', '
|
|
33
|
+
spec.add_dependency 'lint_roller', '>= 1.1'
|
|
34
|
+
spec.add_dependency 'rubocop', '>= 1.72.1'
|
|
35
35
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubocop-haml
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryo Nakamura
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: hamli
|
|
@@ -28,31 +27,30 @@ dependencies:
|
|
|
28
27
|
name: lint_roller
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
|
-
- - "
|
|
30
|
+
- - ">="
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
32
|
version: '1.1'
|
|
34
33
|
type: :runtime
|
|
35
34
|
prerelease: false
|
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
36
|
requirements:
|
|
38
|
-
- - "
|
|
37
|
+
- - ">="
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
39
|
version: '1.1'
|
|
41
40
|
- !ruby/object:Gem::Dependency
|
|
42
41
|
name: rubocop
|
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
|
44
43
|
requirements:
|
|
45
|
-
- - "
|
|
44
|
+
- - ">="
|
|
46
45
|
- !ruby/object:Gem::Version
|
|
47
46
|
version: 1.72.1
|
|
48
47
|
type: :runtime
|
|
49
48
|
prerelease: false
|
|
50
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
50
|
requirements:
|
|
52
|
-
- - "
|
|
51
|
+
- - ">="
|
|
53
52
|
- !ruby/object:Gem::Version
|
|
54
53
|
version: 1.72.1
|
|
55
|
-
description:
|
|
56
54
|
email:
|
|
57
55
|
- r7kamura@gmail.com
|
|
58
56
|
executables: []
|
|
@@ -84,7 +82,6 @@ metadata:
|
|
|
84
82
|
source_code_uri: https://github.com/r7kamura/rubocop-haml
|
|
85
83
|
changelog_uri: https://github.com/r7kamura/rubocop-haml/releases
|
|
86
84
|
default_lint_roller_plugin: RuboCop::Haml::Plugin
|
|
87
|
-
post_install_message:
|
|
88
85
|
rdoc_options: []
|
|
89
86
|
require_paths:
|
|
90
87
|
- lib
|
|
@@ -92,15 +89,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
92
89
|
requirements:
|
|
93
90
|
- - ">="
|
|
94
91
|
- !ruby/object:Gem::Version
|
|
95
|
-
version:
|
|
92
|
+
version: '3.3'
|
|
96
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
94
|
requirements:
|
|
98
95
|
- - ">="
|
|
99
96
|
- !ruby/object:Gem::Version
|
|
100
97
|
version: '0'
|
|
101
98
|
requirements: []
|
|
102
|
-
rubygems_version:
|
|
103
|
-
signing_key:
|
|
99
|
+
rubygems_version: 4.0.20
|
|
104
100
|
specification_version: 4
|
|
105
101
|
summary: RuboCop plugin for Haml template.
|
|
106
102
|
test_files: []
|