rack-page_caching 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 +4 -4
- data/README.md +4 -2
- data/lib/rack/page_caching/version.rb +1 -1
- data/rack-page_caching.gemspec +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d512ec2d01b351510c2eab8a6d5b4e8c0c3845f
|
4
|
+
data.tar.gz: b344ee2c32bc6a88fa0922543545ba5830e0253c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d70c1cabe8b6f026a3bddb12899dad0c5ae682a6a2631495019367c85bdb0fbc1cb366bfd3834cbc76f378c1c6f16ad554c39c839fba9ee297bffa35d3176e8d
|
7
|
+
data.tar.gz: 86d5bbf8106230f079c168e835cd7ff4354f92f3144bf5c9e06e3c1a7400c6bb664e845465123722cf91677300faa90269f55784b27f94527201b396aaef96a6
|
data/README.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
# Rack::PageCaching
|
2
2
|
|
3
|
-
[](http://badge.fury.io/rb/rack-page_caching)
|
4
4
|
[](https://travis-ci.org/weynsee/rack-page_caching)
|
5
5
|
[](https://coveralls.io/r/weynsee/rack-page_caching?branch=master)
|
6
|
+
[](https://gemnasium.com/weynsee/rack-page_caching)
|
6
7
|
|
7
8
|
Rack::PageCaching is a Rack middleware that aids in static page caching. It serves
|
8
9
|
the same purpose as [page caching in Rails](https://github.com/rails/actionpack-page_caching)
|
@@ -75,7 +76,8 @@ Rack::PageCaching respects `config.action_controller.perform_caching` and
|
|
75
76
|
will skip cache generation if it is false.
|
76
77
|
|
77
78
|
To configure your web server to serve the generated pages directly, point it to
|
78
|
-
`page_cache_directory`. For Nginx, it would look something like
|
79
|
+
`page_cache_directory`. For Nginx, it would look something like the following
|
80
|
+
if you include hostnames:
|
79
81
|
```
|
80
82
|
if (-f $document_root/page_cache/$host/$uri/index.html) {
|
81
83
|
rewrite (.*) /page_cache/$host/$1/index.html break;
|
data/rack-page_caching.gemspec
CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Wayne See"]
|
10
10
|
spec.email = ["weynsee@gmail.com"]
|
11
11
|
spec.summary = %q{Page caching for Rack.}
|
12
|
-
spec.description = %q{Rack middleware to generate pages that can be served by a
|
13
|
-
spec.homepage = ""
|
12
|
+
spec.description = %q{Rack middleware to generate pages that can be served by a web server. Compatible with Rails page caching.}
|
13
|
+
spec.homepage = "https://github.com/weynsee/rack-page_caching"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-page_caching
|
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
|
- Wayne See
|
@@ -108,7 +108,7 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
-
description: Rack middleware to generate pages that can be served by a
|
111
|
+
description: Rack middleware to generate pages that can be served by a web server.
|
112
112
|
Compatible with Rails page caching.
|
113
113
|
email:
|
114
114
|
- weynsee@gmail.com
|
@@ -143,7 +143,7 @@ files:
|
|
143
143
|
- test/rack/page_caching_spec.rb
|
144
144
|
- test/support/file_helper.rb
|
145
145
|
- test/test_helper.rb
|
146
|
-
homepage:
|
146
|
+
homepage: https://github.com/weynsee/rack-page_caching
|
147
147
|
licenses:
|
148
148
|
- MIT
|
149
149
|
metadata: {}
|