rubocop-eightyfourcodes 0.0.4 → 0.0.5
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/CHANGELOG.md +8 -0
- data/Gemfile.lock +14 -12
- data/README.md +20 -1
- data/lib/rubocop/cop/eighty_four_codes/ensure_redirect.rb +1 -1
- data/lib/rubocop/eightyfourcodes/version.rb +1 -1
- data/rubocop-eightyfourcodes.gemspec +1 -1
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7139156adf5779924789ad66efac4e1af88bbd00bf109e5d22cd823343cf92b8
|
4
|
+
data.tar.gz: b7cb779b2a333024fef12bfbf26e9d48423ee1d56c4439c21ffa7c031eac9f0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c381ccf09f8282071cb345b319193690e7081fc7bb588a5853b768514d398c79dd4c9368b6bd65cf2f7c72906b53541466eaa6d933b304db0f0147fa1d4e5a0
|
7
|
+
data.tar.gz: 6d65c4b996a0212ecade5f02611610b0783a21f4923bf6a9315b1cb482febe484e0fdf5a82e54e8ed25ddbdabc9093d98ca93f22e939cff2262f85d952427224
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.0.5 (2025-05-07)
|
4
|
+
|
5
|
+
- Handled deprecation of `EnsureNode#body` ([#20](https://github.com/84codes/rubocop-eighty-four-codes/pull/20))
|
6
|
+
|
7
|
+
## 0.0.4 (2025-03-20)
|
8
|
+
|
9
|
+
- Imported `rubocop-gitlab-security` cops ([#12](https://github.com/84codes/rubocop-eighty-four-codes/pull/12))
|
10
|
+
|
3
11
|
## 0.0.3 (2024-10-23)
|
4
12
|
|
5
13
|
- Recreated entire project using <https://github.com/rubocop/rubocop-extension-generator>
|
data/Gemfile.lock
CHANGED
@@ -1,21 +1,22 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rubocop-eightyfourcodes (0.0.
|
5
|
-
rubocop (< 2)
|
4
|
+
rubocop-eightyfourcodes (0.0.5)
|
5
|
+
rubocop (>= 1.69.0, < 2)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
ast (2.4.
|
11
|
-
diff-lcs (1.6.
|
12
|
-
json (2.
|
10
|
+
ast (2.4.3)
|
11
|
+
diff-lcs (1.6.1)
|
12
|
+
json (2.11.3)
|
13
13
|
language_server-protocol (3.17.0.4)
|
14
14
|
lint_roller (1.1.0)
|
15
|
-
parallel (1.
|
16
|
-
parser (3.3.
|
15
|
+
parallel (1.27.0)
|
16
|
+
parser (3.3.8.0)
|
17
17
|
ast (~> 2.4.1)
|
18
18
|
racc
|
19
|
+
prism (1.4.0)
|
19
20
|
racc (1.8.1)
|
20
21
|
rainbow (3.1.1)
|
21
22
|
rake (13.2.1)
|
@@ -33,7 +34,7 @@ GEM
|
|
33
34
|
diff-lcs (>= 1.2.0, < 2.0)
|
34
35
|
rspec-support (~> 3.13.0)
|
35
36
|
rspec-support (3.13.2)
|
36
|
-
rubocop (1.
|
37
|
+
rubocop (1.75.4)
|
37
38
|
json (~> 2.3)
|
38
39
|
language_server-protocol (~> 3.17.0.2)
|
39
40
|
lint_roller (~> 1.1.0)
|
@@ -41,15 +42,16 @@ GEM
|
|
41
42
|
parser (>= 3.3.0.2)
|
42
43
|
rainbow (>= 2.2.2, < 4.0)
|
43
44
|
regexp_parser (>= 2.9.3, < 3.0)
|
44
|
-
rubocop-ast (>= 1.
|
45
|
+
rubocop-ast (>= 1.44.0, < 2.0)
|
45
46
|
ruby-progressbar (~> 1.7)
|
46
47
|
unicode-display_width (>= 2.4.0, < 4.0)
|
47
|
-
rubocop-ast (1.
|
48
|
-
parser (>= 3.3.
|
48
|
+
rubocop-ast (1.44.1)
|
49
|
+
parser (>= 3.3.7.2)
|
50
|
+
prism (~> 1.4)
|
49
51
|
rubocop-rake (0.7.1)
|
50
52
|
lint_roller (~> 1.1)
|
51
53
|
rubocop (>= 1.72.1)
|
52
|
-
rubocop-rspec (3.
|
54
|
+
rubocop-rspec (3.6.0)
|
53
55
|
lint_roller (~> 1.1)
|
54
56
|
rubocop (~> 1.72, >= 1.72.1)
|
55
57
|
ruby-progressbar (1.13.0)
|
data/README.md
CHANGED
@@ -36,7 +36,26 @@ Use `bundle exec rake 'new_cop[EightyFourCodes/CommandLiteralInjection]'` to gen
|
|
36
36
|
|
37
37
|
The [NodePattern Debugger](https://nodepattern.herokuapp.com/) is a very helpful resource when creating new AST matchers.
|
38
38
|
|
39
|
-
|
39
|
+
## Releasing
|
40
|
+
|
41
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
42
|
+
|
43
|
+
To release a new version, update the version number in `version.rb`, in a commit or pull request.
|
44
|
+
|
45
|
+
Create and push a new git tag:
|
46
|
+
|
47
|
+
```shell
|
48
|
+
git tag -m "Version <VERSION>" v<VERSION>
|
49
|
+
git push --tags
|
50
|
+
```
|
51
|
+
|
52
|
+
This will trigger GitHub Actions to build and push the gem to [RubyGems.org](https://rubygems.org/gems/rubocop-eightyfourcodes).
|
53
|
+
|
54
|
+
If the release workflow fails, you can re-run it by deleting the tag and pushing it again.
|
55
|
+
|
56
|
+
```shell
|
57
|
+
git push --delete origin v<VERSION>
|
58
|
+
```
|
40
59
|
|
41
60
|
## Contributing
|
42
61
|
|
@@ -37,7 +37,7 @@ module RuboCop
|
|
37
37
|
|
38
38
|
def on_ensure(node)
|
39
39
|
# `:send` nodes represent method calls, so we look for send nodes and then check if they are `redirect`
|
40
|
-
node.
|
40
|
+
node.branch&.each_node(:send) do |send_node|
|
41
41
|
# Check if the method name being called is `redirect`
|
42
42
|
add_offense(send_node) if send_node.method?(:redirect)
|
43
43
|
end
|
metadata
CHANGED
@@ -1,18 +1,21 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-eightyfourcodes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anders Bälter
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rubocop
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
15
15
|
requirements:
|
16
|
+
- - ">="
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: 1.69.0
|
16
19
|
- - "<"
|
17
20
|
- !ruby/object:Gem::Version
|
18
21
|
version: '2'
|
@@ -20,6 +23,9 @@ dependencies:
|
|
20
23
|
prerelease: false
|
21
24
|
version_requirements: !ruby/object:Gem::Requirement
|
22
25
|
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: 1.69.0
|
23
29
|
- - "<"
|
24
30
|
- !ruby/object:Gem::Version
|
25
31
|
version: '2'
|
@@ -79,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
85
|
- !ruby/object:Gem::Version
|
80
86
|
version: '0'
|
81
87
|
requirements: []
|
82
|
-
rubygems_version: 3.6.
|
88
|
+
rubygems_version: 3.6.7
|
83
89
|
specification_version: 4
|
84
90
|
summary: This is a collection of cops developed and used by 84codes AB.
|
85
91
|
test_files: []
|