simplycop 1.12.4 → 1.12.6

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: c945201b5d6d7aaa54afa6f3da1641cbcc0a76f59a0c922144fb399fc1fe296c
4
- data.tar.gz: 6d194e8a7a2d549a61f69fe758e359498b7eeb8418ca54e928e78cd6b6d291a5
3
+ metadata.gz: 79bea609bc6bd0deec528d1cb27ce64f13a31feec2496344541ecd798dc2a532
4
+ data.tar.gz: b36a12d2edf708f5d29bea127a6c0abdb6b3e20860cf4d67b030bdf3bf235a36
5
5
  SHA512:
6
- metadata.gz: 00cdeaa0540f63ce0dd7397487fbf4c8c81a418069c54dae3a947c166bd2ada8807adcb6a7ab63fe1cc99a8de3f4a232f16bd3770b4b9df8924c04d732f7cb41
7
- data.tar.gz: 5c30a0959413126fbfa002578c1c4260280823abe11ccfb05949e1c983e4e4dc39a0c5d588c9de0bc16ccc9c9a779cb2a72be6c20a5275616147f4b03bec6fcc
6
+ metadata.gz: 4361ee4c6a665c515e3fdc9b64303fdbb052ce3231bbbe9b5942c56bb3478db09cef2aaff1145ccf1e3a5a0049822384c92eb1da25d7e1f6d4a67ed12f068af1
7
+ data.tar.gz: 7ec36989af4e426976227dcabe14b050eb0563afebba5f9b59915d6c23c86124240faa26da9f51e085436a282caf5eab66946b0efa84065a0dc62bd3a9eaa76a
@@ -19,7 +19,7 @@ jobs:
19
19
 
20
20
  strategy:
21
21
  matrix:
22
- ruby-version: [2.7, 3.0, 3.1, jruby]
22
+ ruby-version: ['3.0', '3.1', '3.2', jruby]
23
23
 
24
24
  steps:
25
25
  - uses: actions/checkout@v3
@@ -12,10 +12,10 @@ jobs:
12
12
  runs-on: ubuntu-18.04
13
13
  steps:
14
14
  - uses: actions/checkout@v3
15
- - name: Set up Ruby 2.6
15
+ - name: Set up Ruby 3.0
16
16
  uses: actions/setup-ruby@v1
17
17
  with:
18
- version: 2.6.x
18
+ version: 3.0.x
19
19
  - name: Publish to RubyGems
20
20
  run: |
21
21
  mkdir -p $HOME/.gem
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.6
1
+ 3.0.5
data/.simplycop.yml CHANGED
@@ -4,7 +4,6 @@ inherit_from:
4
4
  - .simplycop_metaprogramming.yml
5
5
 
6
6
  AllCops:
7
- TargetRubyVersion: 2.5
8
7
  Exclude:
9
8
  - 'db/schema.rb'
10
9
  - 'vendor/**/*'
@@ -30,7 +30,7 @@ module CustomCops
30
30
  # this denotes the following structure:
31
31
  # `Timecop.method(arg1, arg2, &block)`, which is also a valid way of passing in a block
32
32
  def last_child_is_a_block(node)
33
- node.children.last&.type == :block_pass
33
+ node.children.last&.type == :block_pass if node.children.last.respond_to?(:type)
34
34
  end
35
35
  end
36
36
  end
@@ -7,5 +7,5 @@
7
7
  #
8
8
 
9
9
  module Simplycop
10
- VERSION = '1.12.4'
10
+ VERSION = '1.12.6'
11
11
  end
data/simplycop.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.version = Simplycop::VERSION
10
10
  spec.authors = ['Simply Business']
11
11
  spec.email = ['tech@simplybusiness.co.uk']
12
- spec.required_ruby_version = '>= 2.5'
12
+ spec.required_ruby_version = '>= 3.0.5'
13
13
  spec.license = 'MIT'
14
14
  spec.summary = 'Provides a single point of reference for common rubocop rules.'
15
15
  spec.description = 'Require this gem in your application to use Simply Business common rubocop rules.'
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.12.4
4
+ version: 1.12.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simply Business
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-12 00:00:00.000000000 Z
11
+ date: 2023-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -154,7 +154,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
154
154
  requirements:
155
155
  - - ">="
156
156
  - !ruby/object:Gem::Version
157
- version: '2.5'
157
+ version: 3.0.5
158
158
  required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  requirements:
160
160
  - - ">="