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.359 lib/lalala/vendor.rb
lalala-4.1.0.dev.358 lib/lalala/vendor.rb
lalala-4.0.0.dev.357 lib/lalala/vendor.rb
lalala-4.1.0.dev.356 lib/lalala/vendor.rb
lalala-4.1.0.dev.355 lib/lalala/vendor.rb
lalala-4.0.0.dev.354 lib/lalala/vendor.rb
lalala-4.0.0.dev.351 lib/lalala/vendor.rb
lalala-4.0.0.dev.350 lib/lalala/vendor.rb
lalala-4.0.0.dev.349 lib/lalala/vendor.rb
lalala-4.0.0.dev.344 lib/lalala/vendor.rb
lalala-4.0.0.dev.343 lib/lalala/vendor.rb
lalala-4.1.0.dev.342 lib/lalala/vendor.rb
lalala-4.1.0.dev.341 lib/lalala/vendor.rb
lalala-4.1.0.dev.340 lib/lalala/vendor.rb
lalala-4.0.0.dev.339 lib/lalala/vendor.rb
lalala-4.0.0.dev.336 lib/lalala/vendor.rb
lalala-4.1.0.dev.334 lib/lalala/vendor.rb
lalala-4.1.0.dev.332 lib/lalala/vendor.rb
lalala-4.0.0.dev.331 lib/lalala/vendor.rb
lalala-4.0.0.dev.329 lib/lalala/vendor.rb