2014-09-02 18:07:02 +05:30
|
|
|
#!/usr/bin/env ruby
|
2018-10-15 14:42:47 +05:30
|
|
|
|
|
|
|
# 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-09-02 18:07:02 +05:30
|
|
|
begin
|
2016-06-02 11:05:42 +05:30
|
|
|
load File.expand_path('../spring', __FILE__)
|
|
|
|
rescue LoadError => e
|
|
|
|
raise unless e.message.include?('spring')
|
2014-09-02 18:07:02 +05:30
|
|
|
end
|
|
|
|
require 'bundler/setup'
|
|
|
|
load Gem.bin_path('spinach', 'spinach')
|