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.1.0.dev.425 lib/lalala/vendor.rb
lalala-4.1.0.dev.420 lib/lalala/vendor.rb
lalala-4.1.0.dev.419 lib/lalala/vendor.rb
lalala-4.1.0.dev.418 lib/lalala/vendor.rb
lalala-4.1.0.dev.417 lib/lalala/vendor.rb
lalala-4.0.0.dev.416 lib/lalala/vendor.rb
lalala-4.1.0.dev.415 lib/lalala/vendor.rb
lalala-4.1.0.dev.414 lib/lalala/vendor.rb
lalala-4.1.0.dev.413 lib/lalala/vendor.rb
lalala-4.1.0.dev.412 lib/lalala/vendor.rb
lalala-4.1.0.dev.411 lib/lalala/vendor.rb
lalala-4.1.0.dev.410 lib/lalala/vendor.rb
lalala-4.1.0.dev.409 lib/lalala/vendor.rb
lalala-4.0.0.dev.407 lib/lalala/vendor.rb
lalala-4.1.0.dev.408 lib/lalala/vendor.rb
lalala-4.1.0.dev.398 lib/lalala/vendor.rb
lalala-4.1.0.dev.397 lib/lalala/vendor.rb
lalala-4.0.0.dev.396 lib/lalala/vendor.rb
lalala-4.0.0.dev.395 lib/lalala/vendor.rb
lalala-4.1.0.dev.394 lib/lalala/vendor.rb