rubocop-packs 0.0.43 → 0.0.45

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: 91926f35d00feb9edb0741acae2c7179e88e12151aeae9e046a16b218b5dca03
4
- data.tar.gz: 82ef1061aa8ae9e617ba68caa115f88d12be041cb6986e017994c864c9939745
3
+ metadata.gz: 7697cef47d3e7da05b21e74efca28cbe80b3a7baeabf48675ceba6fe1e0c394f
4
+ data.tar.gz: 25b5b3d3d20f5d621cae515533e26ba668df308dad2c3b0cfd0fac14f4a4ffb7
5
5
  SHA512:
6
- metadata.gz: 016c26bb3230f63ccdc4836c772e567010ca5f7a3f5adb193d013719219a9fe725c8f4eee6a066f0d6723570188b0b789f6785e0b6f5b74b7e9ad1ad8fcba7d1
7
- data.tar.gz: 10d27586347541cab8a81aca534df4890901ce38f7d7362b67e866775b96a2b658a8e812e2b07350c9e28cf0817b37aea26f7848f79ece7083944af042ae3c4d
6
+ metadata.gz: 2660e307e4541b438d4d76a79a7a19d054564bc6aba6e33b3b438f4193efeac2498e7125d40be6eea6ba51df939388531d24e5c161f233f3cd87cca8dbf6265d
7
+ data.tar.gz: e44adb56e5e53f1148b3949f7c870f80a17d9613d0a3f60938b08386b2990accea3300b59d6b3753f0ce1c9e56613539288f32d6eb98fe657eb38182bd6aefb4
@@ -39,7 +39,7 @@ module RuboCop
39
39
  sig { params(node: T.untyped).void }
40
40
  def on_def(node)
41
41
  # This cop only applies for ruby files in `app/public`
42
- return if !processed_source.file_path.include?('app/public')
42
+ return if !processed_source.file_path.include?('app/public/')
43
43
 
44
44
  # Looked at https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/MissingSuper source code as inspiration for htis part.
45
45
  class_node = node.each_ancestor(:class).first
@@ -34,8 +34,9 @@ module RuboCop
34
34
  relative_filepath = absolute_filepath.relative_path_from(Pathname.pwd)
35
35
  relative_filename = relative_filepath.to_s
36
36
 
37
- # This cop only works for files ruby files in `app`
38
- return if !relative_filename.include?('app/') || relative_filepath.extname != '.rb'
37
+ return if relative_filepath.extname != '.rb'
38
+ return if relative_filename.include?('spec/')
39
+ return if !relative_filename.include?('app/')
39
40
 
40
41
  relative_filename = relative_filepath.to_s
41
42
  package_for_path = ::Packs.for_file(relative_filename)
@@ -34,8 +34,8 @@ module RuboCop
34
34
  #
35
35
  extend T::Sig
36
36
 
37
- sig { params(processed_source: T.untyped).void }
38
- def investigate(processed_source)
37
+ sig { void }
38
+ def on_new_investigation
39
39
  return unless processed_source.path.include?('app/public')
40
40
 
41
41
  super
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-packs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.43
4
+ version: 0.0.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gusto Engineers
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-21 00:00:00.000000000 Z
11
+ date: 2024-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -24,6 +24,34 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: base64
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bigdecimal
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
27
55
  - !ruby/object:Gem::Dependency
28
56
  name: packs-specification
29
57
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +100,14 @@ dependencies:
72
100
  requirements:
73
101
  - - ">="
74
102
  - !ruby/object:Gem::Version
75
- version: '0'
103
+ version: 0.8.4
76
104
  type: :runtime
77
105
  prerelease: false
78
106
  version_requirements: !ruby/object:Gem::Requirement
79
107
  requirements:
80
108
  - - ">="
81
109
  - !ruby/object:Gem::Version
82
- version: '0'
110
+ version: 0.8.4
83
111
  - !ruby/object:Gem::Dependency
84
112
  name: sorbet-runtime
85
113
  requirement: !ruby/object:Gem::Requirement
@@ -225,7 +253,7 @@ metadata:
225
253
  source_code_uri: https://github.com/rubyatscale/rubocop-packs
226
254
  changelog_uri: https://github.com/rubyatscale/rubocop-packs/releases
227
255
  allowed_push_host: https://rubygems.org
228
- post_install_message:
256
+ post_install_message:
229
257
  rdoc_options: []
230
258
  require_paths:
231
259
  - lib
@@ -240,8 +268,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
268
  - !ruby/object:Gem::Version
241
269
  version: '0'
242
270
  requirements: []
243
- rubygems_version: 3.1.6
244
- signing_key:
271
+ rubygems_version: 3.5.16
272
+ signing_key:
245
273
  specification_version: 4
246
274
  summary: A collection of Rubocop rules for gradually modularizing a ruby codebase
247
275
  test_files: []