File tree Expand file tree Collapse file tree 3 files changed +39
-9
lines changed
Expand file tree Collapse file tree 3 files changed +39
-9
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env ruby
22# frozen_string_literal: true
3+
34#
45# This file was generated by Bundler.
56#
67# The application 'rake' is installed as part of a gem, and
78# this file is here to facilitate running it.
89#
910
10- require "pathname"
11- ENV [ "BUNDLE_GEMFILE" ] ||= File . expand_path ( "../../Gemfile" ,
12- Pathname . new ( __FILE__ ) . realpath )
11+ ENV [ "BUNDLE_GEMFILE" ] ||= File . expand_path ( "../Gemfile" , __dir__ )
12+
13+ bundle_binstub = File . expand_path ( "bundle" , __dir__ )
14+
15+ if File . file? ( bundle_binstub )
16+ if File . read ( bundle_binstub , 300 ) =~ /This file was generated by Bundler/
17+ load ( bundle_binstub )
18+ else
19+ abort ( "Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again." )
21+ end
22+ end
1323
1424require "rubygems"
1525require "bundler/setup"
Original file line number Diff line number Diff line change 11#!/usr/bin/env ruby
22# frozen_string_literal: true
3+
34#
45# This file was generated by Bundler.
56#
67# The application 'rspec' is installed as part of a gem, and
78# this file is here to facilitate running it.
89#
910
10- require "pathname"
11- ENV [ "BUNDLE_GEMFILE" ] ||= File . expand_path ( "../../Gemfile" ,
12- Pathname . new ( __FILE__ ) . realpath )
11+ ENV [ "BUNDLE_GEMFILE" ] ||= File . expand_path ( "../Gemfile" , __dir__ )
12+
13+ bundle_binstub = File . expand_path ( "bundle" , __dir__ )
14+
15+ if File . file? ( bundle_binstub )
16+ if File . read ( bundle_binstub , 300 ) =~ /This file was generated by Bundler/
17+ load ( bundle_binstub )
18+ else
19+ abort ( "Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again." )
21+ end
22+ end
1323
1424require "rubygems"
1525require "bundler/setup"
Original file line number Diff line number Diff line change 11#!/usr/bin/env ruby
22# frozen_string_literal: true
3+
34#
45# This file was generated by Bundler.
56#
67# The application 'yard' is installed as part of a gem, and
78# this file is here to facilitate running it.
89#
910
10- require "pathname"
11- ENV [ "BUNDLE_GEMFILE" ] ||= File . expand_path ( "../../Gemfile" ,
12- Pathname . new ( __FILE__ ) . realpath )
11+ ENV [ "BUNDLE_GEMFILE" ] ||= File . expand_path ( "../Gemfile" , __dir__ )
12+
13+ bundle_binstub = File . expand_path ( "bundle" , __dir__ )
14+
15+ if File . file? ( bundle_binstub )
16+ if File . read ( bundle_binstub , 300 ) =~ /This file was generated by Bundler/
17+ load ( bundle_binstub )
18+ else
19+ abort ( "Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again." )
21+ end
22+ end
1323
1424require "rubygems"
1525require "bundler/setup"
You can’t perform that action at this time.
0 commit comments