rails-cache_control 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +6 -0
- data/CHANGELOG.md +0 -0
- data/Gemfile +3 -0
- data/README.md +14 -15
- data/lib/rails-cache_control/version.rb +1 -1
- data/lib/rails-cache_control.rb +0 -1
- data/rails-cache_control.gemspec +5 -6
- metadata +11 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dba3ee60e691606d0260435528780094b0cb9c17
|
4
|
+
data.tar.gz: 4b3e459623ddcdad0731c6f417eff16852de6ffd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33ab4baf5c6ba083aa839c2a026ee317cd9286c7008e6cffeab6865e9c8375b5c4e545d0676c92b9c6c8ec98b5804659c7f30fa20c585017dfd255ec5a54ceff
|
7
|
+
data.tar.gz: c89709120b95fa656293e04611c3b9243d9af3a2f12812d9b645cecbad1d6bb762051391eb2a8380035a7334c9b07b43dc9aed2d944e97f1c1bf5f8789b405f4
|
data/CHANGELOG.md
ADDED
File without changes
|
data/Gemfile
ADDED
data/README.md
CHANGED
@@ -1,32 +1,31 @@
|
|
1
|
-
rails-cache_control
|
2
|
-
===================
|
1
|
+
# rails-cache_control
|
3
2
|
|
4
|
-
[![Build Status](https://secure.travis-ci.org/swordray/rails-cache_control.png?branch=master)](http://travis-ci.org/
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/rails-cache_control.png)](http://badge.fury.io/rb/rails-cache_control) [![Build Status](https://secure.travis-ci.org/swordray/rails-cache_control.png?branch=master)](http://travis-ci.org/swordray/rails-cache_control) [![Dependency Status](https://gemnasium.com/swordray/rails-cache_control.png?travis)](https://gemnasium.com/swordray/rails-cache_control) [![Code Climate](https://codeclimate.com/github/swordray/rails-cache_control.png)](https://codeclimate.com/github/swordray/rails-cache_control)
|
5
4
|
|
6
|
-
Automatically
|
5
|
+
Automatically add HTTP Cache-control header when [caches_action expires_in](https://github.com/rails/actionpack-action_caching) specified.
|
7
6
|
|
8
|
-
Requirements
|
9
|
-
============
|
7
|
+
## Requirements
|
10
8
|
|
11
|
-
Ruby
|
12
|
-
Rails
|
9
|
+
* Ruby ~> 2.0
|
10
|
+
* Rails ~> 4.0
|
11
|
+
* actionpack-action_caching ~> 1.1
|
13
12
|
|
14
|
-
Installation
|
15
|
-
============
|
13
|
+
## Installation
|
16
14
|
|
17
15
|
Include the gem in your Gemfile:
|
18
16
|
|
19
17
|
```ruby
|
20
18
|
gem 'rails-cache_control'
|
19
|
+
```
|
21
20
|
|
22
|
-
Usage
|
23
|
-
=====
|
21
|
+
## Usage
|
24
22
|
|
25
23
|
Do nothing.
|
26
24
|
|
27
|
-
License
|
28
|
-
=======
|
25
|
+
## License
|
29
26
|
|
30
|
-
Copyright © 2014 swordray@gmail.com under
|
27
|
+
Copyright © 2014 Jianqiu Xiao <swordray@gmail.com> under The [MIT License](http://opensource.org/licenses/MIT).
|
28
|
+
|
29
|
+
## Thanks
|
31
30
|
|
32
31
|
Special thanks to http://www.shuhai.org/ team.
|
data/lib/rails-cache_control.rb
CHANGED
data/rails-cache_control.gemspec
CHANGED
@@ -1,16 +1,15 @@
|
|
1
1
|
$LOAD_PATH.push File.expand_path("../lib", __FILE__)
|
2
2
|
require 'rails-cache_control/version'
|
3
|
-
# require 'rails-cache_control'
|
4
3
|
|
5
4
|
Gem::Specification.new do |s|
|
6
5
|
s.name = "rails-cache_control"
|
7
6
|
s.version = RailsCacheControl::VERSION
|
8
7
|
s.platform = Gem::Platform::RUBY
|
9
|
-
s.author = "Jianqiu Xiao"
|
8
|
+
s.author = ["Jianqiu Xiao"]
|
10
9
|
s.email = ["swordray@gmail.com"]
|
11
|
-
s.homepage = "https://github.com/swordray/rails-
|
12
|
-
s.summary = "Automatically
|
13
|
-
s.description = "Thanks to ihaveu.com team"
|
10
|
+
s.homepage = "https://github.com/swordray/rails-cache_control"
|
11
|
+
s.summary = "Automatically add HTTP Cache-control header when caches_action expires_in specified."
|
12
|
+
s.description = "Thanks to ihaveu.com team."
|
14
13
|
s.license = "MIT"
|
15
14
|
|
16
15
|
# s.rubyforge_project = ""
|
@@ -21,7 +20,7 @@ Gem::Specification.new do |s|
|
|
21
20
|
s.require_paths = ["lib"]
|
22
21
|
|
23
22
|
# s.requirements << ""
|
24
|
-
s.required_ruby_version = "
|
23
|
+
s.required_ruby_version = "~> 2.0"
|
25
24
|
|
26
25
|
s.add_dependency 'rails', '~> 4.0'
|
27
26
|
s.add_dependency 'actionpack-action_caching', '~> 1.1'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-cache_control
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jianqiu Xiao
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -38,20 +38,23 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.1'
|
41
|
-
description: Thanks to ihaveu.com team
|
41
|
+
description: Thanks to ihaveu.com team.
|
42
42
|
email:
|
43
43
|
- swordray@gmail.com
|
44
44
|
executables: []
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
+
- ".gitignore"
|
49
|
+
- CHANGELOG.md
|
50
|
+
- Gemfile
|
48
51
|
- LICENSE
|
49
52
|
- README.md
|
50
53
|
- lib/rails-cache_control.rb
|
51
54
|
- lib/rails-cache_control/action_controller/caching/actions.rb
|
52
55
|
- lib/rails-cache_control/version.rb
|
53
56
|
- rails-cache_control.gemspec
|
54
|
-
homepage: https://github.com/swordray/rails-
|
57
|
+
homepage: https://github.com/swordray/rails-cache_control
|
55
58
|
licenses:
|
56
59
|
- MIT
|
57
60
|
metadata: {}
|
@@ -61,9 +64,9 @@ require_paths:
|
|
61
64
|
- lib
|
62
65
|
required_ruby_version: !ruby/object:Gem::Requirement
|
63
66
|
requirements:
|
64
|
-
- - "
|
67
|
+
- - "~>"
|
65
68
|
- !ruby/object:Gem::Version
|
66
|
-
version: 2.0
|
69
|
+
version: '2.0'
|
67
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
71
|
requirements:
|
69
72
|
- - ">="
|
@@ -74,5 +77,6 @@ rubyforge_project:
|
|
74
77
|
rubygems_version: 2.2.0
|
75
78
|
signing_key:
|
76
79
|
specification_version: 4
|
77
|
-
summary: Automatically
|
80
|
+
summary: Automatically add HTTP Cache-control header when caches_action expires_in
|
81
|
+
specified.
|
78
82
|
test_files: []
|