rmagick 4.1.1 → 4.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5638d3e358ce6dbfdaad27ad6f3a8cbb04a3268e7111be2ab789c2f2252ee8b
4
- data.tar.gz: 6e1d9519cd2457071b665deb5c8365ecf9abd3d6bd0fbf187b37435a425d2a7c
3
+ metadata.gz: bb35ff56e69891085d8751cc08d6f6d4f1e70791afe76012ea869b6922551ab6
4
+ data.tar.gz: 0b64498e6b29eca46efa64f1011045728c9708d098868f0de0ffdc0d103cfc02
5
5
  SHA512:
6
- metadata.gz: 752fbabb75ffa6fd6c78bdc3ea40e4605d960d8bbcaeb1040f7594dcb4f474cb613b33e3cfe06fce7f7fdd0f272b999f85cf89d3037a3e9ac5b2e3f0cb66848b
7
- data.tar.gz: ceaf487faba530d128138f980d192eef6e79e5814cd2d4ad25d8cd3c1166b49374f10c0dbc6110c11994a9f43e7d4812b207368c14467deda355661ab9a975b5
6
+ metadata.gz: 8d9ff646c80d9ee524c001e5da165e5b0712fd8cf662d5a37bcfb28a5453d49ce3859f8b0c1b5324974203deb3b720d0c1ace2a405efae8b1e5e491b30d0a031
7
+ data.tar.gz: 3e75993a946eb0547d69ef8fa0c66eee8226e72658bc609eba07f405bd6ac22ac4794de5891a21a9466994f1e0254cb7770974666f47d37eba6500ab1962b47a
@@ -10,6 +10,7 @@
10
10
 
11
11
  - ImageMagick version:
12
12
  - RMagick version:
13
+ - Ruby version:
13
14
  - Environment (Operating system, version and so on):
14
15
  - Additional information:
15
16
 
@@ -39,8 +39,8 @@ jobs:
39
39
  imagemagick-version:
40
40
  - { full: 6.7.7-10, major-minor: '6.7' }
41
41
  - { full: 6.8.9-10, major-minor: '6.8' }
42
- - { full: 6.9.11-2, major-minor: '6.9' }
43
- - { full: 7.0.10-2, major-minor: '7.0' }
42
+ - { full: 6.9.11-6, major-minor: '6.9' }
43
+ - { full: 7.0.10-6, major-minor: '7.0' }
44
44
 
45
45
  name: Linux, Ruby ${{ matrix.ruby-version }}, IM ${{ matrix.imagemagick-version.major-minor }}
46
46
  steps:
@@ -78,8 +78,8 @@ jobs:
78
78
  matrix:
79
79
  ruby-version: [2.6, 2.7]
80
80
  imagemagick-version:
81
- - { full: 6.9.11-2, major-minor: '6.9' }
82
- - { full: 7.0.10-2, major-minor: '7.0' }
81
+ - { full: 6.9.11-6, major-minor: '6.9' }
82
+ - { full: 7.0.10-6, major-minor: '7.0' }
83
83
 
84
84
  name: macOS, Ruby ${{ matrix.ruby-version }}, IM ${{ matrix.imagemagick-version.major-minor }}
85
85
  steps:
@@ -118,8 +118,8 @@ jobs:
118
118
  ruby-version: [2.3, 2.4, 2.5, 2.6, 2.7]
119
119
  imagemagick-version:
120
120
  - { full: 6.8.9-10, major-minor: '6.8' }
121
- - { full: 6.9.11-2, major-minor: '6.9' }
122
- - { full: 7.0.10-2, major-minor: '7.0' }
121
+ - { full: 6.9.11-6, major-minor: '6.9' }
122
+ - { full: 7.0.10-6, major-minor: '7.0' }
123
123
  name: MSWin, Ruby ${{ matrix.ruby-version }}, IM ${{ matrix.imagemagick-version.major-minor }}
124
124
  steps:
125
125
  - uses: actions/checkout@v2
@@ -133,16 +133,9 @@ jobs:
133
133
  $imagemagick_version_without_patch = $imagemagick_version.split("-")[0]
