padrino-cache 0.14.0.rc1 → 0.14.0.rc2

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: 289e4d9c57d4dcfcd48e9d0778328b701db3fdec
4
- data.tar.gz: 89ac47bd37b7355fa4895c9186a239df316218f0
3
+ metadata.gz: 80abd22ce5e293fcd539ca94a7ec51c67cabebc9
4
+ data.tar.gz: 89880db0d945a9026688c501d04ee753c4142376
5
5
  SHA512:
6
- metadata.gz: 1f2a1b03cc9efc2019ea7ba2139635fea3559bd1e3eb5f63fc281bc7261190bed3bef24fbabf5db7a37797719758fab0755e9ed9c291f9eb4d6606db562d5ae9
7
- data.tar.gz: b1fef03d1c585ca63c2276522f59eeef7156b5530dca19d47116e54b12bc54506a012e06235af1cdef56aab63243c6c8ebc869eeffeb7891725011497e6c1744
6
+ metadata.gz: cac286365ac74b1f5b894ecf35df1d3080d316a48070487031050e8372f118b80b60e8fdce384e538fdef85e4756a6564743b1d131cd058883fe21b8e03eb450
7
+ data.tar.gz: 11295beb369c26a424d237d26717da323a3fd12b114986d37bc89a2b2f3cc59b1884ae810453453472bfb2186b0d41398a3da3c8b0468ce075264859c22702f1
data/README.rdoc CHANGED
@@ -21,7 +21,7 @@ cached based on request URL, with one cache entry per URL.
21
21
  This behavior is referred to as "page-level caching." If this strategy meets
22
22
  your needs, you can enable it very easily:
23
23
 
24
- # Basic, page-level caching
24
+ # Page-level caching
25
25
  class SimpleApp < Padrino::Application
26
26
  register Padrino::Cache
27
27
  enable :caching
@@ -276,7 +276,7 @@ You can manage your cache from anywhere in your app:
276
276
  The Padrino cache constructor `Padrino::Cache.new` calls `Moneta.new` to create a cache instance. Please refer to the [Moneta documentation](http://rubydoc.info/gems/moneta) if you
277
277
  have special requirements, for example if you want to configure the marshalling mechanism or use a more exotic backend.
278
278
 
279
- ==== Application Caching Options
279
+ === Application Caching Options
280
280
 
281
281
  set :cache, Padrino::Cache.new(:LRUHash)
282
282
  set :cache, Padrino::Cache.new(:Memcached)
@@ -15,7 +15,7 @@ describe 'Padrino::Cache - Moneta store' do
15
15
 
16
16
  it "return nil trying to get a value that doesn't exist" do
17
17
  Padrino.cache.clear
18
- assert_equal nil, Padrino.cache[@test_key]
18
+ assert_nil Padrino.cache[@test_key]
19
19
  end
20
20
 
21
21
  it 'set and get an object with marshal' do
@@ -36,7 +36,7 @@ describe 'Padrino::Cache - Moneta store' do
36
36
  it "set a value that expires" do
37
37
  init_time = ( Time.now - 20 )
38
38
  Time.stub(:now, init_time) { Padrino.cache.store(@test_key, 'test', :expires => 1) }
39
- Time.stub(:now, init_time + 20) { assert_equal nil, Padrino.cache[@test_key] }
39
+ Time.stub(:now, init_time + 20) { assert_nil Padrino.cache[@test_key] }
40
40
  end
41
41
 
42
42
  it "be able to cache forever" do
@@ -48,6 +48,6 @@ describe 'Padrino::Cache - Moneta store' do
48
48
  Padrino.cache[@test_key] = 'test'
49
49
  assert_equal 'test', Padrino.cache[@test_key]
50
50
  Padrino.cache.delete(@test_key)
51
- assert_equal nil, Padrino.cache[@test_key]
51
+ assert_nil Padrino.cache[@test_key]
52
52
  end
53
53
  end
@@ -296,14 +296,14 @@ describe "PadrinoCache" do
296
296
  get '/404'
297
297
  assert_equal 'fancy 404', body
298
298
  assert_equal 404, status
299
- assert_equal nil, @app.cache['/404']
299
+ assert_nil @app.cache['/404']
300
300
  get '/404'
301
301
  assert_equal 'fancy 404', body
302
302
  assert_equal 404, status
303
303
  get '/503'
304
304
  assert_equal 'fancy 503', body
305
305
  assert_equal 503, status
306
- assert_equal nil, @app.cache['/503']
306
+ assert_nil @app.cache['/503']
307
307
  get '/503'
308
308
  assert_equal 'fancy 503', body
309
309
  assert_equal 503, status
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0.rc1
4
+ version: 0.14.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Padrino Team
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-11-02 00:00:00.000000000 Z
14
+ date: 2017-01-19 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: padrino-core
@@ -19,28 +19,28 @@ dependencies:
19
19
  requirements:
20
20
  - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: 0.14.0.rc1
22
+ version: 0.14.0.rc2
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 0.14.0.rc1
29
+ version: 0.14.0.rc2
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: padrino-helpers
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
34
  - - '='
35
35
  - !ruby/object:Gem::Version
36
- version: 0.14.0.rc1
36
+ version: 0.14.0.rc2
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - '='
42
42
  - !ruby/object:Gem::Version
43
- version: 0.14.0.rc1
43
+ version: 0.14.0.rc2
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: moneta
46
46
  requirement: !ruby/object:Gem::Requirement