summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <website+github.com@arko.net>2011-04-29 12:13:41 -0700
committerAndre Arko <website+github.com@arko.net>2011-04-29 12:13:41 -0700
commitefa5b3fcf1f6f30f83cad966d35ec2d453fa51b7 (patch)
tree273ed12cecdec686872ac5118b862e0320d1bd93
parent3962344b9fbf4a186832e63ef5b8e3807b0f53dd (diff)
parent137af72cc4182ae6e0d078caec9914a8bc157fa5 (diff)
downloadbundler-efa5b3fcf1f6f30f83cad966d35ec2d453fa51b7.tar.gz
Merged pull request #1118 from rslifka/1-0-stable.
Fix for spaces in the pathname when releasing gems.
-rw-r--r--lib/bundler/gem_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/gem_helper.rb b/lib/bundler/gem_helper.rb
index b2510f60de..84000356ad 100644
--- a/lib/bundler/gem_helper.rb
+++ b/lib/bundler/gem_helper.rb
@@ -39,7 +39,7 @@ module Bundler
def build_gem
file_name = nil
- sh("gem build #{spec_path}") { |out, code|
+ sh("gem build '#{spec_path}'") { |out, code|
raise out unless out[/Successfully/]
file_name = File.basename(built_gem_path)
FileUtils.mkdir_p(File.join(base, 'pkg'))
@@ -51,7 +51,7 @@ module Bundler
def install_gem
built_gem_path = build_gem
- out, _ = sh_with_code("gem install #{built_gem_path}")
+ out, _ = sh_with_code("gem install '#{built_gem_path}'")
raise "Couldn't install gem, run `gem install #{built_gem_path}' for more detailed output" unless out[/Successfully installed/]
Bundler.ui.confirm "#{name} (#{version}) installed"
end
@@ -68,7 +68,7 @@ module Bundler
protected
def rubygem_push(path)
- out, _ = sh("gem push #{path}")
+ out, _ = sh("gem push '#{path}'")
raise "Gem push failed due to lack of RubyGems.org credentials." if out[/Enter your RubyGems.org credentials/]
Bundler.ui.confirm "Pushed #{name} #{version} to rubygems.org"
end