134
134
  $installer_name = "ImageMagick-$($imagemagick_version)-Q16-x64-dll.exe"
135
135
  $url = "https://ftp.icm.edu.pl/pub/graphics/ImageMagick/binaries/$($installer_name)"
136
+ choco install wget ghostscript
136
137
  wget $url --progress=dot
137
138
  cmd.exe /D /S /C "$($installer_name) /DIR=D:\ImageMagick /VERYSILENT /TASKS=install_Devel"
138
- cmd.exe /D /S /C "choco install ghostscript"
139
- - name: Cache Ruby dependencies
140
- uses: actions/cache@v1
141
- with:
142
- path: ./vendor/bundle
143
- key: v1-windows-${{ matrix.ruby-version }}-${{ hashFiles('rmagick.gemspec') }}
144
- restore-keys: |
145
- v1-windows-${{ matrix.ruby-version }}-${{ hashFiles('rmagick.gemspec') }}
146
139
  - name: Build and test with Rake
147
140
  run: |
148
141
  cmd.exe /D /S /C "SET MAKE=make & SET PATH=D:\ImageMagick;%PATH% & bundle install --path=vendor/bundle --retry 3 & bundle exec rake"
@@ -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 4.1.2
7
+
8
+ Bug Fixes:
9
+
10
+ - Fix build error on Freebsd (#1199)
11
+ - Add workaround for FreeBSD that it isn't able to process PDF (#1203)
12
+
6
13
  ## RMagick 4.1.1
7
14
 
8
15
  Bug Fixes:
data/README.md CHANGED
@@ -44,19 +44,41 @@ Ruby must be able to build C-Extensions (e.g. MRI, Rubinius, not JRuby)
44
44
  version 4.1.0.rc2 (#256). You can get ImageMagick from
45
45
  <https://imagemagick.org>.
46
46
 
47
- ### Ubuntu
47
+ ### Linux
48
+ #### Ubuntu
48
49
  On Ubuntu, you can run:
49
50
 
50
51
  ```sh
51
52
  sudo apt-get install libmagickwand-dev
52
53
  ```
53
54
 
55
+ #### Centos
54
56
  On Centos, you can run:
55
57
 
56
58
  ```sh
57
59
  sudo yum install gcc ImageMagick-devel make which
58
60
  ```
59
61
 
62
+ #### Arch Linux
63
+ On Arch Linux, you can run:
64
+
65
+ ```sh
66
+ pacman -Syy pkg-config imagemagick
67
+ ```
68
+
69
+ #### Alpine Linux
70
+ On Alpine Linux, you can run:
71
+
72
+ ```
73
+ apk add pkgconfig imagemagick imagemagick-dev imagemagick-libs
74
+ ```
75
+
76
+ or you can run if you would like to use ImageMagick 6:
77
+
78
+ ```
79
+ apk add pkgconfig imagemagick6 imagemagick6-dev imagemagick6-libs
80
+ ```
81
+
60
82
  ### macOS
61
83
  On macOS, you can run:
62
84
 
@@ -72,8 +94,10 @@ brew install pkg-config imagemagick@6
72
94
 
73
95
  ### Windows
74
96
  1. Install latest Ruby+Devkit package which you can get from [RubyInstaller for Windows](https://rubyinstaller.org).
75
- 2. Download `ImageMagick-7.XXXX-Q16-x64-dll.exe` (not, `ImageMagick-7.XXXX-Q16-x64-static.exe`) binary from [Windows Binary Release](https://imagemagick.org/script/download.php#windows), or you can download ImageMagick 6 from [Windows Binary Release](https://legacy.imagemagick.org/script/download.php#windows).
76
- 3. Install ImageMagick. You need to turn on checkboxes `Add application directory to your system path` and `Install development headers and librarries for C and C++` in an installer for RMagick.
97
+ 2. You might need to configure `PATH` environment variable to where the compiler is located.
98
+ (Ex: `set PATH=C:\Ruby27-x64\msys64\usr\bin;C:\Ruby27-x64\msys64\mingw64\bin;%PATH%`)
99
+ 3. Download `ImageMagick-7.XXXX-Q16-x64-dll.exe` (not, `ImageMagick-7.XXXX-Q16-x64-static.exe`) binary from [Windows Binary Release](https://imagemagick.org/script/download.php#windows), or you can download ImageMagick 6 from [Windows Binary Release](https://legacy.imagemagick.org/script/download.php#windows).
100
+ 4. Install ImageMagick. You need to turn on checkboxes `Add application directory to your system path` and `Install development headers and librarries for C and C++` in an installer for RMagick.
77
101
  <img width="50%" src="https://user-images.githubusercontent.com/199156/77183472-b72cbd00-6b11-11ea-8b9a-247bc1f9d8b1.png" />
78
102
 
79
103
  Installing RMagick
@@ -333,6 +333,10 @@ module RMagick
333
333
  have_func(func, headers)
334
334
  end
335
335
 
336
+ unless have_header('malloc.h')
337
+ have_header('malloc/malloc.h')
338
+ end
339
+
336
340
  # Miscellaneous constants
337
341
  $defs.push("-DRUBY_VERSION_STRING=\"ruby #{RUBY_VERSION}\"")
338
342
  $defs.push("-DRMAGICK_VERSION_STRING=\"RMagick #{RMAGICK_VERS}\"")
@@ -11049,7 +11049,7 @@ file_arg_rescue(VALUE arg, VALUE raised_exc ATTRIBUTE_UNUSED)
11049
11049
  * @see array_from_images
11050
11050
  */
11051
11051
 
11052
- #if defined(__APPLE__)
11052
+ #if defined(__APPLE__) || defined(__FreeBSD__)
11053
11053
  void sig_handler(int sig ATTRIBUTE_UNUSED)
11054
11054
  {
11055
11055
  }
@@ -11097,7 +11097,7 @@ rd_image(VALUE class ATTRIBUTE_UNUSED, VALUE file, reader_t reader)
11097
11097
 
11098
11098
  exception = AcquireExceptionInfo();
11099
11099
 
11100
- #if defined(__APPLE__)
11100
+ #if defined(__APPLE__) || defined(__FreeBSD__)
11101
11101
  struct sigaction act, oldact;
11102
11102
  act.sa_handler = sig_handler;
11103
11103
  act.sa_flags = SA_RESTART;
@@ -11109,7 +11109,7 @@ rd_image(VALUE class ATTRIBUTE_UNUSED, VALUE file, reader_t reader)
11109
11109
 
11110
11110
  images = (reader)(info, exception);
11111
11111
 
11112
- #if defined(__APPLE__)
11112
+ #if defined(__APPLE__) || defined(__FreeBSD__)
11113
11113
  if (sigaction(SIGCHLD, &oldact, NULL) < 0)
11114
11114
  {
11115
11115
  rb_sys_fail("sigaction");
@@ -18,9 +18,9 @@
18
18
  #if defined(HAVE_POSIX_MEMALIGN) || defined(HAVE__ALIGNED_MSIZE)
19
19
  #define USE_RM_ALIGNED_MALLOC 1
20
20
 
21
- #if defined(HAVE_MALLOC_USABLE_SIZE)
21
+ #if defined(HAVE_MALLOC_H)
22
22
  #include <malloc.h>
23
- #elif defined(HAVE_MALLOC_SIZE)
23
+ #elif defined(HAVE_MALLOC_MALLOC_H)
24
24
  #include <malloc/malloc.h>
25
25
  #endif
26
26
  #endif
@@ -1,5 +1,5 @@
1
1
  module Magick
2
- VERSION = '4.1.1'
2
+ VERSION = '4.1.2'
3
3
  MIN_RUBY_VERSION = '2.3.0'
4
4
  MIN_IM_VERSION = '6.7.7'
5
5
  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: 4.1.1
4
+ version: 4.1.2
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: 2020-03-27 00:00:00.000000000 Z
14
+ date: 2020-04-13 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: pry