summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerence Lee <hone02@gmail.com>2012-05-04 01:55:23 -0700
committerTerence Lee <hone02@gmail.com>2012-05-04 01:55:23 -0700
commita63bdd32736ea176dbf6ae68cc54a1f398e557d9 (patch)
tree8c47cc7972f49d15057d01a3b62dcbe27abcc9dd
parent9a769acdbccc4b8fab0a685f7911168b0001b4ce (diff)
downloadbundler-1.2.0.pre.tar.gz
prepend platform list item with a *v1.2.0.pre
-rw-r--r--lib/bundler/cli.rb2
-rw-r--r--spec/other/platform_spec.rb6
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index ce8c396964..c852bed908 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 c880d4f2ac..d013049a5c 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}