Permalink
Browse files

Removed subexec depedency

  • Loading branch information...
1 parent eb465d0 commit cd52f05723ff9dc68ad4b4c30cf687423ce3a72d @EricR committed Sep 17, 2012
Showing with 4 additions and 6 deletions.
  1. BIN image_sorcery-1.0.6.gem
  2. +1 −2 image_sorcery.gemspec
  3. +3 −4 lib/image_sorcery.rb
View
Binary file not shown.
View
@@ -5,7 +5,7 @@ require 'bundler/version'
Gem::Specification.new do |s|
s.name = "image_sorcery"
- s.version = "1.0.6"
+ s.version = "1.0.7"
s.platform = Gem::Platform::RUBY
s.authors = ["Eric Rafaloff", "Guy Boertje"]
s.email = ["hello@ericrafaloff.com", "guy@musicglue.com"]
@@ -15,5 +15,4 @@ Gem::Specification.new do |s|
s.files = Dir.glob("{lib}/**/*") + %w(README.markdown)
s.require_path = 'lib'
s.requirements = "ImageMagick or GraphicsMagick"
- s.add_dependency "subexec"
end
View
@@ -1,4 +1,3 @@
-require 'subexec'
require 'gm_support'
class Sorcery
@@ -63,8 +62,8 @@ def convert_to_arguments(args)
end
def run(cmds)
- sub = Subexec.run(cmds.to_s)
- success = sub.exitstatus == 0 ? true : false
- [sub.output,success]
+ output = IO.popen(cmds.to_s) {|o| o.read }
+ success = $?.exitstatus == 0 ? true : false
+ [output,success]
end
end

0 comments on commit cd52f05

Please sign in to comment.