summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel E. Giddins <segiddins@segiddins.me>2015-07-06 17:25:18 -0700
committerSamuel E. Giddins <segiddins@segiddins.me>2015-07-06 17:25:18 -0700
commit114fe7d16dd184ceb6130165ae2a9b1af2e9432d (patch)
tree604820f20ce4377c9f3dc01ab5d81589ac908c9c
parent53bd2feaf342dc9678c6ace2299e15244af68c43 (diff)
downloadbundler-seg-binstubs.tar.gz
Add new binstubs for rake and rspec in bin, move executables to exeseg-binstubs
-rwxr-xr-xbin/rake8
-rwxr-xr-xbin/rspec8
-rw-r--r--bundler.gemspec1
-rwxr-xr-xexe/bundle (renamed from bin/bundle)0
-rwxr-xr-xexe/bundle_ruby (renamed from bin/bundle_ruby)0
-rwxr-xr-xexe/bundler (renamed from bin/bundler)0
-rw-r--r--spec/support/helpers.rb2
7 files changed, 18 insertions, 1 deletions
diff --git a/bin/rake b/bin/rake
new file mode 100755
index 0000000000..4abe5efe45
--- /dev/null
+++ b/bin/rake
@@ -0,0 +1,8 @@
+#!/usr/bin/env ruby
+
+bundler_spec = Gem::Specification.load(File.expand_path("../../bundler.gemspec", __FILE__))
+bundler_spec.dependencies.each do |dep|
+ gem dep.name, dep.requirement.to_s
+end
+
+load Gem.bin_path('rake', 'rake')
diff --git a/bin/rspec b/bin/rspec
new file mode 100755
index 0000000000..dc429cd5ae
--- /dev/null
+++ b/bin/rspec
@@ -0,0 +1,8 @@
+#!/usr/bin/env ruby
+
+bundler_spec = Gem::Specification.load(File.expand_path("../../bundler.gemspec", __FILE__))
+bundler_spec.dependencies.each do |dep|
+ gem dep.name, dep.requirement.to_s
+end
+
+load Gem.bin_path('rspec', 'rspec')
diff --git a/bundler.gemspec b/bundler.gemspec
index 142e3d33f3..c2a6340b77 100644
--- a/bundler.gemspec
+++ b/bundler.gemspec
@@ -27,6 +27,7 @@ Gem::Specification.new do |s|
# we use them to generate the long-form help for each command.
s.files += Dir.glob('lib/bundler/man/**/*')
+ s.bindir = "exe"
s.executables = %w(bundle bundler)
s.require_paths = ["lib"]
end
diff --git a/bin/bundle b/exe/bundle
index 89c823eae3..89c823eae3 100755
--- a/bin/bundle
+++ b/exe/bundle
diff --git a/bin/bundle_ruby b/exe/bundle_ruby
index d0cfdc2778..d0cfdc2778 100755
--- a/bin/bundle_ruby
+++ b/exe/bundle_ruby
diff --git a/bin/bundler b/exe/bundler
index 89c823eae3..89c823eae3 100755
--- a/bin/bundler
+++ b/exe/bundler
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb
index c1d9bfc28c..07126cff23 100644
--- a/spec/support/helpers.rb
+++ b/spec/support/helpers.rb
@@ -61,7 +61,7 @@ module Spec
sudo = "sudo" if options.delete(:sudo)
options["no-color"] = true unless options.key?("no-color") || %w(exec conf).include?(cmd.to_s[0..3])
- bundle_bin = File.expand_path('../../../bin/bundle', __FILE__)
+ bundle_bin = File.expand_path('../../../exe/bundle', __FILE__)
requires = options.delete(:requires) || []
requires << File.expand_path('../fakeweb/'+options.delete(:fakeweb)+'.rb', __FILE__) if options.key?(:fakeweb)