image_science 1.3.0 → 1.3.2

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
- SHA1:
3
- metadata.gz: fb44497f07164016d9a369ec83065816b3a7d837
4
- data.tar.gz: 6c5fdaa3fd0a82bfb2decd4542601ab063dac965
2
+ SHA256:
3
+ metadata.gz: 0eafa07838251974658928a7457a6a2769d6e831bf59d88f184b608ab72985be
4
+ data.tar.gz: 1bc0b554d2ff48478f8b734c08f8572e207c976df0094d8b284e5ae8885a9608
5
5
  SHA512:
6
- metadata.gz: 26db89c63f7a24c5b72fadc9eae287c171fe5c81e9cb5cde0af95bbffdcb92dcffb4545e3219581d940ae74845f7a7f2df617210a14161c33c2afa23e0d7bbf0
7
- data.tar.gz: a3710d72afbe244c133abbde96f9794e750132c6f641cb00a3c212103447aed3f3c46c503a635000d041532642bde4d0e09936d7df3dde20575132d2dc9f35ba
6
+ metadata.gz: f7d06d467df3ca9d68df3faf6451dab7dcd999439c12ef1e77093c21993735506cdac1a25d236583708e837eca3e9943a124ef5cee60406c8a4a22f7bed0c93a
7
+ data.tar.gz: e26fb5960473a707123f9e60d14e269b9aa385d6cf462f7c46012802b16ee7587db52c0a9e6bf50e1d35c71656ddb267a49e99a562cfaeb238e46d8aaf0d312b
checksums.yaml.gz.sig CHANGED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,16 @@
1
+ === 1.3.2 / 2022-10-01
2
+
3
+ * 2 bug fixes:
4
+
5
+ * Fix include dir finder to work w/ M1 homebrew setup better.
6
+ * Switch from FreeImage_RotateClassic to FreeImage_Rotate. (ivanetchart)
7
+
8
+ === 1.3.1 / 2019-12-14
9
+
10
+ * 1 bug fix:
11
+
12
+ * Added noreturn attribute to raise_error since it always calls rb_raise.
13
+
1
14
  === 1.3.0 / 2016-05-16
2
15
 
3
16
  * 1 minor enhancement:
data/README.txt CHANGED
@@ -1,7 +1,8 @@
1
1
  = ImageScience
2
2
 
3
- * http://seattlerb.rubyforge.org/ImageScience.html
4
- * http://rubyforge.org/projects/seattlerb
3
+ home :: https://github.com/seattlerb/image_science
4
+ bugs :: https://github.com/seattlerb/image_science/issues
5
+ rdoc :: http://docs.seattlerb.org/image_science
5
6
 
6
7
  == DESCRIPTION:
7
8
 
data/lib/image_science.rb CHANGED
@@ -11,7 +11,7 @@ require 'inline'
11
11
  # http://seattlerb.rubyforge.org/ImageScience.html
12
12
 
13
13
  class ImageScience
14
- VERSION = '1.3.0'
14
+ VERSION = '1.3.2'
15
15
 
16
16
  ##
17
17
  # The top-level image loader opens +path+ and then yields the image.
@@ -90,7 +90,7 @@ class ImageScience
90
90
  end
91
91
 
92
92
  inline do |builder|
93
- %w[/opt/local /usr/local].each do |dir|
93
+ %w[/opt/homebrew /opt/local /usr/local].each do |dir|
94
94
  if File.directory? "#{dir}/include" then
95
95
  builder.add_compile_flags "-I#{dir}/include"
96
96
  builder.add_link_flags "-L#{dir}/lib"
@@ -165,6 +165,7 @@ class ImageScience
165
165
  # do not call this until necessary variables are wrapped up for GC
166
166
  # otherwise there will be leaks
167
167
  builder.prefix <<-"END"
