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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7186eac4e8a769e55cefe3738cfbf45c967a6b2aab0f4744191d92b932175ea7
4
- data.tar.gz: 604182eff86928d921da2831b08a1bb880b1a21660a252610619012f7059fa34
3
+ metadata.gz: 5fc2098b69d184121e46498013efd5aafc563652793e142a4ce6c5b08304f20b
4
+ data.tar.gz: c3d7bec666b7b525a85566cb5faa5df64b542611e952f895f1e1c34e72cdf833
5
5
  SHA512:
6
- metadata.gz: 0be2768aceb033e5625ebd342c86c1ae8cbe356d348f8ad27d7cd9ef9d9faecb78907ff4a6f17f6369eade666f99b8e1697a35143b43b768b7ef73609024de0b
7
- data.tar.gz: 0a09ff8fccde37b4b8f9eea6241a2c64ca76e5a775f34777eebfb7eda8751ec7471c7d080319d1cd420c67f28cf386a220f4870435b0b8d059a5ef8f6119aa37
6
+ metadata.gz: 39ff62a7b63e07302e060faf2d22af6ef689328a9dd035d58948eb35f62e131f5351522af9f862e4bf21799808081a6aca0cdde628ed89dad81c856542005778
7
+ data.tar.gz: 0e2cc452f17abb9d4641e09885b22282cf6ff583508d9c4b04caafd89de707d4687e60786921b137b1efc3d73b0649ab9b6cba79fd4631f400247ab786ef46c2
@@ -1,7 +1,6 @@
1
1
  require:
2
2
  - './lib/simplycop/custom_cops/timecop_without_block.rb'
3
3
  - './lib/simplycop/custom_cops/dont_print_all_env.rb'
4
- - './lib/simplycop/custom_cops/variable_name_shadowing_method.rb'
5
4
 
6
5
  AllCops:
7
6
  ExtraDetails: true
@@ -6,6 +6,9 @@ on:
6
6
 
7
7
  env:
8
8
  CI: true
9
+ permissions:
10
+ contents: read
11
+ statuses: write
9
12
 
10
13
  jobs:
11
14
  build:
@@ -3,6 +3,8 @@ name: "Dobby action"
3
3
  on:
4
4
  issue_comment:
5
5
  types: [created]
6
+ permissions:
7
+ contents: read
6
8
  jobs:
7
9
  pr_commented:
8
10
  runs-on: ubuntu-20.04
@@ -3,6 +3,8 @@ name: Publish Ruby Gem
3
3
  on:
4
4
  push:
5
5
  branches: [ master ]
6
+ permissions:
7
+ contents: read
6
8
 
7
9
  jobs:
8
10
  build:
@@ -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@v2
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
- @declared_method_names = method_names(processed_source.ast).to_a
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)
@@ -7,5 +7,5 @@
7
7
  #
8
8
 
9
9
  module Simplycop
10
- VERSION = '1.8.0'
10
+ VERSION = '1.9.2'
11
11
  end
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.8.0
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-10-21 00:00:00.000000000 Z
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.22
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.