Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

prepend platform list item with a *

  • Loading branch information...
commit a63bdd32736ea176dbf6ae68cc54a1f398e557d9 1 parent 9a769ac
@hone hone authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  lib/bundler/cli.rb
  2. +3 −3 spec/other/platform_spec.rb
View
2  lib/bundler/cli.rb
@@ -630,7 +630,7 @@ def clean
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 = []
View
6 spec/other/platform_spec.rb
@@ -16,7 +16,7 @@
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 @@
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 @@
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}
Please sign in to comment.
Something went wrong with that request. Please try again.