moneta 0.7.3 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (178) hide show
  1. data/.travis.yml +17 -51
  2. data/CHANGES +13 -0
  3. data/Gemfile +4 -4
  4. data/README.md +79 -40
  5. data/Rakefile +40 -25
  6. data/benchmarks/run.rb +35 -5
  7. data/lib/moneta.rb +5 -5
  8. data/lib/moneta/adapters/activerecord.rb +4 -6
  9. data/lib/moneta/adapters/cassandra.rb +8 -11
  10. data/lib/moneta/adapters/couch.rb +3 -1
  11. data/lib/moneta/adapters/daybreak.rb +28 -0
  12. data/lib/moneta/adapters/fog.rb +3 -3
  13. data/lib/moneta/adapters/hbase.rb +2 -4
  14. data/lib/moneta/adapters/memcached/dalli.rb +8 -7
  15. data/lib/moneta/adapters/memcached/native.rb +8 -9
  16. data/lib/moneta/adapters/mongo.rb +42 -11
  17. data/lib/moneta/adapters/pstore.rb +4 -6
  18. data/lib/moneta/adapters/redis.rb +17 -10
  19. data/lib/moneta/adapters/restclient.rb +19 -10
  20. data/lib/moneta/adapters/sequel.rb +4 -6
  21. data/lib/moneta/adapters/tdb.rb +22 -0
  22. data/lib/moneta/expires.rb +28 -12
  23. data/lib/moneta/mixins.rb +64 -3
  24. data/lib/moneta/pool.rb +37 -0
  25. data/lib/moneta/proxy.rb +18 -7
  26. data/lib/moneta/server.rb +1 -1
  27. data/lib/moneta/shared.rb +2 -2
  28. data/lib/moneta/transformer/helper.rb +1 -1
  29. data/lib/moneta/version.rb +1 -1
  30. data/{spec/generate.rb → script/generate-specs.rb} +195 -91
  31. data/script/install-bundle.rb +35 -0
  32. data/spec/helper.rb +6 -0
  33. data/spec/moneta/adapter_activerecord_spec.rb +1 -1
  34. data/spec/moneta/adapter_cassandra_spec.rb +1 -12
  35. data/spec/moneta/adapter_cassandra_with_default_expires_spec.rb +21 -0
  36. data/spec/moneta/adapter_client_spec.rb +1 -1
  37. data/spec/moneta/adapter_cookie_spec.rb +1 -1
  38. data/spec/moneta/adapter_couch_spec.rb +1 -1
  39. data/spec/moneta/adapter_datamapper_spec.rb +1 -1
  40. data/spec/moneta/adapter_daybreak_spec.rb +19 -0
  41. data/spec/moneta/adapter_dbm_spec.rb +1 -1
  42. data/spec/moneta/adapter_file_spec.rb +1 -1
  43. data/spec/moneta/adapter_fog_spec.rb +1 -1
  44. data/spec/moneta/adapter_gdbm_spec.rb +1 -1
  45. data/spec/moneta/adapter_hbase_spec.rb +1 -1
  46. data/spec/moneta/adapter_leveldb_spec.rb +1 -1
  47. data/spec/moneta/adapter_localmemcache_spec.rb +1 -1
  48. data/spec/moneta/adapter_lruhash_spec.rb +1 -1
  49. data/spec/moneta/adapter_memcached_dalli_spec.rb +1 -12
  50. data/spec/moneta/adapter_memcached_dalli_with_default_expires_spec.rb +21 -0
  51. data/spec/moneta/adapter_memcached_native_spec.rb +1 -13
  52. data/spec/moneta/adapter_memcached_native_with_default_expires_spec.rb +21 -0
  53. data/spec/moneta/adapter_memcached_spec.rb +1 -12
  54. data/spec/moneta/adapter_memcached_with_default_expires_spec.rb +21 -0
  55. data/spec/moneta/adapter_memory_spec.rb +1 -1
  56. data/spec/moneta/adapter_mongo_spec.rb +9 -2
  57. data/spec/moneta/adapter_mongo_with_default_expires_spec.rb +21 -0
  58. data/spec/moneta/adapter_pstore_spec.rb +1 -1
  59. data/spec/moneta/adapter_redis_spec.rb +1 -12
  60. data/spec/moneta/adapter_redis_with_default_expires_spec.rb +21 -0
  61. data/spec/moneta/adapter_restclient_spec.rb +1 -1
  62. data/spec/moneta/adapter_riak_spec.rb +1 -1
  63. data/spec/moneta/adapter_sdbm_spec.rb +1 -1
  64. data/spec/moneta/adapter_sequel_spec.rb +1 -1
  65. data/spec/moneta/adapter_sqlite_spec.rb +1 -1
  66. data/spec/moneta/adapter_tdb_spec.rb +19 -0
  67. data/spec/moneta/adapter_tokyocabinet_bdb_spec.rb +1 -1
  68. data/spec/moneta/adapter_tokyocabinet_hdb_spec.rb +1 -1
  69. data/spec/moneta/adapter_yaml_spec.rb +1 -1
  70. data/spec/moneta/cache_file_memory_spec.rb +1 -1
  71. data/spec/moneta/cache_memory_null_spec.rb +1 -1
  72. data/spec/moneta/expires_file_spec.rb +1 -1
  73. data/spec/moneta/expires_memory_spec.rb +1 -12
  74. data/spec/moneta/expires_memory_with_default_expires_spec.rb +111 -0
  75. data/spec/moneta/lock_spec.rb +1 -1
  76. data/spec/moneta/null_adapter_spec.rb +1 -1
  77. data/spec/moneta/optionmerger_spec.rb +1 -1
  78. data/spec/moneta/pool_spec.rb +23 -0
  79. data/spec/moneta/proxy_expires_memory_spec.rb +1 -1
  80. data/spec/moneta/proxy_redis_spec.rb +1 -1
  81. data/spec/moneta/shared_spec.rb +1 -1
  82. data/spec/moneta/simple_activerecord_spec.rb +1 -1
  83. data/spec/moneta/simple_activerecord_with_expires_spec.rb +1 -1
  84. data/spec/moneta/simple_cassandra_spec.rb +1 -1
  85. data/spec/moneta/simple_client_tcp_spec.rb +1 -1
  86. data/spec/moneta/simple_client_unix_spec.rb +1 -1
  87. data/spec/moneta/simple_couch_spec.rb +1 -1
  88. data/spec/moneta/simple_couch_with_expires_spec.rb +1 -1
  89. data/spec/moneta/simple_datamapper_spec.rb +1 -1
  90. data/spec/moneta/simple_datamapper_with_expires_spec.rb +1 -1
  91. data/spec/moneta/simple_datamapper_with_repository_spec.rb +1 -1
  92. data/spec/moneta/simple_daybreak_spec.rb +144 -0
  93. data/spec/moneta/simple_daybreak_with_expires_spec.rb +145 -0
  94. data/spec/moneta/simple_dbm_spec.rb +1 -1
  95. data/spec/moneta/simple_dbm_with_expires_spec.rb +1 -1
  96. data/spec/moneta/simple_file_spec.rb +1 -1
  97. data/spec/moneta/simple_file_with_expires_spec.rb +1 -1
  98. data/spec/moneta/simple_fog_spec.rb +1 -1
  99. data/spec/moneta/simple_fog_with_expires_spec.rb +1 -1
  100. data/spec/moneta/simple_gdbm_spec.rb +1 -1
  101. data/spec/moneta/simple_gdbm_with_expires_spec.rb +1 -1
  102. data/spec/moneta/simple_hashfile_spec.rb +1 -1
  103. data/spec/moneta/simple_hashfile_with_expires_spec.rb +1 -1
  104. data/spec/moneta/simple_hbase_spec.rb +1 -1
  105. data/spec/moneta/simple_hbase_with_expires_spec.rb +1 -1
  106. data/spec/moneta/simple_leveldb_spec.rb +1 -1
  107. data/spec/moneta/simple_leveldb_with_expires_spec.rb +1 -1
  108. data/spec/moneta/simple_localmemcache_spec.rb +1 -1
  109. data/spec/moneta/simple_localmemcache_with_expires_spec.rb +1 -1
  110. data/spec/moneta/simple_lruhash_spec.rb +1 -1
  111. data/spec/moneta/simple_lruhash_with_expires_spec.rb +1 -1
  112. data/spec/moneta/simple_memcached_dalli_spec.rb +1 -1
  113. data/spec/moneta/simple_memcached_native_spec.rb +1 -1
  114. data/spec/moneta/simple_memcached_spec.rb +1 -1
  115. data/spec/moneta/simple_memory_spec.rb +1 -1
  116. data/spec/moneta/simple_memory_with_compress_spec.rb +1 -1
  117. data/spec/moneta/simple_memory_with_expires_spec.rb +1 -1
  118. data/spec/moneta/simple_memory_with_json_key_serializer_spec.rb +1 -1
  119. data/spec/moneta/simple_memory_with_json_serializer_spec.rb +1 -1
  120. data/spec/moneta/simple_memory_with_json_value_serializer_spec.rb +1 -1
  121. data/spec/moneta/simple_memory_with_prefix_spec.rb +1 -1
  122. data/spec/moneta/simple_memory_with_snappy_compress_spec.rb +1 -1
  123. data/spec/moneta/simple_mongo_spec.rb +3 -2
  124. data/spec/moneta/simple_null_spec.rb +1 -1
  125. data/spec/moneta/simple_pstore_spec.rb +1 -1
  126. data/spec/moneta/simple_pstore_with_expires_spec.rb +1 -1
  127. data/spec/moneta/simple_redis_spec.rb +1 -1
  128. data/spec/moneta/simple_restclient_spec.rb +1 -1
  129. data/spec/moneta/simple_riak_spec.rb +1 -1
  130. data/spec/moneta/simple_riak_with_expires_spec.rb +1 -1
  131. data/spec/moneta/simple_sdbm_spec.rb +1 -1
  132. data/spec/moneta/simple_sdbm_with_expires_spec.rb +1 -1
  133. data/spec/moneta/simple_sequel_spec.rb +1 -1
  134. data/spec/moneta/simple_sequel_with_expires_spec.rb +1 -1
  135. data/spec/moneta/simple_sqlite_spec.rb +1 -1
  136. data/spec/moneta/simple_sqlite_with_expires_spec.rb +1 -1
  137. data/spec/moneta/simple_tdb_spec.rb +144 -0
  138. data/spec/moneta/{simple_mongo_with_expires_spec.rb → simple_tdb_with_expires_spec.rb} +4 -4
  139. data/spec/moneta/simple_tokyocabinet_spec.rb +1 -1
  140. data/spec/moneta/simple_tokyocabinet_with_expires_spec.rb +1 -1
  141. data/spec/moneta/simple_yaml_spec.rb +1 -1
  142. data/spec/moneta/simple_yaml_with_expires_spec.rb +1 -1
  143. data/spec/moneta/stack_file_memory_spec.rb +1 -1
  144. data/spec/moneta/stack_memory_file_spec.rb +1 -1
  145. data/spec/moneta/transformer_bencode_spec.rb +1 -1
  146. data/spec/moneta/transformer_bert_spec.rb +1 -1
  147. data/spec/moneta/transformer_bson_spec.rb +1 -1
  148. data/spec/moneta/transformer_bzip2_spec.rb +1 -1
  149. data/spec/moneta/transformer_json_spec.rb +1 -1
  150. data/spec/moneta/transformer_key_marshal_spec.rb +1 -1
  151. data/spec/moneta/transformer_key_yaml_spec.rb +1 -1
  152. data/spec/moneta/transformer_lzma_spec.rb +1 -1
  153. data/spec/moneta/transformer_lzo_spec.rb +1 -1
  154. data/spec/moneta/transformer_marshal_base64_spec.rb +1 -1
  155. data/spec/moneta/transformer_marshal_escape_spec.rb +1 -1
  156. data/spec/moneta/transformer_marshal_hmac_spec.rb +1 -1
  157. data/spec/moneta/transformer_marshal_md5_spec.rb +1 -1
  158. data/spec/moneta/transformer_marshal_md5_spread_spec.rb +1 -1
  159. data/spec/moneta/transformer_marshal_prefix_spec.rb +1 -1
  160. data/spec/moneta/transformer_marshal_rmd160_spec.rb +1 -1
  161. data/spec/moneta/transformer_marshal_sha1_spec.rb +1 -1
  162. data/spec/moneta/transformer_marshal_sha256_spec.rb +1 -1
  163. data/spec/moneta/transformer_marshal_sha384_spec.rb +1 -1
  164. data/spec/moneta/transformer_marshal_sha512_spec.rb +1 -1
  165. data/spec/moneta/transformer_marshal_spec.rb +1 -1
  166. data/spec/moneta/transformer_marshal_truncate_spec.rb +1 -1
  167. data/spec/moneta/transformer_marshal_uuencode_spec.rb +1 -1
  168. data/spec/moneta/transformer_msgpack_spec.rb +1 -1
  169. data/spec/moneta/transformer_ox_spec.rb +1 -1
  170. data/spec/moneta/transformer_quicklz_spec.rb +1 -1
  171. data/spec/moneta/transformer_snappy_spec.rb +1 -1
  172. data/spec/moneta/transformer_tnet_spec.rb +1 -1
  173. data/spec/moneta/transformer_value_marshal_spec.rb +1 -1
  174. data/spec/moneta/transformer_value_yaml_spec.rb +1 -1
  175. data/spec/moneta/transformer_yaml_spec.rb +1 -1
  176. data/spec/moneta/transformer_zlib_spec.rb +1 -1
  177. data/spec/monetaspecs.rb +105 -3
  178. metadata +35 -6
