Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f7bfddea60
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (28 sloc) 0.886 kb
require 'digest/sha1'
# DO NOT MODIFY THIS FILE
<%= shared_helpers %>
module Bundler
extend SharedHelpers
reverse_rubygems_kernel_mixin
FINGERPRINT = <%= gemfile_fingerprint.inspect %>
LOAD_PATHS = <%= load_paths.inspect %>
AUTOREQUIRES = <%= autorequires_for_groups.inspect %>
def self.match_fingerprint
print = Digest::SHA1.hexdigest(File.read(File.expand_path('../../Gemfile', __FILE__)))
unless print == FINGERPRINT
abort 'Gemfile changed since you last locked. Please `bundle lock` to relock.'
end
end
def self.setup(*groups)
match_fingerprint
LOAD_PATHS.each { |path| $LOAD_PATH.unshift path }
end
def self.require(*groups)
groups = [:default] if groups.empty?
groups.each do |group|
(AUTOREQUIRES[group] || []).each { |file| Kernel.require file }
end
end
# Setup bundle when it's required.
setup
end
Jump to Line
Something went wrong with that request. Please try again.