From c25993cb4d26392d39b3f08414f2406f2847a784 Mon Sep 17 00:00:00 2001 From: Terence Lee Date: Fri, 28 Dec 2012 21:53:08 -0500 Subject: change bundle binstubs --binstubs to --path --- lib/bundler/cli.rb | 6 +++--- spec/other/binstubs_spec.rb | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index c7c6e0c4..e472c91f 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -336,14 +336,14 @@ module Bundler This command will install bundler generated binstubs of the [GEM] specified in the bin directory specified by --binstubs or the default location. D - method_option "binstubs", :type => :string, :lazy_default => "bin", :banner => + method_option "path", :type => :string, :lazy_default => "bin", :banner => "the directory to put the binstubs, defaults to ./bin" method_option "force", :type => :boolean, :default => false, :banner => "forces the writing of a binstub, even if it already exists" def binstubs(gem_name) Bundler.definition.validate_ruby! - Bundler.settings[:bin] = options["binstubs"] if options["binstubs"] - Bundler.settings[:bin] = nil if options["binstubs"] && options["binstubs"].empty? + Bundler.settings[:bin] = options["path"] if options["path"] + Bundler.settings[:bin] = nil if options["path"] && options["path"].empty? installer = Installer.new(Bundler.root, Bundler.definition) spec = installer.specs.find{|s| s.name == gem_name } raise GemNotFound, not_found_message(name, Bundler.load.specs) unless spec diff --git a/spec/other/binstubs_spec.rb b/spec/other/binstubs_spec.rb index 8fcc7910..e80747a5 100644 --- a/spec/other/binstubs_spec.rb +++ b/spec/other/binstubs_spec.rb @@ -68,14 +68,14 @@ describe "bundle binstubs " do end end - context "--binstubs" do + context "--path" do it "sets the binstubs dir" do install_gemfile <<-G source "file://#{gem_repo1}" gem "rack" G - bundle "binstubs rack --binstubs exec" + bundle "binstubs rack --path exec" expect(bundled_app("exec/rackup")).to exist end @@ -87,7 +87,7 @@ describe "bundle binstubs " do gem "rails" G - bundle "binstubs rack --binstubs exec" + bundle "binstubs rack --path exec" bundle :install expect(bundled_app("exec/rails")).to exist -- cgit v1.2.3