cache_cache 1.0.0 → 1.0.1

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cache_cache.rb +8 -2
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2212d8d62c207a2ecb08200a5522d388f4269acb
4
- data.tar.gz: 50a84cb1f102d2f733ed2a5004e38fe37c179aa4
3
+ metadata.gz: aa10894db3c207e37bca18a00f6d05d63f409997
4
+ data.tar.gz: 7b69a4f470b3c1eec1d181c1f8e0997ee041416f
5
5
  SHA512:
6
- metadata.gz: 1714a2a60833bc4235bedfed36a9b94f3a0118bb5a44a110c1a6de1d3c19611443cc690c1566216f8cd760d80833ae31e5e5103695a8767767dfb9b5d995e8fc
7
- data.tar.gz: e706767f50a658db1ea0ec3bc6823362cc6668eb4b11a6c9eff3b872b992d10435e07cb8e54027ddd470a8dc8f85c61114c1e8bcf4740a94a34532d6fb1b8cc0
6
+ metadata.gz: 56d3e67595b1b4d0ce571a24dce0226c27db2a388d1323706315f2576f4ee0945988137dfc20ea4483dcf80df5c58595cadda7afbce39399074fef6a8415955c
7
+ data.tar.gz: b81988453e5de261dff3abbf9d9b0b759da4ddfe30c1bcc247e17d7a5dd6ee64ac44b670a7452b1cd3729a1ab1aa7f8b8b5f24929dfbbc44e1ef76a70470d281
data/lib/cache_cache.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Rails
2
2
 
3
- # CacheCache allow you to manage dynamically multiple group of HTML5 manifest.
3
+ # CacheCache allow you to manage dynamically multiple groups of HTML5 manifests.
4
4
  # CacheCache use rails cache to store generated manifests.
5
5
  #
6
6
  class CacheCache
@@ -15,7 +15,13 @@ module Rails
15
15
  @network = { }
16
16
  @fallback = { }
17
17
 
18
- instance_eval(&block) if block_given?
18
+ self.configure(&block) if block_given?
19
+ end
20
+
21
+ # Configure
22
+ #
23
+ def configure(&block)
24
+ instance_eval(&block)
19
25
  end
20
26
 
21
27
  # Get / Set an entry into the cache section of the manifest
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cache_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clement Bruchon
@@ -10,7 +10,7 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2013-12-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: CacheCache allow you to manage dynamically multiple group of HTML5 manifest
13
+ description: CacheCache allow you to manage dynamically multiple groups of HTML5 manifests
14
14
  using rails cache.
15
15
  email: clement.bruchon@gmail.com
16
16
  executables: []
@@ -41,5 +41,5 @@ rubyforge_project:
41
41
  rubygems_version: 2.0.2
42
42
  signing_key:
43
43
  specification_version: 4
44
- summary: Dynamic HTML5 manifest generator
44
+ summary: Dynamic HTML5 manifests generator
45
45
  test_files: []