@@ -1,4 +1,4 @@
1
- # Generated by generate.rb
1
+ # Generated by generate-specs.rb
2
2
  require 'helper'
3
3
 
4
4
  describe_moneta "transformer_value_yaml" do
@@ -1,4 +1,4 @@
1
- # Generated by generate.rb
1
+ # Generated by generate-specs.rb
2
2
  require 'helper'
3
3
 
4
4
  describe_moneta "transformer_yaml" do
@@ -1,4 +1,4 @@
1
- # Generated by generate.rb
1
+ # Generated by generate-specs.rb
2
2
  require 'helper'
3
3
 
4
4
  describe_moneta "transformer_zlib" do
data/spec/monetaspecs.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Generated by generate.rb
1
+ # Generated by generate-specs.rb
2
2
 
3
3
  #################### null_nilkey_nilvalue ####################
4
4
 
@@ -16392,6 +16392,20 @@ shared_examples_for 'expires' do
16392
16392
  store['key1'].should be_nil
16393
16393
  end
16394
16394
 
16395
+ it 'supports 0 as no-expires on store and #[]' do
16396
+ store.store('key1', 'val1', :expires => 0)
16397
+ store['key1'].should == 'val1'
16398
+ sleep 2
16399
+ store['key1'].should == 'val1'
16400
+ end
16401
+
16402
+ it 'supports false as no-expires on store and #[]' do
16403
+ store.store('key1', 'val1', :expires => false)
16404
+ store['key1'].should == 'val1'
16405
+ sleep 2
16406
+ store['key1'].should == 'val1'
16407
+ end
16408
+
16395
16409
  it 'supports expires on store and load' do
