Skip to content

Commit 89db0ff

Browse files
authored
use rails binstubs instead of bundlers (#1418)
1 parent 38156fb commit 89db0ff

File tree

5 files changed

+6
-56
lines changed

5 files changed

+6
-56
lines changed

spec/dummy/bin/bundle

100644100755
File mode changed.

spec/dummy/bin/dev

100644100755
File mode changed.

spec/dummy/bin/rails

100644100755
Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,4 @@
11
#!/usr/bin/env ruby
2-
# frozen_string_literal: true
3-
4-
#
5-
# This file was generated by Bundler.
6-
#
7-
# The application 'rails' is installed as part of a gem, and
8-
# this file is here to facilitate running it.
9-
#
10-
11-
require "pathname"
12-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13-
Pathname.new(__FILE__).realpath)
14-
15-
bundle_binstub = File.expand_path("../bundle", __FILE__)
16-
17-
if File.file?(bundle_binstub)
18-
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19-
load(bundle_binstub)
20-
else
21-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23-
end
24-
end
25-
26-
require "rubygems"
27-
require "bundler/setup"
28-
29-
load Gem.bin_path("railties", "rails")
2+
APP_PATH = File.expand_path("../config/application", __dir__)
3+
require_relative "../config/boot"
4+
require "rails/commands"

spec/dummy/bin/rake

100644100755
Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,4 @@
11
#!/usr/bin/env ruby
2-
# frozen_string_literal: true
3-
4-
#
5-
# This file was generated by Bundler.
6-
#
7-
# The application 'rake' is installed as part of a gem, and
8-
# this file is here to facilitate running it.
9-
#
10-
11-
require "pathname"
12-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13-
Pathname.new(__FILE__).realpath)
14-
15-
bundle_binstub = File.expand_path("../bundle", __FILE__)
16-
17-
if File.file?(bundle_binstub)
18-
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19-
load(bundle_binstub)
20-
else
21-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23-
end
24-
end
25-
26-
require "rubygems"
27-
require "bundler/setup"
28-
29-
load Gem.bin_path("rake", "rake")
2+
require_relative "../config/boot"
3+
require "rake"
4+
Rake.application.run

spec/dummy/bin/setup

100644100755
File mode changed.

0 commit comments

Comments
 (0)