rmagick 3.2.0 → 4.0.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.

@@ -13,7 +13,7 @@ class StructUT < Test::Unit::TestCase
13
13
  def test_export_color_info
14
14
  color = Magick.colors[0]
15
15
  assert_instance_of(Magick::Color, color)
16
- assert_match(/name=.+, compliance=.+, color.red=.+, color.green=.+, color.blue=.+, color.opacity=.+/, color.to_s)
16
+ assert_match(/name=.+, compliance=.+, color.red=.+, color.green=.+, color.blue=.+, color.alpha=.+/, color.to_s)
17
17
  end
18
18
 
19
19
  def test_export_type_info
@@ -329,7 +329,7 @@ class LibDrawUT < Test::Unit::TestCase
329
329
 
330
330
  def test_gravity
331
331
  Magick::GravityType.values do |gravity|
332
- next if [Magick::UndefinedGravity, Magick::StaticGravity].include?(gravity)
332
+ next if [Magick::UndefinedGravity].include?(gravity)
333
333
 
334
334
  draw = Magick::Draw.new
335
335
  draw.gravity(gravity)
@@ -418,18 +418,6 @@ class LibDrawUT < Test::Unit::TestCase
418
418
  assert_raise(ArgumentError) { @draw.line(10, '20.5', 30, 'x') }
419
419
  end
420
420
 
421
- def test_matte
422
- Magick::PaintMethod.values do |method|
423
- draw = Magick::Draw.new
424
- draw.matte(10, '20.5', method)
425
- assert_nothing_raised { draw.draw(@img) }
426
- end
427
-
428
- assert_raise(ArgumentError) { @draw.matte(10, '20.5', 'xxx') }
429
- assert_raise(ArgumentError) { @draw.matte('x', 10, Magick::PointMethod) }
430
- assert_raise(ArgumentError) { @draw.matte(10, 'x', Magick::PointMethod) }
431
- end
432
-
433
421
  def test_opacity
434
422
  @draw.opacity(0.8)
435
423
  assert_equal('opacity 0.8', @draw.inspect)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rmagick
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Hunter
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2019-06-16 00:00:00.000000000 Z
14
+ date: 2019-07-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake-compiler
@@ -472,7 +472,6 @@ files:
472
472
  - ext/RMagick/rmpixel.c
473
473
  - ext/RMagick/rmstruct.c
474
474
  - ext/RMagick/rmutil.c
475
- - lib/obsolete.rb
476
475
  - lib/rmagick.rb
477
476
  - lib/rmagick/version.rb
478
477
  - lib/rmagick_internal.rb
@@ -525,7 +524,6 @@ files:
525
524
  - test/appearance/appearance_assertion.rb
526
525
  - test/appearance/expected/montage_border_color.jpg
527
526
  - test/cmyk.icm
528
- - test/lib/Obsolete.rb
529
527
  - test/lib/internal/Draw.rb
530
528
  - test/lib/internal/Geometry.rb
531
529
  - test/lib/internal/Magick.rb
@@ -594,7 +592,6 @@ test_files:
594
592
  - test/appearance/appearance_assertion.rb
595
593
  - test/appearance/expected/montage_border_color.jpg
596
594
  - test/cmyk.icm
597
- - test/lib/Obsolete.rb
598
595
  - test/lib/internal/Draw.rb
599
596
  - test/lib/internal/Geometry.rb
600
597
  - test/lib/internal/Magick.rb