16396
16410
  store.store('key1', 'val1', :expires => 2)
16397
16411
  store.load('key1').should == 'val1'
@@ -16422,6 +16436,20 @@ shared_examples_for 'expires' do
16422
16436
  store['key2'].should be_nil
16423
16437
  end
16424
16438
 
16439
+ it 'supports 0 as no-expires in load' do
16440
+ store.store('key1', 'val1', :expires => 2)
16441
+ store.load('key1', :expires => 0).should == 'val1'
16442
+ sleep 2
16443
+ store.load('key1').should == 'val1'
16444
+ end
16445
+
16446
+ it 'supports false as no-expires in load' do
16447
+ store.store('key1', 'val1', :expires => 2)
16448
+ store.load('key1', :expires => false).should == 'val1'
16449
+ sleep 2
16450
+ store.load('key1').should == 'val1'
16451
+ end
16452
+
16425
16453
  it 'supports updating the expiration time in key?' do
16426
16454
  store.store('key2', 'val2', :expires => 2)
16427
16455
  store['key2'].should == 'val2'
@@ -16434,6 +16462,20 @@ shared_examples_for 'expires' do
16434
16462
  store['key2'].should be_nil
16435
16463
  end
16436
16464
 
16465
+ it 'supports 0 as no-expires in key?' do
16466
+ store.store('key1', 'val1', :expires => 2)
16467
+ store.key?('key1', :expires => 0).should be_true
16468
+ sleep 2
16469
+ store['key1'].should == 'val1'
16470
+ end
16471
+
16472
+ it 'supports false as no-expires in key?' do
16473
+ store.store('key1', 'val1', :expires => 2)
16474
+ store.key?('key1', :expires => false ).should be_true
16475
+ sleep 2
16476
+ store['key1'].should == 'val1'
16477
+ end
16478
+
16437
16479
  it 'supports updating the expiration time in fetch' do
