[DRE-commits] [gemwatch] 01/02: fix system() call again
Antonio Terceiro
terceiro at moszumanska.debian.org
Thu Aug 6 14:59:36 UTC 2015
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository gemwatch.
commit dcb60d8f395dca350e33259f5b0fc12fe33e0b69
Author: Antonio Terceiro <terceiro at debian.org>
Date: Thu Aug 6 11:54:15 2015 -0300
fix system() call again
---
gemwatch.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gemwatch.rb b/gemwatch.rb
index 9723220..3cb00e8 100644
--- a/gemwatch.rb
+++ b/gemwatch.rb
@@ -47,7 +47,7 @@ class GemWatch::Gem
@data = { "name" => "#{gemname}", "version" => "" }
# keep all rails assets gems in download base
Dir.chdir(DOWNLOAD_BASE) do
- run(["gem", "fetch", "--source", "http://rails-assets.org", gemname])
+ run("gem", "fetch", "--source", "http://rails-assets.org", gemname)
# Find out latest version from downloaded gem
Dir.glob("#{gemname}*.gem") {|file|
@data['version'] = file.split(/.gem/)[0].split(/#{gemname}-/)[1]
@@ -87,7 +87,7 @@ class GemWatch::Gem
def gem
File.basename(uri)
end
- def run(cmd)
+ def run(*cmd)
system(*cmd)
if $? && ($? >> 8) > 0
raise GemWatch::Gem::CommandFailed, "[#{cmd} failed!]"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gemwatch.git
More information about the Pkg-ruby-extras-commits
mailing list