butler_static 0.0.8.alpha.20 → 0.0.8.alpha.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/butler.rb CHANGED
@@ -2,7 +2,7 @@ require 'butler/version'
2
2
  require 'butler/static'
3
3
  require 'butler/handler'
4
4
  require 'butler/asset'
5
- require 'butler/railtie' if defined? Rails
5
+ require 'butler/railtie'
6
6
 
7
7
  module Butler
8
8
  # Butler
@@ -1,3 +1,5 @@
1
+ require 'rails/all'
2
+
1
3
  module Butler
2
4
  class Railtie < ::Rails::Railtie
3
5
  puts 'Processing Railtie...'
@@ -12,7 +14,6 @@ module Butler
12
14
 
13
15
  initializer "butler.configure_rails_initialization" do |app|
14
16
  app.middleware.swap 'ActionDispatch::Static', 'Butler::Static'
15
- raise app.inspect
16
17
  # if use_butler
17
18
  # if defined? ActionDispatch::Static
18
19
  # if defined? Rack::Cache # will not work
@@ -1,3 +1,3 @@
1
1
  module Butler
2
- VERSION = "0.0.8.alpha.20"
2
+ VERSION = "0.0.8.alpha.21"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: butler_static
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8.alpha.20
4
+ version: 0.0.8.alpha.21
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -168,7 +168,7 @@ rubyforge_project:
168
168
  rubygems_version: 1.8.23
169
169
  signing_key:
170
170
  specification_version: 3
171
- summary: butler_static-0.0.8.alpha.20
171
+ summary: butler_static-0.0.8.alpha.21
172
172
  test_files:
173
173
  - spec/butler/asset_spec.rb
174
174
  - spec/butler/files/index.html