rubomatic 1.0.0 → 1.1.0.pre.rc.2
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/configs/metrics.yml +8 -0
- data/configs/rails.yml +11 -0
- data/configs/style.yml +13 -0
- data/lib/rubomatic/version.rb +1 -1
- metadata +18 -18
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 990c38c1c4eef1dc40e823b0cae4992afa0e6691ff6278f925a17c92fecd1c8f
|
|
4
|
+
data.tar.gz: 266c31bd8b33156cfed27d8268b39f85682db2cf7565207feb0c471c9c11db00
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 47f7c0a9adf49363deec6236d7fe2e5ce897138632c4b9b20f7d16e1f7bd6a803db31ddff27d9033e29abfcfe1403391c2efd2df2751093773d3635a7f8fc2bc
|
|
7
|
+
data.tar.gz: 0fe8b7bc1bd39ae94c0b48f375f41930d9f5c21c1e619408fd90d14abea6e5fd80d20514690a9e0ce0606129774cd6b9fc86e72af908b3f37e4416c907ca27e5
|
data/configs/metrics.yml
CHANGED
|
@@ -52,6 +52,14 @@ Metrics/ClassLength:
|
|
|
52
52
|
Max: 100
|
|
53
53
|
CountAsOne: [ ]
|
|
54
54
|
|
|
55
|
+
<% if RuboCop::Version.document_version.to_f >= 1.47 %>
|
|
56
|
+
Metrics/CollectionLiteralLength:
|
|
57
|
+
Description: Checks for `Array` or `Hash` literals with many entries.
|
|
58
|
+
Enabled: true
|
|
59
|
+
VersionAdded: '1.47'
|
|
60
|
+
LengthThreshold: 250
|
|
61
|
+
<% end %>
|
|
62
|
+
|
|
55
63
|
# Avoid complex methods.
|
|
56
64
|
Metrics/CyclomaticComplexity:
|
|
57
65
|
Description: >-
|
data/configs/rails.yml
CHANGED
|
@@ -776,6 +776,17 @@ Rails/RequireDependency:
|
|
|
776
776
|
Enabled: false
|
|
777
777
|
VersionAdded: '2.10'
|
|
778
778
|
|
|
779
|
+
Rails/ResponseParsedBody:
|
|
780
|
+
Description: Prefer `response.parsed_body` to `JSON.parse(response.body)`.
|
|
781
|
+
Enabled: true
|
|
782
|
+
SafeAutoCorrect: false
|
|
783
|
+
VersionAdded: '2.18'
|
|
784
|
+
Include:
|
|
785
|
+
- spec/controllers/**/*.rb
|
|
786
|
+
- spec/requests/**/*.rb
|
|
787
|
+
- test/controllers/**/*.rb
|
|
788
|
+
- test/integration/**/*.rb
|
|
789
|
+
|
|
779
790
|
Rails/ReversibleMigration:
|
|
780
791
|
Description: 'Checks whether the change method of the migration file is reversible.'
|
|
781
792
|
StyleGuide: 'https://rails.rubystyle.guide#reversible-migration'
|
data/configs/style.yml
CHANGED
|
@@ -1189,6 +1189,12 @@ Style/MapToHash:
|
|
|
1189
1189
|
VersionAdded: '1.24'
|
|
1190
1190
|
Safe: false
|
|
1191
1191
|
|
|
1192
|
+
Style/MapToSet:
|
|
1193
|
+
Description: Prefer `to_set` with a block over `map.to_set`.
|
|
1194
|
+
Enabled: true
|
|
1195
|
+
Safe: false
|
|
1196
|
+
VersionAdded: '1.42'
|
|
1197
|
+
|
|
1192
1198
|
Style/MethodCallWithArgsParentheses:
|
|
1193
1199
|
Description: 'Use parentheses for method calls with arguments.'
|
|
1194
1200
|
StyleGuide: '#method-invocation-parens'
|
|
@@ -1246,6 +1252,13 @@ Style/MinMax:
|
|
|
1246
1252
|
Enabled: true
|
|
1247
1253
|
VersionAdded: '0.50'
|
|
1248
1254
|
|
|
1255
|
+
Style/MinMaxComparison:
|
|
1256
|
+
Description: Enforces the use of `max` or `min` instead of comparison for greater
|
|
1257
|
+
or less.
|
|
1258
|
+
Enabled: true
|
|
1259
|
+
Safe: false
|
|
1260
|
+
VersionAdded: '1.42'
|
|
1261
|
+
|
|
1249
1262
|
Style/MissingElse:
|
|
1250
1263
|
Description: >-
|
|
1251
1264
|
Require if/case expressions to have an else branches.
|
data/lib/rubomatic/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubomatic
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.1.0.pre.rc.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brands Insurance
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-03-
|
|
11
|
+
date: 2023-03-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubocop
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- -
|
|
17
|
+
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 1.
|
|
19
|
+
version: 1.48.0
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- -
|
|
24
|
+
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 1.
|
|
26
|
+
version: 1.48.0
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rubocop-brands_insurance
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- -
|
|
31
|
+
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 1.
|
|
33
|
+
version: 1.2.0
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- -
|
|
38
|
+
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 1.
|
|
40
|
+
version: 1.2.0
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: rubocop-performance
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- -
|
|
45
|
+
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
47
|
version: 1.16.0
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
|
-
- -
|
|
52
|
+
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: 1.16.0
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: rubocop-rails
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- -
|
|
59
|
+
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version:
|
|
61
|
+
version: 2.18.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:
|
|
68
|
+
version: 2.18.0
|
|
69
69
|
description:
|
|
70
70
|
email:
|
|
71
71
|
- documents@brandsinsurance.com
|
|
@@ -112,9 +112,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
112
112
|
version: 3.0.1
|
|
113
113
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
114
|
requirements:
|
|
115
|
-
- - "
|
|
115
|
+
- - ">"
|
|
116
116
|
- !ruby/object:Gem::Version
|
|
117
|
-
version:
|
|
117
|
+
version: 1.3.1
|
|
118
118
|
requirements: []
|
|
119
119
|
rubygems_version: 3.2.15
|
|
120
120
|
signing_key:
|