ruby-vips 2.0.14 → 2.0.15

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: 74183885f19e7d8d792099eb131da6ae94be9b4d34067fa2a0f82b72f3d02026
4
- data.tar.gz: c3a1f642a7edd260ffeda5b408b7ef46c0f090d0098d208a74847574dfd2f1be
3
+ metadata.gz: f840e3348f61c24e35a7edaf8110e04c80d554ca0941e1a2657e42a5e7d9c585
4
+ data.tar.gz: 914ae65523b71d0703e0dadcb0a864d89dbf15c4177fd98b3d440e84023b31ec
5
5
  SHA512:
6
- metadata.gz: b87c9ed538391c1f8ca65fb16fb0ab9fa9b685cfddb8b8c016beed93c3d3ccabb5f6024487a191528595bac256e4dc8b3cae4d1aaee0506d1c24fef55aa65b41
7
- data.tar.gz: f4686c49a18ad1bcf8cf95f70146815d17e3497edef62a525663b2046bcc6753eb075f379cd38e25e0c129b9afdc8e8e67e52116019a0a90b3c53a595c3d295e
6
+ metadata.gz: 173ff890370fb1a4fdc70f5ab6ecb4622995a855494c5b46ff3aa2b1ef74415e1c39d9b20773e42b2e01dd520cdb6d59a00abc2a54d34a670b503d811cee8aa8
7
+ data.tar.gz: fdc9235e39d693067d4e2ac3f327bce3b71d98ed170a8946ec12626599f274485d4ebd71fdacf837122d34b6da08cabe1b0f31e530a36e3cf548e7b498179880
@@ -1,10 +1,22 @@
1
1
  inherit_from: .rubocop_todo.yml
2
2
 
3
3
  AllCops:
4
- TargetRubyVersion: 2.2
4
+ TargetRubyVersion: 2.6
5
5
 
6
6
  Gemspec/OrderedDependencies:
7
7
  Enabled: false
8
8
 
9
+ # we have some long kw arg calls
9
10
  Layout/AlignHash:
10
11
  EnforcedLastArgumentHashStyle: ignore_implicit
12
+
13
+ # methods.rb is autogenerated and we don't expect the doc comments to align
14
+ Layout/CommentIndentation:
15
+ Exclude:
16
+ - 'lib/vips/methods.rb'
17
+ Layout/EmptyLinesAroundClassBody:
18
+ Exclude:
19
+ - 'lib/vips/methods.rb'
20
+ Layout/TrailingWhitespace:
21
+ Exclude:
22
+ - 'lib/vips/methods.rb'
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2019-02-14 11:30:19 +0100 using RuboCop version 0.64.0.
3
+ # on 2019-06-12 17:59:17 +0100 using RuboCop version 0.71.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -9,8 +9,8 @@
9
9
  # Offense count: 43
10
10
  # Cop supports --auto-correct.
11
11
  # Configuration parameters: EnforcedStyle, IndentationWidth.
12
- # SupportedStyles: with_first_parameter, with_fixed_indentation
13
- Layout/AlignParameters:
12
+ # SupportedStyles: with_first_argument, with_fixed_indentation
13
+ Layout/AlignArguments:
14
14
  Exclude:
15
15
  - 'example/inheritance_with_refcount.rb'
16
16
  - 'lib/vips.rb'
@@ -19,205 +19,11 @@ Layout/AlignParameters:
19
19
  - 'lib/vips/object.rb'
20
20
  - 'spec/vips_spec.rb'
21
21
 
