rubocop-packs 0.0.43 → 0.0.44

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: acebfcad6627501dd5f15cb7e64479fe2988d3cc67aeacf798776e7242fd8889
4
+ data.tar.gz: 982e5aba43fe7b523f0ba08686a2fb1f09b2710a175f58c6e556c63f3d57e5c7
5
5
  SHA512:
6
- metadata.gz: 016c26bb3230f63ccdc4836c772e567010ca5f7a3f5adb193d013719219a9fe725c8f4eee6a066f0d6723570188b0b789f6785e0b6f5b74b7e9ad1ad8fcba7d1
7
- data.tar.gz: 10d27586347541cab8a81aca534df4890901ce38f7d7362b67e866775b96a2b658a8e812e2b07350c9e28cf0817b37aea26f7848f79ece7083944af042ae3c4d
6
+ metadata.gz: c8b973fb212bfaf7bd05c7eaff556317334d2f4e690ee09b1a0943eef500f585757fb4037681e0d9d818f4addeb6c9a6265647b9608a28bd1d15a3cc46b8d24f
7
+ data.tar.gz: eb7ffe4a3aea12f57f0b95b56b5d443ef96bff6ec511fcaff0c52ad0c616cbf8420b508408d94deb8184146c74f32c1789e1db083727c59a5a8db7540f581d21
@@ -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)
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.44
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gusto Engineers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-21 00:00:00.000000000 Z
11
+ date: 2023-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport