rubomatic 1.1.0.pre.rc.1 → 1.1.0.pre.rc.2

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: cd5d02af6ff3beae515a1477117385bde04117cb9664fdb805e555461f0bb890
4
- data.tar.gz: 99f8fc61fd500529f7f1245970b33b80792434bd920afb85978733435ad3043e
3
+ metadata.gz: 990c38c1c4eef1dc40e823b0cae4992afa0e6691ff6278f925a17c92fecd1c8f
4
+ data.tar.gz: 266c31bd8b33156cfed27d8268b39f85682db2cf7565207feb0c471c9c11db00
5
5
  SHA512:
6
- metadata.gz: 7abdeb9217dd61e22b994b3eb9750fe60a95ef3c48c8c8ef3ce17e4b922641a739a3693bc8e3af4f73539d3a503aeae3873b7e81847bed087366b328e4dbd1d6
7
- data.tar.gz: dc8a61626b09f6cc8f2b0cee62d24e6702bd385bf36d1cdb36e0c9510ca529a4cd09cdf3dca24fe7a00c25d86d9e6400f37866067a557cf3aa5b2bbfd835c175
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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rubomatic
4
- VERSION = '1.1.0-rc.1'
4
+ VERSION = '1.1.0-rc.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubomatic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.pre.rc.1
4
+ version: 1.1.0.pre.rc.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brands Insurance