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

Version Path
lalala-4.0.0.dev.264 lib/lalala/vendor.rb
lalala-4.0.0.dev.260 lib/lalala/vendor.rb
lalala-4.0.0.dev.258 lib/lalala/vendor.rb
lalala-4.0.0.dev.256 lib/lalala/vendor.rb
lalala-4.0.0.dev.255 lib/lalala/vendor.rb
lalala-4.0.0.dev.254 lib/lalala/vendor.rb
lalala-4.0.0.dev.249 lib/lalala/vendor.rb
lalala-4.0.0.dev.246 lib/lalala/vendor.rb
lalala-4.0.0.dev.244 lib/lalala/vendor.rb
lalala-4.0.0.dev.243 lib/lalala/vendor.rb
lalala-4.0.0.dev.242 lib/lalala/vendor.rb
lalala-4.0.0.dev.240 lib/lalala/vendor.rb
lalala-4.0.0.dev.239 lib/lalala/vendor.rb
lalala-4.0.0.dev.236 lib/lalala/vendor.rb
lalala-4.0.0.dev.231 lib/lalala/vendor.rb
lalala-4.0.0.dev.229 lib/lalala/vendor.rb
lalala-4.0.0.dev.227 lib/lalala/vendor.rb
lalala-4.0.0.dev.224 lib/lalala/vendor.rb
lalala-4.0.0.dev.219 lib/lalala/vendor.rb
lalala-4.0.0.dev.218 lib/lalala/vendor.rb