cache_rocket 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 773ba9d38b86d5eef1b88d160ea2b51ed524b0f2
4
- data.tar.gz: 1d20fdb597fe139dc8f5eb2bee78a369a476e251
3
+ metadata.gz: 253c1301a5bd797c31657884b822fcc7cd5a49c2
4
+ data.tar.gz: 58cdcfd0547b68fcb0cb9085438f6ab08b97823e
5
5
  SHA512:
6
- metadata.gz: 26b198780bd4a790d8f3935c589c96ba241d3897e07423ec313821bdc24c70a69dd4a914af21f86f924c330ee725ddb1bd6b56176b4387e8a32664d8d1e87ec8
7
- data.tar.gz: 17fd751c32a819d3a371d5356698e756fa4d2c88a751ae2f4b49913ddb811f29f6482bd29124a342cac2afa78cf77a554d1adfc66407dfec46880ddb995ecb78
6
+ metadata.gz: 86f7c8e63ca68e93818dc228406e145526784d9b43149714996ad3bb448ada21e3aad6d7c61663e189772f4b429f069da1660e6ad35b01548a4ff97c8bde7f4b
7
+ data.tar.gz: 10021e25b8d1934d574ed6c3168af71f7a799723647f048f356934905de452f1f26fb31cbeed75850d1464d66f7f650ff0883e7075debd5772c5386c3d13fcc3
data/README.md CHANGED
@@ -10,8 +10,8 @@
10
10
 
11
11
  ## Rails rendering extension for server-side html caching
12
12
 
13
- CacheRocket improves fragment caching efficiency in Rails.
14
- CacheRocket allows caching more generic html fragments and allowing the contents of the cached fragments
13
+ CacheRocket improves server-side fragment caching efficiency in Rails.
14
+ CacheRocket allows caching more generic html fragments and allows the contents of the cached fragments
15
15
  to be replaced with dynamic content.
16
16
 
17
17
  ### Install
@@ -31,8 +31,8 @@ include CacheRocket
31
31
 
32
32
  ### Use
33
33
 
34
- CacheRocket allows you to cache a fragment of html and replace inner html.
35
- You inject dynamic content into a static, cached outer partial.
34
+ CacheRocket allows you to cache a fragment of html and replace inner html.
35
+ You inject dynamic content into a static, cached outer partial.
36
36
  You cache the donut and replace the donut hole.
37
37
 
38
38
  Assume you have some html that you would like to cache, but cannot because of some uncacheable code nested in the DOM.
@@ -78,7 +78,7 @@ with `render_cached` in `file`, specify the partial to replace in `outer`, and c
78
78
  = uncacheable_content
79
79
  ```
80
80
 
81
- In this example, you could remove the `_inner.html.haml` file altogether, like so:
81
+ With the example above, you could also remove the `_inner.html.haml` file altogether, like so:
82
82
 
83
83
  ##### file.html.haml:
84
84
  ```haml
@@ -91,7 +91,7 @@ In this example, you could remove the `_inner.html.haml` file altogether, like s
91
91
  .lots
92
92
  .of
93
93
  .htmls
94
- = cache_replace_key 'inner'
94
+ = cache_replace_key :inner
95
95
  ```
96
96
 
97
97
  ### Options
@@ -121,7 +121,7 @@ render_cached 'outer' do
121
121
  end
122
122
  ```
123
123
 
124
- #### Render a collection with hash of keys, using a Proc for each collection item
124
+ #### Render a collection with hash of keys, using a lambda for each collection item
125
125
  ```ruby
126
126
  render_cached 'outer', collection: objects,
127
127
  replace: { key_name: -> (object) { a_helper_method(object) } }
@@ -137,7 +137,7 @@ end
137
137
  #### Render a collection with block syntax with multiple keys
138
138
  ```ruby
139
139
  render_cached 'outer', collection: objects do
140
- {
140
+ {
141
141
  key_1: -> (object) { a_helper_method(object) },
142
142
  key_2: -> (item) { item.name },
143
143
  }
@@ -155,7 +155,7 @@ Benchmark your page rendering times before and after to see if it helps.
155
155
 
156
156
  See the example above.
157
157
 
158
- #### Use far less memory
158
+ #### More efficient memory usage
159
159
 
160
160
  Typically, one would key the `users/bio` partial on the `user` object like so:
161
161
 
@@ -1,3 +1,3 @@
1
1
  module CacheRocket
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cache_rocket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tee Parham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-29 00:00:00.000000000 Z
11
+ date: 2016-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '3.2'
19
+ version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '3.2'
26
+ version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.3'
33
+ version: '12.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.3'
40
+ version: '12.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: mocha
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -77,7 +77,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
77
77
  requirements:
78
78
  - - ">="
79
79
  - !ruby/object:Gem::Version
80
- version: 1.9.3
80
+ version: 2.2.2
81
81
  required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  requirements:
83
83
  - - ">="
@@ -85,9 +85,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  version: '0'
86
86
  requirements: []
87
87
  rubyforge_project:
88
- rubygems_version: 2.5.1
88
+ rubygems_version: 2.6.8
89
89
  signing_key:
90
90
  specification_version: 4
91
91
  summary: Rails rendering extension for server-side html caching
92
92
  test_files: []
93
- has_rdoc: