I have created a gem with a vendor directory containing stylesheets and javascripts from bootstrap-sass and bootstrap itself.
The directory structure is bootstrap-sass-gem/vendor/assets/javascripts
and
bootstrap-sass-gem/vendor/assets/stylesheets
I've required the gem in a test project but whenever I try to require something from that gem I receive a Sprockets::FileNotFound
error.
For instance, in application.css I added *= require bootstrap
.
bootstrap is located at bootstrap-sass-gem/vendor/assets/stylesheets/bootstrap.scss
and so by my reckoning should be included in the asset pipeline.
I'm running RVM Ruby 1.9.2 and Rails 3.1.
Here's my config file:
$:.push File.expand_path("../lib", __FILE__)
# Maintain your gem's version:
require "bootstrap-sass-gem/version"
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = "bootstrap-sass-gem"
s.version = BootstrapSassGem::VERSION
s.authors = ["James Smith"]
s.email = ["James@smithware.co.uk"]
s.homepage = "http://www.smithware.co.uk"
s.summary = "The Bootstrap-sass project Gemified"
s.description = "Description of BootstrapSassGem."
s.files = Dir["{lib,vendor,rdoc}/**/*"] + Dir["*"]
#s.test_files = Dir["test/**/*"]
s.require_paths = ["lib/**/*"]
# We are dependent on the asset pipeline in 3.1.0
s.add_dependency "rails", "~> 3.1.0"
# s.add_development_dependency ""
end