2014-02-16 05:22:03 -05:00
|
|
|
#!/usr/bin/env ruby
|
2018-04-10 07:18:37 -04:00
|
|
|
|
|
|
|
# Remove this block when removing rails5? code.
|
|
|
|
gemfile = %w[1 true].include?(ENV["RAILS5"]) ? "Gemfile.rails5" : "Gemfile"
|
|
|
|
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../#{gemfile}", __dir__)
|
|
|
|
|
2014-02-16 05:22:03 -05:00
|
|
|
begin
|
2016-04-22 12:36:47 -04:00
|
|
|
load File.expand_path('../spring', __FILE__)
|
|
|
|
rescue LoadError => e
|
|
|
|
raise unless e.message.include?('spring')
|
2014-02-16 05:22:03 -05:00
|
|
|
end
|
|
|
|
require 'bundler/setup'
|
|
|
|
load Gem.bin_path('spinach', 'spinach')
|