diff options
author | Terence Lee <hone02@gmail.com> | 2012-05-04 01:55:23 -0700 |
---|---|---|
committer | Terence Lee <hone02@gmail.com> | 2012-05-04 01:55:23 -0700 |
commit | a63bdd32736ea176dbf6ae68cc54a1f398e557d9 (patch) | |
tree | 8c47cc7972f49d15057d01a3b62dcbe27abcc9dd | |
parent | 9a769acdbccc4b8fab0a685f7911168b0001b4ce (diff) | |
download | bundler-a63bdd32736ea176dbf6ae68cc54a1f398e557d9.tar.gz |
prepend platform list item with a *
-rw-r--r-- | lib/bundler/cli.rb | 2 | ||||
-rw-r--r-- | spec/other/platform_spec.rb | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index ce8c3969..c852bed9 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -630,7 +630,7 @@ module Bundler method_option "ruby", :type => :boolean, :default => false, :banner => "only display ruby related platform information" def platform - platforms = Bundler.definition.platforms + platforms = Bundler.definition.platforms.map {|p| "* #{p}" } ruby_version = Bundler.definition.ruby_version output = [] diff --git a/spec/other/platform_spec.rb b/spec/other/platform_spec.rb index c880d4f2..d013049a 100644 --- a/spec/other/platform_spec.rb +++ b/spec/other/platform_spec.rb @@ -16,7 +16,7 @@ describe "bundle platform" do Your platform is: #{RUBY_PLATFORM} Your app has gems that work on these platforms: -ruby +* ruby Your Gemfile specifies a Ruby version requirement: * ruby #{RUBY_VERSION} @@ -37,7 +37,7 @@ G Your platform is: #{RUBY_PLATFORM} Your app has gems that work on these platforms: -ruby +* ruby Your Gemfile does not specify a Ruby version requirement. G @@ -57,7 +57,7 @@ G Your platform is: #{RUBY_PLATFORM} Your app has gems that work on these platforms: -ruby +* ruby Your Gemfile specifies a Ruby version requirement: * ruby #{not_local_ruby_version} |