rubocop-packs 0.0.42 → 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: b4f6382e017b0ace92a7e815a685b2c90ff549256b6cf4d36b036b23e868c7fa
4
- data.tar.gz: 4582dc52dc7cec33f41cb75844b81d28e7f9927367f2ed65f9095d45fbac7ded
3
+ metadata.gz: acebfcad6627501dd5f15cb7e64479fe2988d3cc67aeacf798776e7242fd8889
4
+ data.tar.gz: 982e5aba43fe7b523f0ba08686a2fb1f09b2710a175f58c6e556c63f3d57e5c7
5
5
  SHA512:
6
- metadata.gz: 78d762ad8988ca7f914d6563d4137c1ce973c32a4bdc106090d48cbedd968f0551b6d27c64c043738458d3b6f8b84b5e338175f6368d21b67c1e8f2a05e673b6
7
- data.tar.gz: 4d963f96941dec2398a6a28ce0e8199e9751a1fecb13d2bed33a5e0cc6679dc133188cee6984f35cc3d2487a1e24ce431a59c0d609a42337ccb8e847ebe63529
6
+ metadata.gz: c8b973fb212bfaf7bd05c7eaff556317334d2f4e690ee09b1a0943eef500f585757fb4037681e0d9d818f4addeb6c9a6265647b9608a28bd1d15a3cc46b8d24f
7
+ data.tar.gz: eb7ffe4a3aea12f57f0b95b56b5d443ef96bff6ec511fcaff0c52ad0c616cbf8420b508408d94deb8184146c74f32c1789e1db083727c59a5a8db7540f581d21
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # rubocop-packs
2
2
 
3
- A collection of Rubocop rules for modularizing ruby applications that conform to the `packs` standard.
3
+ A collection of Rubocop rules for modularizing ruby applications that conform to the [`packs`](https://github.com/rubyatscale/packs) standard.
4
4
 
5
5
  ## Installation
6
6
 
@@ -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.42
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-10 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
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: rubocop
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '1.0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '1.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop-sorbet
71
71
  requirement: !ruby/object:Gem::Requirement