image_sorcery 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +1 -1
- data/lib/image_sorcery.rb +3 -4
- metadata +3 -14
data/README.markdown
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Image Sorcery allows you to leverage all three of ImageMagick's command line tools, [mogrify](http://www.imagemagick.org/script/mogrify.php), [convert](http://www.imagemagick.org/script/convert.php), and [identify](http://www.imagemagick.org/script/identify.php), for maximum magickal power and minimum memory consumption!
|
1
|
+
Image Sorcery allows you to leverage all three of ImageMagick's command line tools, [mogrify](http://www.imagemagick.org/script/mogrify.php), [convert](http://www.imagemagick.org/script/convert.php), and [identify](http://www.imagemagick.org/script/identify.php), for maximum magickal power and minimum memory consumption! It lets you use GraphicsMagick if that's you're thing, too.
|
2
2
|
|
3
3
|
## Why?
|
4
4
|
|
data/lib/image_sorcery.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'subexec'
|
2
1
|
require 'gm_support'
|
3
2
|
|
4
3
|
class Sorcery
|
@@ -63,8 +62,8 @@ class Sorcery
|
|
63
62
|
end
|
64
63
|
|
65
64
|
def run(cmds)
|
66
|
-
|
67
|
-
success =
|
68
|
-
[
|
65
|
+
output = IO.popen(cmds.to_s) {|o| o.read }
|
66
|
+
success = $?.exitstatus == 0 ? true : false
|
67
|
+
[output,success]
|
69
68
|
end
|
70
69
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: image_sorcery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,19 +10,8 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
14
|
-
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
16
|
-
name: subexec
|
17
|
-
requirement: &70316901429800 !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
|
-
requirements:
|
20
|
-
- - ! '>='
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '0'
|
23
|
-
type: :runtime
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: *70316901429800
|
13
|
+
date: 2012-09-17 00:00:00.000000000Z
|
14
|
+
dependencies: []
|
26
15
|
description: A ruby ImageMagick library that doesn't suck
|
27
16
|
email:
|
28
17
|
- hello@ericrafaloff.com
|