image_processing 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of image_processing might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36ef5c195d1e6d50d07a68efa923724ffa0edc36
4
- data.tar.gz: 177240b6b1ef251a1a68a2ad2e332276cbbbaa25
3
+ metadata.gz: f50a933d3b59293412c8f598a646d4db0a756f6c
4
+ data.tar.gz: 778e9010cc777117535ad0b229f84e27a2d05ce6
5
5
  SHA512:
6
- metadata.gz: 53c72bbd911b2f9f1c112fd1326c317a47939738dca408c7232c3ca68d151c017f804b667d0c3656e1292d6b4dea9e672d5da97f77dbd167878b313398e35fbf
7
- data.tar.gz: 121958f34815b1f36f704e4e3741e53b4105fd8fce413142ac26dbe733a856ec1a5e4c3ee328e309041b42257c98764518e50b2bf4ecf654da99e1968c3d8a0e
6
+ metadata.gz: 2b5d7eabf7b3e3a9733dc16e55c8e11a7cf49657b08b4313d09ce2e9481f8bc1ee5b424b067e9f2976219876569b7d3bfb121def6a5d6ffb2c0a78201e4dc140
7
+ data.tar.gz: e51e778aff0a128b0bff398a4e79ec6cfc438091f7a3dee5c5afd927f41f1d55b721642ed113ebb9068b9deef6e756f0ec1ca944f55a9d2472d32726dc384e22
@@ -1,4 +1,4 @@
1
- require_relative "lib/image_processing/version"
1
+ require File.expand_path('../lib/image_processing/version', __FILE__)
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "image_processing"
@@ -18,5 +18,5 @@ Gem::Specification.new do |spec|
18
18
  spec.add_development_dependency "minitest-hooks"
19
19
  spec.add_development_dependency "minispec-metadata"
20
20
  spec.add_development_dependency "mini_magick", ">= 4.3.5"
21
- spec.add_development_dependency "phashion"
21
+ spec.add_development_dependency "phashion" unless RUBY_ENGINE == "jruby"
22
22
  end
@@ -24,9 +24,9 @@ module ImageProcessing
24
24
  # @param [String] format the format to convert to
25
25
  # @yield [MiniMagick::Tool::Mogrify, MiniMagick::Tool::Convert]
26
26
  # @return [File, Tempfile]
27
- def convert!(image, format, &block)
27
+ def convert!(image, format, page = nil, &block)
28
28
  with_minimagick(image) do |img|
29
- img.format(format.downcase, nil, &block)
29
+ img.format(format.downcase, page, &block)
30
30
  end
31
31
  end
32
32
  nondestructive_alias :convert, :convert!
@@ -192,6 +192,7 @@ module ImageProcessing
192
192
  args = [File.basename(file.path, ".*"), File.extname(file.path)] if file.respond_to?(:path)
193
193
  tempfile = Tempfile.new(args || "image", binmode: true)
194
194
  IO.copy_stream(file, tempfile.path)
195
+ file.rewind
195
196
  tempfile
196
197
  end
197
198
  end
@@ -1,3 +1,3 @@
1
1
  module ImageProcessing
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: image_processing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Janko Marohnić
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-21 00:00:00.000000000 Z
11
+ date: 2016-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  requirements: []
114
114
  rubyforge_project:
115
- rubygems_version: 2.4.5
115
+ rubygems_version: 2.5.1
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: Set of higher-level helper methods for image processing.