Sha256: 27dbe4f603b154593c21438386be950829a5cacc2ab9cf0baabbd708d552aa25
Contents?: true
Size: 541 Bytes
Versions: 4
Compression:
Stored size: 541 Bytes
Contents
#!/usr/bin/env ruby <%- if (bundler? && (git? || hg?)) -%> root_dir = File.expand_path(File.join(File.dirname(__FILE__),'..')) if File.directory?(File.join(root_dir,'.git')) Dir.chdir(root_dir) do |path| require 'bundler' begin Bundler.setup(:default) rescue Bundler::BundlerError => e warn e.message warn "Run `bundle install` to install missing gems" exit e.status_code end end lib_dir = File.join(root_dir,'lib') $LOAD_PATH << lib_dir unless $LOAD_PATH.include?(lib_dir) end <%- end -%>
Version data entries
4 entries across 4 versions & 1 rubygems