@@ -1,66 +0,0 @@
1
- module Magick
2
- AddCompositeOp = ModulusAddCompositeOp
3
- deprecate_constant 'AddCompositeOp'
4
-
5
- AlphaChannelType = AlphaChannelOption
6
- deprecate_constant 'AlphaChannelType'
7
-
8
- ColorSeparationMatteType = ColorSeparationAlphaType
9
- deprecate_constant 'ColorSeparationMatteType'
10
-
11
- CopyOpacityCompositeOp = CopyAlphaCompositeOp
12
- deprecate_constant 'CopyOpacityCompositeOp'
13
-
14
- DistortImageMethod = DistortMethod
15
- deprecate_constant 'DistortImageMethod'
16
-
17
- DivideCompositeOp = DivideDstCompositeOp
18
- deprecate_constant 'DivideDstCompositeOp'
19
-
20
- FilterTypes = FilterType
21
- deprecate_constant 'FilterTypes'
22
-
23
- GrayscaleMatteType = GrayscaleAlphaType
24
- deprecate_constant 'GrayscaleMatteType'
25
-
26
- ImageLayerMethod = LayerMethod
27
- deprecate_constant 'ImageLayerMethod'
28
-
29
- InterpolatePixelMethod = PixelInterpolateMethod
30
- deprecate_constant 'InterpolatePixelMethod'
31
-
32
- MeanErrorPerPixelMetric = MeanErrorPerPixelErrorMetric
33
- deprecate_constant 'MeanErrorPerPixelMetric'
34
-
35
- MinusCompositeOp = MinusDstCompositeOp
36
- deprecate_constant 'MinusCompositeOp'
37
-
38
- PaletteBilevelMatteType = PaletteBilevelAlphaType
39
- deprecate_constant 'PaletteBilevelMatteType'
40
-
41
- PaletteMatteType = PaletteAlphaType
42
- deprecate_constant 'PaletteMatteType'
43
-
44
- PeakSignalToNoiseRatioMetric = PeakSignalToNoiseRatioErrorMetric
45
- deprecate_constant 'PeakSignalToNoiseRatioMetric'
46
-
47
- SubtractCompositeOp = ModulusSubtractCompositeOp
48
- deprecate_constant 'SubtractCompositeOp'
49
-
50
- TrueColorMatteType = TrueColorAlphaType
51
- deprecate_constant 'TrueColorMatteType'
52
-
53
- UndefinedMetric = UndefinedErrorMetric
54
- deprecate_constant 'UndefinedMetric'
55
-
56
- deprecate_constant 'ConstantVirtualPixelMethod'
57
- deprecate_constant 'FlattenAlphaChannel'
58
- deprecate_constant 'IntegerPixel'
59
- deprecate_constant 'MatteChannel'
60
- deprecate_constant 'OpaqueOpacity'
61
- deprecate_constant 'Rec601LumaColorspace'
62
- deprecate_constant 'Rec709LumaColorspace'
63
- deprecate_constant 'ResetAlphaChannel'
64
- deprecate_constant 'StaticGravity'
65
- deprecate_constant 'TransparentOpacity'
66
- end
@@ -1,30 +0,0 @@
1
- #!/usr/bin/env ruby -w
2
-
3
- require 'rmagick'
4
- require 'test/unit'
5
- require 'test/unit/ui/console/testrunner'
6
-
7
- class ObsoleteUT < Test::Unit::TestCase
8
- def test_constants
9
- assert_nothing_raised { Magick::AddCompositeOp }
10
- assert_nothing_raised { Magick::AlphaChannelType }
11
- assert_nothing_raised { Magick::ColorSeparationMatteType }
12
- assert_nothing_raised { Magick::CopyOpacityCompositeOp }
13
- assert_nothing_raised { Magick::DistortImageMethod }
14
- assert_nothing_raised { Magick::DivideCompositeOp }
15
- assert_nothing_raised { Magick::FilterTypes }
16
- assert_nothing_raised { Magick::GrayscaleMatteType }
17
- assert_nothing_raised { Magick::ImageLayerMethod }
18
- assert_nothing_raised { Magick::InterpolatePixelMethod }
19
- assert_nothing_raised { Magick::MeanErrorPerPixelMetric }
20
- assert_nothing_raised { Magick::MinusCompositeOp }
21
- assert_nothing_raised { Magick::PaletteBilevelMatteType }
22
- assert_nothing_raised { Magick::PaletteMatteType }
23
- assert_nothing_raised { Magick::PeakSignalToNoiseRatioMetric }
24
- assert_nothing_raised { Magick::SubtractCompositeOp }
25
- assert_nothing_raised { Magick::TrueColorMatteType }
26
- assert_nothing_raised { Magick::UndefinedMetric }
27
- assert_nothing_raised { Magick::Rec601LumaColorspace }
28
- assert_nothing_raised { Magick::Rec709LumaColorspace }
29
- end
30
- end