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.217 lib/lalala/vendor.rb
lalala-4.0.0.dev.216 lib/lalala/vendor.rb
lalala-4.0.0.dev.215 lib/lalala/vendor.rb
lalala-4.0.0.dev.212 lib/lalala/vendor.rb
lalala-4.0.0.dev.208 lib/lalala/vendor.rb
lalala-4.0.0.dev.202 lib/lalala/vendor.rb
lalala-4.0.0.dev.201 lib/lalala/vendor.rb
lalala-4.0.0.dev.198 lib/lalala/vendor.rb
lalala-4.0.0.dev.195 lib/lalala/vendor.rb
lalala-4.0.0.dev.194 lib/lalala/vendor.rb
lalala-4.0.0.dev.193 lib/lalala/vendor.rb
lalala-4.0.0.dev.192 lib/lalala/vendor.rb
lalala-4.0.0.dev.191 lib/lalala/vendor.rb
lalala-4.0.0.dev.190 lib/lalala/vendor.rb
lalala-4.0.0.dev.189 lib/lalala/vendor.rb
lalala-4.0.0.dev.188 lib/lalala/vendor.rb
lalala-4.0.0.dev.187 lib/lalala/vendor.rb
lalala-4.0.0.dev.186 lib/lalala/vendor.rb
lalala-4.0.0.dev.185 lib/lalala/vendor.rb
lalala-4.0.0.dev.184 lib/lalala/vendor.rb