16438
16480
  store.store('key1', 'val1', :expires => 2)
16439
16481
  store['key1'].should == 'val1'
@@ -16446,6 +16488,20 @@ shared_examples_for 'expires' do
16446
16488
  store['key1'].should be_nil
16447
16489
  end
16448
16490
 
16491
+ it 'supports 0 as no-expires in fetch' do
16492
+ store.store('key1', 'val1', :expires => 2)
16493
+ store.fetch('key1', nil, :expires => 0).should == 'val1'
16494
+ sleep 2
16495
+ store.load('key1').should == 'val1'
16496
+ end
16497
+
16498
+ it 'supports false as no-expires in fetch' do
16499
+ store.store('key1', 'val1', :expires => 2)
16500
+ store.fetch('key1', nil, :expires => false).should == 'val1'
16501
+ sleep 2
16502
+ store.load('key1').should == 'val1'
16503
+ end
16504
+
16449
16505
  it 'respects expires in delete' do
16450
16506
  store.store('key2', 'val2', :expires => 2)
16451
16507
  store['key2'].should == 'val2'
@@ -16456,14 +16512,60 @@ shared_examples_for 'expires' do
16456
16512
  end
16457
16513
 
16458
16514
  it 'supports the #expires syntactic sugar' do
16459
- store['longlive_key'] = 'longlive_value'
16515
+ store.store('persistent_key', 'persistent_value', :expires => 0)
16460
16516
  store.expires(2).store('key2', 'val2')
