diff --git a/UPGRADING.md b/UPGRADING.md index 905f6a41eb1..666dcf7ae4f 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -61,8 +61,8 @@ Bundler 0.9 removes the following Bundler 0.8 Gemfile APIs: via `bundle install /path/to/bundle`. Bundler will remember where you installed the dependencies to on a particular machine for future installs, loads, setups, etc. -5. `bin_path`: Bundler no longer generates binaries in the root - of your app. You should use `bundle exec` to execute binaries +5. `bin_path`: Bundler no longer generates executables in the root + of your app. You should use `bundle exec` to execute executables in the current context. ### Gemfile Changes diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index 9d53384a4a0..87131931aab 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -347,7 +347,7 @@ def exec(*) exit 126 rescue Errno::ENOENT Bundler.ui.error "bundler: command not found: #{ARGV.first}" - Bundler.ui.warn "Install missing gem binaries with `bundle install`" + Bundler.ui.warn "Install missing gem executables with `bundle install`" exit 127 end end diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb index bea3f9874f6..29e5139a1d2 100644 --- a/lib/bundler/source.rb +++ b/lib/bundler/source.rb @@ -362,9 +362,9 @@ def load_spec_files s.relative_loaded_from = "#{@name}.gemspec" s.authors = ["no one"] if expanded_path.join("bin").exist? - binaries = expanded_path.join("bin").children - binaries.reject!{|p| File.directory?(p) } - s.executables = binaries.map{|c| c.basename.to_s } + executables = expanded_path.join("bin").children + executables.reject!{|p| File.directory?(p) } + s.executables = executables.map{|c| c.basename.to_s } end end end diff --git a/spec/other/exec_spec.rb b/spec/other/exec_spec.rb index 8f38824bf58..94e6408f2bf 100644 --- a/spec/other/exec_spec.rb +++ b/spec/other/exec_spec.rb @@ -101,7 +101,7 @@ bundle "exec foobarbaz", :exitstatus => true exitstatus.should eq(127) out.should include("bundler: command not found: foobarbaz") - out.should include("Install missing gem binaries with `bundle install`") + out.should include("Install missing gem executables with `bundle install`") end it "errors nicely when the argument is not executable" do @@ -115,7 +115,7 @@ out.should include("bundler: not executable: ./foo") end - describe "with gem binaries" do + describe "with gem executables" do describe "run from a random directory" do before(:each) do install_gemfile <<-G