From 32eb2a38effdca6df339b7da42e2e43a1d9b0087 Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Sun, 2 Jul 2017 16:06:41 +0200 Subject: Add a bin/bundle binstub --- bin/bundle | 8 ++++++++ doc/development/SETUP.md | 2 +- lib/bundler/version.rb | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100755 bin/bundle diff --git a/bin/bundle b/bin/bundle new file mode 100755 index 0000000000..85ce199a8d --- /dev/null +++ b/bin/bundle @@ -0,0 +1,8 @@ +#!/usr/bin/env ruby +# frozen_string_literal: true + +require "rubygems" +bundler_gemspec = Gem::Specification.load(File.expand_path("../../bundler.gemspec", __FILE__)) +bundler_gemspec.instance_variable_set(:@full_gem_path, File.expand_path("../..", __FILE__)) +bundler_gemspec.activate if bundler_gemspec.respond_to?(:activate) +load File.expand_path("../../exe/bundle", __FILE__) diff --git a/doc/development/SETUP.md b/doc/development/SETUP.md index d4ec555fef..2f971de92b 100644 --- a/doc/development/SETUP.md +++ b/doc/development/SETUP.md @@ -20,7 +20,7 @@ Bundler doesn't use a Gemfile to list development dependencies, because when we 4. Set up a shell alias to run Bundler from your clone, e.g. a Bash alias: - `$ alias dbundle='ruby -I /path/to/bundler/lib /path/to/bundler/exe/bundle'` + `$ alias dbundle='/path/to/bundler/repo/bin/bundle'` ## Debugging with `pry` diff --git a/lib/bundler/version.rb b/lib/bundler/version.rb index 3f9a1211fb..dad4a88a26 100644 --- a/lib/bundler/version.rb +++ b/lib/bundler/version.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: true +# frozen_string_literal: false # Ruby 1.9.3 and old RubyGems don't play nice with frozen version strings # rubocop:disable MutableConstant -- cgit v1.2.1