Permalink
Browse files

thanks to jaswope, including a fix for serving public assets from the…

… built gem
  • Loading branch information...
krschacht committed Sep 14, 2010
1 parent 666f18f commit 73b93832e8a134c36e9e79f4095bd0e293e35124
Showing with 9 additions and 6 deletions.
  1. +1 −1 Rakefile
  2. +5 −3 cheese.gemspec
  3. +3 −2 lib/engine.rb
  4. BIN pkg/cheese-0.0.0.gem
View
@@ -13,7 +13,7 @@ begin
gem.summary = "Description of your gem"
gem.email = "you@email.com"
gem.authors = ["Your Name"]
gem.files = Dir["{lib}/**/*", "{app}/**/*", "{config}/**/*"]
gem.files = Dir["{lib}/**/*", "{app}/**/*", "{public}/**/*", "{config}/**/*"]
end
Jeweler::GemcutterTasks.new
rescue
View
@@ -5,11 +5,11 @@
Gem::Specification.new do |s|
s.name = %q{cheese}
s.version = "0.0.0"
s.version = "0.3.0"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Your Name"]
s.date = %q{2010-09-12}
s.date = %q{2010-09-13}
s.email = %q{you@email.com}
s.extra_rdoc_files = [
"README.rdoc"
@@ -31,7 +31,9 @@ Gem::Specification.new do |s|
"lib/rails/generators/cheese/templates/initializer.rb",
"lib/rails/generators/cheese/templates/migration.rb",
"lib/rails/generators/cheese/templates/schema.rb",
"lib/rails/railties/tasks.rake"
"lib/rails/railties/tasks.rake",
"public/images/cheese.jpg",
"public/stylesheets/cheese.css"
]
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
View
@@ -23,8 +23,9 @@ class Engine < Rails::Engine
end
initializer "static assets" do |app|
puts "HELLO"
app.middleware.use ::ActionDispatch::Static, "#{root}/public"
app.middleware.use ::ActionDispatch::Static, "#{root}/public"
# puts "special loading 2..."
# app.middleware.insert_after ActionDispatch::Static, ActionDispatch::Static, "#{root}/public"
end
end
View
Binary file not shown.

0 comments on commit 73b9383

Please sign in to comment.