16461
16517
  store['key2'].should == 'val2'
16462
16518
  sleep 1
16463
16519
  store['key2'].should == 'val2'
16464
16520
  sleep 2
16465
16521
  store.delete('key2').should be_nil
16466
- store['longlive_key'].should == 'longlive_value'
16522
+ store['persistent_key'].should == 'persistent_value'
16523
+ end
16524
+
16525
+ it 'supports false as no-expires on store and #[]' do
16526
+ store.store('key1', 'val1', :expires => false)
16527
+ store['key1'].should == 'val1'
16528
+ sleep 2
16529
+ store['key1'].should == 'val1'
16530
+ end
16531
+
16532
+ it 'does not update the expiration time in key? when not asked to do so' do
16533
+ store.store('key1', 'val1', :expires => 1)
16534
+ store.key?('key1').should be_true
16535
+ store.key?('key1', :expires => nil).should be_true
16536
+ sleep 2
16537
+ store.key?('key1').should be_false
16538
+ end
16539
+
16540
+ it 'does not update the expiration time in fetch when not asked to do so' do
16541
+ store.store('key1', 'val1', :expires => 1)
16542
+ store.fetch('key1').should == 'val1'
16543
+ store.fetch('key1', :expires => nil).should == 'val1'
16544
+ sleep 2
16545
+ store.fetch('key1').should be_nil
16546
+ end
16547
+
16548
+ it 'does not update the expiration time in load when not asked to do so' do
16549
+ store.store('key1', 'val1', :expires => 1)
16550
+ store.load('key1').should == 'val1'
16551
+ store.load('key1', :expires => nil).should == 'val1'
16552
+ sleep 2
16553
+ store.load('key1').should be_nil
16554
+ end
16555
+ end
16556
+
16557
+ #################### default_expires ####################
16558
+
16559
+ shared_examples_for 'default_expires' do
16560
+ it 'does set default expiration time' do
16561
+ store['key1'] = 'val1'
16562
+ store.key?('key1').should be_true
16563
+ store.fetch('key1').should == 'val1'
16564
+ store.load('key1').should == 'val1'
16565
+ sleep 2
16566
+ store.key?('key1').should be_false
16567
+ store.fetch('key1').should be_nil
16568
+ store.load('key1').should be_nil
16467
16569
  end
