rmagick 6.3.0 → 7.0.0

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.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/Gemfile +3 -6
  4. data/README.md +49 -70
  5. data/Rakefile +1 -8
  6. data/ext/RMagick/extconf.rb +10 -40
  7. data/ext/RMagick/rmagick.cpp +6 -7
  8. data/ext/RMagick/rmagick.h +5 -18
  9. data/ext/RMagick/rmdraw.cpp +6 -7
  10. data/ext/RMagick/rmenum.cpp +5 -6
  11. data/ext/RMagick/rmfill.cpp +6 -8
  12. data/ext/RMagick/rmilist.cpp +6 -7
  13. data/ext/RMagick/rmimage.cpp +55 -109
  14. data/ext/RMagick/rminfo.cpp +6 -8
  15. data/ext/RMagick/rmkinfo.cpp +8 -7
  16. data/ext/RMagick/rmmain.cpp +7 -23
  17. data/ext/RMagick/rmmontage.cpp +6 -8
  18. data/ext/RMagick/rmpixel.cpp +6 -7
  19. data/ext/RMagick/rmstruct.cpp +8 -12
  20. data/ext/RMagick/rmutil.cpp +6 -27
  21. data/lib/rmagick/version.rb +4 -3
  22. data/lib/rmagick_internal.rb +30 -37
  23. data/lib/rvg/clippath.rb +3 -4
  24. data/lib/rvg/container.rb +3 -4
  25. data/lib/rvg/deep_equal.rb +3 -0
  26. data/lib/rvg/describable.rb +4 -5
  27. data/lib/rvg/embellishable.rb +7 -8
  28. data/lib/rvg/misc.rb +13 -12
  29. data/lib/rvg/paint.rb +3 -4
  30. data/lib/rvg/pathdata.rb +3 -4
  31. data/lib/rvg/rvg.rb +3 -29
  32. data/lib/rvg/stretchable.rb +4 -5
  33. data/lib/rvg/stylable.rb +4 -5
  34. data/lib/rvg/text.rb +9 -10
  35. data/lib/rvg/transformable.rb +3 -4
  36. data/lib/rvg/units.rb +3 -2
  37. data/rmagick.gemspec +6 -4
  38. data/sig/rmagick.rbs +2 -1
  39. metadata +4 -19
  40. data/.devcontainer/Dockerfile +0 -14
  41. data/.devcontainer/ImageMagick6/devcontainer.json +0 -11
  42. data/.devcontainer/devcontainer.json +0 -11
  43. data/.devcontainer/setup-repo.sh +0 -10
  44. data/.devcontainer/setup-user.sh +0 -45
  45. data/.editorconfig +0 -17
  46. data/.github/ISSUE_TEMPLATE/report.yml +0 -40
  47. data/.github/dependabot.yml +0 -6
  48. data/.github/workflows/ci.yml +0 -237
  49. data/.gitignore +0 -29
  50. data/.rspec +0 -2
  51. data/.rubocop.yml +0 -68
  52. data/.rubocop_todo.yml +0 -594
  53. data/before_install_linux.sh +0 -61
  54. data/before_install_osx.sh +0 -60
