Sha256: af47ccd9fa18ae70920ff1e49f51c9ceaa5b0cc64efc3f4deacdbcd756efcb47
Contents?: true
Size: 455 Bytes
Versions: 187
Compression:
Stored size: 455 Bytes
Contents
module Lalala::Vendor def self.enable(name, dirname=nil) dirname ||= name # Find vendored version path = File.expand_path("../../../vendor/deps/#{dirname}/lib", __FILE__) # Find development version if ENV['LALALA_DEV'] path = File.expand_path("../../../../#{dirname}/lib", __FILE__) end unless File.directory?(path) raise "Unable to find vendored dependency: #{name}" end $:.unshift(path) end end
Version data entries
187 entries across 187 versions & 1 rubygems