spinach 402 Bytes
Newer Older
1
#!/usr/bin/env ruby
2 3 4 5 6

# 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__)

7
begin
8 9 10
  load File.expand_path('../spring', __FILE__)
rescue LoadError => e
  raise unless e.message.include?('spring')
11 12 13
end
require 'bundler/setup'
load Gem.bin_path('spinach', 'spinach')