rmagick 5.4.2 → 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: deb1a551d7173e48abee9a0fab4dcc0b40c1c9a38861ebeb0c654f106149ee8b
4
- data.tar.gz: '084ad765347cab4fd541596709a6543ad6652fc1e80fe6fb8b192449bda40650'
3
+ metadata.gz: 6fd768daa5bf84d7e835a4c300d57f6826b3fd86820dd3048a12d73db62ec89f
4
+ data.tar.gz: b7afe50d7396365282e6d5e8ff7b8a6c2b0e91e7f1e2d9562d1078dd26bda7a4
5
5
  SHA512:
6
- metadata.gz: aa8f0a1f018ca12d44907f42beb2a8c448f0961a5ebe9ea0a97d8032248868a5ae858a2e6c2ab1ad5cc75906f51fcf697bfecce021b33e4a115914a27499907b
7
- data.tar.gz: d0d0b125221d96fcc0c67c584a7d9d69abb5dfcba279e2254347f0f65470d7fe71fa1d483764f9a1aca4862c59e5953321b8eae6f2aa477dd2e4164b19702ab1
6
+ metadata.gz: 23b6376b8c659276107e35c4e58428bc68a4cd8d2d24830ee27c99a83dea0349516af72bf8746a9064f115d35ae3e2f8affa376c6b6ec77d8b7a89aa7ddede8c
7
+ data.tar.gz: 7633f97e950e07f2381f25d1a181b427408fa8e46790b0506c31d83d029f58f5098a073446d659d82a05988c20848f60a37fbfe5759340a8613da87bdbc53cae
data/CHANGELOG.md CHANGED
@@ -3,6 +3,19 @@
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
+
13
+ ## RMagick 5.4.3
14
+
15
+ Bug Fixes
16
+
17
+ - Fix installation error in some environment by using x flag to use C++ compiler in order to create Makefile (#1460)
18
+
6
19
  ## RMagick 5.4.2
7
20
 
8
21
  Improvements
@@ -5,7 +5,7 @@ require 'mkmf'
5
5
  require 'pkg-config'
6
6
 
7
7
  module MakeMakefile
8
- # Use the C++ compiler to retrieve the information needed to create a Makefile.
8
+ # Use the C++ compiler to retrieve the information needed to create a Makefile for mswin environment.
9
9
  remove_const(:CONFTEST_C)
10
10
  CONFTEST_C = "#{CONFTEST}.cpp"
11
11
  end
@@ -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 += ' -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 += ' -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
@@ -10435,7 +10435,7 @@ Image_orientation_eq(VALUE self, VALUE orientation)
10435
10435
  /**
10436
10436
  * The page attribute getter.
10437
10437
  *
10438
- * @return [Magick::Rectang] the page rectangle
10438
+ * @return [Magick::Rectangle] the page rectangle
10439
10439
  */
10440
10440
  VALUE
10441
10441
  Image_page(VALUE self)
@@ -10448,8 +10448,8 @@ Image_page(VALUE self)
10448
10448
  /**
10449
10449
  * The page attribute setter.
10450
10450
  *
10451
- * @param rect [Magick::Rectang] the page rectangle
10452
- * @return [Magick::Rectang] the given value
10451
+ * @param rect [Magick::Rectangle] the page rectangle
10452
+ * @return [Magick::Rectangle] the given value
10453
10453
  */
10454
10454
  VALUE
10455
10455
  Image_page_eq(VALUE self, VALUE rect)
@@ -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.2'
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.2
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-11 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