heroku-deflater 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.5.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "heroku-deflater"
8
- s.version = "0.5.0"
8
+ s.version = "0.5.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Roman Shterenzon"]
12
- s.date = "2013-05-04"
12
+ s.date = "2013-05-11"
13
13
  s.description = "Deflate assets on heroku"
14
14
  s.email = "romanbsd@yahoo.com"
15
15
  s.extra_rdoc_files = [
@@ -8,7 +8,7 @@ module HerokuDeflater
8
8
  app.middleware.insert_before ActionDispatch::Static, Rack::Deflater
9
9
  app.middleware.insert_before ActionDispatch::Static, HerokuDeflater::SkipBinary
10
10
  app.middleware.insert_before Rack::Deflater, HerokuDeflater::ServeZippedAssets,
11
- app.paths['public'].first, app.config.assets.prefix, {'Cache-Control' => app.config.static_cache_control}
11
+ app.paths['public'].first, app.config.assets.prefix, app.config.static_cache_control
12
12
  end
13
13
 
14
14
  # Set default Cache-Control headers to one week.
@@ -9,10 +9,10 @@ require 'action_dispatch/middleware/static'
9
9
 
10
10
  module HerokuDeflater
11
11
  class ServeZippedAssets
12
- def initialize(app, root, assets_path, headers=nil)
12
+ def initialize(app, root, assets_path, cache_control=nil)
13
13
  @app = app
14
14
  @assets_path = assets_path.chomp('/') + '/'
15
- @file_handler = ActionDispatch::FileHandler.new(root, headers)
15
+ @file_handler = ActionDispatch::FileHandler.new(root, cache_control)
16
16
  end
17
17
 
18
18
  def call(env)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroku-deflater
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-04 00:00:00.000000000 Z
12
+ date: 2013-05-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
@@ -100,7 +100,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
100
100
  version: '0'
101
101
  segments:
102
102
  - 0
103
- hash: 262510115416976857
103
+ hash: 1141254210076955377
104
104
  required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements: