sinatra-cache-assets 0.0.2 → 0.0.3

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.
Files changed (3) hide show
  1. data/README.md +1 -1
  2. data/lib/sinatra/cache_assets.rb +2 -2
  3. metadata +3 -3
data/README.md CHANGED
@@ -7,7 +7,7 @@ This Rack middleware will add a Cache-Control header to your Sinatra static asse
7
7
  require "sinatra"
8
8
  require "sinatra/cache_assets"
9
9
 
10
- use Sinatra::CacheAssets, :max_age => 7200 # seconds
10
+ use Sinatra::CacheAssets, :max_age => 7200 # seconds, defaults to 86400
11
11
 
12
12
  get "/" do
13
13
  "some data"
@@ -1,7 +1,7 @@
1
1
  module Sinatra
2
2
  class CacheAssets
3
3
 
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
 
6
6
  attr_reader :app, :options
7
7
 
@@ -19,7 +19,7 @@ module Sinatra
19
19
  private
20
20
 
21
21
  def duration
22
- options[:max_age] || 3600
22
+ options[:max_age] || 86400
23
23
  end
24
24
 
25
25
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-cache-assets
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Dollar