rmagick 2.13.4 → 2.14.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rmagick might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.hound.yml +2 -0
- data/.rubocop.yml +284 -0
- data/.simplecov +27 -0
- data/.travis.yml +24 -12
- data/ChangeLog +12 -0
- data/Gemfile +3 -0
- data/README.textile +63 -1
- data/Rakefile +53 -44
- data/before_install_linux.sh +15 -6
- data/deprecated/RMagick.rb +6 -0
- data/doc/comtasks.html +1 -1
- data/doc/ex/InitialCoords.rb +16 -17
- data/doc/ex/NewCoordSys.rb +21 -23
- data/doc/ex/OrigCoordSys.rb +8 -10
- data/doc/ex/PreserveAspectRatio.rb +182 -183
- data/doc/ex/RotateScale.rb +27 -28
- data/doc/ex/Skew.rb +27 -27
- data/doc/ex/Use01.rb +7 -8
- data/doc/ex/Use02.rb +11 -12
- data/doc/ex/Use03.rb +7 -7
- data/doc/ex/ViewBox.rb +16 -18
- data/doc/ex/adaptive_threshold.rb +4 -5
- data/doc/ex/add_noise.rb +4 -5
- data/doc/ex/affine.rb +4 -4
- data/doc/ex/affine_transform.rb +4 -4
- data/doc/ex/arc.rb +10 -10
- data/doc/ex/arcpath.rb +7 -8
- data/doc/ex/arcs01.rb +10 -10
- data/doc/ex/arcs02.rb +36 -38
- data/doc/ex/average.rb +5 -5
- data/doc/ex/axes.rb +4 -4
- data/doc/ex/baseline_shift01.rb +11 -12
- data/doc/ex/bilevel_channel.rb +2 -3
- data/doc/ex/blur_image.rb +2 -2
- data/doc/ex/border.rb +2 -2
- data/doc/ex/bounding_box.rb +9 -11
- data/doc/ex/cbezier1.rb +3 -4
- data/doc/ex/cbezier2.rb +3 -4
- data/doc/ex/cbezier3.rb +3 -4
- data/doc/ex/cbezier4.rb +3 -4
- data/doc/ex/cbezier5.rb +2 -3
- data/doc/ex/cbezier6.rb +3 -3
- data/doc/ex/channel.rb +10 -11
- data/doc/ex/charcoal.rb +2 -2
- data/doc/ex/chop.rb +2 -2
- data/doc/ex/circle.rb +3 -3
- data/doc/ex/circle01.rb +6 -7
- data/doc/ex/clip_path.rb +12 -12
- data/doc/ex/coalesce.rb +32 -35
- data/doc/ex/color_fill_to_border.rb +6 -6
- data/doc/ex/color_floodfill.rb +2 -2
- data/doc/ex/color_histogram.rb +17 -18
- data/doc/ex/color_reset.rb +2 -2
- data/doc/ex/colorize.rb +2 -2
- data/doc/ex/colors.rb +30 -30
- data/doc/ex/compose_mask.rb +8 -9
- data/doc/ex/composite.rb +14 -16
- data/doc/ex/composite_layers.rb +15 -15
- data/doc/ex/composite_tiled.rb +5 -7
- data/doc/ex/contrast.rb +12 -12
- data/doc/ex/crop.rb +3 -3
- data/doc/ex/crop_with_gravity.rb +13 -17
- data/doc/ex/cubic01.rb +18 -20
- data/doc/ex/cubic02.rb +64 -67
- data/doc/ex/cycle_colormap.rb +2 -2
- data/doc/ex/dissolve.rb +2 -3
- data/doc/ex/drawcomp.rb +34 -34
- data/doc/ex/drop_shadow.rb +8 -8
- data/doc/ex/edge.rb +2 -2
- data/doc/ex/ellipse.rb +4 -4
- data/doc/ex/ellipse01.rb +10 -11
- data/doc/ex/emboss.rb +2 -2
- data/doc/ex/enhance.rb +2 -2
- data/doc/ex/equalize.rb +2 -2
- data/doc/ex/evenodd.rb +31 -32
- data/doc/ex/fill_pattern.rb +12 -15
- data/doc/ex/flatten_images.rb +13 -13
- data/doc/ex/flip.rb +2 -2
- data/doc/ex/flop.rb +2 -2
- data/doc/ex/font_styles.rb +21 -23
- data/doc/ex/fonts.rb +14 -14
- data/doc/ex/frame.rb +3 -3
- data/doc/ex/gaussian_blur.rb +2 -2
- data/doc/ex/get_multiline_type_metrics.rb +6 -7
- data/doc/ex/get_pixels.rb +13 -14
- data/doc/ex/get_type_metrics.rb +26 -31
- data/doc/ex/gradientfill.rb +12 -12
- data/doc/ex/grav.rb +4 -5
- data/doc/ex/gravity.rb +59 -59
- data/doc/ex/group.rb +16 -16
- data/doc/ex/hatchfill.rb +10 -10
- data/doc/ex/image.rb +29 -31
- data/doc/ex/implode.rb +17 -17
- data/doc/ex/level.rb +2 -2
- data/doc/ex/level_colors.rb +4 -4
- data/doc/ex/line.rb +4 -5
- data/doc/ex/line01.rb +11 -13
- data/doc/ex/mask.rb +7 -8
- data/doc/ex/matte_fill_to_border.rb +2 -3
- data/doc/ex/matte_floodfill.rb +2 -3
- data/doc/ex/matte_replace.rb +2 -3
- data/doc/ex/median_filter.rb +2 -2
- data/doc/ex/modulate.rb +2 -2
- data/doc/ex/mono.rb +4 -4
- data/doc/ex/morph.rb +7 -8
- data/doc/ex/mosaic.rb +15 -15
- data/doc/ex/motion_blur.rb +2 -2
- data/doc/ex/negate.rb +2 -2
- data/doc/ex/negate_channel.rb +2 -2
- data/doc/ex/nested_rvg.rb +11 -11
- data/doc/ex/nonzero.rb +31 -32
- data/doc/ex/normalize.rb +2 -2
- data/doc/ex/oil_paint.rb +2 -2
- data/doc/ex/opacity.rb +3 -3
- data/doc/ex/ordered_dither.rb +2 -2
- data/doc/ex/path.rb +4 -5
- data/doc/ex/pattern1.rb +10 -10
- data/doc/ex/pattern2.rb +7 -7
- data/doc/ex/polaroid.rb +13 -14
- data/doc/ex/polygon.rb +6 -7
- data/doc/ex/polygon01.rb +10 -12
- data/doc/ex/polyline.rb +4 -5
- data/doc/ex/polyline01.rb +11 -13
- data/doc/ex/posterize.rb +2 -2
- data/doc/ex/preview.rb +3 -4
- data/doc/ex/qbezierpath.rb +5 -5
- data/doc/ex/quad01.rb +23 -25
- data/doc/ex/quantize-m.rb +5 -5
- data/doc/ex/radial_blur.rb +2 -2
- data/doc/ex/raise.rb +2 -2
- data/doc/ex/random_threshold_channel.rb +2 -2
- data/doc/ex/rect01.rb +6 -7
- data/doc/ex/rect02.rb +9 -11
- data/doc/ex/rectangle.rb +3 -4
- data/doc/ex/reduce_noise.rb +2 -2
- data/doc/ex/remap.rb +7 -8
- data/doc/ex/remap_images.rb +9 -11
- data/doc/ex/resize_to_fill.rb +3 -5
- data/doc/ex/resize_to_fit.rb +3 -5
- data/doc/ex/roll.rb +2 -2
- data/doc/ex/rotate.rb +6 -7
- data/doc/ex/rotate_f.rb +2 -2
- data/doc/ex/roundrect.rb +4 -5
- data/doc/ex/rubyname.rb +11 -11
- data/doc/ex/rvg_clippath.rb +5 -7
- data/doc/ex/rvg_linecap.rb +25 -26
- data/doc/ex/rvg_linejoin.rb +25 -26
- data/doc/ex/rvg_opacity.rb +10 -11
- data/doc/ex/rvg_pattern.rb +15 -15
- data/doc/ex/rvg_stroke_dasharray.rb +6 -7
- data/doc/ex/segment.rb +2 -2
- data/doc/ex/sepiatone.rb +2 -3
- data/doc/ex/shade.rb +2 -2
- data/doc/ex/shadow.rb +2 -3
- data/doc/ex/shave.rb +2 -2
- data/doc/ex/shear.rb +3 -3
- data/doc/ex/sketch.rb +2 -3
- data/doc/ex/skewx.rb +4 -5
- data/doc/ex/skewy.rb +3 -3
- data/doc/ex/smile.rb +113 -113
- data/doc/ex/solarize.rb +2 -2
- data/doc/ex/sparse_color.rb +29 -30
- data/doc/ex/splice.rb +2 -3
- data/doc/ex/spread.rb +2 -2
- data/doc/ex/stegano.rb +34 -34
- data/doc/ex/stroke_dasharray.rb +4 -5
- data/doc/ex/stroke_fill.rb +4 -5
- data/doc/ex/stroke_linecap.rb +3 -3
- data/doc/ex/stroke_linejoin.rb +3 -3
- data/doc/ex/stroke_width.rb +3 -3
- data/doc/ex/swirl.rb +2 -2
- data/doc/ex/text.rb +4 -4
- data/doc/ex/text01.rb +7 -8
- data/doc/ex/text_align.rb +2 -2
- data/doc/ex/text_antialias.rb +9 -10
- data/doc/ex/text_styles.rb +11 -13
- data/doc/ex/text_undercolor.rb +2 -2
- data/doc/ex/texture_fill_to_border.rb +6 -6
- data/doc/ex/texture_floodfill.rb +2 -2
- data/doc/ex/texturefill.rb +10 -11
- data/doc/ex/threshold.rb +2 -2
- data/doc/ex/to_blob.rb +4 -5
- data/doc/ex/translate.rb +6 -6
- data/doc/ex/transparent.rb +5 -5
- data/doc/ex/transpose.rb +2 -2
- data/doc/ex/transverse.rb +2 -2
- data/doc/ex/tref01.rb +11 -12
- data/doc/ex/triangle01.rb +5 -6
- data/doc/ex/trim.rb +1 -2
- data/doc/ex/tspan01.rb +8 -9
- data/doc/ex/tspan02.rb +9 -11
- data/doc/ex/tspan03.rb +9 -11
- data/doc/ex/unsharp_mask.rb +2 -2
- data/doc/ex/viewex.rb +19 -21
- data/doc/ex/vignette.rb +2 -2
- data/doc/ex/watermark.rb +15 -16
- data/doc/ex/wave.rb +2 -2
- data/doc/ex/wet_floor.rb +17 -18
- data/doc/ex/writing_mode01.rb +8 -9
- data/doc/ex/writing_mode02.rb +8 -8
- data/doc/ilist.html +1 -1
- data/doc/usage.html +8 -8
- data/examples/constitute.rb +6 -6
- data/examples/crop_with_gravity.rb +13 -17
- data/examples/demo.rb +305 -305
- data/examples/describe.rb +27 -28
- data/examples/find_similar_region.rb +16 -16
- data/examples/histogram.rb +228 -232
- data/examples/identify.rb +165 -167
- data/examples/image_opacity.rb +4 -4
- data/examples/import_export.rb +10 -10
- data/examples/pattern_fill.rb +9 -9
- data/examples/rotating_text.rb +13 -14
- data/examples/spinner.rb +18 -19
- data/examples/thumbnail.rb +13 -14
- data/examples/vignette.rb +8 -9
- data/ext/RMagick/extconf.rb +417 -370
- data/ext/RMagick/rmdraw.c +14 -7
- data/ext/RMagick/rmenum.c +5 -3
- data/ext/RMagick/rmmain.c +8 -3
- data/ext/RMagick/rmutil.c +2 -2
- data/lib/rmagick/version.rb +3 -3
- data/lib/rmagick_internal.rb +1782 -1801
- data/lib/rvg/clippath.rb +2 -6
- data/lib/rvg/container.rb +4 -12
- data/lib/rvg/deep_equal.rb +5 -7
- data/lib/rvg/describable.rb +0 -5
- data/lib/rvg/embellishable.rb +24 -54
- data/lib/rvg/misc.rb +55 -87
- data/lib/rvg/paint.rb +0 -4
- data/lib/rvg/pathdata.rb +12 -16
- data/lib/rvg/rvg.rb +21 -24
- data/lib/rvg/stretchable.rb +14 -18
- data/lib/rvg/stylable.rb +7 -14
- data/lib/rvg/text.rb +9 -23
- data/lib/rvg/transformable.rb +2 -9
- data/lib/rvg/units.rb +1 -4
- data/rmagick.gemspec +23 -14
- data/test/Draw.rb +22 -24
- data/test/Image1.rb +78 -82
- data/test/Image2.rb +143 -151
- data/test/Image3.rb +47 -50
- data/test/ImageList1.rb +7 -9
- data/test/ImageList2.rb +30 -34
- data/test/Image_attributes.rb +23 -26
- data/test/Import_Export.rb +25 -30
- data/test/Info.rb +66 -70
- data/test/Magick.rb +45 -50
- data/test/Pixel.rb +10 -13
- data/test/Preview.rb +6 -11
- data/test/test_all_basic.rb +15 -10
- data/test/tmpnam_test.rb +3 -3
- metadata +24 -6
- data/lib/RMagick.rb +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f1d40197e527e46372e4ad8c265c3f2e929eddd
|
4
|
+
data.tar.gz: d559dc36017d771ac142cc90029037402c355e4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 577e9dcde875183b07218696b2302e73849e292b632c5464294320583e2c209971e0958cf96faf14a3c45e11c76b2af90eab1b5c0b743fdeefabd87296d9ae74
|
7
|
+
data.tar.gz: 63ccbc7117ba02dbd5229f3ebbb52bf1d135aea0a73ca1bbcd5d1df80088798926e6cb9eb29d29552972e2cf283d33d79a7dbf8af4135f6965345448d2ef994a
|
data/.hound.yml
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,284 @@
|
|
1
|
+
# This configuration was generated by `rubocop --auto-gen-config`
|
2
|
+
# on 2015-02-08 00:25:41 +0300 using RuboCop version 0.29.0.
|
3
|
+
# The point is for the user to remove these configuration records
|
4
|
+
# one by one as the offenses are removed from the code base.
|
5
|
+
# Note that changes in the inspected code, or installation of new
|
6
|
+
# versions of RuboCop, may require this file to be generated again.
|
7
|
+
|
8
|
+
# Offense count: 1
|
9
|
+
Lint/HandleExceptions:
|
10
|
+
Enabled: false
|
11
|
+
|
12
|
+
# Offense count: 1
|
13
|
+
Lint/RescueException:
|
14
|
+
Enabled: false
|
15
|
+
|
16
|
+
# Offense count: 1
|
17
|
+
Lint/ShadowingOuterLocalVariable:
|
18
|
+
Enabled: false
|
19
|
+
|
20
|
+
# Offense count: 1
|
21
|
+
Lint/UnderscorePrefixedVariableName:
|
22
|
+
Enabled: false
|
23
|
+
|
24
|
+
# Offense count: 9
|
25
|
+
# Cop supports --auto-correct.
|
26
|
+
Lint/UnusedBlockArgument:
|
27
|
+
Enabled: false
|
28
|
+
|
29
|
+
# Offense count: 17
|
30
|
+
# Cop supports --auto-correct.
|
31
|
+
Lint/UnusedMethodArgument:
|
32
|
+
Enabled: false
|
33
|
+
|
34
|
+
# Offense count: 22
|
35
|
+
Lint/UselessAssignment:
|
36
|
+
Enabled: false
|
37
|
+
|
38
|
+
# Offense count: 187
|
39
|
+
Metrics/AbcSize:
|
40
|
+
Max: 567
|
41
|
+
|
42
|
+
# Offense count: 1
|
43
|
+
Metrics/BlockNesting:
|
44
|
+
Max: 4
|
45
|
+
|
46
|
+
# Offense count: 17
|
47
|
+
# Configuration parameters: CountComments.
|
48
|
+
Metrics/ClassLength:
|
49
|
+
Max: 1124
|
50
|
+
|
51
|
+
# Offense count: 22
|
52
|
+
Metrics/CyclomaticComplexity:
|
53
|
+
Max: 42
|
54
|
+
|
55
|
+
# Offense count: 886
|
56
|
+
# Configuration parameters: AllowURI, URISchemes.
|
57
|
+
Metrics/LineLength:
|
58
|
+
Max: 278
|
59
|
+
|
60
|
+
# Offense count: 180
|
61
|
+
# Configuration parameters: CountComments.
|
62
|
+
Metrics/MethodLength:
|
63
|
+
Max: 157
|
64
|
+
|
65
|
+
# Offense count: 13
|
66
|
+
# Configuration parameters: CountKeywordArgs.
|
67
|
+
Metrics/ParameterLists:
|
68
|
+
Max: 8
|
69
|
+
|
70
|
+
# Offense count: 14
|
71
|
+
Metrics/PerceivedComplexity:
|
72
|
+
Max: 41
|
73
|
+
|
74
|
+
# Offense count: 4
|
75
|
+
Style/AccessorMethodName:
|
76
|
+
Enabled: false
|
77
|
+
|
78
|
+
# Offense count: 3
|
79
|
+
# Cop supports --auto-correct.
|
80
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
81
|
+
Style/BarePercentLiterals:
|
82
|
+
Enabled: false
|
83
|
+
|
84
|
+
# Offense count: 7
|
85
|
+
Style/CaseEquality:
|
86
|
+
Enabled: false
|
87
|
+
|
88
|
+
# Offense count: 14
|
89
|
+
Style/ClassAndModuleCamelCase:
|
90
|
+
Enabled: false
|
91
|
+
|
92
|
+
# Offense count: 6
|
93
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
94
|
+
Style/ClassAndModuleChildren:
|
95
|
+
Enabled: false
|
96
|
+
|
97
|
+
# Offense count: 126
|
98
|
+
Style/ConstantName:
|
99
|
+
Enabled: false
|
100
|
+
|
101
|
+
# Offense count: 12
|
102
|
+
# Cop supports --auto-correct.
|
103
|
+
Style/DeprecatedHashMethods:
|
104
|
+
Enabled: false
|
105
|
+
|
106
|
+
# Offense count: 63
|
107
|
+
Style/Documentation:
|
108
|
+
Enabled: false
|
109
|
+
|
110
|
+
Style/DotPosition:
|
111
|
+
EnforcedStyle: leading
|
112
|
+
|
113
|
+
# Offense count: 24
|
114
|
+
# Configuration parameters: Exclude.
|
115
|
+
Style/FileName:
|
116
|
+
Enabled: false
|
117
|
+
|
118
|
+
# Offense count: 68
|
119
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
120
|
+
Style/FormatString:
|
121
|
+
Enabled: false
|
122
|
+
|
123
|
+
# Offense count: 43
|
124
|
+
# Configuration parameters: AllowedVariables.
|
125
|
+
Style/GlobalVars:
|
126
|
+
Enabled: false
|
127
|
+
|
128
|
+
# Offense count: 7
|
129
|
+
# Configuration parameters: MinBodyLength.
|
130
|
+
Style/GuardClause:
|
131
|
+
Enabled: false
|
132
|
+
|
133
|
+
# Cop supports --auto-correct.
|
134
|
+
Style/HashSyntax:
|
135
|
+
EnforcedStyle: hash_rockets
|
136
|
+
|
137
|
+
# Offense count: 28
|
138
|
+
# Configuration parameters: MaxLineLength.
|
139
|
+
Style/IfUnlessModifier:
|
140
|
+
Enabled: false
|
141
|
+
|
142
|
+
# Offense count: 1
|
143
|
+
# Cop supports --auto-correct.
|
144
|
+
Style/Lambda:
|
145
|
+
Enabled: false
|
146
|
+
|
147
|
+
# Offense count: 48
|
148
|
+
# Cop supports --auto-correct.
|
149
|
+
Style/LeadingCommentSpace:
|
150
|
+
Enabled: false
|
151
|
+
|
152
|
+
# Offense count: 4
|
153
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
154
|
+
Style/MethodName:
|
155
|
+
Enabled: false
|
156
|
+
|
157
|
+
Style/MultilineOperationIndentation:
|
158
|
+
EnforcedStyle: indented
|
159
|
+
|
160
|
+
# Offense count: 1
|
161
|
+
Style/MultilineTernaryOperator:
|
162
|
+
Enabled: false
|
163
|
+
|
164
|
+
# Offense count: 3
|
165
|
+
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
|
166
|
+
Style/Next:
|
167
|
+
Enabled: false
|
168
|
+
|
169
|
+
# Offense count: 21
|
170
|
+
# Cop supports --auto-correct.
|
171
|
+
Style/NumericLiterals:
|
172
|
+
MinDigits: 18
|
173
|
+
|
174
|
+
# Offense count: 1
|
175
|
+
Style/OpMethod:
|
176
|
+
Enabled: false
|
177
|
+
|
178
|
+
# Offense count: 19
|
179
|
+
# Cop supports --auto-correct.
|
180
|
+
# Configuration parameters: PreferredDelimiters.
|
181
|
+
Style/PercentLiteralDelimiters:
|
182
|
+
Enabled: false
|
183
|
+
|
184
|
+
# Offense count: 10
|
185
|
+
# Cop supports --auto-correct.
|
186
|
+
Style/PerlBackrefs:
|
187
|
+
Enabled: false
|
188
|
+
|
189
|
+
# Offense count: 4
|
190
|
+
# Configuration parameters: NamePrefix, NamePrefixBlacklist.
|
191
|
+
Style/PredicateName:
|
192
|
+
Enabled: false
|
193
|
+
|
194
|
+
# Offense count: 3
|
195
|
+
# Configuration parameters: MaxSlashes.
|
196
|
+
Style/RegexpLiteral:
|
197
|
+
Enabled: false
|
198
|
+
|
199
|
+
# Offense count: 2
|
200
|
+
Style/RescueModifier:
|
201
|
+
Enabled: false
|
202
|
+
|
203
|
+
# Offense count: 2
|
204
|
+
# Configuration parameters: Methods.
|
205
|
+
Style/SingleLineBlockParams:
|
206
|
+
Enabled: false
|
207
|
+
|
208
|
+
# Offense count: 7
|
209
|
+
# Cop supports --auto-correct.
|
210
|
+
Style/SingleSpaceBeforeFirstArg:
|
211
|
+
Enabled: false
|
212
|
+
|
213
|
+
# Offense count: 1112
|
214
|
+
# Cop supports --auto-correct.
|
215
|
+
Style/SpaceAfterComma:
|
216
|
+
Enabled: false
|
217
|
+
|
218
|
+
# Offense count: 91
|
219
|
+
# Cop supports --auto-correct.
|
220
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
221
|
+
Style/SpaceAroundEqualsInParameterDefault:
|
222
|
+
Enabled: false
|
223
|
+
|
224
|
+
# Offense count: 1060
|
225
|
+
# Cop supports --auto-correct.
|
226
|
+
Style/SpaceAroundOperators:
|
227
|
+
Enabled: false
|
228
|
+
|
229
|
+
# Offense count: 2
|
230
|
+
# Cop supports --auto-correct.
|
231
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
232
|
+
Style/SpaceBeforeBlockBraces:
|
233
|
+
Enabled: false
|
234
|
+
|
235
|
+
# Offense count: 209
|
236
|
+
# Cop supports --auto-correct.
|
237
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
238
|
+
Style/SpaceInsideBlockBraces:
|
239
|
+
Enabled: false
|
240
|
+
|
241
|
+
# Offense count: 6
|
242
|
+
# Cop supports --auto-correct.
|
243
|
+
Style/SpaceInsideBrackets:
|
244
|
+
Enabled: false
|
245
|
+
|
246
|
+
# Offense count: 68
|
247
|
+
# Cop supports --auto-correct.
|
248
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
|
249
|
+
Style/SpaceInsideHashLiteralBraces:
|
250
|
+
Enabled: false
|
251
|
+
|
252
|
+
# Offense count: 35
|
253
|
+
# Cop supports --auto-correct.
|
254
|
+
# Many method calls in consecutive lines in RMagick have parameters aligned vertically.
|
255
|
+
# Therefore this cop should better be disabled.
|
256
|
+
# But you can delete this rule temporarily, run `rubocop -a`, and commit good fixes only.
|
257
|
+
Style/SpaceInsideParens:
|
258
|
+
Enabled: false
|
259
|
+
|
260
|
+
Style/StringLiterals:
|
261
|
+
EnforcedStyle: single_quotes
|
262
|
+
|
263
|
+
# Offense count: 12
|
264
|
+
# Cop supports --auto-correct.
|
265
|
+
# Configuration parameters: IgnoredMethods.
|
266
|
+
Style/SymbolProc:
|
267
|
+
Enabled: false
|
268
|
+
|
269
|
+
# Offense count: 3
|
270
|
+
# Cop supports --auto-correct.
|
271
|
+
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
|
272
|
+
Style/TrailingComma:
|
273
|
+
Enabled: false
|
274
|
+
|
275
|
+
# Offense count: 2
|
276
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
277
|
+
Style/VariableName:
|
278
|
+
Enabled: false
|
279
|
+
|
280
|
+
# Offense count: 7
|
281
|
+
# Cop supports --auto-correct.
|
282
|
+
# Configuration parameters: WordRegex.
|
283
|
+
Style/WordArray:
|
284
|
+
MinSize: 3
|
data/.simplecov
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# https://github.com/colszowka/simplecov#using-simplecov-for-centralized-config
|
2
|
+
# see https://github.com/colszowka/simplecov/blob/master/lib/simplecov/defaults.rb
|
3
|
+
# vim: set ft=ruby
|
4
|
+
SimpleCov.profiles.define 'rmagick' do
|
5
|
+
load_profile 'test_frameworks'
|
6
|
+
|
7
|
+
add_group "Long files" do |src_file|
|
8
|
+
src_file.lines.count > 100
|
9
|
+
end
|
10
|
+
class MaxLinesFilter < SimpleCov::Filter
|
11
|
+
def matches?(source_file)
|
12
|
+
source_file.lines.count < filter_argument
|
13
|
+
end
|
14
|
+
end
|
15
|
+
add_group "Short files", MaxLinesFilter.new(5)
|
16
|
+
|
17
|
+
# Exclude these paths from analysis
|
18
|
+
add_filter 'bundle'
|
19
|
+
add_filter 'bin'
|
20
|
+
end
|
21
|
+
|
22
|
+
## RUN SIMPLECOV
|
23
|
+
if ENV['COVERAGE'] =~ /\Atrue\z/i
|
24
|
+
SimpleCov.start 'rmagick'
|
25
|
+
puts '[COVERAGE] Running with SimpleCov HTML Formatter'
|
26
|
+
SimpleCov.formatters = [SimpleCov::Formatter::HTMLFormatter]
|
27
|
+
end
|
data/.travis.yml
CHANGED
@@ -2,51 +2,63 @@ language: ruby
|
|
2
2
|
|
3
3
|
os:
|
4
4
|
- linux
|
5
|
-
#- osx
|
6
5
|
|
7
6
|
env:
|
8
7
|
# Currently successful release
|
9
8
|
- IMAGEMAGICK_VERSION=6.6.9-10
|
9
|
+
- IMAGEMAGICK_VERSION=6.6.9-10 STYLE_CHECKS=true
|
10
10
|
# Ubuntu's current stable release
|
11
11
|
- IMAGEMAGICK_VERSION=6.7.7-10
|
12
12
|
# Latest 6.7 release
|
13
13
|
- IMAGEMAGICK_VERSION=6.7.9-10
|
14
14
|
# Latest 6.8 release
|
15
|
-
- IMAGEMAGICK_VERSION=6.8.9-
|
15
|
+
- IMAGEMAGICK_VERSION=6.8.9-10
|
16
16
|
# Try with HDRI support, we don't mind if this fails currently.
|
17
|
-
- IMAGEMAGICK_VERSION=6.8.9-
|
17
|
+
- IMAGEMAGICK_VERSION=6.8.9-10 CONFIGURE_OPTIONS=--enable-hdri
|
18
|
+
# Latest release
|
19
|
+
- IMAGEMAGICK_VERSION=latest
|
18
20
|
|
19
21
|
before_install:
|
20
22
|
- source before_install_$TRAVIS_OS_NAME.sh
|
21
23
|
|
22
24
|
rvm:
|
25
|
+
- 1.8
|
23
26
|
- 1.9
|
24
27
|
- 2.0
|
25
28
|
- 2.1
|
29
|
+
- 2.2
|
26
30
|
|
27
31
|
matrix:
|
28
32
|
exclude:
|
29
|
-
|
30
|
-
|
33
|
+
- rvm: 1.8
|
34
|
+
env: IMAGEMAGICK_VERSION=6.6.9-10 STYLE_CHECKS=true
|
35
|
+
- rvm: 1.8
|
36
|
+
env: IMAGEMAGICK_VERSION=6.7.9-10
|
37
|
+
- rvm: 1.8
|
38
|
+
env: IMAGEMAGICK_VERSION=6.7.7-10
|
39
|
+
- rvm: 1.8
|
40
|
+
env: IMAGEMAGICK_VERSION=6.8.9-10 CONFIGURE_OPTIONS=--enable-hdri
|
41
|
+
- rvm: 1.8
|
42
|
+
env: IMAGEMAGICK_VERSION=6.8.9-10
|
31
43
|
- rvm: 1.9
|
32
44
|
env: IMAGEMAGICK_VERSION=6.7.9-10
|
33
|
-
# - rvm: 1.9
|
34
|
-
# env: IMAGEMAGICK_VERSION=6.8.9-6
|
35
45
|
- rvm: 1.9
|
36
|
-
env: IMAGEMAGICK_VERSION=6.8.9-
|
46
|
+
env: IMAGEMAGICK_VERSION=6.8.9-10 CONFIGURE_OPTIONS=--enable-hdri
|
37
47
|
- rvm: 2.0
|
38
48
|
env: IMAGEMAGICK_VERSION=6.7.7-10
|
39
49
|
- rvm: 2.0
|
40
50
|
env: IMAGEMAGICK_VERSION=6.7.9-10
|
41
51
|
- rvm: 2.0
|
42
|
-
env: IMAGEMAGICK_VERSION=6.8.9-
|
52
|
+
env: IMAGEMAGICK_VERSION=6.8.9-10
|
43
53
|
- rvm: 2.0
|
44
|
-
env: IMAGEMAGICK_VERSION=6.8.9-
|
54
|
+
env: IMAGEMAGICK_VERSION=6.8.9-10 CONFIGURE_OPTIONS=--enable-hdri
|
45
55
|
allow_failures:
|
56
|
+
- rvm: 1.8
|
57
|
+
- rvm: 2.2
|
58
|
+
- env: IMAGEMAGICK_VERSION=6.6.9-10 STYLE_CHECKS=true
|
46
59
|
- env: IMAGEMAGICK_VERSION=6.7.7-10
|
47
60
|
- env: IMAGEMAGICK_VERSION=6.7.9-10
|
48
|
-
|
49
|
-
- env: IMAGEMAGICK_VERSION=6.8.9-6 CONFIGURE_OPTIONS=--enable-hdri
|
61
|
+
- env: IMAGEMAGICK_VERSION=6.8.9-10 CONFIGURE_OPTIONS=--enable-hdri
|
50
62
|
|
51
63
|
notifications:
|
52
64
|
webhooks:
|
data/ChangeLog
CHANGED
@@ -1,4 +1,16 @@
|
|
1
1
|
HEAD
|
2
|
+
o RMagick.rb moved to deprecated directory - @mockdeep
|
3
|
+
o Better ImageMagick feature detection - @bf4
|
4
|
+
o Prevent compilation failures if prefix is an empty string - @voxik
|
5
|
+
o SplineInterpolatePixel preprocessor check removed - @joshk
|
6
|
+
o Make error format a string literal - @mtasaka
|
7
|
+
o Automatically set ARCHFLAGS on OS X - @u338steven
|
8
|
+
o Fixed 'rmagick/version' require failure - @u338steven
|
9
|
+
o Fixed escaping of '%' in Draw#get_type_metrics - @mkluczny
|
10
|
+
o Silence warnings on Ruby 2.2 when comparing Enums - @meanphil
|
11
|
+
o Multiple test suite improvements - @mockdeep, @bf4
|
12
|
+
o Ruby source code formatting with RuboCop - @vassilevsky
|
13
|
+
|
2
14
|
RMagick 2.13.4
|
3
15
|
#129 from @theschoolmaster
|
4
16
|
proof of concept for using pkg-config in place of Magick-config on debian based systems
|
data/Gemfile
CHANGED
data/README.textile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
h1. RMagick
|
2
2
|
|
3
|
-
!https://img.shields.io/gem/v/rmagick.svg?style=flat(RubyGems)!:http://rubygems.org/gems/rmagick !https://img.shields.io/gem/dt/rmagick.svg?style=flat! !https://www.versioneye.com/ruby/rmagick/reference_badge.svg?style=flat(VersionEye)!:https://www.versioneye.com/ruby/rmagick/references !https://img.shields.io/travis/gemhome/rmagick.svg?style=flat(Travis CI)!:https://travis-ci.org/gemhome/rmagick !https://img.shields.io/codeclimate/github/gemhome/rmagick.svg?style=flat(Code Climate)!:https://codeclimate.com/github/gemhome/rmagick !https://badges.gitter.im/Join%20Chat.svg(Gitter)!:https://gitter.im/gemhome/rmagick?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
|
3
|
+
!https://img.shields.io/gem/v/rmagick.svg?style=flat(RubyGems)!:http://rubygems.org/gems/rmagick !https://img.shields.io/gem/dt/rmagick.svg?style=flat! !https://www.versioneye.com/ruby/rmagick/reference_badge.svg?style=flat(VersionEye)!:https://www.versioneye.com/ruby/rmagick/references !https://img.shields.io/travis/gemhome/rmagick/master.svg?style=flat(Travis CI)!:https://travis-ci.org/gemhome/rmagick !https://img.shields.io/codeclimate/github/gemhome/rmagick.svg?style=flat(Code Climate)!:https://codeclimate.com/github/gemhome/rmagick !https://badges.gitter.im/Join%20Chat.svg(Gitter)!:https://gitter.im/gemhome/rmagick?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
|
4
4
|
|
5
5
|
This is the official fork of RMagick. The decision to create a fork "originated here":https://github.com/rmagick/rmagick/issues/18#issuecomment-50022523, where you can read more about why it happened.
|
6
6
|
|
@@ -13,6 +13,7 @@ h3. Table of Contents
|
|
13
13
|
* "Upgrading":#upgrade
|
14
14
|
* "More samples":#samples
|
15
15
|
* "Reporting Bugs":#bugs
|
16
|
+
* "Development Setup":#dev-setup
|
16
17
|
* "Contact Information":#contact
|
17
18
|
* "Credits":#credits
|
18
19
|
* "License":#license
|
@@ -114,6 +115,67 @@ installation and configuration. Information about reporting problems and
|
|
114
115
|
getting help for ImageMagick is available at the "ImageMagick web site":http://www.imagemagick.org
|
115
116
|
or the "ImageMagick Forum":http://www.imagemagick.org/discourse-server.
|
116
117
|
|
118
|
+
h2(#dev-setup). Development Setup
|
119
|
+
|
120
|
+
In order to minimize issues on your local machine, we recommend that you make
|
121
|
+
use of a "Vagrant installation":https://github.com/tjschuck/rake-compiler-dev-box.
|
122
|
+
|
123
|
+
Steps to get up and running with a passing build are as follows:
|
124
|
+
|
125
|
+
h4. 1) set up the Vagrant environment
|
126
|
+
|
127
|
+
If you don't already have Vagrant installed, you can download and install it
|
128
|
+
from "here":https://www.vagrantup.com/. Once installed, we can set up a pre-built environment:
|
129
|
+
|
130
|
+
<pre>
|
131
|
+
git clone https://github.com/tjschuck/rake-compiler-dev-box.git
|
132
|
+
cd rake-compiler-dev-box
|
133
|
+
vagrant up
|
134
|
+
</pre>
|
135
|
+
|
136
|
+
This last part will probably take a while as it has to download an Ubuntu image
|
137
|
+
and configure it. If there is an error during this process, you may need to
|
138
|
+
reboot your computer and enable virtualization in your BIOS settings.
|
139
|
+
|
140
|
+
h4. 2) clone RMagick and log in to the vagrant box
|
141
|
+
|
142
|
+
Within the `rake-compiler-dev-box` directory:
|
143
|
+
|
144
|
+
<pre>
|
145
|
+
git clone https://github.com/gemhome/rmagick.git # or your fork
|
146
|
+
vagrant ssh
|
147
|
+
</pre>
|
148
|
+
|
149
|
+
h4. 3) install ImageMagick and additional environment stuff
|
150
|
+
|
151
|
+
<pre>
|
152
|
+
cd /vagrant/rmagick
|
153
|
+
export IMAGEMAGICK_VERSION=6.6.9-10 # the only known passing version as of this writing
|
154
|
+
sh ./before_install_linux.sh
|
155
|
+
</pre>
|
156
|
+
|
157
|
+
This will take just a few minutes to build ImageMagick
|
158
|
+
|
159
|
+
h4. 4) build RMagick
|
160
|
+
|
161
|
+
<pre>
|
162
|
+
rake
|
163
|
+
</pre>
|
164
|
+
|
165
|
+
This compiles the RMagick extensions and runs the tests. If all goes well
|
166
|
+
you'll see a lot of output, eventually ending in something like:
|
167
|
+
|
168
|
+
<pre>
|
169
|
+
Finished tests in 35.865734s, 11.3758 tests/s, 6560.3007 assertions/s.
|
170
|
+
|
171
|
+
408 tests, 235290 assertions, 0 failures, 0 errors, 0 skips
|
172
|
+
</pre>
|
173
|
+
|
174
|
+
And you're all set! The copy of RMagick within `/vagrant/rmagick` inside your
|
175
|
+
Vagrant session is the same as the one in the `rake-compiler-dev-box` directory
|
176
|
+
on your machine. You can make changes locally and run tests within your `ssh`
|
177
|
+
session.
|
178
|
+
|
117
179
|
h2(#contact). Contact Information
|
118
180
|
|
119
181
|
*Author:* Tim Hunter, Omer Bar-or, Benjamin Thomas
|