22
- # Offense count: 1
23
- Layout/ConditionPosition:
24
- Exclude:
25
- - 'lib/vips/image.rb'
26
-
27
- # Offense count: 2
28
- # Cop supports --auto-correct.
29
- Layout/EmptyLineAfterGuardClause:
30
- Exclude:
31
- - 'lib/vips/image.rb'
32
-
33
- # Offense count: 10
34
- # Cop supports --auto-correct.
35
- # Configuration parameters: EnforcedStyle.
36
- # SupportedStyles: empty_lines, no_empty_lines
37
- Layout/EmptyLinesAroundBlockBody:
38
- Exclude:
39
- - 'lib/vips/image.rb'
40
- - 'lib/vips/operation.rb'
41
- - 'spec/image_spec.rb'
42
- - 'spec/spec_helper.rb'
43
- - 'spec/vips_spec.rb'
44
-
45
- # Offense count: 31
46
- # Cop supports --auto-correct.
47
- # Configuration parameters: EnforcedStyle.
48
- # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
49
- Layout/EmptyLinesAroundClassBody:
50
- Exclude:
51
- - 'example/inheritance_with_refcount.rb'
52
- - 'lib/vips/gobject.rb'
53
- - 'lib/vips/gvalue.rb'
54
- - 'lib/vips/image.rb'
55
- - 'lib/vips/interpolate.rb'
56
- - 'lib/vips/methods.rb'
57
- - 'lib/vips/object.rb'
58
- - 'lib/vips/operation.rb'
59
-
60
- # Offense count: 2
61
- # Cop supports --auto-correct.
62
- Layout/EmptyLinesAroundMethodBody:
63
- Exclude:
64
- - 'lib/vips.rb'
65
- - 'lib/vips/gvalue.rb'
66
-
67
- # Offense count: 38
68
- # Cop supports --auto-correct.
69
- # Configuration parameters: EnforcedStyle.
70
- # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
71
- Layout/EmptyLinesAroundModuleBody:
72
- Enabled: false
73
-
74
- # Offense count: 5
75
- # Cop supports --auto-correct.
76
- # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
77
- Layout/ExtraSpacing:
78
- Exclude:
79
- - 'example/daltonize8.rb'
80
- - 'example/watermark.rb'
81
- - 'lib/vips.rb'
82
-
83
- # Offense count: 9
84
- # Cop supports --auto-correct.
85
- # Configuration parameters: EnforcedStyle, IndentationWidth.
86
- # SupportedStyles: special_inside_parentheses, consistent, align_brackets
87
- Layout/IndentArray:
88
- Exclude:
89
- - 'example/daltonize8.rb'
90
- - 'example/example5.rb'
91
- - 'spec/image_spec.rb'
92
-
93
- # Offense count: 2
94
- # Cop supports --auto-correct.
95
- # Configuration parameters: IndentationWidth.
96
- Layout/IndentAssignment:
97
- Exclude:
98
- - 'lib/vips/image.rb'
99
-
100
- # Offense count: 5
101
- # Cop supports --auto-correct.
102
- # Configuration parameters: EnforcedStyle, IndentationWidth.
103
- # SupportedStyles: special_inside_parentheses, consistent, align_braces
104
- Layout/IndentHash:
105
- Exclude:
106
- - 'lib/vips.rb'
107
- - 'lib/vips/image.rb'
108
- - 'lib/vips/object.rb'
109
- - 'lib/vips/operation.rb'
110
-
111
- # Offense count: 4
112
- # Cop supports --auto-correct.
113
- Layout/LeadingCommentSpace:
114
- Exclude:
115
- - 'example/daltonize8.rb'
116
- - 'example/example4.rb'
117
- - 'example/example5.rb'
118
-
119
- # Offense count: 1
120
- # Cop supports --auto-correct.
121
- # Configuration parameters: EnforcedStyle.
122
- # SupportedStyles: symmetrical, new_line, same_line
123
- Layout/MultilineArrayBraceLayout:
124
- Exclude:
125
- - 'example/example5.rb'
126
-
127
- # Offense count: 16
128
- # Cop supports --auto-correct.
129
- # Configuration parameters: EnforcedStyle, IndentationWidth.
130
- # SupportedStyles: aligned, indented
131
- Layout/MultilineOperationIndentation:
132
- Exclude:
133
- - 'lib/vips/gvalue.rb'
134
- - 'lib/vips/image.rb'
135
- - 'lib/vips/operation.rb'
136
-
137
- # Offense count: 2
138
- # Cop supports --auto-correct.
139
- Layout/RescueEnsureAlignment:
140
- Exclude:
141
- - 'lib/vips/image.rb'
142
-
143
- # Offense count: 5
144
- # Cop supports --auto-correct.
145
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
146
- # SupportedStyles: space, no_space
147
- # SupportedStylesForEmptyBraces: space, no_space
148
- Layout/SpaceBeforeBlockBraces:
149
- Exclude:
150
- - 'lib/vips/image.rb'
151
- - 'spec/vips_spec.rb'
152
-
153
- # Offense count: 44
154
- # Cop supports --auto-correct.
155
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
156
- # SupportedStyles: space, no_space
157
- # SupportedStylesForEmptyBraces: space, no_space
158
- Layout/SpaceInsideBlockBraces:
159
- Exclude:
160
- - 'lib/vips/gvalue.rb'
161
- - 'lib/vips/image.rb'
162
- - 'lib/vips/object.rb'
163
- - 'lib/vips/operation.rb'
164
- - 'spec/vips_spec.rb'
165
-
166
- # Offense count: 12
167
- # Cop supports --auto-correct.
168
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
169
- # SupportedStyles: space, no_space, compact
170
- # SupportedStylesForEmptyBraces: space, no_space
171
- Layout/SpaceInsideHashLiteralBraces:
172
- Exclude:
173
- - 'lib/vips/image.rb'
174
- - 'spec/vips_spec.rb'
175
-
176
- # Offense count: 9
177
- # Cop supports --auto-correct.
178
- # Configuration parameters: EnforcedStyle.
179
- # SupportedStyles: final_newline, final_blank_line
180
- Layout/TrailingBlankLines:
181
- Exclude:
182
- - 'example/inheritance_with_refcount.rb'
183
- - 'example/thumb.rb'
184
- - 'lib/vips.rb'
185
- - 'lib/vips/blend_mode.rb'
186
- - 'lib/vips/object.rb'
187
- - 'lib/vips/version.rb'
188
- - 'ruby-vips.gemspec'
189
- - 'spec/image_spec.rb'
190
- - 'spec/vips_spec.rb'
191
-
192
- # Offense count: 2
193
- Lint/HandleExceptions:
194
- Exclude:
195
- - 'lib/vips/image.rb'
196
-
197
22
  # Offense count: 5
