sinatra-cache-assets 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +18 -0
  2. data/lib/sinatra/cache_assets.rb +1 -1
  3. metadata +4 -3
data/README.md ADDED
@@ -0,0 +1,18 @@
1
+ # Sinatra::CacheAssets
2
+
3
+ This Rack middleware will add a Cache-Control header to your Sinatra static assets
4
+
5
+ ## Usage
6
+
7
+ require "sinatra"
8
+ require "sinatra/cache_assets"
9
+
10
+ use Sinatra::CacheAssets, :max_age => 7200 # seconds
11
+
12
+ get "/" do
13
+ "some data"
14
+ end
15
+
16
+ ## License
17
+
18
+ MIT
@@ -1,7 +1,7 @@
1
1
  module Sinatra
2
2
  class CacheAssets
3
3
 
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
 
6
6
  attr_reader :app, :options
7
7
 
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: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Dollar
@@ -44,6 +44,7 @@ extra_rdoc_files: []
44
44
  files:
45
45
  - lib/sinatra/cache_assets.rb
46
46
  - lib/sinatra-cache-assets.rb
47
+ - README.md
47
48
  has_rdoc: true
48
49
  homepage: http://github.com/ddollar/sinatra-cache-assets
49
50
  licenses: []