data/.rubocop_todo.yml DELETED
@@ -1,594 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2026-03-06 16:48:22 UTC using RuboCop version 1.85.1.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- # Offense count: 13
10
- # Configuration parameters: IgnoredGems, OnlyFor.
11
- Bundler/GemComment:
12
- Exclude:
13
- - 'Gemfile'
14
-
15
- # Offense count: 1
16
- Gemspec/RequiredRubyVersion:
17
- Exclude:
18
- - 'rmagick.gemspec'
19
-
20
- # Offense count: 11
21
- # This cop supports unsafe autocorrection (--autocorrect-all).
22
- # Configuration parameters: Categories, ExpectedOrder.
23
- # ExpectedOrder: module_inclusion, constants, public_class_methods, initializer, public_methods, protected_methods, private_methods
24
- Layout/ClassStructure:
25
- Exclude:
26
- - 'examples/histogram.rb'
27
- - 'lib/rmagick_internal.rb'
28
- - 'lib/rvg/embellishable.rb'
29
- - 'lib/rvg/misc.rb'
30
- - 'lib/rvg/pathdata.rb'
31
- - 'lib/rvg/rvg.rb'
32
-
33
- # Offense count: 6
34
- # This cop supports safe autocorrection (--autocorrect).
35
- # Configuration parameters: AllowMultilineFinalElement, AllowedMethods.
36
- Layout/FirstMethodArgumentLineBreak:
37
- Exclude:
38
- - 'doc/ex/arcpath.rb'
39
- - 'doc/ex/evenodd.rb'
40
- - 'doc/ex/get_type_metrics.rb'
41
- - 'doc/ex/nonzero.rb'
42
-
43
- # Offense count: 2311
44
- # This cop supports safe autocorrection (--autocorrect).
45
- # Configuration parameters: AllowMultilineFinalElement.
46
- Layout/MultilineArrayLineBreaks:
47
- Exclude:
48
- - 'doc/ex/add_noise.rb'
49
- - 'doc/ex/clip_path.rb'
50
- - 'doc/ex/crop_with_gravity.rb'
51
- - 'doc/ex/polyline.rb'
52
- - 'doc/ex/smile.rb'
53
- - 'examples/crop_with_gravity.rb'
54
- - 'lib/rmagick_internal.rb'
55
- - 'lib/rvg/stylable.rb'
56
-
57
- # Offense count: 192
58
- # This cop supports safe autocorrection (--autocorrect).
59
- # Configuration parameters: AllowMultilineFinalElement.
60
- Layout/MultilineMethodArgumentLineBreaks:
61
- Exclude:
62
- - 'doc/ex/axes.rb'
63
- - 'doc/ex/drawcomp.rb'
64
- - 'doc/ex/fonts.rb'
65
- - 'doc/ex/get_type_metrics.rb'
66
- - 'doc/ex/polygon.rb'
67
- - 'doc/ex/polygon01.rb'
68
- - 'doc/ex/polyline01.rb'
69
- - 'doc/ex/sparse_color.rb'
70
- - 'examples/vignette.rb'
71
- - 'lib/rmagick_internal.rb'
72
-
73
- # Offense count: 83
74
- # This cop supports safe autocorrection (--autocorrect).
75
- # Configuration parameters: InspectBlocks.
76
- Layout/RedundantLineBreak:
77
- Enabled: false
78
-
79
- # Offense count: 1913
80
- # This cop supports safe autocorrection (--autocorrect).
81
- Layout/SingleLineBlockChain:
82
- Enabled: false
83
-
84
- # Offense count: 1
85
- # This cop supports safe autocorrection (--autocorrect).
86
- # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator, EnforcedStyleForRationalLiterals.
87
- # SupportedStylesForExponentOperator: space, no_space
88
- # SupportedStylesForRationalLiterals: space, no_space
89
- Layout/SpaceAroundOperators:
90
- Exclude:
91
- - 'lib/rvg/misc.rb'
92
-
93
- # Offense count: 39
94
- # This cop supports safe autocorrection (--autocorrect).
95
- Lint/AmbiguousOperatorPrecedence:
96
- Exclude:
97
- - 'doc/ex/coalesce.rb'
98
- - 'doc/ex/get_type_metrics.rb'
99
- - 'doc/ex/rvg_clippath.rb'
100
- - 'doc/ex/skewx.rb'
101
- - 'examples/histogram.rb'
102
- - 'examples/vignette.rb'
103
- - 'lib/rmagick_internal.rb'
104
- - 'lib/rvg/embellishable.rb'
105
- - 'lib/rvg/misc.rb'
106
- - 'lib/rvg/stretchable.rb'
107
-
108
- # Offense count: 1
109
- Lint/BinaryOperatorWithIdenticalOperands:
110
- Exclude:
111
- - 'spec/rmagick/enum/case_equality_spec.rb'
112
-
113
- # Offense count: 2
114
- # Configuration parameters: AllowedMethods.
115
- # AllowedMethods: enums
116
- Lint/ConstantDefinitionInBlock:
117
- Exclude:
118
- - 'Rakefile'
119
-
120
- # Offense count: 5528
121
- # Configuration parameters: Only, Ignore.
122
- Lint/ConstantResolution:
123
- Enabled: false
124
-
125
- # Offense count: 3
126
- # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
127
- Lint/DuplicateBranch:
128
- Exclude:
129
- - 'lib/rvg/embellishable.rb'
130
- - 'lib/rvg/misc.rb'
131
-
132
- # Offense count: 8
133
- # Configuration parameters: AllowComments, AllowEmptyLambdas.
134
- Lint/EmptyBlock:
135
- Exclude:
136
- - 'spec/rmagick/draw/pattern_spec.rb'
137
- - 'spec/rmagick/image/change_geometry_spec.rb'
138
- - 'spec/rmagick/image/each_profile_spec.rb'
139
-
140
- # Offense count: 1
141
- # Configuration parameters: AllowComments.
142
- Lint/EmptyFile:
143
- Exclude:
144
- - 'spec/rmagick/image/info/view_spec.rb'
145
-
146
- # Offense count: 1
147
- # Configuration parameters: AllowComments.
148
- Lint/EmptyWhen:
149
- Exclude:
150
- - 'lib/rvg/misc.rb'
151
-
152
- # Offense count: 2
153
- Lint/FloatComparison:
154
- Exclude:
155
- - 'lib/rvg/stretchable.rb'
156
-
157
- # Offense count: 91
158
- # This cop supports unsafe autocorrection (--autocorrect-all).
159
- # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredClasses.
160
- # IgnoredClasses: Time, DateTime
161
- Lint/NumberConversion:
162
- Exclude:
163
- - 'doc/ex/get_pixels.rb'
164
- - 'examples/describe.rb'
165
- - 'examples/thumbnail.rb'
166
- - 'lib/rmagick_internal.rb'
167
- - 'lib/rvg/misc.rb'
168
- - 'spec/magick_spec.rb'
169
- - 'spec/rmagick/align_type/class_methods/values_spec.rb'
170
- - 'spec/rmagick/enum/bitwise_or_spec.rb'
171
- - 'spec/rmagick/enum/to_i_spec.rb'
172
- - 'spec/rmagick/image/export_pixels_spec.rb'
173
-
174
- # Offense count: 1
175
- Lint/RescueException:
176
- Exclude:
177
- - 'lib/rmagick_internal.rb'
178
-
179
- # Offense count: 36
180
- # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
181
- Metrics/AbcSize:
182
- Max: 537
183
-
184
- # Offense count: 18
185
- # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
186
- # AllowedMethods: refine
187
- Metrics/BlockLength:
188
- Max: 155
189
-
190
- # Offense count: 1
191
- # Configuration parameters: CountBlocks, CountModifierForms.
192
- Metrics/BlockNesting:
193
- Max: 4
194
-
195
- # Offense count: 9
196
- # Configuration parameters: CountComments, CountAsOne.
197
- Metrics/ClassLength:
198
- Max: 467
199
-
200
- # Offense count: 1
201
- # Configuration parameters: LengthThreshold.
202
- Metrics/CollectionLiteralLength:
203
- Exclude:
204
- - 'doc/ex/smile.rb'
205
-
206
- # Offense count: 16
207
- # Configuration parameters: AllowedMethods, AllowedPatterns.
208
- Metrics/CyclomaticComplexity:
209
- Max: 44
210
-
211
- # Offense count: 57
212
- # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
213
- Metrics/MethodLength:
214
- Max: 146
215
-
216
- # Offense count: 23
217
- # Configuration parameters: CountKeywordArgs.
218
- Metrics/ParameterLists:
219
- MaxOptionalParameters: 5
220
- Max: 8
221
-
222
- # Offense count: 12
223
- # Configuration parameters: AllowedMethods, AllowedPatterns.
224
- Metrics/PerceivedComplexity:
225
- Max: 42
226
-
227
- # Offense count: 4
228
- Naming/AccessorMethodName:
229
- Exclude:
230
- - 'lib/rmagick_internal.rb'
231
- - 'lib/rvg/misc.rb'
232
-
233
- # Offense count: 2
234
- # Configuration parameters: AllowedNames.
235
- # AllowedNames: module_parent
236
- Naming/ClassAndModuleCamelCase:
237
- Exclude:
238
- - 'lib/rmagick_internal.rb'
239
-
240
- # Offense count: 4
241
- # Configuration parameters: EnforcedStyle, AllowedPatterns, ForbiddenIdentifiers, ForbiddenPatterns.
242
- # SupportedStyles: snake_case, camelCase
243
- # ForbiddenIdentifiers: __id__, __send__
244
- Naming/MethodName:
245
- Exclude:
246
- - 'lib/rvg/misc.rb'
247
- - 'lib/rvg/transformable.rb'
248
-
249
- # Offense count: 220
250
- # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
251
- # AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
252
- Naming/MethodParameterName:
253
- Exclude:
254
- - 'doc/ex/get_type_metrics.rb'
255
- - 'examples/histogram.rb'
256
- - 'lib/rmagick_internal.rb'
257
- - 'lib/rvg/clippath.rb'
258
- - 'lib/rvg/container.rb'
259
- - 'lib/rvg/embellishable.rb'
260
- - 'lib/rvg/misc.rb'
261
- - 'lib/rvg/paint.rb'
262
- - 'lib/rvg/pathdata.rb'
263
- - 'lib/rvg/rvg.rb'
264
- - 'lib/rvg/stretchable.rb'
265
- - 'lib/rvg/stylable.rb'
266
- - 'lib/rvg/text.rb'
267
- - 'lib/rvg/transformable.rb'
268
- - 'lib/rvg/units.rb'
269
-
270
- # Offense count: 2
271
- # Configuration parameters: Mode, AllowedMethods, AllowedPatterns, AllowBangMethods, WaywardPredicates.
272
- # AllowedMethods: call
273
- # WaywardPredicates: infinite?, nonzero?
274
- Naming/PredicateMethod:
275
- Exclude:
276
- - 'lib/rvg/deep_equal.rb'
277
-
278
- # Offense count: 432
279
- # Configuration parameters: CountAsOne.
280
- RSpec/ExampleLength:
281
- Max: 126
282
-
283
- # Offense count: 541
284
- # This cop supports safe autocorrection (--autocorrect).
285
- # Configuration parameters: CustomTransform, IgnoredWords, DisallowedExamples.
286
- # DisallowedExamples: works
287
- RSpec/ExampleWording:
288
- Enabled: false
289
-
290
- # Offense count: 1
291
- RSpec/IdenticalEqualityAssertion:
292
- Exclude:
293
- - 'spec/rmagick/image/spaceship_spec.rb'
294
-
295
- # Offense count: 544
296
- RSpec/MultipleExpectations:
297
- Max: 72
298
-
299
- # Offense count: 4
300
- # Configuration parameters: AllowedPatterns.
301
- # AllowedPatterns: ^expect_, ^assert_
302
- RSpec/NoExpectationExample:
303
- Exclude:
304
- - 'spec/rmagick/image/destroy_bang_spec.rb'
305
- - 'spec/rmagick/image/export_pixels_spec.rb'
306
- - 'spec/rmagick/image/import_pixels_spec.rb'
307
- - 'spec/rmagick/image_list/write_spec.rb'
308
-
309
- # Offense count: 1
310
- # This cop supports unsafe autocorrection (--autocorrect-all).
311
- RSpec/Output:
312
- Exclude:
313
- - 'spec/rmagick/image/liquid_rescale_spec.rb'
314
-
315
- # Offense count: 4
316
- Security/MarshalLoad:
317
- Exclude:
318
- - 'lib/rmagick_internal.rb'
319
- - 'spec/rmagick/draw/marshal_dump_spec.rb'
320
- - 'spec/rmagick/image/marshal_spec.rb'
321
- - 'spec/rmagick/image_list/marshal_spec.rb'
322
-
323
- # Offense count: 6
324
- # This cop supports safe autocorrection (--autocorrect).
325
- # Configuration parameters: AllowOnlyRestArgument, UseAnonymousForwarding, RedundantRestArgumentNames, RedundantKeywordRestArgumentNames, RedundantBlockArgumentNames.
326
- # RedundantRestArgumentNames: args, arguments
327
- # RedundantKeywordRestArgumentNames: kwargs, options, opts
328
- # RedundantBlockArgumentNames: blk, block, proc
329
- Style/ArgumentsForwarding:
330
- Exclude:
331
- - 'lib/rmagick_internal.rb'
332
- - 'lib/rvg/misc.rb'
333
-
334
- # Offense count: 153
335
- # This cop supports unsafe autocorrection (--autocorrect-all).
336
- Style/ArrayFirstLast:
337
- Enabled: false
338
-
339
- # Offense count: 1
340
- # This cop supports unsafe autocorrection (--autocorrect-all).
341
- Style/BitwisePredicate:
342
- Exclude:
343
- - 'spec/rmagick/image_list/partition_spec.rb'
344
-
345
- # Offense count: 7
346
- # This cop supports safe autocorrection (--autocorrect).
347
- # Configuration parameters: AllowOnConstant, AllowOnSelfClass.
348
- Style/CaseEquality:
349
- Exclude:
350
- - 'spec/rmagick/enum/case_equality_spec.rb'
351
- - 'spec/rmagick/pixel/dup_spec.rb'
352
- - 'spec/rmagick/pixel/threequals_spec.rb'
353
-
354
- # Offense count: 2
355
- # This cop supports safe autocorrection (--autocorrect).
356
- # Configuration parameters: EnforcedStyle.
357
- # SupportedStyles: def_self, self_class
358
- Style/ClassMethodsDefinitions:
359
- Exclude:
360
- - 'lib/rmagick_internal.rb'
361
- - 'lib/rvg/units.rb'
362
-
363
- # Offense count: 88
364
- # This cop supports unsafe autocorrection (--autocorrect-all).
365
- Style/CommentedKeyword:
366
- Enabled: false
367
-
368
- # Offense count: 124
369
- # Configuration parameters: IgnoreModules.
370
- Style/ConstantVisibility:
371
- Exclude:
372
- - 'ext/RMagick/extconf.rb'
373
- - 'lib/rmagick/version.rb'
374
- - 'lib/rmagick_internal.rb'
375
- - 'lib/rvg/misc.rb'
376
- - 'lib/rvg/rvg.rb'
377
- - 'lib/rvg/stylable.rb'
378
- - 'spec/support/helpers.rb'
379
-
380
- # Offense count: 3
381
- Style/DocumentDynamicEvalDefinition:
382
- Exclude:
383
- - 'lib/rmagick_internal.rb'
384
-
385
- # Offense count: 37
386
- # Configuration parameters: AllowedConstants.
387
- Style/Documentation:
388
- Enabled: false
389
-
390
- # Offense count: 165
391
- # Configuration parameters: AllowedMethods, RequireForNonPublicMethods.
392
- Style/DocumentationMethod:
393
- Enabled: false
394
-
395
- # Offense count: 4
396
- # This cop supports safe autocorrection (--autocorrect).
397
- # Configuration parameters: AllowedVars, DefaultToNil.
398
- Style/FetchEnvVar:
399
- Exclude:
400
- - 'ext/RMagick/extconf.rb'
401
-
402
- # Offense count: 191
403
- # This cop supports safe autocorrection (--autocorrect).
404
- # Configuration parameters: MaxUnannotatedPlaceholdersAllowed, Mode, AllowedMethods, AllowedPatterns.
405
- # SupportedStyles: annotated, template, unannotated
406
- Style/FormatStringToken:
407
- EnforcedStyle: unannotated
408
-
409
- # Offense count: 43
410
- # Configuration parameters: AllowedVariables.
411
- Style/GlobalVars:
412
- Exclude:
413
- - 'ext/RMagick/extconf.rb'
414
-
415
- # Offense count: 12
416
- # This cop supports unsafe autocorrection (--autocorrect-all).
417
- # Configuration parameters: AllowedReceivers.
418
- # AllowedReceivers: Thread.current
419
- Style/HashEachMethods:
420
- Exclude:
421
- - 'doc/ex/preview.rb'
422
- - 'spec/rmagick/image/auto_orient_spec.rb'
423
- - 'spec/rmagick/image/channel_spec.rb'
424
- - 'spec/rmagick/image/colorspace_spec.rb'
425
- - 'spec/rmagick/image/info/colorspace_spec.rb'
426
- - 'spec/rmagick/image/info/compression_spec.rb'
427
- - 'spec/rmagick/image/info/dispose_spec.rb'
428
- - 'spec/rmagick/image/info/gravity_spec.rb'
429
- - 'spec/rmagick/image/info/image_type_spec.rb'
430
- - 'spec/rmagick/image/info/interlace_spec.rb'
431
- - 'spec/rmagick/image/info/orientation_spec.rb'
432
- - 'spec/rmagick/image/info/units_spec.rb'
433
-
434
- # Offense count: 1
435
- # This cop supports safe autocorrection (--autocorrect).
436
- Style/IfUnlessModifier:
437
- Exclude:
438
- - 'ext/RMagick/extconf.rb'
439
-
440
- # Offense count: 145
441
- Style/InlineComment:
442
- Enabled: false
443
-
444
- # Offense count: 8
445
- # This cop supports unsafe autocorrection (--autocorrect-all).
446
- # Configuration parameters: InverseMethods.
447
- Style/InvertibleUnlessCondition:
448
- Exclude:
449
- - 'doc/ex/get_type_metrics.rb'
450
- - 'examples/identify.rb'
451
- - 'lib/rmagick_internal.rb'
452
- - 'lib/rvg/embellishable.rb'
453
- - 'lib/rvg/stretchable.rb'
454
-
455
- # Offense count: 4516
456
- # This cop supports safe autocorrection (--autocorrect).
457
- # Configuration parameters: IgnoreMacros, AllowedMethods, AllowedPatterns, IncludedMacros, IncludedMacroPatterns, AllowParenthesesInMultilineCall, AllowParenthesesInChaining, AllowParenthesesInCamelCaseMethod, AllowParenthesesInStringInterpolation, EnforcedStyle.
458
- # SupportedStyles: require_parentheses, omit_parentheses
459
- Style/MethodCallWithArgsParentheses:
460
- Enabled: false
461
-
462
- # Offense count: 58
463
- # This cop supports safe autocorrection (--autocorrect).
464
- # Configuration parameters: EnforcedStyle.
465
- # SupportedStyles: if, case, both
466
- Style/MissingElse:
467
- Enabled: false
468
-
469
- # Offense count: 3
470
- Style/MissingRespondToMissing:
471
- Exclude:
472
- - 'lib/rmagick_internal.rb'
473
- - 'lib/rvg/misc.rb'
474
-
475
- # Offense count: 46
476
- # This cop supports unsafe autocorrection (--autocorrect-all).
477
- # Configuration parameters: EnforcedStyle.
478
- # SupportedStyles: literals, strict
479
- Style/MutableConstant:
480
- Exclude:
481
- - 'doc/ex/add_noise.rb'
482
- - 'doc/ex/arcs02.rb'
483
- - 'doc/ex/cubic01.rb'
484
- - 'doc/ex/cubic02.rb'
485
- - 'doc/ex/rvg_linecap.rb'
486
- - 'doc/ex/rvg_linejoin.rb'
487
- - 'doc/ex/rvg_opacity.rb'
488
- - 'doc/ex/smile.rb'
489
- - 'doc/ex/tref01.rb'
490
- - 'doc/ex/writing_mode01.rb'
491
- - 'doc/ex/writing_mode02.rb'
492
- - 'lib/rvg/misc.rb'
493
- - 'lib/rvg/stylable.rb'
494
- - 'spec/support/helpers.rb'
495
-
496
- # Offense count: 32
497
- # This cop supports unsafe autocorrection (--autocorrect-all).
498
- # Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
499
- # SupportedStyles: predicate, comparison
500
- Style/NumericPredicate:
501
- Exclude:
502
- - 'lib/rmagick_internal.rb'
503
- - 'lib/rvg/embellishable.rb'
504
- - 'spec/rmagick/image/destroy_spec.rb'
505
-
506
- # Offense count: 3
507
- # Configuration parameters: AllowedClasses.
508
- Style/OneClassPerFile:
509
- Exclude:
510
- - 'examples/histogram.rb'
511
- - 'lib/rvg/misc.rb'
512
-
513
- # Offense count: 4
514
- # Configuration parameters: AllowedMethods.
515
- # AllowedMethods: respond_to_missing?
516
- Style/OptionalBooleanParameter:
517
- Exclude:
518
- - 'doc/ex/sparse_color.rb'
519
- - 'lib/rmagick_internal.rb'
520
- - 'lib/rvg/pathdata.rb'
521
-
522
- # Offense count: 94
523
- # This cop supports safe autocorrection (--autocorrect).
524
- # Configuration parameters: .
525
- # SupportedStyles: same_as_string_literals, single_quotes, double_quotes
526
- Style/QuotedSymbols:
527
- EnforcedStyle: double_quotes
528
-
529
- # Offense count: 1
530
- # This cop supports safe autocorrection (--autocorrect).
531
- Style/RedundantBegin:
532
- Exclude:
533
- - 'lib/rvg/stylable.rb'
534
-
535
- # Offense count: 19
536
- # This cop supports unsafe autocorrection (--autocorrect-all).
537
- Style/RequireOrder:
538
- Exclude:
539
- - 'Rakefile'
540
- - 'doc/ex/polaroid.rb'
541
- - 'lib/rmagick_internal.rb'
542
- - 'lib/rvg/rvg.rb'
543
- - 'rmagick.gemspec'
544
- - 'spec/spec_helper.rb'
545
-
546
- # Offense count: 1
547
- # This cop supports unsafe autocorrection (--autocorrect-all).
548
- Style/StaticClass:
549
- Exclude:
550
- - 'spec/rmagick/draw/class_methods/_dummy_img__spec.rb'
551
-
552
- # Offense count: 186
553
- # This cop supports unsafe autocorrection (--autocorrect-all).
554
- # Configuration parameters: Mode.
555
- Style/StringConcatenation:
556
- Enabled: false
557
-
558
- # Offense count: 18
559
- # This cop supports unsafe autocorrection (--autocorrect-all).
560
- Style/StringHashKeys:
561
- Exclude:
562
- - 'Rakefile'
563
- - 'lib/rmagick_internal.rb'
564
- - 'lib/rvg/misc.rb'
565
- - 'spec/rmagick/image/properties_spec.rb'
566
-
567
- # Offense count: 309
568
- # This cop supports safe autocorrection (--autocorrect).
569
- # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
570
- # SupportedStyles: single_quotes, double_quotes
571
- Style/StringLiterals:
572
- Enabled: false
573
-
574
- # Offense count: 1
575
- # This cop supports unsafe autocorrection (--autocorrect-all).
576
- # Configuration parameters: EnforcedStyle.
577
- # SupportedStyles: forbid_for_all_comparison_operators, forbid_for_equality_operators_only, require_for_all_comparison_operators, require_for_equality_operators_only
578
- Style/YodaCondition:
579
- Exclude:
580
- - 'spec/rmagick/image/destroy_spec.rb'
581
-
582
- # Offense count: 113
583
- # This cop supports unsafe autocorrection (--autocorrect-all).
584
- # Configuration parameters: .
585
- # SupportedOperators: *, +, &, |, ^
586
- Style/YodaExpression:
587
- Enabled: false
588
-
589
- # Offense count: 129
590
- # This cop supports safe autocorrection (--autocorrect).
591
- # Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
592
- # URISchemes: http, https
593
- Layout/LineLength:
594
- Max: 217
@@ -1,61 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- set -euox pipefail
4
-
5
- if [ -v STYLE_CHECKS ]; then
6
- set +ux
7
- exit 0
8
- fi
9
-
10
- if [ ! -v IMAGEMAGICK_VERSION ]; then
11
- echo "you must specify an ImageMagick version."
12
- echo "example: 'IMAGEMAGICK_VERSION=6.8.9-10 bash ./before_install_linux.sh'"
13
- exit 1
14
- fi
15
-
16
- sudo apt-get update
17
-
18
- # remove all existing imagemagick related packages
19
- sudo apt-get autoremove -y imagemagick* libmagick* --purge
20
-
21
- # install build tools, ImageMagick delegates
22
- sudo apt-get install -y build-essential libx11-dev libxext-dev zlib1g-dev \
23
- liblcms2-dev libpng-dev libjpeg-dev libfreetype6-dev \
24
- libtiff5-dev libwebp-dev liblqr-1-0-dev libglib2.0-dev gsfonts ghostscript
25
-
26
- project_dir=$(pwd)
27
- build_dir="${project_dir}/build-ImageMagick/ImageMagick-${IMAGEMAGICK_VERSION}"
28
- if [ -v CONFIGURE_OPTIONS ]; then
29
- build_dir="${build_dir}-${CONFIGURE_OPTIONS}"
30
- fi
31
-
32
- build_imagemagick() {
33
- mkdir -p build-ImageMagick
34
-
35
- version=(${IMAGEMAGICK_VERSION//./ })
36
- wget "https://imagemagick.org/archive/releases/ImageMagick-${IMAGEMAGICK_VERSION}.tar.xz"
37
- tar -xf "ImageMagick-${IMAGEMAGICK_VERSION}.tar.xz"
38
- rm "ImageMagick-${IMAGEMAGICK_VERSION}.tar.xz"
39
- mv "ImageMagick-${IMAGEMAGICK_VERSION}" "${build_dir}"
40
-
41
- options="--with-magick-plus-plus=no --disable-docs"
42
- if [ -v CONFIGURE_OPTIONS ]; then
43
- options="${CONFIGURE_OPTIONS} ${options}"
44
- fi
45
-
46
- cd "${build_dir}"
47
- ./configure --prefix=/usr "${options}"
48
- make -j
49
- }
50
-
51
- if [ ! -d "${build_dir}" ]; then
52
- build_imagemagick
53
- fi
54
-
55
- cd "${build_dir}"
56
- sudo make install -j
57
- cd "${project_dir}"
58
-
59
- sudo ldconfig
60
-
61
- set +ux