198
23
  Lint/IneffectiveAccessModifier:
199
24
  Exclude:
200
25
  - 'lib/vips/image.rb'
201
26
 
202
- # Offense count: 1
203
- Lint/ParenthesesAsGroupedExpression:
204
- Exclude:
205
- - 'lib/vips.rb'
206
-
207
- # Offense count: 1
208
- Lint/ShadowingOuterLocalVariable:
209
- Exclude:
210
- - 'lib/vips/operation.rb'
211
-
212
- # Offense count: 10
213
- # Cop supports --auto-correct.
214
- # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
215
- Lint/UnusedBlockArgument:
216
- Exclude:
217
- - 'lib/vips.rb'
218
- - 'lib/vips/image.rb'
219
- - 'lib/vips/operation.rb'
220
-
221
27
  # Offense count: 7
222
28
  # Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
223
29
  Lint/UselessAccessModifier:
@@ -226,16 +32,6 @@ Lint/UselessAccessModifier:
226
32
  - 'lib/vips/object.rb'
227
33
  - 'lib/vips/operation.rb'
228
34
 
229
- # Offense count: 11
230
- Lint/UselessAssignment:
231
- Exclude:
232
- - 'example/example1.rb'
233
- - 'example/inheritance_with_refcount.rb'
234
- - 'example/thumb.rb'
235
- - 'example/trim8.rb'
236
- - 'lib/vips/operation.rb'
237
- - 'spec/image_spec.rb'
238
-
239
35
  # Offense count: 6
240
36
  Lint/UselessComparison:
241
37
  Exclude:
@@ -243,7 +39,7 @@ Lint/UselessComparison:
243
39
 
244
40
  # Offense count: 7
245
41
  Metrics/AbcSize:
246
- Max: 124
42
+ Max: 114
247
43
 
248
44
  # Offense count: 6
249
45
  # Configuration parameters: CountComments, ExcludedMethods.