16468
16570
  end
16469
16571
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moneta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-12-31 00:00:00.000000000 Z
14
+ date: 2013-01-04 00:00:00.000000000 Z
15
15
  dependencies: []
16
16
  description: A unified interface to key/value stores
17
17
  email:
@@ -44,6 +44,7 @@ files:
44
44
  - lib/moneta/adapters/cookie.rb
45
45
  - lib/moneta/adapters/couch.rb
46
46
  - lib/moneta/adapters/datamapper.rb
47
+ - lib/moneta/adapters/daybreak.rb
47
48
  - lib/moneta/adapters/dbm.rb
48
49
  - lib/moneta/adapters/file.rb
49
50
  - lib/moneta/adapters/fog.rb
@@ -65,6 +66,7 @@ files:
65
66
  - lib/moneta/adapters/sdbm.rb
66
67
  - lib/moneta/adapters/sequel.rb
67
68
  - lib/moneta/adapters/sqlite.rb
69
+ - lib/moneta/adapters/tdb.rb
68
70
  - lib/moneta/adapters/tokyocabinet.rb
69
71
  - lib/moneta/adapters/yaml.rb
70
72
  - lib/moneta/builder.rb
@@ -74,6 +76,7 @@ files:
74
76
  - lib/moneta/logger.rb
75
77
  - lib/moneta/mixins.rb
76
78
  - lib/moneta/optionmerger.rb
79
+ - lib/moneta/pool.rb
77
80
  - lib/moneta/proxy.rb
78
81
  - lib/moneta/server.rb
79
82
  - lib/moneta/shared.rb
@@ -89,17 +92,20 @@ files:
89
92
  - lib/rack/moneta_store.rb
90
93
  - lib/rack/session/moneta.rb
91
94
  - moneta.gemspec
95
+ - script/generate-specs.rb
96
+ - script/install-bundle.rb
92
97
  - spec/action_dispatch/fixtures/session_autoload_test/foo.rb
93
98
  - spec/action_dispatch/session_moneta_store_spec.rb
94
99
  - spec/active_support/cache_moneta_store_spec.rb
95
- - spec/generate.rb
96
100
  - spec/helper.rb
97
101
  - spec/moneta/adapter_activerecord_spec.rb
98
102
  - spec/moneta/adapter_cassandra_spec.rb
103
+ - spec/moneta/adapter_cassandra_with_default_expires_spec.rb
99
104
  - spec/moneta/adapter_client_spec.rb
100
105
  - spec/moneta/adapter_cookie_spec.rb
101
106
  - spec/moneta/adapter_couch_spec.rb
102
107
  - spec/moneta/adapter_datamapper_spec.rb
108
+ - spec/moneta/adapter_daybreak_spec.rb
103
109
  - spec/moneta/adapter_dbm_spec.rb
104
110
  - spec/moneta/adapter_file_spec.rb
105
111
  - spec/moneta/adapter_fog_spec.rb
@@ -109,17 +115,23 @@ files:
109
115
  - spec/moneta/adapter_localmemcache_spec.rb
110
116
  - spec/moneta/adapter_lruhash_spec.rb
111
117
  - spec/moneta/adapter_memcached_dalli_spec.rb
118
+ - spec/moneta/adapter_memcached_dalli_with_default_expires_spec.rb
112
119
  - spec/moneta/adapter_memcached_native_spec.rb
120
+ - spec/moneta/adapter_memcached_native_with_default_expires_spec.rb
113
121
  - spec/moneta/adapter_memcached_spec.rb
122
+ - spec/moneta/adapter_memcached_with_default_expires_spec.rb
114
123
  - spec/moneta/adapter_memory_spec.rb
115
124
  - spec/moneta/adapter_mongo_spec.rb
125
+ - spec/moneta/adapter_mongo_with_default_expires_spec.rb
116
126
  - spec/moneta/adapter_pstore_spec.rb
117
127
  - spec/moneta/adapter_redis_spec.rb
128
+ - spec/moneta/adapter_redis_with_default_expires_spec.rb
118
129
  - spec/moneta/adapter_restclient_spec.rb
119
130
  - spec/moneta/adapter_riak_spec.rb
120
131
  - spec/moneta/adapter_sdbm_spec.rb
