carrierwave-graphicsmagick 0.0.1 → 1.0.0

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 ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NjE2ZDM3MmVhYmViZDcwZTg1MmUzNDExYTYxM2YxOGE4MjY4NzVkNg==
5
+ data.tar.gz: !binary |-
6
+ MDFhMzE4NzYyOWI0ZTcyYWU5NGFmMGYxM2M4MzQ4NTZmZTZlMTE2MA==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MDVmZjg1NzBmYzZjMDU0NDUxNjE4MjJkNGFmNWRhYjRkZTNlODUyODAxZGEz
10
+ OWNmYTY5MDdkODRjNDBjZDVmNGE5YjEzYjczODhjODU2YmEwZjc5N2YwZGVi
11
+ NzM3NWQyNjVhMjU4MWU1ZTliMjNiZDk1ZTJkYjg1YjdjMjBjYTM=
12
+ data.tar.gz: !binary |-
13
+ YWQxMDIyZTUwNzUwOGI2Yjk3YTljMGMyMGI2YTMzNTQxZDU5NGQyMTAxNmE4
14
+ ZTQ5OTUzMmVlY2ZkYmYzYzJhOWU3YTQwYTgzYzQzMDllZWRkNjRiY2ZjM2Ix
15
+ NzRiZDllNWMzMzQ1MjBmM2RkNzZjY2E4MjIxZTY1Y2RhMWZjNzM=
@@ -60,7 +60,8 @@ module CarrierWave
60
60
  #
61
61
  def convert(format)
62
62
  manipulate! do |img|
63
- img.format(format.to_s.downcase)
63
+ @format = format
64
+ img.convert
64
65
  img = yield(img) if block_given?
65
66
  img
66
67
  end
@@ -194,8 +195,14 @@ module CarrierWave
194
195
 
195
196
  def process!(*)
196
197
  result = super
198
+
197
199
  if @_gimage
198
- @_gimage.write!
200
+ if @format
201
+ new_file = @_gimage.write(File.expand_path("#{file.basename}.#{@format.to_s.downcase}", File.dirname(file.path)))
202
+ file.send(:"file=", new_file.file)
203
+ else
204
+ @_gimage.write!
205
+ end
199
206
  @_gimage = nil
200
207
  end
201
208
  result
@@ -1,5 +1,5 @@
1
1
  module CarrierWave
2
2
  module GraphicsMagick
3
- VERSION = "0.0.1"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave-graphicsmagick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 1.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Chad McGimpsey
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-08-30 00:00:00.000000000 Z
11
+ date: 2013-11-08 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: graphicsmagick
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: carrierwave
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -64,27 +59,26 @@ files:
64
59
  homepage: https://github.com/dignoe/carrierwave-graphicsmagick
65
60
  licenses:
66
61
  - MIT
62
+ metadata: {}
67
63
  post_install_message:
68
64
  rdoc_options: []
69
65
  require_paths:
70
66
  - lib
71
67
  required_ruby_version: !ruby/object:Gem::Requirement
72
- none: false
73
68
  requirements:
74
69
  - - ! '>='
75
70
  - !ruby/object:Gem::Version
76
71
  version: '0'
77
72
  required_rubygems_version: !ruby/object:Gem::Requirement
78
- none: false
79
73
  requirements:
80
74
  - - ! '>='
81
75
  - !ruby/object:Gem::Version
82
76
  version: '0'
83
77
  requirements: []
84
78
  rubyforge_project:
85
- rubygems_version: 1.8.25
79
+ rubygems_version: 2.1.6
86
80
  signing_key:
87
- specification_version: 3
81
+ specification_version: 4
88
82
  summary: Convenience methods for using CarrierWave with the GraphicsMagick high performance
89
83
  CLI gem.
90
84
  test_files: []