@@ -254,27 +50,27 @@ Metrics/BlockLength:
254
50
  # Offense count: 3
255
51
  # Configuration parameters: CountComments.
256
52
  Metrics/ClassLength:
257
- Max: 517
53
+ Max: 518
258
54
 
259
55
  # Offense count: 6
260
56
  Metrics/CyclomaticComplexity:
261
57
  Max: 28
262
58
 
263
- # Offense count: 11
59
+ # Offense count: 12
264
60
  # Configuration parameters: CountComments, ExcludedMethods.
265
61
  Metrics/MethodLength:
266
- Max: 126
62
+ Max: 150
267
63
 
268
64
  # Offense count: 1
269
65
  # Configuration parameters: CountComments.
270
66
  Metrics/ModuleLength:
271
- Max: 165
67
+ Max: 150
272
68
 
273
69
  # Offense count: 4
274
70
  Metrics/PerceivedComplexity:
275
71
  Max: 32
276
72
 
277
- # Offense count: 8
73
+ # Offense count: 9
278
74
  Naming/AccessorMethodName:
279
75
  Exclude:
280
76
  - 'example/inheritance_with_refcount.rb'
@@ -308,12 +104,6 @@ Naming/UncommunicativeMethodParamName:
308
104
  - 'lib/vips.rb'
309
105
  - 'lib/vips/image.rb'
310
106
 
311
- # Offense count: 1
312
- # Cop supports --auto-correct.
313
- Performance/RedundantBlockCall:
314
- Exclude:
315
- - 'lib/vips/operation.rb'
316
-
317
107
  # Offense count: 1
318
108
  # Cop supports --auto-correct.
319
109
  # Configuration parameters: EnforcedStyle.
@@ -322,19 +112,18 @@ Style/Alias:
322
112
  Exclude:
323
113
  - 'lib/vips/image.rb'
324
114
 
325
- # Offense count: 2
115
+ # Offense count: 1
326
116
  # Cop supports --auto-correct.
327
117
  # Configuration parameters: EnforcedStyle.
328
118
  # SupportedStyles: always, conditionals
329
119
  Style/AndOr:
330
120
  Exclude:
331
121
  - 'example/example2.rb'
332
- - 'example/watermark.rb'
333
122
 
334
123
  # Offense count: 3
335
124
  # Cop supports --auto-correct.
336
- # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods.
337
- # SupportedStyles: line_count_based, semantic, braces_for_chaining
125
+ # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners.
126
+ # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
338
127
  # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
339
128
  # FunctionalMethods: let, let!, subject, watch
340
129
  # IgnoredMethods: lambda, proc, it
@@ -357,7 +146,7 @@ Style/ClassVars:
357
146
  Exclude:
358
147
  - 'lib/vips/image.rb'
359
148
 
360
- # Offense count: 164
149
+ # Offense count: 168
361
150
  # Cop supports --auto-correct.
362
151
  Style/ColonMethodCall:
363
152
  Exclude:
@@ -385,7 +174,7 @@ Style/ConditionalAssignment:
385
174
  Exclude:
386
175
  - 'lib/vips.rb'
387
176
 
388
- # Offense count: 43
177
+ # Offense count: 44
389
178
  Style/Documentation:
390
179
  Exclude:
391
180
  - 'spec/**/*'
@@ -420,6 +209,13 @@ Style/ExpandPathArguments:
420
209
  - 'ruby-vips.gemspec'
421
210
  - 'spec/spec_helper.rb'
422
211
 
212
+ # Offense count: 50
213
+ # Cop supports --auto-correct.
214
+ # Configuration parameters: EnforcedStyle.
215
+ # SupportedStyles: always, never
216
+ Style/FrozenStringLiteralComment:
217
+ Enabled: false
218
+
423
219
  # Offense count: 5
424
220
  # Configuration parameters: AllowedVariables.
425
221
  Style/GlobalVars:
@@ -433,7 +229,7 @@ Style/GuardClause:
433
229
  - 'example/inheritance_with_refcount.rb'
434
230
  - 'lib/vips.rb'