168
+ __attribute__((__noreturn__))
168
169
  static void raise_error(void) {
169
170
  VALUE err = rb_thread_local_aref(rb_thread_current(), err_key);
170
171
  if (NIL_P(err)) {
@@ -191,13 +192,13 @@ class ImageScience
191
192
  FreeImage_GetMetadata(FIMD_EXIF_MAIN, bitmap, "Orientation", &tagValue);
192
193
  switch (tagValue == NULL ? 0 : *((short *) FreeImage_GetTagValue(tagValue))) {
193
194
  case 6:
194
- bitmap = FreeImage_RotateClassic(bitmap, 270);
195
+ bitmap = FreeImage_Rotate(bitmap, 270, NULL);
195
196
  break;
196
197
  case 3:
197
- bitmap = FreeImage_RotateClassic(bitmap, 180);
198
+ bitmap = FreeImage_Rotate(bitmap, 180, NULL);
198
199
  break;
199
200
  case 8:
200
- bitmap = FreeImage_RotateClassic(bitmap, 90);
201
+ bitmap = FreeImage_Rotate(bitmap, 90, NULL);
201
202
  break;
202
203
  default:
203
204
  bitmap = FreeImage_Clone(bitmap);
@@ -321,7 +322,7 @@ class ImageScience
321
322
  FIBITMAP *bitmap, *image;
322
323
  if ((angle % 45) != 0) rb_raise(rb_eArgError, "Angle must be 45 degree skew");
323
324
  GET_BITMAP(bitmap);
324
- image = FreeImage_RotateClassic(bitmap, angle);
325
+ image = FreeImage_Rotate(bitmap, angle, NULL);
325
326
  if (image) {
326
327
  copy_icc_profile(self, bitmap, image);
327
328
  return wrap_and_yield(image, self, 0);
@@ -7,7 +7,7 @@ Minitest.after_run do
7
7
  end
8
8
 
9
9
  require 'rubygems'
10
- require 'minitest/unit'
10
+ require 'minitest/test'
11
11
  require 'minitest/autorun' if $0 == __FILE__
12
12
  require 'image_science'
13
13
 
data.tar.gz.sig CHANGED
@@ -1 +1,2 @@
1
- ���X5]o9���xv����Uif����.��?��>�Gt�+����ǒ9/������D����̹���V���4}O47$�u<8:>bh����䯗�)ݢI��,�i���Qd�f&�P�$�TU��q
1
+ ^ B4m FvͪjM'�� vM��G,�;_���'C)짜_T��{��=�j�I�?pYO�� 2q����3
2
+ @�*q1��pb*���pj���N��7�@u�MǗ�hܪ)�?�<�x>F1U�:��,��+V �$�i��ek�x����¥��c�ؒ#�1�c)��l�[6H+U�l�"��iA�����zu��";`7E��!B�B䙴��T�J"��-���h.��/o�HDY���r~4�tpP��½v^�J�
metadata CHANGED
@@ -1,18 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: image_science
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDPjCCAiagAwIBAgIBAzANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
13
+ MIIDPjCCAiagAwIBAgIBBjANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
14
14
  ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
15
- GRYDY29tMB4XDTE1MDkxOTIwNTEyMloXDTE2MDkxODIwNTEyMlowRTETMBEGA1UE
15
+ GRYDY29tMB4XDTIxMTIyMzIzMTkwNFoXDTIyMTIyMzIzMTkwNFowRTETMBEGA1UE
16
16
  AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
17
17
  JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
18
18
  b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
@@ -21,58 +21,64 @@ cert_chain:
21
21
  GiadM9GHRaDiaxuX0cIUBj19T01mVE2iymf9I6bEsiayK/n6QujtyCbTWsAS9Rqt
22
22
  qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
23
23
  gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
