rails-cache_control 0.0.1 → 0.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 872663c0fc17161f2f2fa878cc9653dad67d652f
4
- data.tar.gz: 0acae56cb3faddf8f5391ceb82e4a3b9b5144192
3
+ metadata.gz: dba3ee60e691606d0260435528780094b0cb9c17
4
+ data.tar.gz: 4b3e459623ddcdad0731c6f417eff16852de6ffd
5
5
  SHA512:
6
- metadata.gz: 79b0b7eb52498ef1f501fc7fb7e25dffbc1f218be290650f482f591c855435cf54e3f48f80de7c416178350610e99a8897e8ac4dae45e2ef4fcdabc9d8d329ef
7
- data.tar.gz: bfaddd521286f69108cfce715e86ce17c082f27e7edbec919d9dc73c98fda23ecb2c55c72f22d78543bc96ca5c0e8f15e86fb7fdc59fbf6eee97377e65deaa67
6
+ metadata.gz: 33ab4baf5c6ba083aa839c2a026ee317cd9286c7008e6cffeab6865e9c8375b5c4e545d0676c92b9c6c8ec98b5804659c7f30fa20c585017dfd255ec5a54ceff
7
+ data.tar.gz: c89709120b95fa656293e04611c3b9243d9af3a2f12812d9b645cecbad1d6bb762051391eb2a8380035a7334c9b07b43dc9aed2d944e97f1c1bf5f8789b405f4
data/.gitignore ADDED
@@ -0,0 +1,6 @@
1
+ *~
2
+ *.swp
3
+ .rvmrc
4
+ .bundle
5
+ tmp
6
+ .DS_Store
data/CHANGELOG.md ADDED
File without changes
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
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/thoughtbot/paperclip) [![Dependency Status](https://gemnasium.com/swordray/rails-cache_control.png?travis)](https://gemnasium.com/thoughtbot/paperclip) [![Code Climate](https://codeclimate.com/github/swordray/rails-cache_control.png)](https://codeclimate.com/github/thoughtbot/paperclip)
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 set Cache-control header when [caches_action expires_in](https://github.com/rails/actionpack-action_caching) specified.
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 >= 2.0.0
12
- Rails >= 4.0.0
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 [The MIT License](http://opensource.org/licenses/MIT).
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.
@@ -1,3 +1,3 @@
1
1
  module RailsCacheControl
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
@@ -1,5 +1,4 @@
1
1
  require 'active_support'
2
2
  require 'active_support/core_ext/module/aliasing'
3
- # require 'actionpack-action_caching'
4
3
  require 'action_controller/caching/actions'
5
4
  require 'rails-cache_control/action_controller/caching/actions'
@@ -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-cache-control"
12
- s.summary = "Automatically set Cache-control header when caches_action expires_in specified"
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 = ">= 2.0.0"
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.1
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-25 00:00:00.000000000 Z
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-cache-control
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.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 set Cache-control header when caches_action expires_in specified
80
+ summary: Automatically add HTTP Cache-control header when caches_action expires_in
81
+ specified.
78
82
  test_files: []