butler_static 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/lib/butler/static.rb CHANGED
@@ -75,8 +75,9 @@ module Butler
75
75
  # general global HTTP header settings
76
76
  #
77
77
  class Static
78
- def initialize(app, path, options={})
78
+ def initialize(app, options={})
79
79
  @app = app
80
+ path = options[:path] || Rails.application.config.paths['public'].first
80
81
  @header_rules = options[:header_rules] || {}
81
82
  @file_handler = Butler::Handler.new(path, header_rules: @header_rules)
82
83
  end
@@ -1,3 +1,3 @@
1
1
  module Butler
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
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.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: