Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Make it easy to search for and include vendor gem paths in Sprockets
Ruby
tag: v0.1.0

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
Gemfile
LICENSE
README.md
Rakefile
sprockets-vendor_gems.gemspec

README.md

Get at available assets in loaded gems in Sprockets

Either get the list of asset paths:

require 'sprockets-vendor_gems'

env = Sprockets::Environment.new('.')
Sprockets.find_gem_vendor_paths(:for => :javascript).each do |path|
  env.append_path path
end

or get an Environment with those paths in there already:

require 'sprockets-vendor_gems'

env = Sprockets::EnvironmentWithVendoredGems.new('.')

Yeah!

Installation

Add this line to your application's Gemfile:

gem 'sprockets-vendor_gems'

And then execute:

$ bundle

Or install it yourself as:

$ gem install sprockets-vendor_gems
Something went wrong with that request. Please try again.