121
132
  - spec/moneta/adapter_sequel_spec.rb
122
133
  - spec/moneta/adapter_sqlite_spec.rb
134
+ - spec/moneta/adapter_tdb_spec.rb
123
135
  - spec/moneta/adapter_tokyocabinet_bdb_spec.rb
124
136
  - spec/moneta/adapter_tokyocabinet_hdb_spec.rb
125
137
  - spec/moneta/adapter_yaml_spec.rb
@@ -127,9 +139,11 @@ files:
127
139
  - spec/moneta/cache_memory_null_spec.rb
128
140
  - spec/moneta/expires_file_spec.rb
129
141
  - spec/moneta/expires_memory_spec.rb
142
+ - spec/moneta/expires_memory_with_default_expires_spec.rb
130
143
  - spec/moneta/lock_spec.rb
131
144
  - spec/moneta/null_adapter_spec.rb
132
145
  - spec/moneta/optionmerger_spec.rb
146
+ - spec/moneta/pool_spec.rb
133
147
  - spec/moneta/proxy_expires_memory_spec.rb
134
148
  - spec/moneta/proxy_redis_spec.rb
135
149
  - spec/moneta/shared_spec.rb
@@ -143,6 +157,8 @@ files:
143
157
  - spec/moneta/simple_datamapper_spec.rb
144
158
  - spec/moneta/simple_datamapper_with_expires_spec.rb
145
159
  - spec/moneta/simple_datamapper_with_repository_spec.rb
160
+ - spec/moneta/simple_daybreak_spec.rb
161
+ - spec/moneta/simple_daybreak_with_expires_spec.rb
146
162
  - spec/moneta/simple_dbm_spec.rb
147
163
  - spec/moneta/simple_dbm_with_expires_spec.rb
148
164
  - spec/moneta/simple_file_spec.rb
@@ -173,7 +189,6 @@ files:
173
189
  - spec/moneta/simple_memory_with_prefix_spec.rb
174
190
  - spec/moneta/simple_memory_with_snappy_compress_spec.rb
175
191
  - spec/moneta/simple_mongo_spec.rb
176
- - spec/moneta/simple_mongo_with_expires_spec.rb
177
192
  - spec/moneta/simple_null_spec.rb
178
193
  - spec/moneta/simple_pstore_spec.rb
179
194
  - spec/moneta/simple_pstore_with_expires_spec.rb
@@ -187,6 +202,8 @@ files:
187
202
  - spec/moneta/simple_sequel_with_expires_spec.rb
188
203
  - spec/moneta/simple_sqlite_spec.rb
189
204
  - spec/moneta/simple_sqlite_with_expires_spec.rb
205
+ - spec/moneta/simple_tdb_spec.rb
206
+ - spec/moneta/simple_tdb_with_expires_spec.rb
190
207
  - spec/moneta/simple_tokyocabinet_spec.rb
191
208
  - spec/moneta/simple_tokyocabinet_with_expires_spec.rb
192
209
  - spec/moneta/simple_yaml_spec.rb
@@ -259,14 +276,15 @@ test_files:
259
276
  - spec/action_dispatch/fixtures/session_autoload_test/foo.rb
260
277
  - spec/action_dispatch/session_moneta_store_spec.rb
261
278
  - spec/active_support/cache_moneta_store_spec.rb
262
- - spec/generate.rb
263
279
  - spec/helper.rb
264
280
  - spec/moneta/adapter_activerecord_spec.rb
265
281
  - spec/moneta/adapter_cassandra_spec.rb
282
+ - spec/moneta/adapter_cassandra_with_default_expires_spec.rb
266
283
  - spec/moneta/adapter_client_spec.rb
267
284
  - spec/moneta/adapter_cookie_spec.rb
268
285
  - spec/moneta/adapter_couch_spec.rb
269
286
  - spec/moneta/adapter_datamapper_spec.rb
287
+ - spec/moneta/adapter_daybreak_spec.rb
270
288
  - spec/moneta/adapter_dbm_spec.rb
271
289
  - spec/moneta/adapter_file_spec.rb
272
290
  - spec/moneta/adapter_fog_spec.rb
@@ -276,17 +294,23 @@ test_files:
276
294
  - spec/moneta/adapter_localmemcache_spec.rb
