rmagick 5.4.3 → 5.4.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c878d7568b842021e8e1efd02180712bd5934747d08cb97365bface6443a828
4
- data.tar.gz: 937b6df541a2ac5aa843f335634c7610227cc1c97c5cc8cbf13ea449cabf20a4
3
+ metadata.gz: 6fd768daa5bf84d7e835a4c300d57f6826b3fd86820dd3048a12d73db62ec89f
4
+ data.tar.gz: b7afe50d7396365282e6d5e8ff7b8a6c2b0e91e7f1e2d9562d1078dd26bda7a4
5
5
  SHA512:
6
- metadata.gz: be4d1136908b6532d8352748a306a5a07cb01f568ac8be1f381befde916b560fe1c73e963ef02b6aaca790cb9d8f385ee1d2e6f5af6f5ce83c12a132b8dccc5d
7
- data.tar.gz: 46c11f1a39e60482bbd6885045420bfe0a4e0f1f309c6bfacae246402afcf73f7fae466f5312c869d5b777f6911d361786bcf52e5dba69e9efb2c8a7a617a015
6
+ metadata.gz: 23b6376b8c659276107e35c4e58428bc68a4cd8d2d24830ee27c99a83dea0349516af72bf8746a9064f115d35ae3e2f8affa376c6b6ec77d8b7a89aa7ddede8c
7
+ data.tar.gz: 7633f97e950e07f2381f25d1a181b427408fa8e46790b0506c31d83d029f58f5098a073446d659d82a05988c20848f60a37fbfe5759340a8613da87bdbc53cae
data/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@
3
3
  All notable changes to this project are documented in this file.
4
4
  This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
+ ## RMagick 5.4.4
7
+
8
+ Bug Fixes
9
+
10
+ - Fix installation error again in some environment at creatint Makefile (#1465)
11
+ - Fix Pixel#<=> which should accept other class instance (#1463)
12
+
6
13
  ## RMagick 5.4.3
7
14
 
8
15
  Bug Fixes
@@ -109,7 +109,8 @@ module RMagick
109
109
 
110
110
  # Save flags
111
111
  $CPPFLAGS += " #{ENV['CPPFLAGS']} " + PKGConfig.cflags($magick_package).chomp
112
- $LOCAL_LIBS += " #{ENV['LIBS']} " + PKGConfig.libs($magick_package).chomp
112
+ $CPPFLAGS += ' -x c++ -std=c++11 -Wno-register'
113
+ $LOCAL_LIBS += " #{ENV['LIBS']} " + PKGConfig.libs($magick_package).chomp
113
114
  $LDFLAGS += " #{ldflags} #{rpath}"
114
115
 
115
116
  unless try_link("int main() { }")
@@ -117,19 +118,16 @@ module RMagick
117
118
  $LDFLAGS = "#{original_ldflags} #{ldflags}"
118
119
  end
119
120
 
120
- $CPPFLAGS += ' -x c++ -std=c++11 -Wno-register'
121
-
122
121
  configure_archflags_for_osx($magick_package) if RUBY_PLATFORM =~ /darwin/ # osx
123
122
 
124
123
  elsif RUBY_PLATFORM =~ /mingw/ # mingw
125
124
 
126
125
  dir_paths = search_paths_for_library_for_windows
127
126
  $CPPFLAGS += %( -I"#{dir_paths[:include]}")
127
+ $CPPFLAGS += ' -x c++ -std=c++11 -Wno-register'
128
128
  $LDFLAGS += %( -L"#{dir_paths[:lib]}")
129
129
  $LDFLAGS << ' -lucrt' if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.4.0')
130
130
 
131
- $CPPFLAGS += ' -x c++ -std=c++11 -Wno-register'
132
-
133
131
  have_library(im_version_at_least?('7.0.0') ? 'CORE_RL_MagickCore_' : 'CORE_RL_magick_')
134
132
 
135
133
  else # mswin
@@ -596,7 +596,7 @@ Pixel_eql_q(VALUE self, VALUE other)
596
596
  *
597
597
  * @overload fcmp(other, fuzz = 0.0, colorspace = Magick::RGBColorspace)
598
598
  * @param other [Magick::Pixel] The pixel to which the receiver is compared
599
- * @param fuzz [Float] The amount of fuzz to allow before the colors are considered to be different
599
+ * @param fuzz [Numeric] The amount of fuzz to allow before the colors are considered to be different
600
600
  * @param colorspace [Magick::ColorspaceType] The colorspace
601
601
  * @return [Boolean] true if equal, otherwise false
602
602
  */
@@ -711,7 +711,7 @@ Pixel_from_color(VALUE klass ATTRIBUTE_UNUSED, VALUE name)
711
711
  * @param hue [Numeric, String] A value in the range.
712
712
  * @param saturation [Numeric, String] A value in the range.
713
713
  * @param lightness [Numeric, String] A value in the range.
714
- * @param alpha [Numeric] The alpha value.
714
+ * @param alpha [Numeric, String] The alpha value.
715
715
  * @return [Magick::Pixel] a new Magick::Pixel object
716
716
  */
717
717
  VALUE
@@ -1069,6 +1069,10 @@ Pixel_spaceship(VALUE self, VALUE other)
1069
1069
  {
1070
1070
  Pixel *self_pixel, *other_pixel;
1071
1071
 
1072
+ if (CLASS_OF(self) != CLASS_OF(other)) {
1073
+ return Qnil;
1074
+ }
1075
+
1072
1076
  TypedData_Get_Struct(self, Pixel, &rm_pixel_data_type, self_pixel);
1073
1077
  TypedData_Get_Struct(other, Pixel, &rm_pixel_data_type, other_pixel);
1074
1078
 
@@ -1096,10 +1100,8 @@ Pixel_spaceship(VALUE self, VALUE other)
1096
1100
  }
1097
1101
  #endif
1098
1102
 
1099
- // Values are equal, check class.
1100
-
1101
- return rb_funcall(CLASS_OF(self), rb_intern("<=>"), 1, CLASS_OF(other));
1102
-
1103
+ // Values are equal.
1104
+ return INT2NUM(0);
1103
1105
  }
1104
1106
 
1105
1107
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Magick
4
- VERSION = '5.4.3'
4
+ VERSION = '5.4.4'
5
5
  MIN_RUBY_VERSION = '2.3.0'
6
6
  MIN_IM_VERSION = '6.7.7'
7
7
  end
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: 5.4.3
4
+ version: 5.4.4
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: 2024-02-13 00:00:00.000000000 Z
14
+ date: 2024-02-15 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: pkg-config