24
- HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBBQUAA4IB
25
- AQB+Hx8xUgrpZa4P8H8gR8zme5kISwQrG80MbpqJV6/G3/ZicRFhN5sjwu0uHGue
26
- bd9Cymf6oIRwHVarJux2M32T6bL07Hmi07w2QaPc3MnMKB/D46SRZ2JSSGPFRBTc
27
- SilobMRoGs/7B15uGFUEnNrCB/ltMqhwwSx1r++UQPfeySHEV9uqu03E5Vb7J37O
28
- 2Er6PLXHRiYsIycD1LkMi6YnixdITRHmrqJYE2rsjaIfpIehiusVAPHkNf7qbpHq
29
- qx3h45R1CAsObX0SQDIT+rRbQrtKz1GHIZTOFYvEJjUY1XmRTZupD3CJ8Q7sDqSy
30
- NLq5jm1fq6Y9Uolu3RJbmycf
24
+ HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBCwUAA4IB
25
+ AQCKB5jfsuSnKb+t/Wrh3UpdkmX7TrEsjVmERC0pPqzQ5GQJgmEXDD7oMgaKXaAq
26
+ x2m+KSZDrqk7c8uho5OX6YMqg4KdxehfSLqqTZGoeV78qwf/jpPQZKTf+W9gUSJh
27
+ zsWpo4K50MP+QtdSbKXZwjAafpQ8hK0MnnZ/aeCsW9ov5vdXpYbf3dpg6ADXRGE7
28
+ lQY2y1tJ5/chqu6h7dQmnm2ABUqx9O+JcN9hbCYoA5i/EeubUEtFIh2w3SpO6YfB
29
+ JFmxn4h9YO/pVdB962BdBNNDia0kgIjI3ENnkLq0dKpYU3+F3KhEuTksLO0L6X/V
30
+ YsuyUzsMz6GQA4khyaMgKNSD
31
31
  -----END CERTIFICATE-----
32
- date: 2016-05-16 00:00:00.000000000 Z
32
+ date: 2022-10-01 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: RubyInline
36
36
  requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.9'
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '3.9'
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rdoc
50
50
  requirement: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '4.0'
55
+ - - "<"
56
+ - !ruby/object:Gem::Version
57
+ version: '7'
55
58
  type: :development
56
59
  prerelease: false
57
60
  version_requirements: !ruby/object:Gem::Requirement
58
61
  requirements:
59
- - - ~>
62
+ - - ">="
60
63
  - !ruby/object:Gem::Version
61
64
  version: '4.0'
65
+ - - "<"
66
+ - !ruby/object:Gem::Version
67
+ version: '7'
62
68
  - !ruby/object:Gem::Dependency
63
69
  name: hoe
64
70
  requirement: !ruby/object:Gem::Requirement
65
71
  requirements:
66
- - - ~>
72
+ - - "~>"
67
73
  - !ruby/object:Gem::Version
68
- version: '3.15'
74
+ version: '3.25'
69
75
  type: :development
70
76
  prerelease: false
71
77
  version_requirements: !ruby/object:Gem::Requirement
72
78
  requirements:
73
- - - ~>
79
+ - - "~>"
74
80
  - !ruby/object:Gem::Version
75
- version: '3.15'
81
+ version: '3.25'
76
82
  description: |-
77
83
  ImageScience is a clean and happy Ruby library that generates
78
84
  thumbnails -- and kicks the living crap out of RMagick. Oh, and it
@@ -99,30 +105,31 @@ files:
99
105
  - test/pix.png
100
106
  - test/portrait.jpg
101
107
  - test/test_image_science.rb
102
- homepage: http://seattlerb.rubyforge.org/ImageScience.html
108
+ homepage: https://github.com/seattlerb/image_science
103
109
  licenses:
104
110
  - MIT
105
- metadata: {}
106
- post_install_message:
111
+ metadata:
112
+ homepage_uri: https://github.com/seattlerb/image_science
113
+ bug_tracker_uri: https://github.com/seattlerb/image_science/issues
114
+ post_install_message:
107
115
  rdoc_options:
108
- - --main
116
+ - "--main"
109
117
  - README.txt
110
118
  require_paths:
111
119
  - lib
112
120
  required_ruby_version: !ruby/object:Gem::Requirement
113
121
  requirements:
114
- - - '>='
122
+ - - ">="
115
123
  - !ruby/object:Gem::Version
116
124
  version: '0'
117
125
  required_rubygems_version: !ruby/object:Gem::Requirement
118
126
  requirements:
119
- - - '>='
127
+ - - ">="
120
128
  - !ruby/object:Gem::Version
121
129
  version: '0'
122
130
  requirements: []
123
- rubyforge_project:
124
- rubygems_version: 2.4.5
125
- signing_key:
131
+ rubygems_version: 3.3.12
132
+ signing_key:
126
133
  specification_version: 4
127
134
  summary: ImageScience is a clean and happy Ruby library that generates thumbnails
128
135
  -- and kicks the living crap out of RMagick
metadata.gz.sig CHANGED
Binary file