cookstyle 7.15.3 → 7.15.4

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: 4f116bfdcd0e284199c7b8b88cee62d6996fc1d73a9121cee6bb0680d5caffdc
4
- data.tar.gz: b6ec8250e505bc20e30188f50981f90f5d866520ce533f3c7feb35f40fd860be
3
+ metadata.gz: 60334725cb29031e7b6ab778a3bf005fb5ccb32e18b662155a7717b7c806398c
4
+ data.tar.gz: ce345f091b1124d7b5e9dd2284e973eab41412e31653a988a72de61ec38ffd84
5
5
  SHA512:
6
- metadata.gz: 28c7d62c93b33ca7fc885a02cf17b87a1ea51a296e656aedf509d48215de59701aae1edc063ecf21d9287a94d7bc0c4464ca19ecb32de985e4ab15305e286528
7
- data.tar.gz: bc7811af3489dc73ee1fa0d2e2934cdb321ca0486386ccd24f190bd19e914f1da7c896c40ea6f8390181c580a19218cb8c368c336c3ec1ed015b256cbadc9764
6
+ metadata.gz: 3c575e4f1afdb3c162cfdfedad396226b4ae43411c0ef3e75e277904ceed392e65b930076fb51f08a6cfd91de1fa9925cf8d56d804ad763973157edca5228593
7
+ data.tar.gz: c25278524868aadc4895d1ed7dab6fe8d59187ff5b946befcebf6e51a2366e34129f1f84ac82177adbe7b5e1251847335fdcc64d96697f45cb2a2e3009535517
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module Cookstyle
3
- VERSION = "7.15.3" # rubocop: disable Style/StringLiterals
3
+ VERSION = "7.15.4" # rubocop: disable Style/StringLiterals
4
4
  RUBOCOP_VERSION = '1.18.4'
5
5
  end
@@ -54,6 +54,9 @@ module RuboCop
54
54
  def_node_search :provides, '(send nil? :provides ...)'
55
55
 
56
56
  def on_new_investigation
57
+ # gracefully fail if the resource is empty
58
+ return if processed_source.ast.nil?
59
+
57
60
  # Using range similar to RuboCop::Cop::Naming::Filename (file_name.rb)
58
61
  return if unified_mode?(processed_source.ast)
59
62
  range = source_range(processed_source.buffer, 1, 0)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cookstyle
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.15.3
4
+ version: 7.15.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thom May
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-07-29 00:00:00.000000000 Z
12
+ date: 2021-07-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubocop