Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rename 'bundle ruby' to 'bundle platform'

  • Loading branch information...
commit cc3d3ac9995f695020018d990558f7f835aa1288 1 parent 018a3c3
@hone hone authored
Showing with 10 additions and 10 deletions.
  1. +2 −2 lib/bundler/cli.rb
  2. +8 −8 spec/other/ruby_spec.rb
View
4 lib/bundler/cli.rb
@@ -625,8 +625,8 @@ def clean
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
View
16 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 @@
gem "foo"
G
- bundle "ruby"
+ bundle "platform"
out.should eq("ruby 1.9.3 (ruby 1.9.3)")
end
@@ -22,7 +22,7 @@
gem "foo"
G
- bundle "ruby"
+ bundle "platform"
out.should eq("ruby 1.9.3 (ruby 1.9.3)")
end
@@ -35,7 +35,7 @@
gem "foo"
G
- bundle "ruby"
+ bundle "platform"
out.should eq("ruby 1.8.7 (jruby 1.6.5)")
end
@@ -48,7 +48,7 @@
gem "foo"
G
- bundle "ruby"
+ bundle "platform"
out.should eq("ruby 1.8.7 (rbx 1.2.4)")
end
@@ -61,7 +61,7 @@
gem "foo"
G
- bundle "ruby", :exitstatus => true
+ bundle "platform", :exitstatus => true
exitstatus.should_not == 0
end
@@ -74,7 +74,7 @@
gem "foo"
G
- bundle "ruby", :exitstatus => true
+ bundle "platform", :exitstatus => true
exitstatus.should_not == 0
end
@@ -87,7 +87,7 @@
gem "foo"
G
- bundle "ruby", :exitstatus => true
+ bundle "platform", :exitstatus => true
exitstatus.should_not == 0
end
Please sign in to comment.
Something went wrong with that request. Please try again.