diff options
author | Terence Lee <hone02@gmail.com> | 2012-04-22 12:32:29 -0500 |
---|---|---|
committer | Terence Lee <hone02@gmail.com> | 2012-05-03 16:26:05 -0700 |
commit | cc3d3ac9995f695020018d990558f7f835aa1288 (patch) | |
tree | 5a5fba40c41107ed3070329e39ecf7bb633d6be7 | |
parent | 018a3c33c55bb139ffeeb6cdb7ec3d9959e728be (diff) | |
download | bundler-cc3d3ac9995f695020018d990558f7f835aa1288.tar.gz |
rename 'bundle ruby' to 'bundle platform'
-rw-r--r-- | lib/bundler/cli.rb | 4 | ||||
-rw-r--r-- | spec/other/ruby_spec.rb | 16 |
2 files changed, 10 insertions, 10 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index 4eab7ac6..a3231369 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -625,8 +625,8 @@ module Bundler end end - desc "ruby", "Displays the ruby version specified" - def ruby + desc "platform", "Displays platform compatibility information" + def platform ruby_version = Bundler.definition.ruby_version ruby_version = "No ruby version specified" unless ruby_version diff --git a/spec/other/ruby_spec.rb b/spec/other/ruby_spec.rb index 12dd7bba..5f4e9ab6 100644 --- a/spec/other/ruby_spec.rb +++ b/spec/other/ruby_spec.rb @@ -1,6 +1,6 @@ require "spec_helper" -describe "bundle ruby" do +describe "bundle platform" do it "returns ruby version when explicit" do gemfile <<-G source "file://#{gem_repo1}" @@ -9,7 +9,7 @@ describe "bundle ruby" do gem "foo" G - bundle "ruby" + bundle "platform" out.should eq("ruby 1.9.3 (ruby 1.9.3)") end @@ -22,7 +22,7 @@ describe "bundle ruby" do gem "foo" G - bundle "ruby" + bundle "platform" out.should eq("ruby 1.9.3 (ruby 1.9.3)") end @@ -35,7 +35,7 @@ describe "bundle ruby" do gem "foo" G - bundle "ruby" + bundle "platform" out.should eq("ruby 1.8.7 (jruby 1.6.5)") end @@ -48,7 +48,7 @@ describe "bundle ruby" do gem "foo" G - bundle "ruby" + bundle "platform" out.should eq("ruby 1.8.7 (rbx 1.2.4)") end @@ -61,7 +61,7 @@ describe "bundle ruby" do gem "foo" G - bundle "ruby", :exitstatus => true + bundle "platform", :exitstatus => true exitstatus.should_not == 0 end @@ -74,7 +74,7 @@ describe "bundle ruby" do gem "foo" G - bundle "ruby", :exitstatus => true + bundle "platform", :exitstatus => true exitstatus.should_not == 0 end @@ -87,7 +87,7 @@ describe "bundle ruby" do gem "foo" G - bundle "ruby", :exitstatus => true + bundle "platform", :exitstatus => true exitstatus.should_not == 0 end |