simplycop 1.8.0 → 1.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.custom_simplycop.yml +0 -1
- data/.github/workflows/ci.yml +3 -0
- data/.github/workflows/dobby-actions.yml +2 -0
- data/.github/workflows/publish_gem.yml +2 -0
- data/.github/workflows/version_forget_me_not.yml +4 -1
- data/lib/simplycop/custom_cops/variable_name_shadowing_method.rb +2 -1
- data/lib/simplycop/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fc2098b69d184121e46498013efd5aafc563652793e142a4ce6c5b08304f20b
|
4
|
+
data.tar.gz: c3d7bec666b7b525a85566cb5faa5df64b542611e952f895f1e1c34e72cdf833
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39ff62a7b63e07302e060faf2d22af6ef689328a9dd035d58948eb35f62e131f5351522af9f862e4bf21799808081a6aca0cdde628ed89dad81c856542005778
|
7
|
+
data.tar.gz: 0e2cc452f17abb9d4641e09885b22282cf6ff583508d9c4b04caafd89de707d4687e60786921b137b1efc3d73b0649ab9b6cba79fd4631f400247ab786ef46c2
|
data/.custom_simplycop.yml
CHANGED
data/.github/workflows/ci.yml
CHANGED
@@ -6,12 +6,15 @@ on:
|
|
6
6
|
branches:
|
7
7
|
- master
|
8
8
|
types: [opened, synchronize]
|
9
|
+
permissions:
|
10
|
+
contents: read
|
11
|
+
statuses: write
|
9
12
|
jobs:
|
10
13
|
build:
|
11
14
|
runs-on: ubuntu-18.04
|
12
15
|
|
13
16
|
steps:
|
14
|
-
- uses: simplybusiness/version-forget-me-not@
|
17
|
+
- uses: simplybusiness/version-forget-me-not@V2.1.1
|
15
18
|
env:
|
16
19
|
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
17
20
|
VERSION_FILE_PATH: "lib/simplycop/version.rb"
|
@@ -16,7 +16,8 @@ module CustomCops
|
|
16
16
|
PATTERN
|
17
17
|
|
18
18
|
def on_new_investigation
|
19
|
-
|
19
|
+
ast = processed_source.ast
|
20
|
+
@declared_method_names = ast ? method_names(processed_source.ast).to_a : []
|
20
21
|
end
|
21
22
|
|
22
23
|
def on_lvasgn(node)
|
data/lib/simplycop/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplycop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simply Business
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -159,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
159
|
- !ruby/object:Gem::Version
|
160
160
|
version: '0'
|
161
161
|
requirements: []
|
162
|
-
rubygems_version: 3.2.
|
162
|
+
rubygems_version: 3.2.32
|
163
163
|
signing_key:
|
164
164
|
specification_version: 4
|
165
165
|
summary: Provides a single point of reference for common rubocop rules.
|