rmagick 6.2.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 +27 -0
  3. data/Gemfile +3 -4
  4. data/README.md +49 -70
  5. data/Rakefile +1 -8
  6. data/ext/RMagick/extconf.rb +10 -8
  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/ISSUE_TEMPLATE.md +0 -17
  48. data/.github/workflows/ci.yml +0 -264
  49. data/.gitignore +0 -29
  50. data/.rspec +0 -2
  51. data/.rubocop.yml +0 -68
  52. data/.rubocop_todo.yml +0 -596
  53. data/before_install_linux.sh +0 -61
  54. data/before_install_osx.sh +0 -60
data/.rubocop_todo.yml DELETED
@@ -1,596 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2026-01-31 06:59:04 UTC using RuboCop version 1.84.0.
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: 5527
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: 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 unsafe autocorrection (--autocorrect-all).
356
- # Configuration parameters: AllowedMethods, AllowedPatterns.
357
- # AllowedMethods: ==, equal?, eql?
358
- Style/ClassEqualityComparison:
359
- Exclude:
360
- - 'spec/rmagick/image_list/all_predicate_spec.rb'
361
- - 'spec/rmagick/image_list/any_predicate_spec.rb'
362
-
363
- # Offense count: 2
364
- # This cop supports safe autocorrection (--autocorrect).
365
- # Configuration parameters: EnforcedStyle.
366
- # SupportedStyles: def_self, self_class
367
- Style/ClassMethodsDefinitions:
368
- Exclude:
369
- - 'lib/rmagick_internal.rb'
370
- - 'lib/rvg/units.rb'
371
-
372
- # Offense count: 88
373
- # This cop supports unsafe autocorrection (--autocorrect-all).
374
- Style/CommentedKeyword:
375
- Enabled: false
376
-
377
- # Offense count: 124
378
- # Configuration parameters: IgnoreModules.
379
- Style/ConstantVisibility:
380
- Exclude:
381
- - 'ext/RMagick/extconf.rb'
382
- - 'lib/rmagick/version.rb'
383
- - 'lib/rmagick_internal.rb'
384
- - 'lib/rvg/misc.rb'
385
- - 'lib/rvg/rvg.rb'
386
- - 'lib/rvg/stylable.rb'
387
- - 'spec/support/helpers.rb'
388
-
389
- # Offense count: 3
390
- Style/DocumentDynamicEvalDefinition:
391
- Exclude:
392
- - 'lib/rmagick_internal.rb'
393
-
394
- # Offense count: 37
395
- # Configuration parameters: AllowedConstants.
396
- Style/Documentation:
397
- Enabled: false
398
-
399
- # Offense count: 164
400
- # Configuration parameters: AllowedMethods, RequireForNonPublicMethods.
401
- Style/DocumentationMethod:
402
- Enabled: false
403
-
404
- # Offense count: 4
405
- # This cop supports safe autocorrection (--autocorrect).
406
- # Configuration parameters: AllowedVars, DefaultToNil.
407
- Style/FetchEnvVar:
408
- Exclude:
409
- - 'ext/RMagick/extconf.rb'
410
-
411
- # Offense count: 191
412
- # This cop supports safe autocorrection (--autocorrect).
413
- # Configuration parameters: MaxUnannotatedPlaceholdersAllowed, Mode, AllowedMethods, AllowedPatterns.
414
- # SupportedStyles: annotated, template, unannotated
415
- Style/FormatStringToken:
416
- EnforcedStyle: unannotated
417
-
418
- # Offense count: 41
419
- # Configuration parameters: AllowedVariables.
420
- Style/GlobalVars:
421
- Exclude:
422
- - 'ext/RMagick/extconf.rb'
423
-
424
- # Offense count: 12
425
- # This cop supports unsafe autocorrection (--autocorrect-all).
426
- # Configuration parameters: AllowedReceivers.
427
- # AllowedReceivers: Thread.current
428
- Style/HashEachMethods:
429
- Exclude:
430
- - 'doc/ex/preview.rb'
431
- - 'spec/rmagick/image/auto_orient_spec.rb'
432
- - 'spec/rmagick/image/channel_spec.rb'
433
- - 'spec/rmagick/image/colorspace_spec.rb'
434
- - 'spec/rmagick/image/info/colorspace_spec.rb'
435
- - 'spec/rmagick/image/info/compression_spec.rb'
436
- - 'spec/rmagick/image/info/dispose_spec.rb'
437
- - 'spec/rmagick/image/info/gravity_spec.rb'
438
- - 'spec/rmagick/image/info/image_type_spec.rb'
439
- - 'spec/rmagick/image/info/interlace_spec.rb'
440
- - 'spec/rmagick/image/info/orientation_spec.rb'
441
- - 'spec/rmagick/image/info/units_spec.rb'
442
-
443
- # Offense count: 2
444
- # This cop supports safe autocorrection (--autocorrect).
445
- Style/IfUnlessModifier:
446
- Exclude:
447
- - 'ext/RMagick/extconf.rb'
448
-
449
- # Offense count: 145
450
- Style/InlineComment:
451
- Enabled: false
452
-
453
- # Offense count: 8
454
- # This cop supports unsafe autocorrection (--autocorrect-all).
455
- # Configuration parameters: InverseMethods.
456
- Style/InvertibleUnlessCondition:
457
- Exclude:
458
- - 'doc/ex/get_type_metrics.rb'
459
- - 'examples/identify.rb'
460
- - 'lib/rmagick_internal.rb'
461
- - 'lib/rvg/embellishable.rb'
462
- - 'lib/rvg/stretchable.rb'
463
-
464
- # Offense count: 4515
465
- # This cop supports safe autocorrection (--autocorrect).
466
- # Configuration parameters: IgnoreMacros, AllowedMethods, AllowedPatterns, IncludedMacros, IncludedMacroPatterns, AllowParenthesesInMultilineCall, AllowParenthesesInChaining, AllowParenthesesInCamelCaseMethod, AllowParenthesesInStringInterpolation, EnforcedStyle.
467
- # SupportedStyles: require_parentheses, omit_parentheses
468
- Style/MethodCallWithArgsParentheses:
469
- Enabled: false
470
-
471
- # Offense count: 58
472
- # This cop supports safe autocorrection (--autocorrect).
473
- # Configuration parameters: EnforcedStyle.
474
- # SupportedStyles: if, case, both
475
- Style/MissingElse:
476
- Enabled: false
477
-
478
- # Offense count: 3
479
- Style/MissingRespondToMissing:
480
- Exclude:
481
- - 'lib/rmagick_internal.rb'
482
- - 'lib/rvg/misc.rb'
483
-
484
- # Offense count: 46
485
- # This cop supports unsafe autocorrection (--autocorrect-all).
486
- # Configuration parameters: EnforcedStyle.
487
- # SupportedStyles: literals, strict
488
- Style/MutableConstant:
489
- Exclude:
490
- - 'doc/ex/add_noise.rb'
491
- - 'doc/ex/arcs02.rb'
492
- - 'doc/ex/cubic01.rb'
493
- - 'doc/ex/cubic02.rb'
494
- - 'doc/ex/rvg_linecap.rb'
495
- - 'doc/ex/rvg_linejoin.rb'
496
- - 'doc/ex/rvg_opacity.rb'
497
- - 'doc/ex/smile.rb'
498
- - 'doc/ex/tref01.rb'
499
- - 'doc/ex/writing_mode01.rb'
500
- - 'doc/ex/writing_mode02.rb'
501
- - 'lib/rvg/misc.rb'
502
- - 'lib/rvg/stylable.rb'
503
- - 'spec/support/helpers.rb'
504
-
505
- # Offense count: 32
506
- # This cop supports unsafe autocorrection (--autocorrect-all).
507
- # Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
508
- # SupportedStyles: predicate, comparison
509
- Style/NumericPredicate:
510
- Exclude:
511
- - 'lib/rmagick_internal.rb'
512
- - 'lib/rvg/embellishable.rb'
513
- - 'spec/rmagick/image/destroy_spec.rb'
514
-
515
- # Offense count: 4
516
- # Configuration parameters: AllowedMethods.
517
- # AllowedMethods: respond_to_missing?
518
- Style/OptionalBooleanParameter:
519
- Exclude:
520
- - 'doc/ex/sparse_color.rb'
521
- - 'lib/rmagick_internal.rb'
522
- - 'lib/rvg/pathdata.rb'
523
-
524
- # Offense count: 94
525
- # This cop supports safe autocorrection (--autocorrect).
526
- # Configuration parameters: .
527
- # SupportedStyles: same_as_string_literals, single_quotes, double_quotes
528
- Style/QuotedSymbols:
529
- EnforcedStyle: double_quotes
530
-
531
- # Offense count: 1
532
- # This cop supports safe autocorrection (--autocorrect).
533
- Style/RedundantBegin:
534
- Exclude:
535
- - 'lib/rvg/stylable.rb'
536
-
537
- # Offense count: 19
538
- # This cop supports unsafe autocorrection (--autocorrect-all).
539
- Style/RequireOrder:
540
- Exclude:
541
- - 'Rakefile'
542
- - 'doc/ex/polaroid.rb'
543
- - 'lib/rmagick_internal.rb'
544
- - 'lib/rvg/rvg.rb'
545
- - 'rmagick.gemspec'
546
- - 'spec/spec_helper.rb'
547
-
548
- # Offense count: 1
549
- # This cop supports unsafe autocorrection (--autocorrect-all).
550
- Style/StaticClass:
551
- Exclude:
552
- - 'spec/rmagick/draw/class_methods/_dummy_img__spec.rb'
553
-
554
- # Offense count: 186
555
- # This cop supports unsafe autocorrection (--autocorrect-all).
556
- # Configuration parameters: Mode.
557
- Style/StringConcatenation:
558
- Enabled: false
559
-
560
- # Offense count: 18
561
- # This cop supports unsafe autocorrection (--autocorrect-all).
562
- Style/StringHashKeys:
563
- Exclude:
564
- - 'Rakefile'
565
- - 'lib/rmagick_internal.rb'
566
- - 'lib/rvg/misc.rb'
567
- - 'spec/rmagick/image/properties_spec.rb'
568
-
569
- # Offense count: 309
570
- # This cop supports safe autocorrection (--autocorrect).
571
- # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
572
- # SupportedStyles: single_quotes, double_quotes
573
- Style/StringLiterals:
574
- Enabled: false
575
-
576
- # Offense count: 1
577
- # This cop supports unsafe autocorrection (--autocorrect-all).
578
- # Configuration parameters: EnforcedStyle.
579
- # SupportedStyles: forbid_for_all_comparison_operators, forbid_for_equality_operators_only, require_for_all_comparison_operators, require_for_equality_operators_only
580
- Style/YodaCondition:
581
- Exclude:
582
- - 'spec/rmagick/image/destroy_spec.rb'
583
-
584
- # Offense count: 113
585
- # This cop supports unsafe autocorrection (--autocorrect-all).
586
- # Configuration parameters: .
587
- # SupportedOperators: *, +, &, |, ^
588
- Style/YodaExpression:
589
- Enabled: false
590
-
591
- # Offense count: 128
592
- # This cop supports safe autocorrection (--autocorrect).
593
- # Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
594
- # URISchemes: http, https
595
- Layout/LineLength:
596
- 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