diff options
author | Dennis Suratna <dennis.suratna@gmail.com> | 2017-04-11 18:44:33 +0700 |
---|---|---|
committer | Dennis Suratna <dennis.suratna@gmail.com> | 2017-04-11 18:44:33 +0700 |
commit | e66c790af246161f3f6ab69a5406bf98a2a6bfb3 (patch) | |
tree | 6a5beb5414e2a50d4f68d205651395706f17e007 | |
parent | c7cadc35d14a433716c11a4508331923e906b78d (diff) | |
download | bundler-e66c790af246161f3f6ab69a5406bf98a2a6bfb3.tar.gz |
Only prints out platform for non ruby and non-nil platform
-rw-r--r-- | lib/bundler/cli/pristine.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/bundler/cli/pristine.rb b/lib/bundler/cli/pristine.rb index 6055bac985..98cda6721f 100644 --- a/lib/bundler/cli/pristine.rb +++ b/lib/bundler/cli/pristine.rb @@ -6,16 +6,12 @@ module Bundler def run ::Bundler.load.specs.each do |spec| gem_name = "#{spec.name} (#{spec.version}#{spec.git_version})" - - if spec.platform != Gem::Platform::RUBY - gem_name += " (#{spec.platform.nil? ? "No platform" : spec.platform})" - end + gem_name += " (#{spec.platform})" if !spec.platform.nil? && spec.platform != Gem::Platform::RUBY case spec.source when Source::Rubygems cached_gem = spec.cache_file unless File.exist?(cached_gem) - # TODO: Refetch from ruby gem? ::Bundler.ui.error("Failed to pristine #{gem_name}. Cached gem #{cached_gem} does not exist.") next end |