Skip to content

Commit

Permalink
Removed subexec depedency
Browse files Browse the repository at this point in the history
  • Loading branch information
EricR committed Sep 17, 2012
1 parent eb465d0 commit cd52f05
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Binary file removed image_sorcery-1.0.6.gem
Binary file not shown.
3 changes: 1 addition & 2 deletions image_sorcery.gemspec
Expand Up @@ -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"]
Expand All @@ -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
7 changes: 3 additions & 4 deletions lib/image_sorcery.rb
@@ -1,4 +1,3 @@
require 'subexec'
require 'gm_support'

class Sorcery
Expand Down Expand Up @@ -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.