435
231
 
436
- # Offense count: 59
232
+ # Offense count: 53
437
233
  # Cop supports --auto-correct.
438
234
  # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
439
235
  # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
@@ -444,7 +240,6 @@ Style/HashSyntax:
444
240
  - 'example/daltonize8.rb'
445
241
  - 'example/example3.rb'
446
242
  - 'example/example5.rb'
447
- - 'example/watermark.rb'
448
243
  - 'lib/vips/image.rb'
449
244
  - 'lib/vips/object.rb'
450
245
  - 'lib/vips/operation.rb'
@@ -509,7 +304,7 @@ Style/MissingRespondToMissing:
509
304
 
510
305
  # Offense count: 1
511
306
  # Cop supports --auto-correct.
512
- # Configuration parameters: EnforcedStyle.
307
+ # Configuration parameters: EnforcedStyle, Autocorrect.
513
308
  # SupportedStyles: module_function, extend_self
514
309
  Style/ModuleFunction:
515
310
  Exclude:
@@ -527,6 +322,8 @@ Style/MultipleComparison:
527
322
 
528
323
  # Offense count: 6
529
324
  # Cop supports --auto-correct.
325
+ # Configuration parameters: EnforcedStyle.
326
+ # SupportedStyles: literals, strict
530
327
  Style/MutableConstant:
531
328
  Exclude:
532
329
  - 'example/inheritance_with_refcount.rb'
@@ -551,7 +348,7 @@ Style/Next:
551
348
  Exclude:
552
349
  - 'lib/vips/operation.rb'
553
350
 
554
- # Offense count: 14
351
+ # Offense count: 15
555
352
  # Cop supports --auto-correct.
556
353
  # Configuration parameters: EnforcedStyle.
557
354
  # SupportedStyles: predicate, comparison
@@ -576,7 +373,7 @@ Style/NonNilCheck:
576
373
  Style/NumericLiterals:
577
374
  MinDigits: 9
578
375
 
579
- # Offense count: 5
376
+ # Offense count: 10
580
377
  # Cop supports --auto-correct.
581
378
  # Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
582
379
  # SupportedStyles: predicate, comparison
@@ -586,13 +383,6 @@ Style/NumericPredicate:
586
383
  - 'lib/vips/image.rb'
587
384
  - 'lib/vips/operation.rb'
588
385
 
589
- # Offense count: 1
590
- # Cop supports --auto-correct.
591
- # Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
592
- Style/ParenthesesAroundCondition:
593
- Exclude:
594
- - 'lib/vips/image.rb'
595
-
596
386
  # Offense count: 4
597
387
  # Cop supports --auto-correct.
598
388
  # Configuration parameters: EnforcedStyle.
@@ -614,13 +404,7 @@ Style/RedundantConditional:
614
404
  Exclude:
615
405
  - 'lib/vips/gvalue.rb'
616
406
 
617
- # Offense count: 1
618
- # Cop supports --auto-correct.
619
- Style/RedundantParentheses:
620
- Exclude:
621
- - 'lib/vips/image.rb'
622
-
623
- # Offense count: 15
407
+ # Offense count: 13
624
408
  # Cop supports --auto-correct.
625
409
  # Configuration parameters: AllowMultipleReturnValues.
626
410
  Style/RedundantReturn:
@@ -666,7 +450,7 @@ Style/StderrPuts:
666
450
  Exclude:
667
451
  - 'Rakefile'
668
452
 
669
- # Offense count: 191
453
+ # Offense count: 192
670
454
  # Cop supports --auto-correct.
671
455
  # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
672
456
  # SupportedStyles: single_quotes, double_quotes
@@ -723,8 +507,9 @@ Style/ZeroLengthPredicate:
723
507
  - 'lib/vips/image.rb'
724
508
  - 'lib/vips/operation.rb'
725
509
 
726
- # Offense count: 161
727
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
510
+ # Offense count: 105
511
+ # Cop supports --auto-correct.
512
+ # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
728
513
  # URISchemes: http, https
729
514
  Metrics/LineLength:
730
515
  Max: 179