From c84e35ff1036914fb59b3c4fe00d300cc51f5509 Mon Sep 17 00:00:00 2001 From: Georg Gadinger Date: Wed, 29 Mar 2017 23:03:32 +0200 Subject: [PATCH] binsch --- bin/rails | 23 ++++++++++++++++------- bin/rspec | 13 +++++++------ 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/bin/rails b/bin/rails index 7feb6a30..0a7aba05 100755 --- a/bin/rails +++ b/bin/rails @@ -1,8 +1,17 @@ #!/usr/bin/env ruby -begin - load File.expand_path("../spring", __FILE__) -rescue LoadError -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' +# frozen_string_literal: true +# +# This file was generated by Bundler. +# +# The application 'rails' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require "rubygems" +require "bundler/setup" + +load Gem.bin_path("railties", "rails") diff --git a/bin/rspec b/bin/rspec index 267d9751..d738b23c 100755 --- a/bin/rspec +++ b/bin/rspec @@ -1,4 +1,5 @@ -#!/usr/bin/env ruby20 +#!/usr/bin/env ruby +# frozen_string_literal: true # # This file was generated by Bundler. # @@ -6,11 +7,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('rspec-core', 'rspec') +load Gem.bin_path("rspec-core", "rspec")