boxt_rubocop 2.16.0 → 2.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/rubocop/boxt/inject.rb +6 -1
- data/lib/rubocop/cop/boxt/api_path_format.rb +1 -1
- metadata +11 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3c1f44c9d8c1a4b9a60d9a23e3c5ab32dbb21ab4213dd0be6e8ae6f9f17e2cf
|
4
|
+
data.tar.gz: 9ebd233b419423089c09bc12919b2f564dee2e001765835871e38791f21f816c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4735ae5809883c898cbcb767a2cf894e82231c4e76e2449b0d6196308f2846f1e98c58850947704f15cc2ea7752e397e70fb7371225166d2a1797cbd58d0dc8
|
7
|
+
data.tar.gz: 8217f44ac976ecfd59fb34373196d40ef43b99dfb8f5bee8231d99a3fdff8572d086d55a441193e98485973a9dbf556fee73cedf4c9c4786388e1fa34502d354
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.17.1
|
data/lib/rubocop/boxt/inject.rb
CHANGED
@@ -11,7 +11,12 @@ module RuboCop
|
|
11
11
|
path = CONFIG_DEFAULT.to_s
|
12
12
|
hash = ConfigLoader.send(:load_yaml_configuration, path)
|
13
13
|
config = Config.new(hash, path).tap(&:make_excludes_absolute)
|
14
|
-
|
14
|
+
|
15
|
+
# Using Rails.logger here will cause an error.
|
16
|
+
# See https://github.com/boxt/boxt_rubocop/pull/187
|
17
|
+
# rubocop:disable Rails/Output
|
18
|
+
puts "configuration from #{path}" if ConfigLoader.debug?
|
19
|
+
# rubocop:enable Rails/Output
|
15
20
|
config = ConfigLoader.merge_with_default(config, path)
|
16
21
|
ConfigLoader.instance_variable_set(:@default_configuration, config)
|
17
22
|
end
|
@@ -25,7 +25,7 @@ module RuboCop
|
|
25
25
|
#
|
26
26
|
class ApiPathFormat < RuboCop::Cop::Base
|
27
27
|
def_node_matcher :path_defining_method_with_string_path, <<~PATTERN
|
28
|
-
(send nil? {:post | :
|
28
|
+
(send nil? {:get | :post | :put | :patch | :delete | :namespace} (:str $_))
|
29
29
|
PATTERN
|
30
30
|
|
31
31
|
def_node_matcher :namespace_with_symbol, <<~PATTERN
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: boxt_rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.17.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boxt
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
10
|
+
date: 2025-01-28 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: rubocop
|
@@ -16,14 +15,14 @@ dependencies:
|
|
16
15
|
requirements:
|
17
16
|
- - '='
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
18
|
+
version: 1.70.0
|
20
19
|
type: :runtime
|
21
20
|
prerelease: false
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
23
22
|
requirements:
|
24
23
|
- - '='
|
25
24
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
25
|
+
version: 1.70.0
|
27
26
|
- !ruby/object:Gem::Dependency
|
28
27
|
name: rubocop-factory_bot
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,28 +57,28 @@ dependencies:
|
|
58
57
|
requirements:
|
59
58
|
- - '='
|
60
59
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.23.
|
60
|
+
version: 1.23.1
|
62
61
|
type: :runtime
|
63
62
|
prerelease: false
|
64
63
|
version_requirements: !ruby/object:Gem::Requirement
|
65
64
|
requirements:
|
66
65
|
- - '='
|
67
66
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.23.
|
67
|
+
version: 1.23.1
|
69
68
|
- !ruby/object:Gem::Dependency
|
70
69
|
name: rubocop-rails
|
71
70
|
requirement: !ruby/object:Gem::Requirement
|
72
71
|
requirements:
|
73
72
|
- - '='
|
74
73
|
- !ruby/object:Gem::Version
|
75
|
-
version: 2.
|
74
|
+
version: 2.29.0
|
76
75
|
type: :runtime
|
77
76
|
prerelease: false
|
78
77
|
version_requirements: !ruby/object:Gem::Requirement
|
79
78
|
requirements:
|
80
79
|
- - '='
|
81
80
|
- !ruby/object:Gem::Version
|
82
|
-
version: 2.
|
81
|
+
version: 2.29.0
|
83
82
|
- !ruby/object:Gem::Dependency
|
84
83
|
name: rubocop-rake
|
85
84
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,14 +99,14 @@ dependencies:
|
|
100
99
|
requirements:
|
101
100
|
- - '='
|
102
101
|
- !ruby/object:Gem::Version
|
103
|
-
version: 3.
|
102
|
+
version: 3.4.0
|
104
103
|
type: :runtime
|
105
104
|
prerelease: false
|
106
105
|
version_requirements: !ruby/object:Gem::Requirement
|
107
106
|
requirements:
|
108
107
|
- - '='
|
109
108
|
- !ruby/object:Gem::Version
|
110
|
-
version: 3.
|
109
|
+
version: 3.4.0
|
111
110
|
description: Base Rubocop settings for all Boxt Ruby projects
|
112
111
|
email:
|
113
112
|
- developers@boxt.co.uk
|
@@ -134,7 +133,6 @@ licenses:
|
|
134
133
|
- MIT
|
135
134
|
metadata:
|
136
135
|
rubygems_mfa_required: 'true'
|
137
|
-
post_install_message:
|
138
136
|
rdoc_options: []
|
139
137
|
require_paths:
|
140
138
|
- lib
|
@@ -149,8 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
147
|
- !ruby/object:Gem::Version
|
150
148
|
version: '0'
|
151
149
|
requirements: []
|
152
|
-
rubygems_version: 3.
|
153
|
-
signing_key:
|
150
|
+
rubygems_version: 3.6.2
|
154
151
|
specification_version: 4
|
155
152
|
summary: Base Rubocop settings for all Boxt Ruby projects
|
156
153
|
test_files: []
|