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 +4 -4
- data/lib/rubocop/cop/packs/root_namespace_is_pack_name.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acebfcad6627501dd5f15cb7e64479fe2988d3cc67aeacf798776e7242fd8889
|
4
|
+
data.tar.gz: 982e5aba43fe7b523f0ba08686a2fb1f09b2710a175f58c6e556c63f3d57e5c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
38
|
-
return if
|
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.
|
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-
|
11
|
+
date: 2023-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|