Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gem version must be provided as separate element in array #394

Merged
merged 1 commit into from Apr 1, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/fpm/package/gem.rb
Expand Up @@ -69,7 +69,7 @@ def download(gem_name, gem_version=nil)
gem_fetch = [ "#{attributes[:gem_gem]}", "fetch", gem_name]

gem_fetch += ["--prerelease"] if attributes[:gem_prerelease?]
gem_fetch += ["--version '#{gem_version}'"] if gem_version
gem_fetch += ["--version", gem_version] if gem_version

download_dir = build_path(gem_name)
FileUtils.mkdir(download_dir) unless File.directory?(download_dir)
Expand Down