From 2245e0b403bd825626f5023d599dc7a9359b4d25 Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Tue, 2 May 2017 23:42:42 +0200 Subject: [PATCH] Update binstubs Add new binstubs for: bundle, pronto and rubocop --- bin/bundle | 17 +++++++++++++++++ bin/guard | 11 ++++++----- bin/pronto | 17 +++++++++++++++++ bin/rake | 11 ++++++----- bin/rspec | 19 +++++++++++++++++-- bin/rubocop | 17 +++++++++++++++++ bin/spring | 3 ++- 7 files changed, 82 insertions(+), 13 deletions(-) create mode 100755 bin/bundle create mode 100755 bin/pronto create mode 100755 bin/rubocop diff --git a/bin/bundle b/bin/bundle new file mode 100755 index 0000000..c3bb880 --- /dev/null +++ b/bin/bundle @@ -0,0 +1,17 @@ +#!/usr/bin/env ruby +# frozen_string_literal: true +# +# This file was generated by Bundler. +# +# The application 'bundler' 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("bundler", "bundle") diff --git a/bin/guard b/bin/guard index 0c1a532..3df2151 100755 --- a/bin/guard +++ b/bin/guard @@ -1,4 +1,5 @@ #!/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('guard', 'guard') +load Gem.bin_path("guard", "guard") diff --git a/bin/pronto b/bin/pronto new file mode 100755 index 0000000..dad53ea --- /dev/null +++ b/bin/pronto @@ -0,0 +1,17 @@ +#!/usr/bin/env ruby +# frozen_string_literal: true +# +# This file was generated by Bundler. +# +# The application 'pronto' 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("pronto", "pronto") diff --git a/bin/rake b/bin/rake index 15c7e5e..c2ffc27 100755 --- a/bin/rake +++ b/bin/rake @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true # # This file was generated by Bundler. # @@ -12,11 +13,11 @@ rescue LoadError => e raise unless e.message.include?('spring') end -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('rake', 'rake') +load Gem.bin_path("rake", "rake") diff --git a/bin/rspec b/bin/rspec index 6e67092..5f7d9af 100755 --- a/bin/rspec +++ b/bin/rspec @@ -1,8 +1,23 @@ #!/usr/bin/env ruby +# frozen_string_literal: true +# +# This file was generated by Bundler. +# +# The application 'rspec' is installed as part of a gem, and +# this file is here to facilitate running it. +# + begin load File.expand_path('../spring', __FILE__) rescue LoadError => e raise unless e.message.include?('spring') end -require 'bundler/setup' -load Gem.bin_path('rspec-core', 'rspec') + +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require "rubygems" +require "bundler/setup" + +load Gem.bin_path("rspec-core", "rspec") diff --git a/bin/rubocop b/bin/rubocop new file mode 100755 index 0000000..ccb4d56 --- /dev/null +++ b/bin/rubocop @@ -0,0 +1,17 @@ +#!/usr/bin/env ruby +# frozen_string_literal: true +# +# This file was generated by Bundler. +# +# The application 'rubocop' 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("rubocop", "rubocop") diff --git a/bin/spring b/bin/spring index 9bc076b..fb2ec2e 100755 --- a/bin/spring +++ b/bin/spring @@ -8,7 +8,8 @@ unless defined?(Spring) require 'bundler' lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - if spring = lockfile.specs.detect { |spec| spec.name == "spring" } + spring = lockfile.specs.detect { |spec| spec.name == "spring" } + if spring Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path gem 'spring', spring.version require 'spring/binstub'