277
295
  - spec/moneta/adapter_lruhash_spec.rb
278
296
  - spec/moneta/adapter_memcached_dalli_spec.rb
297
+ - spec/moneta/adapter_memcached_dalli_with_default_expires_spec.rb
279
298
  - spec/moneta/adapter_memcached_native_spec.rb
299
+ - spec/moneta/adapter_memcached_native_with_default_expires_spec.rb
280
300
  - spec/moneta/adapter_memcached_spec.rb
301
+ - spec/moneta/adapter_memcached_with_default_expires_spec.rb
281
302
  - spec/moneta/adapter_memory_spec.rb
282
303
  - spec/moneta/adapter_mongo_spec.rb
304
+ - spec/moneta/adapter_mongo_with_default_expires_spec.rb
283
305
  - spec/moneta/adapter_pstore_spec.rb
284
306
  - spec/moneta/adapter_redis_spec.rb
307
+ - spec/moneta/adapter_redis_with_default_expires_spec.rb
285
308
  - spec/moneta/adapter_restclient_spec.rb
286
309
  - spec/moneta/adapter_riak_spec.rb
287
310
  - spec/moneta/adapter_sdbm_spec.rb
288
311
  - spec/moneta/adapter_sequel_spec.rb
289
312
  - spec/moneta/adapter_sqlite_spec.rb
313
+ - spec/moneta/adapter_tdb_spec.rb
290
314
  - spec/moneta/adapter_tokyocabinet_bdb_spec.rb
291
315
  - spec/moneta/adapter_tokyocabinet_hdb_spec.rb
292
316
  - spec/moneta/adapter_yaml_spec.rb
@@ -294,9 +318,11 @@ test_files:
294
318
  - spec/moneta/cache_memory_null_spec.rb
295
319
  - spec/moneta/expires_file_spec.rb
296
320
  - spec/moneta/expires_memory_spec.rb
321
+ - spec/moneta/expires_memory_with_default_expires_spec.rb
297
322
  - spec/moneta/lock_spec.rb
298
323
  - spec/moneta/null_adapter_spec.rb
299
324
  - spec/moneta/optionmerger_spec.rb
325
+ - spec/moneta/pool_spec.rb
300
326
  - spec/moneta/proxy_expires_memory_spec.rb
301
327
  - spec/moneta/proxy_redis_spec.rb
302
328
  - spec/moneta/shared_spec.rb
@@ -310,6 +336,8 @@ test_files:
310
336
  - spec/moneta/simple_datamapper_spec.rb
311
337
  - spec/moneta/simple_datamapper_with_expires_spec.rb
312
338
  - spec/moneta/simple_datamapper_with_repository_spec.rb
339
+ - spec/moneta/simple_daybreak_spec.rb
340
+ - spec/moneta/simple_daybreak_with_expires_spec.rb
313
341
  - spec/moneta/simple_dbm_spec.rb
314
342
  - spec/moneta/simple_dbm_with_expires_spec.rb
315
343
  - spec/moneta/simple_file_spec.rb
@@ -340,7 +368,6 @@ test_files:
340
368
  - spec/moneta/simple_memory_with_prefix_spec.rb
341
369
  - spec/moneta/simple_memory_with_snappy_compress_spec.rb
342
370
  - spec/moneta/simple_mongo_spec.rb
343
- - spec/moneta/simple_mongo_with_expires_spec.rb
344
371
  - spec/moneta/simple_null_spec.rb
345
372
  - spec/moneta/simple_pstore_spec.rb
346
373
  - spec/moneta/simple_pstore_with_expires_spec.rb
@@ -354,6 +381,8 @@ test_files:
354
381
  - spec/moneta/simple_sequel_with_expires_spec.rb
355
382
  - spec/moneta/simple_sqlite_spec.rb
356
383
  - spec/moneta/simple_sqlite_with_expires_spec.rb
384
+ - spec/moneta/simple_tdb_spec.rb
385
+ - spec/moneta/simple_tdb_with_expires_spec.rb
357
386
  - spec/moneta/simple_tokyocabinet_spec.rb
358
387
  - spec/moneta/simple_tokyocabinet_with_expires_spec.rb
359
388
  - spec/moneta/simple_yaml_spec.rb