moneta 1.0.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (488) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/ruby.yml +425 -0
  3. data/.gitignore +3 -0
  4. data/.rspec +4 -0
  5. data/.rubocop.yml +194 -0
  6. data/.yardopts +6 -1
  7. data/CHANGES +88 -0
  8. data/CONTRIBUTORS +10 -2
  9. data/Gemfile +198 -76
  10. data/LICENSE +1 -1
  11. data/README.md +181 -83
  12. data/SPEC.md +70 -0
  13. data/feature_matrix.yaml +227 -0
  14. data/lib/action_dispatch/middleware/session/moneta_store.rb +1 -0
  15. data/lib/active_support/cache/moneta_store.rb +102 -6
  16. data/lib/moneta/adapter.rb +52 -0
  17. data/lib/moneta/adapters/activerecord.rb +284 -99
  18. data/lib/moneta/adapters/activesupportcache.rb +120 -0
  19. data/lib/moneta/adapters/cassandra.rb +303 -51
  20. data/lib/moneta/adapters/client.rb +72 -23
  21. data/lib/moneta/adapters/couch.rb +353 -49
  22. data/lib/moneta/adapters/datamapper.rb +11 -5
  23. data/lib/moneta/adapters/daybreak.rb +31 -20
  24. data/lib/moneta/adapters/dbm.rb +10 -16
  25. data/lib/moneta/adapters/file.rb +34 -13
  26. data/lib/moneta/adapters/fog.rb +5 -6
  27. data/lib/moneta/adapters/gdbm.rb +10 -16
  28. data/lib/moneta/adapters/hbase.rb +11 -13
  29. data/lib/moneta/adapters/kyotocabinet.rb +78 -17
  30. data/lib/moneta/adapters/leveldb.rb +35 -15
  31. data/lib/moneta/adapters/lmdb.rb +47 -23
  32. data/lib/moneta/adapters/localmemcache.rb +7 -13
  33. data/lib/moneta/adapters/lruhash.rb +45 -48
  34. data/lib/moneta/adapters/memcached/dalli.rb +67 -30
  35. data/lib/moneta/adapters/memcached/native.rb +33 -30
  36. data/lib/moneta/adapters/memcached.rb +1 -0
  37. data/lib/moneta/adapters/memory.rb +7 -7
  38. data/lib/moneta/adapters/mongo.rb +265 -6
  39. data/lib/moneta/adapters/null.rb +1 -2
  40. data/lib/moneta/adapters/pstore.rb +68 -25
  41. data/lib/moneta/adapters/redis.rb +101 -32
  42. data/lib/moneta/adapters/restclient.rb +17 -16
  43. data/lib/moneta/adapters/riak.rb +10 -11
  44. data/lib/moneta/adapters/sdbm.rb +10 -16
  45. data/lib/moneta/adapters/sequel/mysql.rb +66 -0
  46. data/lib/moneta/adapters/sequel/postgres.rb +80 -0
  47. data/lib/moneta/adapters/sequel/postgres_hstore.rb +240 -0
  48. data/lib/moneta/adapters/sequel/sqlite.rb +57 -0
  49. data/lib/moneta/adapters/sequel.rb +253 -52
  50. data/lib/moneta/adapters/sqlite.rb +103 -23
  51. data/lib/moneta/adapters/tdb.rb +21 -12
  52. data/lib/moneta/adapters/tokyocabinet.rb +24 -16
  53. data/lib/moneta/adapters/tokyotyrant.rb +49 -28
  54. data/lib/moneta/adapters/yaml.rb +1 -5
  55. data/lib/moneta/builder.rb +2 -3
  56. data/lib/moneta/cache.rb +11 -1
  57. data/lib/moneta/config.rb +101 -0
  58. data/lib/moneta/create_support.rb +21 -0
  59. data/lib/moneta/dbm_adapter.rb +31 -0
  60. data/lib/moneta/defaults.rb +320 -0
  61. data/lib/moneta/each_key_support.rb +27 -0
  62. data/lib/moneta/enumerable.rb +38 -0
  63. data/lib/moneta/expires.rb +112 -11
  64. data/lib/moneta/expires_support.rb +59 -0
  65. data/lib/moneta/fallback.rb +84 -0
  66. data/lib/moneta/hash_adapter.rb +68 -0
  67. data/lib/moneta/increment_support.rb +16 -0
  68. data/lib/moneta/lock.rb +26 -2
  69. data/lib/moneta/logger.rb +2 -2
  70. data/lib/moneta/nil_values.rb +35 -0
  71. data/lib/moneta/option_support.rb +51 -0
  72. data/lib/moneta/optionmerger.rb +0 -1
  73. data/lib/moneta/pool.rb +339 -28
  74. data/lib/moneta/proxy.rb +75 -2
  75. data/lib/moneta/server.rb +230 -68
  76. data/lib/moneta/shared.rb +36 -14
  77. data/lib/moneta/stack.rb +7 -7
  78. data/lib/moneta/synchronize.rb +5 -11
  79. data/lib/moneta/transformer/config.rb +64 -42
  80. data/lib/moneta/transformer/helper/bson.rb +7 -14
  81. data/lib/moneta/transformer/helper.rb +5 -5
  82. data/lib/moneta/transformer.rb +217 -23
  83. data/lib/moneta/utils.rb +3 -9
  84. data/lib/moneta/version.rb +1 -1
  85. data/lib/moneta/weak_each_key.rb +72 -0
  86. data/lib/moneta/wrapper.rb +30 -0
  87. data/lib/moneta.rb +29 -10
  88. data/lib/rack/cache/moneta.rb +13 -11
  89. data/lib/rack/moneta_rest.rb +2 -2
  90. data/lib/rack/session/moneta.rb +3 -4
  91. data/moneta.gemspec +19 -4
  92. data/script/benchmarks +311 -100
  93. data/script/contributors +11 -6
  94. data/script/parallel-tests +58 -83
  95. data/script/start-couchdb +27 -0
  96. data/script/start-hbase +47 -0
  97. data/script/start-services +5 -6
  98. data/script/update-feature-matrix +148 -0
  99. data/spec/active_support/cache_moneta_store_spec.rb +129 -106
  100. data/spec/features/concurrent_create.rb +42 -0
  101. data/spec/features/concurrent_increment.rb +39 -0
  102. data/spec/features/create.rb +25 -0
  103. data/spec/features/create_expires.rb +19 -0
  104. data/spec/features/default_expires.rb +14 -0
  105. data/spec/features/each_key.rb +119 -0
  106. data/spec/features/expires.rb +296 -0
  107. data/spec/features/features.rb +16 -0
  108. data/spec/features/increment.rb +98 -0
  109. data/spec/features/marshallable_key.rb +43 -0
  110. data/spec/features/marshallable_value.rb +7 -0
  111. data/spec/features/multiprocess.rb +8 -0
  112. data/spec/features/not_create.rb +7 -0
  113. data/spec/features/not_each_key.rb +7 -0
  114. data/spec/features/not_increment.rb +13 -0
  115. data/spec/features/not_persist.rb +9 -0
  116. data/spec/features/null.rb +66 -0
  117. data/spec/features/persist.rb +14 -0
  118. data/spec/features/returndifferent.rb +9 -0
  119. data/spec/features/returnsame.rb +9 -0
  120. data/spec/features/store.rb +261 -0
  121. data/spec/features/store_large.rb +13 -0
  122. data/spec/features/transform_value.rb +44 -0
  123. data/spec/features/transform_value_expires.rb +41 -0
  124. data/spec/helper.rb +345 -78
  125. data/spec/moneta/adapters/activerecord/adapter_activerecord_existing_connection_spec.rb +61 -0
  126. data/spec/moneta/adapters/activerecord/adapter_activerecord_spec.rb +126 -0
  127. data/spec/moneta/adapters/activerecord/standard_activerecord_spec.rb +21 -0
  128. data/spec/moneta/adapters/activerecord/standard_activerecord_with_expires_spec.rb +27 -0
  129. data/spec/moneta/adapters/activesupportcache/adapter_activesupportcache_spec.rb +54 -0
  130. data/spec/moneta/adapters/activesupportcache/adapter_activesupportcache_with_default_expires_spec.rb +54 -0
  131. data/spec/moneta/adapters/activesupportcache/standard_activesupportcache_spec.rb +14 -0
  132. data/spec/moneta/adapters/cassandra/adapter_cassandra_spec.rb +17 -0
  133. data/spec/moneta/adapters/cassandra/adapter_cassandra_with_default_expires_spec.rb +18 -0
  134. data/spec/moneta/adapters/cassandra/helper.rb +18 -0
  135. data/spec/moneta/adapters/cassandra/standard_cassandra_spec.rb +18 -0
  136. data/spec/moneta/adapters/client/adapter_client_spec.rb +11 -0
  137. data/spec/moneta/adapters/client/client_helper.rb +25 -0
  138. data/spec/moneta/adapters/client/standard_client_tcp_spec.rb +23 -0
  139. data/spec/moneta/adapters/client/standard_client_unix_spec.rb +28 -0
  140. data/spec/moneta/adapters/cookie/adapter_cookie_spec.rb +7 -0
  141. data/spec/moneta/adapters/couch/adapter_couch_spec.rb +204 -0
  142. data/spec/moneta/adapters/couch/standard_couch_spec.rb +15 -0
  143. data/spec/moneta/adapters/couch/standard_couch_with_expires_spec.rb +19 -0
  144. data/spec/moneta/adapters/datamapper/adapter_datamapper_spec.rb +60 -0
  145. data/spec/moneta/adapters/datamapper/standard_datamapper_spec.rb +21 -0
  146. data/spec/moneta/adapters/datamapper/standard_datamapper_with_expires_spec.rb +26 -0
  147. data/spec/moneta/adapters/datamapper/standard_datamapper_with_repository_spec.rb +22 -0
  148. data/spec/moneta/adapters/daybreak/adapter_daybreak_spec.rb +7 -0
  149. data/spec/moneta/adapters/daybreak/standard_daybreak_spec.rb +7 -0
  150. data/spec/moneta/adapters/daybreak/standard_daybreak_with_expires_spec.rb +11 -0
  151. data/spec/moneta/adapters/dbm/adapter_dbm_spec.rb +7 -0
  152. data/spec/moneta/adapters/dbm/standard_dbm_spec.rb +7 -0
  153. data/spec/moneta/adapters/dbm/standard_dbm_with_expires_spec.rb +12 -0
  154. data/spec/moneta/adapters/faraday_helper.rb +10 -0
  155. data/spec/moneta/adapters/file/adapter_file_spec.rb +7 -0
  156. data/spec/moneta/adapters/file/standard_file_spec.rb +7 -0
  157. data/spec/moneta/adapters/file/standard_file_with_expires_spec.rb +11 -0
  158. data/spec/moneta/adapters/fog/adapter_fog_spec.rb +16 -0
  159. data/spec/moneta/adapters/fog/standard_fog_spec.rb +15 -0
  160. data/spec/moneta/adapters/fog/standard_fog_with_expires_spec.rb +20 -0
  161. data/spec/moneta/adapters/gdbm/adapter_gdbm_spec.rb +7 -0
  162. data/spec/moneta/adapters/gdbm/standard_gdbm_spec.rb +7 -0
  163. data/spec/moneta/adapters/gdbm/standard_gdbm_with_expires_spec.rb +11 -0
  164. data/spec/moneta/adapters/hashfile/standard_hashfile_spec.rb +7 -0
  165. data/spec/moneta/adapters/hashfile/standard_hashfile_with_expires_spec.rb +12 -0
  166. data/spec/moneta/adapters/hbase/adapter_hbase_spec.rb +7 -0
  167. data/spec/moneta/adapters/hbase/standard_hbase_spec.rb +4 -0
  168. data/spec/moneta/adapters/hbase/standard_hbase_with_expires_spec.rb +8 -0
  169. data/spec/moneta/adapters/kyotocabinet/adapter_kyotocabinet_spec.rb +7 -0
  170. data/spec/moneta/adapters/kyotocabinet/standard_kyotocabinet_spec.rb +7 -0
  171. data/spec/moneta/adapters/kyotocabinet/standard_kyotocabinet_with_expires_spec.rb +14 -0
  172. data/spec/moneta/adapters/leveldb/adapter_leveldb_spec.rb +7 -0
  173. data/spec/moneta/adapters/leveldb/standard_leveldb_spec.rb +7 -0
  174. data/spec/moneta/adapters/leveldb/standard_leveldb_with_expires_spec.rb +11 -0
  175. data/spec/moneta/adapters/lmdb/adapter_lmdb_spec.rb +7 -0
  176. data/spec/moneta/adapters/lmdb/adapter_lmdb_with_db_spec.rb +7 -0
  177. data/spec/moneta/adapters/lmdb/standard_lmdb_spec.rb +7 -0
  178. data/spec/moneta/adapters/lmdb/standard_lmdb_with_expires_spec.rb +11 -0
  179. data/spec/moneta/adapters/localmemcache/adapter_localmemcache_spec.rb +7 -0
  180. data/spec/moneta/adapters/localmemcache/standard_localmemcache_spec.rb +7 -0
  181. data/spec/moneta/adapters/localmemcache/standard_localmemcache_with_expires_spec.rb +11 -0
  182. data/spec/moneta/{adapter_lruhash_spec.rb → adapters/lruhash/adapter_lruhash_spec.rb} +15 -33
  183. data/spec/moneta/adapters/lruhash/standard_lruhash_spec.rb +4 -0
  184. data/spec/moneta/adapters/lruhash/standard_lruhash_with_expires_spec.rb +8 -0
  185. data/spec/moneta/adapters/memcached/adapter_memcached_spec.rb +13 -0
  186. data/spec/moneta/adapters/memcached/dalli/adapter_memcached_dalli_spec.rb +25 -0
  187. data/spec/moneta/adapters/memcached/dalli/standard_memcached_dalli_spec.rb +11 -0
  188. data/spec/moneta/adapters/memcached/native/adapter_memcached_native_spec.rb +25 -0
  189. data/spec/moneta/adapters/memcached/native/standard_memcached_native_spec.rb +11 -0
  190. data/spec/moneta/adapters/memcached/standard_memcached_spec.rb +17 -0
  191. data/spec/moneta/adapters/memcached_helper.rb +20 -0
  192. data/spec/moneta/adapters/memory/adapter_memory_spec.rb +7 -0
  193. data/spec/moneta/adapters/memory/standard_memory_spec.rb +4 -0
  194. data/spec/moneta/adapters/memory/standard_memory_with_compress_spec.rb +9 -0
  195. data/spec/moneta/adapters/memory/standard_memory_with_expires_spec.rb +8 -0
  196. data/spec/moneta/adapters/memory/standard_memory_with_json_key_serializer_spec.rb +4 -0
  197. data/spec/moneta/adapters/memory/standard_memory_with_json_serializer_spec.rb +9 -0
  198. data/spec/moneta/adapters/memory/standard_memory_with_json_value_serializer_spec.rb +9 -0
  199. data/spec/moneta/adapters/memory/standard_memory_with_prefix_spec.rb +41 -0
  200. data/spec/moneta/adapters/memory/standard_memory_with_snappy_compress_spec.rb +9 -0
  201. data/spec/moneta/adapters/mongo/adapter_mongo_spec.rb +41 -0
  202. data/spec/moneta/adapters/mongo/adapter_mongo_with_default_expires_spec.rb +14 -0
  203. data/spec/moneta/adapters/mongo/standard_mongo_spec.rb +7 -0
  204. data/spec/moneta/adapters/null/null_adapter_spec.rb +7 -0
  205. data/spec/moneta/adapters/null/standard_null_spec.rb +4 -0
  206. data/spec/moneta/adapters/pstore/adapter_pstore_spec.rb +7 -0
  207. data/spec/moneta/adapters/pstore/standard_pstore_spec.rb +9 -0
  208. data/spec/moneta/adapters/pstore/standard_pstore_with_expires_spec.rb +13 -0
  209. data/spec/moneta/adapters/redis/adapter_redis_spec.rb +20 -0
  210. data/spec/moneta/adapters/redis/standard_redis_spec.rb +14 -0
  211. data/spec/moneta/adapters/restclient/adapter_restclient_spec.rb +13 -0
  212. data/spec/moneta/adapters/restclient/helper.rb +12 -0
  213. data/spec/moneta/adapters/restclient/standard_restclient_spec.rb +13 -0
  214. data/spec/moneta/adapters/riak/adapter_riak_spec.rb +14 -0
  215. data/spec/moneta/adapters/riak/standard_riak_spec.rb +10 -0
  216. data/spec/moneta/adapters/riak/standard_riak_with_expires_spec.rb +14 -0
  217. data/spec/moneta/adapters/sdbm/adapter_sdbm_spec.rb +7 -0
  218. data/spec/moneta/adapters/sdbm/standard_sdbm_spec.rb +7 -0
  219. data/spec/moneta/adapters/sdbm/standard_sdbm_with_expires_spec.rb +11 -0
  220. data/spec/moneta/adapters/sequel/adapter_sequel_spec.rb +133 -0
  221. data/spec/moneta/adapters/sequel/helper.rb +80 -0
  222. data/spec/moneta/adapters/sequel/standard_sequel_spec.rb +8 -0
  223. data/spec/moneta/adapters/sequel/standard_sequel_with_expires_spec.rb +18 -0
  224. data/spec/moneta/adapters/sqlite/adapter_sqlite_spec.rb +7 -0
  225. data/spec/moneta/adapters/sqlite/standard_sqlite_spec.rb +7 -0
  226. data/spec/moneta/adapters/sqlite/standard_sqlite_with_expires_spec.rb +15 -0
  227. data/spec/moneta/adapters/tdb/adapter_tdb_spec.rb +7 -0
  228. data/spec/moneta/adapters/tdb/standard_tdb_spec.rb +7 -0
  229. data/spec/moneta/adapters/tdb/standard_tdb_with_expires_spec.rb +11 -0
  230. data/spec/moneta/adapters/tokyocabinet/adapter_tokyocabinet_bdb_spec.rb +7 -0
  231. data/spec/moneta/adapters/tokyocabinet/adapter_tokyocabinet_hdb_spec.rb +7 -0
  232. data/spec/moneta/adapters/tokyocabinet/standard_tokyocabinet_spec.rb +7 -0
  233. data/spec/moneta/adapters/tokyocabinet/standard_tokyocabinet_with_expires_spec.rb +11 -0
  234. data/spec/moneta/adapters/tokyotyrant/adapter_tokyotyrant_spec.rb +11 -0
  235. data/spec/moneta/adapters/tokyotyrant/helper.rb +12 -0
  236. data/spec/moneta/adapters/tokyotyrant/standard_tokyotyrant_spec.rb +7 -0
  237. data/spec/moneta/adapters/tokyotyrant/standard_tokyotyrant_with_expires_spec.rb +12 -0
  238. data/spec/moneta/adapters/yaml/adapter_yaml_spec.rb +7 -0
  239. data/spec/moneta/adapters/yaml/standard_yaml_spec.rb +9 -0
  240. data/spec/moneta/adapters/yaml/standard_yaml_with_expires_spec.rb +13 -0
  241. data/spec/moneta/builder_spec.rb +22 -1
  242. data/spec/moneta/config_spec.rb +219 -0
  243. data/spec/moneta/mutex_spec.rb +6 -23
  244. data/spec/moneta/proxies/cache/cache_file_memory_spec.rb +24 -0
  245. data/spec/moneta/proxies/cache/cache_memory_null_spec.rb +12 -0
  246. data/spec/moneta/proxies/enumerable/enumerable_spec.rb +26 -0
  247. data/spec/moneta/proxies/expires/expires_file_spec.rb +28 -0
  248. data/spec/moneta/proxies/expires/expires_memory_spec.rb +15 -0
  249. data/spec/moneta/proxies/expires/expires_memory_with_default_expires_spec.rb +16 -0
  250. data/spec/moneta/proxies/fallback/fallback_spec.rb +42 -0
  251. data/spec/moneta/proxies/lock/lock_spec.rb +10 -0
  252. data/spec/moneta/{optionmerger_spec.rb → proxies/optionmerger/optionmerger_spec.rb} +2 -18
  253. data/spec/moneta/proxies/pool/pool_spec.rb +353 -0
  254. data/spec/moneta/proxies/proxy/proxy_expires_memory_spec.rb +16 -0
  255. data/spec/moneta/proxies/shared/shared_tcp_spec.rb +59 -0
  256. data/spec/moneta/proxies/shared/shared_unix_spec.rb +58 -0
  257. data/spec/moneta/proxies/transformer/transformer_bencode_spec.rb +19 -0
  258. data/spec/moneta/proxies/transformer/transformer_bert_spec.rb +19 -0
  259. data/spec/moneta/proxies/transformer/transformer_bson_spec.rb +25 -0
  260. data/spec/moneta/proxies/transformer/transformer_bzip2_spec.rb +19 -0
  261. data/spec/moneta/proxies/transformer/transformer_json_spec.rb +19 -0
  262. data/spec/moneta/proxies/transformer/transformer_key_inspect_spec.rb +17 -0
  263. data/spec/moneta/proxies/transformer/transformer_key_marshal_spec.rb +17 -0
  264. data/spec/moneta/proxies/transformer/transformer_key_to_s_spec.rb +17 -0
  265. data/spec/moneta/proxies/transformer/transformer_key_yaml_spec.rb +17 -0
  266. data/spec/moneta/proxies/transformer/transformer_lz4_spec.rb +19 -0
  267. data/spec/moneta/proxies/transformer/transformer_lzma_spec.rb +19 -0
  268. data/spec/moneta/proxies/transformer/transformer_lzo_spec.rb +19 -0
  269. data/spec/moneta/proxies/transformer/transformer_marshal_base64_spec.rb +20 -0
  270. data/spec/moneta/proxies/transformer/transformer_marshal_city128_spec.rb +15 -0
  271. data/spec/moneta/proxies/transformer/transformer_marshal_city32_spec.rb +15 -0
  272. data/spec/moneta/proxies/transformer/transformer_marshal_city64_spec.rb +15 -0
  273. data/spec/moneta/proxies/transformer/transformer_marshal_escape_spec.rb +21 -0
  274. data/spec/moneta/proxies/transformer/transformer_marshal_hex_spec.rb +20 -0
  275. data/spec/moneta/proxies/transformer/transformer_marshal_hmac_spec.rb +19 -0
  276. data/spec/moneta/proxies/transformer/transformer_marshal_md5_spec.rb +15 -0
  277. data/spec/moneta/proxies/transformer/transformer_marshal_md5_spread_spec.rb +15 -0
  278. data/spec/moneta/proxies/transformer/transformer_marshal_prefix_base64_spec.rb +33 -0
  279. data/spec/moneta/proxies/transformer/transformer_marshal_prefix_spec.rb +15 -0
  280. data/spec/moneta/proxies/transformer/transformer_marshal_qp_spec.rb +20 -0
  281. data/spec/moneta/proxies/transformer/transformer_marshal_rmd160_spec.rb +15 -0
  282. data/spec/moneta/proxies/transformer/transformer_marshal_sha1_spec.rb +15 -0
  283. data/spec/moneta/proxies/transformer/transformer_marshal_sha256_spec.rb +15 -0
  284. data/spec/moneta/proxies/transformer/transformer_marshal_sha384_spec.rb +15 -0
  285. data/spec/moneta/proxies/transformer/transformer_marshal_sha512_spec.rb +15 -0
  286. data/spec/moneta/proxies/transformer/transformer_marshal_spec.rb +19 -0
  287. data/spec/moneta/proxies/transformer/transformer_marshal_truncate_spec.rb +15 -0
  288. data/spec/moneta/proxies/transformer/transformer_marshal_urlsafe_base64_spec.rb +20 -0
  289. data/spec/moneta/proxies/transformer/transformer_marshal_uuencode_spec.rb +19 -0
  290. data/spec/moneta/proxies/transformer/transformer_msgpack_spec.rb +19 -0
  291. data/spec/moneta/proxies/transformer/transformer_ox_spec.rb +19 -0
  292. data/spec/moneta/proxies/transformer/transformer_php_spec.rb +19 -0
  293. data/spec/moneta/proxies/transformer/transformer_quicklz_spec.rb +19 -0
  294. data/spec/moneta/proxies/transformer/transformer_snappy_spec.rb +19 -0
  295. data/spec/moneta/proxies/transformer/transformer_tnet_spec.rb +19 -0
  296. data/spec/moneta/proxies/transformer/transformer_value_marshal_spec.rb +19 -0
  297. data/spec/moneta/proxies/transformer/transformer_value_yaml_spec.rb +19 -0
  298. data/spec/moneta/proxies/transformer/transformer_yaml_spec.rb +19 -0
  299. data/spec/moneta/proxies/transformer/transformer_zlib_spec.rb +19 -0
  300. data/spec/moneta/proxies/weak_create/weak_create_spec.rb +21 -0
  301. data/spec/moneta/proxies/weak_each_key/weak_each_key_spec.rb +22 -0
  302. data/spec/moneta/proxies/weak_increment/weak_increment_spec.rb +21 -0
  303. data/spec/moneta/semaphore_spec.rb +6 -23
  304. data/spec/moneta/stack_file_memory_spec.rb +5 -29
  305. data/spec/moneta/stack_memory_file_spec.rb +5 -31
  306. data/spec/rack/session_moneta_spec.rb +44 -25
  307. data/spec/restserver.rb +44 -0
  308. data/{spec → test}/action_dispatch/fixtures/session_autoload_test/foo.rb +0 -0
  309. data/{spec/action_dispatch/session_moneta_store_spec.rb → test/action_dispatch/session_moneta_store_test.rb} +13 -5
  310. metadata +545 -369
  311. data/.travis.yml +0 -55
  312. data/lib/moneta/adapters/mongo/base.rb +0 -78
  313. data/lib/moneta/adapters/mongo/moped.rb +0 -107
  314. data/lib/moneta/adapters/mongo/official.rb +0 -117
  315. data/lib/moneta/mixins.rb +0 -343
  316. data/script/generate-specs +0 -2696
  317. data/script/install-kyotocabinet +0 -17
  318. data/spec/moneta/adapter_activerecord_exisiting_connection_spec.rb +0 -36
  319. data/spec/moneta/adapter_activerecord_spec.rb +0 -65
  320. data/spec/moneta/adapter_cassandra_spec.rb +0 -33
  321. data/spec/moneta/adapter_cassandra_with_default_expires_spec.rb +0 -34
  322. data/spec/moneta/adapter_client_spec.rb +0 -35
  323. data/spec/moneta/adapter_cookie_spec.rb +0 -30
  324. data/spec/moneta/adapter_couch_spec.rb +0 -36
  325. data/spec/moneta/adapter_datamapper_spec.rb +0 -64
  326. data/spec/moneta/adapter_daybreak_spec.rb +0 -31
  327. data/spec/moneta/adapter_dbm_spec.rb +0 -31
  328. data/spec/moneta/adapter_file_spec.rb +0 -34
  329. data/spec/moneta/adapter_fog_spec.rb +0 -37
  330. data/spec/moneta/adapter_gdbm_spec.rb +0 -31
  331. data/spec/moneta/adapter_hbase_spec.rb +0 -33
  332. data/spec/moneta/adapter_kyotocabinet_spec.rb +0 -31
  333. data/spec/moneta/adapter_leveldb_spec.rb +0 -31
  334. data/spec/moneta/adapter_lmdb_spec.rb +0 -32
  335. data/spec/moneta/adapter_lmdb_with_db_spec.rb +0 -32
  336. data/spec/moneta/adapter_localmemcache_spec.rb +0 -32
  337. data/spec/moneta/adapter_memcached_dalli_spec.rb +0 -36
  338. data/spec/moneta/adapter_memcached_dalli_with_default_expires_spec.rb +0 -37
  339. data/spec/moneta/adapter_memcached_native_spec.rb +0 -36
  340. data/spec/moneta/adapter_memcached_native_with_default_expires_spec.rb +0 -37
  341. data/spec/moneta/adapter_memcached_spec.rb +0 -36
  342. data/spec/moneta/adapter_memcached_with_default_expires_spec.rb +0 -37
  343. data/spec/moneta/adapter_memory_spec.rb +0 -184
  344. data/spec/moneta/adapter_mongo_moped_spec.rb +0 -64
  345. data/spec/moneta/adapter_mongo_moped_with_default_expires_spec.rb +0 -53
  346. data/spec/moneta/adapter_mongo_official_spec.rb +0 -64
  347. data/spec/moneta/adapter_mongo_official_with_default_expires_spec.rb +0 -53
  348. data/spec/moneta/adapter_mongo_spec.rb +0 -51
  349. data/spec/moneta/adapter_mongo_with_default_expires_spec.rb +0 -53
  350. data/spec/moneta/adapter_pstore_spec.rb +0 -250
  351. data/spec/moneta/adapter_redis_spec.rb +0 -36
  352. data/spec/moneta/adapter_redis_with_default_expires_spec.rb +0 -37
  353. data/spec/moneta/adapter_restclient_spec.rb +0 -33
  354. data/spec/moneta/adapter_riak_spec.rb +0 -36
  355. data/spec/moneta/adapter_sdbm_spec.rb +0 -30
  356. data/spec/moneta/adapter_sequel_spec.rb +0 -34
  357. data/spec/moneta/adapter_sqlite_spec.rb +0 -32
  358. data/spec/moneta/adapter_tdb_spec.rb +0 -31
  359. data/spec/moneta/adapter_tokyocabinet_bdb_spec.rb +0 -31
  360. data/spec/moneta/adapter_tokyocabinet_hdb_spec.rb +0 -31
  361. data/spec/moneta/adapter_tokyotyrant_spec.rb +0 -34
  362. data/spec/moneta/adapter_yaml_spec.rb +0 -57
  363. data/spec/moneta/cache_file_memory_spec.rb +0 -50
  364. data/spec/moneta/cache_memory_null_spec.rb +0 -35
  365. data/spec/moneta/expires_file_spec.rb +0 -78
  366. data/spec/moneta/expires_memory_spec.rb +0 -189
  367. data/spec/moneta/expires_memory_with_default_expires_spec.rb +0 -190
  368. data/spec/moneta/lock_spec.rb +0 -187
  369. data/spec/moneta/null_adapter_spec.rb +0 -86
  370. data/spec/moneta/pool_spec.rb +0 -38
  371. data/spec/moneta/proxy_expires_memory_spec.rb +0 -191
  372. data/spec/moneta/proxy_redis_spec.rb +0 -40
  373. data/spec/moneta/shared_tcp_spec.rb +0 -46
  374. data/spec/moneta/shared_unix_spec.rb +0 -46
  375. data/spec/moneta/standard_activerecord_spec.rb +0 -253
  376. data/spec/moneta/standard_activerecord_with_expires_spec.rb +0 -255
  377. data/spec/moneta/standard_cassandra_spec.rb +0 -252
  378. data/spec/moneta/standard_client_tcp_spec.rb +0 -269
  379. data/spec/moneta/standard_client_unix_spec.rb +0 -254
  380. data/spec/moneta/standard_couch_spec.rb +0 -252
  381. data/spec/moneta/standard_couch_with_expires_spec.rb +0 -254
  382. data/spec/moneta/standard_datamapper_spec.rb +0 -254
  383. data/spec/moneta/standard_datamapper_with_expires_spec.rb +0 -256
  384. data/spec/moneta/standard_datamapper_with_repository_spec.rb +0 -254
  385. data/spec/moneta/standard_daybreak_spec.rb +0 -250
  386. data/spec/moneta/standard_daybreak_with_expires_spec.rb +0 -252
  387. data/spec/moneta/standard_dbm_spec.rb +0 -250
  388. data/spec/moneta/standard_dbm_with_expires_spec.rb +0 -252
  389. data/spec/moneta/standard_file_spec.rb +0 -253
  390. data/spec/moneta/standard_file_with_expires_spec.rb +0 -255
  391. data/spec/moneta/standard_fog_spec.rb +0 -256
  392. data/spec/moneta/standard_fog_with_expires_spec.rb +0 -258
  393. data/spec/moneta/standard_gdbm_spec.rb +0 -250
  394. data/spec/moneta/standard_gdbm_with_expires_spec.rb +0 -252
  395. data/spec/moneta/standard_hashfile_spec.rb +0 -253
  396. data/spec/moneta/standard_hashfile_with_expires_spec.rb +0 -255
  397. data/spec/moneta/standard_hbase_spec.rb +0 -252
  398. data/spec/moneta/standard_hbase_with_expires_spec.rb +0 -255
  399. data/spec/moneta/standard_kyotocabinet_spec.rb +0 -250
  400. data/spec/moneta/standard_kyotocabinet_with_expires_spec.rb +0 -252
  401. data/spec/moneta/standard_leveldb_spec.rb +0 -250
  402. data/spec/moneta/standard_leveldb_with_expires_spec.rb +0 -252
  403. data/spec/moneta/standard_lmdb_spec.rb +0 -251
  404. data/spec/moneta/standard_lmdb_with_expires_spec.rb +0 -253
  405. data/spec/moneta/standard_localmemcache_spec.rb +0 -251
  406. data/spec/moneta/standard_localmemcache_with_expires_spec.rb +0 -252
  407. data/spec/moneta/standard_lruhash_spec.rb +0 -187
  408. data/spec/moneta/standard_lruhash_with_expires_spec.rb +0 -189
  409. data/spec/moneta/standard_memcached_dalli_spec.rb +0 -255
  410. data/spec/moneta/standard_memcached_native_spec.rb +0 -255
  411. data/spec/moneta/standard_memcached_spec.rb +0 -255
  412. data/spec/moneta/standard_memory_spec.rb +0 -187
  413. data/spec/moneta/standard_memory_with_compress_spec.rb +0 -187
  414. data/spec/moneta/standard_memory_with_expires_spec.rb +0 -189
  415. data/spec/moneta/standard_memory_with_json_key_serializer_spec.rb +0 -86
  416. data/spec/moneta/standard_memory_with_json_serializer_spec.rb +0 -49
  417. data/spec/moneta/standard_memory_with_json_value_serializer_spec.rb +0 -90
  418. data/spec/moneta/standard_memory_with_prefix_spec.rb +0 -187
  419. data/spec/moneta/standard_memory_with_snappy_compress_spec.rb +0 -187
  420. data/spec/moneta/standard_mongo_moped_spec.rb +0 -255
  421. data/spec/moneta/standard_mongo_official_spec.rb +0 -255
  422. data/spec/moneta/standard_mongo_spec.rb +0 -255
  423. data/spec/moneta/standard_null_spec.rb +0 -120
  424. data/spec/moneta/standard_pstore_spec.rb +0 -253
  425. data/spec/moneta/standard_pstore_with_expires_spec.rb +0 -255
  426. data/spec/moneta/standard_redis_spec.rb +0 -255
  427. data/spec/moneta/standard_restclient_spec.rb +0 -252
  428. data/spec/moneta/standard_riak_spec.rb +0 -255
  429. data/spec/moneta/standard_riak_with_expires_spec.rb +0 -256
  430. data/spec/moneta/standard_sdbm_spec.rb +0 -249
  431. data/spec/moneta/standard_sdbm_with_expires_spec.rb +0 -251
  432. data/spec/moneta/standard_sequel_spec.rb +0 -253
  433. data/spec/moneta/standard_sequel_with_expires_spec.rb +0 -255
  434. data/spec/moneta/standard_sqlite_spec.rb +0 -251
  435. data/spec/moneta/standard_sqlite_with_expires_spec.rb +0 -253
  436. data/spec/moneta/standard_tdb_spec.rb +0 -250
  437. data/spec/moneta/standard_tdb_with_expires_spec.rb +0 -252
  438. data/spec/moneta/standard_tokyocabinet_spec.rb +0 -250
  439. data/spec/moneta/standard_tokyocabinet_with_expires_spec.rb +0 -252
  440. data/spec/moneta/standard_tokyotyrant_spec.rb +0 -253
  441. data/spec/moneta/standard_tokyotyrant_with_expires_spec.rb +0 -255
  442. data/spec/moneta/standard_yaml_spec.rb +0 -250
  443. data/spec/moneta/standard_yaml_with_expires_spec.rb +0 -252
  444. data/spec/moneta/transformer_bencode_spec.rb +0 -55
  445. data/spec/moneta/transformer_bert_spec.rb +0 -55
  446. data/spec/moneta/transformer_bson_spec.rb +0 -60
  447. data/spec/moneta/transformer_bzip2_spec.rb +0 -55
  448. data/spec/moneta/transformer_json_spec.rb +0 -55
  449. data/spec/moneta/transformer_key_inspect_spec.rb +0 -91
  450. data/spec/moneta/transformer_key_marshal_spec.rb +0 -191
  451. data/spec/moneta/transformer_key_to_s_spec.rb +0 -91
  452. data/spec/moneta/transformer_key_yaml_spec.rb +0 -191
  453. data/spec/moneta/transformer_lz4_spec.rb +0 -55
  454. data/spec/moneta/transformer_lzma_spec.rb +0 -55
  455. data/spec/moneta/transformer_lzo_spec.rb +0 -55
  456. data/spec/moneta/transformer_marshal_base64_spec.rb +0 -194
  457. data/spec/moneta/transformer_marshal_city128_spec.rb +0 -194
  458. data/spec/moneta/transformer_marshal_city32_spec.rb +0 -194
  459. data/spec/moneta/transformer_marshal_city64_spec.rb +0 -194
  460. data/spec/moneta/transformer_marshal_escape_spec.rb +0 -194
  461. data/spec/moneta/transformer_marshal_hex_spec.rb +0 -194
  462. data/spec/moneta/transformer_marshal_hmac_spec.rb +0 -194
  463. data/spec/moneta/transformer_marshal_md5_spec.rb +0 -194
  464. data/spec/moneta/transformer_marshal_md5_spread_spec.rb +0 -194
  465. data/spec/moneta/transformer_marshal_prefix_spec.rb +0 -194
  466. data/spec/moneta/transformer_marshal_qp_spec.rb +0 -194
  467. data/spec/moneta/transformer_marshal_rmd160_spec.rb +0 -194
  468. data/spec/moneta/transformer_marshal_sha1_spec.rb +0 -194
  469. data/spec/moneta/transformer_marshal_sha256_spec.rb +0 -194
  470. data/spec/moneta/transformer_marshal_sha384_spec.rb +0 -194
  471. data/spec/moneta/transformer_marshal_sha512_spec.rb +0 -194
  472. data/spec/moneta/transformer_marshal_spec.rb +0 -191
  473. data/spec/moneta/transformer_marshal_truncate_spec.rb +0 -194
  474. data/spec/moneta/transformer_marshal_uuencode_spec.rb +0 -194
  475. data/spec/moneta/transformer_msgpack_spec.rb +0 -55
  476. data/spec/moneta/transformer_ox_spec.rb +0 -191
  477. data/spec/moneta/transformer_php_spec.rb +0 -55
  478. data/spec/moneta/transformer_quicklz_spec.rb +0 -55
  479. data/spec/moneta/transformer_snappy_spec.rb +0 -55
  480. data/spec/moneta/transformer_tnet_spec.rb +0 -55
  481. data/spec/moneta/transformer_value_marshal_spec.rb +0 -191
  482. data/spec/moneta/transformer_value_yaml_spec.rb +0 -191
  483. data/spec/moneta/transformer_yaml_spec.rb +0 -191
  484. data/spec/moneta/transformer_zlib_spec.rb +0 -55
  485. data/spec/moneta/weak_create_spec.rb +0 -41
  486. data/spec/moneta/weak_increment_spec.rb +0 -41
  487. data/spec/monetaspecs.rb +0 -51267
  488. data/spec/quality_spec.rb +0 -51
@@ -1,191 +0,0 @@
1
- # coding: binary
2
- # Generated by generate-specs
3
- require 'helper'
4
-
5
- describe_moneta "proxy_expires_memory" do
6
- def features
7
- [:create, :expires, :increment]
8
- end
9
-
10
- def new_store
11
- Moneta.build do
12
- use :Proxy
13
- use :Expires
14
- use :Proxy
15
- adapter :Memory
16
- end
17
- end
18
-
19
- def load_value(value)
20
- Marshal.load(value)
21
- end
22
-
23
- include_context 'setup_store'
24
- it_should_behave_like 'create'
25
- it_should_behave_like 'create_expires'
26
- it_should_behave_like 'expires'
27
- it_should_behave_like 'features'
28
- it_should_behave_like 'increment'
29
- it_should_behave_like 'not_persist'
30
- it_should_behave_like 'null_objectkey_objectvalue'
31
- it_should_behave_like 'null_objectkey_stringvalue'
32
- it_should_behave_like 'null_objectkey_binaryvalue'
33
- it_should_behave_like 'null_objectkey_hashvalue'
34
- it_should_behave_like 'null_objectkey_booleanvalue'
35
- it_should_behave_like 'null_objectkey_nilvalue'
36
- it_should_behave_like 'null_objectkey_integervalue'
37
- it_should_behave_like 'null_objectkey_numbervalue'
38
- it_should_behave_like 'null_stringkey_objectvalue'
39
- it_should_behave_like 'null_stringkey_stringvalue'
40
- it_should_behave_like 'null_stringkey_binaryvalue'
41
- it_should_behave_like 'null_stringkey_hashvalue'
42
- it_should_behave_like 'null_stringkey_booleanvalue'
43
- it_should_behave_like 'null_stringkey_nilvalue'
44
- it_should_behave_like 'null_stringkey_integervalue'
45
- it_should_behave_like 'null_stringkey_numbervalue'
46
- it_should_behave_like 'null_binarykey_objectvalue'
47
- it_should_behave_like 'null_binarykey_stringvalue'
48
- it_should_behave_like 'null_binarykey_binaryvalue'
49
- it_should_behave_like 'null_binarykey_hashvalue'
50
- it_should_behave_like 'null_binarykey_booleanvalue'
51
- it_should_behave_like 'null_binarykey_nilvalue'
52
- it_should_behave_like 'null_binarykey_integervalue'
53
- it_should_behave_like 'null_binarykey_numbervalue'
54
- it_should_behave_like 'null_hashkey_objectvalue'
55
- it_should_behave_like 'null_hashkey_stringvalue'
56
- it_should_behave_like 'null_hashkey_binaryvalue'
57
- it_should_behave_like 'null_hashkey_hashvalue'
58
- it_should_behave_like 'null_hashkey_booleanvalue'
59
- it_should_behave_like 'null_hashkey_nilvalue'
60
- it_should_behave_like 'null_hashkey_integervalue'
61
- it_should_behave_like 'null_hashkey_numbervalue'
62
- it_should_behave_like 'null_booleankey_objectvalue'
63
- it_should_behave_like 'null_booleankey_stringvalue'
64
- it_should_behave_like 'null_booleankey_binaryvalue'
65
- it_should_behave_like 'null_booleankey_hashvalue'
66
- it_should_behave_like 'null_booleankey_booleanvalue'
67
- it_should_behave_like 'null_booleankey_nilvalue'
68
- it_should_behave_like 'null_booleankey_integervalue'
69
- it_should_behave_like 'null_booleankey_numbervalue'
70
- it_should_behave_like 'null_nilkey_objectvalue'
71
- it_should_behave_like 'null_nilkey_stringvalue'
72
- it_should_behave_like 'null_nilkey_binaryvalue'
73
- it_should_behave_like 'null_nilkey_hashvalue'
74
- it_should_behave_like 'null_nilkey_booleanvalue'
75
- it_should_behave_like 'null_nilkey_nilvalue'
76
- it_should_behave_like 'null_nilkey_integervalue'
77
- it_should_behave_like 'null_nilkey_numbervalue'
78
- it_should_behave_like 'null_integerkey_objectvalue'
79
- it_should_behave_like 'null_integerkey_stringvalue'
80
- it_should_behave_like 'null_integerkey_binaryvalue'
81
- it_should_behave_like 'null_integerkey_hashvalue'
82
- it_should_behave_like 'null_integerkey_booleanvalue'
83
- it_should_behave_like 'null_integerkey_nilvalue'
84
- it_should_behave_like 'null_integerkey_integervalue'
85
- it_should_behave_like 'null_integerkey_numbervalue'
86
- it_should_behave_like 'null_numberkey_objectvalue'
87
- it_should_behave_like 'null_numberkey_stringvalue'
88
- it_should_behave_like 'null_numberkey_binaryvalue'
89
- it_should_behave_like 'null_numberkey_hashvalue'
90
- it_should_behave_like 'null_numberkey_booleanvalue'
91
- it_should_behave_like 'null_numberkey_nilvalue'
92
- it_should_behave_like 'null_numberkey_integervalue'
93
- it_should_behave_like 'null_numberkey_numbervalue'
94
- it_should_behave_like 'returnsame_objectkey_objectvalue'
95
- it_should_behave_like 'returnsame_objectkey_stringvalue'
96
- it_should_behave_like 'returnsame_objectkey_binaryvalue'
97
- it_should_behave_like 'returnsame_objectkey_hashvalue'
98
- it_should_behave_like 'returnsame_stringkey_objectvalue'
99
- it_should_behave_like 'returnsame_stringkey_stringvalue'
100
- it_should_behave_like 'returnsame_stringkey_binaryvalue'
101
- it_should_behave_like 'returnsame_stringkey_hashvalue'
102
- it_should_behave_like 'returnsame_binarykey_objectvalue'
103
- it_should_behave_like 'returnsame_binarykey_stringvalue'
104
- it_should_behave_like 'returnsame_binarykey_binaryvalue'
105
- it_should_behave_like 'returnsame_binarykey_hashvalue'
106
- it_should_behave_like 'returnsame_hashkey_objectvalue'
107
- it_should_behave_like 'returnsame_hashkey_stringvalue'
108
- it_should_behave_like 'returnsame_hashkey_binaryvalue'
109
- it_should_behave_like 'returnsame_hashkey_hashvalue'
110
- it_should_behave_like 'returnsame_booleankey_objectvalue'
111
- it_should_behave_like 'returnsame_booleankey_stringvalue'
112
- it_should_behave_like 'returnsame_booleankey_binaryvalue'
113
- it_should_behave_like 'returnsame_booleankey_hashvalue'
114
- it_should_behave_like 'returnsame_nilkey_objectvalue'
115
- it_should_behave_like 'returnsame_nilkey_stringvalue'
116
- it_should_behave_like 'returnsame_nilkey_binaryvalue'
117
- it_should_behave_like 'returnsame_nilkey_hashvalue'
118
- it_should_behave_like 'returnsame_integerkey_objectvalue'
119
- it_should_behave_like 'returnsame_integerkey_stringvalue'
120
- it_should_behave_like 'returnsame_integerkey_binaryvalue'
121
- it_should_behave_like 'returnsame_integerkey_hashvalue'
122
- it_should_behave_like 'returnsame_numberkey_objectvalue'
123
- it_should_behave_like 'returnsame_numberkey_stringvalue'
124
- it_should_behave_like 'returnsame_numberkey_binaryvalue'
125
- it_should_behave_like 'returnsame_numberkey_hashvalue'
126
- it_should_behave_like 'store_objectkey_objectvalue'
127
- it_should_behave_like 'store_objectkey_stringvalue'
128
- it_should_behave_like 'store_objectkey_binaryvalue'
129
- it_should_behave_like 'store_objectkey_hashvalue'
130
- it_should_behave_like 'store_objectkey_booleanvalue'
131
- it_should_behave_like 'store_objectkey_nilvalue'
132
- it_should_behave_like 'store_objectkey_integervalue'
133
- it_should_behave_like 'store_objectkey_numbervalue'
134
- it_should_behave_like 'store_stringkey_objectvalue'
135
- it_should_behave_like 'store_stringkey_stringvalue'
136
- it_should_behave_like 'store_stringkey_binaryvalue'
137
- it_should_behave_like 'store_stringkey_hashvalue'
138
- it_should_behave_like 'store_stringkey_booleanvalue'
139
- it_should_behave_like 'store_stringkey_nilvalue'
140
- it_should_behave_like 'store_stringkey_integervalue'
141
- it_should_behave_like 'store_stringkey_numbervalue'
142
- it_should_behave_like 'store_binarykey_objectvalue'
143
- it_should_behave_like 'store_binarykey_stringvalue'
144
- it_should_behave_like 'store_binarykey_binaryvalue'
145
- it_should_behave_like 'store_binarykey_hashvalue'
146
- it_should_behave_like 'store_binarykey_booleanvalue'
147
- it_should_behave_like 'store_binarykey_nilvalue'
148
- it_should_behave_like 'store_binarykey_integervalue'
149
- it_should_behave_like 'store_binarykey_numbervalue'
150
- it_should_behave_like 'store_hashkey_objectvalue'
151
- it_should_behave_like 'store_hashkey_stringvalue'
152
- it_should_behave_like 'store_hashkey_binaryvalue'
153
- it_should_behave_like 'store_hashkey_hashvalue'
154
- it_should_behave_like 'store_hashkey_booleanvalue'
155
- it_should_behave_like 'store_hashkey_nilvalue'
156
- it_should_behave_like 'store_hashkey_integervalue'
157
- it_should_behave_like 'store_hashkey_numbervalue'
158
- it_should_behave_like 'store_booleankey_objectvalue'
159
- it_should_behave_like 'store_booleankey_stringvalue'
160
- it_should_behave_like 'store_booleankey_binaryvalue'
161
- it_should_behave_like 'store_booleankey_hashvalue'
162
- it_should_behave_like 'store_booleankey_booleanvalue'
163
- it_should_behave_like 'store_booleankey_nilvalue'
164
- it_should_behave_like 'store_booleankey_integervalue'
165
- it_should_behave_like 'store_booleankey_numbervalue'
166
- it_should_behave_like 'store_nilkey_objectvalue'
167
- it_should_behave_like 'store_nilkey_stringvalue'
168
- it_should_behave_like 'store_nilkey_binaryvalue'
169
- it_should_behave_like 'store_nilkey_hashvalue'
170
- it_should_behave_like 'store_nilkey_booleanvalue'
171
- it_should_behave_like 'store_nilkey_nilvalue'
172
- it_should_behave_like 'store_nilkey_integervalue'
173
- it_should_behave_like 'store_nilkey_numbervalue'
174
- it_should_behave_like 'store_integerkey_objectvalue'
175
- it_should_behave_like 'store_integerkey_stringvalue'
176
- it_should_behave_like 'store_integerkey_binaryvalue'
177
- it_should_behave_like 'store_integerkey_hashvalue'
178
- it_should_behave_like 'store_integerkey_booleanvalue'
179
- it_should_behave_like 'store_integerkey_nilvalue'
180
- it_should_behave_like 'store_integerkey_integervalue'
181
- it_should_behave_like 'store_integerkey_numbervalue'
182
- it_should_behave_like 'store_numberkey_objectvalue'
183
- it_should_behave_like 'store_numberkey_stringvalue'
184
- it_should_behave_like 'store_numberkey_binaryvalue'
185
- it_should_behave_like 'store_numberkey_hashvalue'
186
- it_should_behave_like 'store_numberkey_booleanvalue'
187
- it_should_behave_like 'store_numberkey_nilvalue'
188
- it_should_behave_like 'store_numberkey_integervalue'
189
- it_should_behave_like 'store_numberkey_numbervalue'
190
- it_should_behave_like 'store_large'
191
- end
@@ -1,40 +0,0 @@
1
- # coding: binary
2
- # Generated by generate-specs
3
- require 'helper'
4
-
5
- describe_moneta "proxy_redis" do
6
- def features
7
- [:create, :expires, :increment]
8
- end
9
-
10
- def new_store
11
- Moneta.build do
12
- use :Proxy
13
- use :Proxy
14
- adapter :Redis
15
- end
16
- end
17
-
18
- def load_value(value)
19
- Marshal.load(value)
20
- end
21
-
22
- include_context 'setup_store'
23
- it_should_behave_like 'concurrent_create'
24
- it_should_behave_like 'concurrent_increment'
25
- it_should_behave_like 'create'
26
- it_should_behave_like 'create_expires'
27
- it_should_behave_like 'expires'
28
- it_should_behave_like 'features'
29
- it_should_behave_like 'increment'
30
- it_should_behave_like 'multiprocess'
31
- it_should_behave_like 'null_stringkey_stringvalue'
32
- it_should_behave_like 'null_pathkey_stringvalue'
33
- it_should_behave_like 'persist_stringkey_stringvalue'
34
- it_should_behave_like 'persist_pathkey_stringvalue'
35
- it_should_behave_like 'returndifferent_stringkey_stringvalue'
36
- it_should_behave_like 'returndifferent_pathkey_stringvalue'
37
- it_should_behave_like 'store_stringkey_stringvalue'
38
- it_should_behave_like 'store_pathkey_stringvalue'
39
- it_should_behave_like 'store_large'
40
- end
@@ -1,46 +0,0 @@
1
- # coding: binary
2
- # Generated by generate-specs
3
- require 'helper'
4
-
5
- describe_moneta "shared_tcp" do
6
- def features
7
- [:create, :increment]
8
- end
9
-
10
- def new_store
11
- Moneta.build do
12
- use(:Shared, port: 9001) do
13
- adapter :PStore, file: File.join(make_tempdir, 'shared_tcp')
14
- end
15
- end
16
- end
17
-
18
- def load_value(value)
19
- Marshal.load(value)
20
- end
21
-
22
- include_context 'setup_store'
23
- it_should_behave_like 'concurrent_create'
24
- it_should_behave_like 'concurrent_increment'
25
- it_should_behave_like 'create'
26
- it_should_behave_like 'features'
27
- it_should_behave_like 'increment'
28
- it_should_behave_like 'multiprocess'
29
- it_should_behave_like 'null_stringkey_stringvalue'
30
- it_should_behave_like 'null_pathkey_stringvalue'
31
- it_should_behave_like 'persist_stringkey_stringvalue'
32
- it_should_behave_like 'persist_pathkey_stringvalue'
33
- it_should_behave_like 'returndifferent_stringkey_stringvalue'
34
- it_should_behave_like 'returndifferent_pathkey_stringvalue'
35
- it_should_behave_like 'store_stringkey_stringvalue'
36
- it_should_behave_like 'store_pathkey_stringvalue'
37
- it_should_behave_like 'store_large'
38
- it 'shares values' do
39
- store['shared_key'] = 'shared_value'
40
- second = new_store
41
- second.key?('shared_key').should be true
42
- second['shared_key'].should == 'shared_value'
43
- second.close
44
- end
45
-
46
- end
@@ -1,46 +0,0 @@
1
- # coding: binary
2
- # Generated by generate-specs
3
- require 'helper'
4
-
5
- describe_moneta "shared_unix" do
6
- def features
7
- [:create, :increment]
8
- end
9
-
10
- def new_store
11
- Moneta.build do
12
- use(:Shared, socket: File.join(make_tempdir, 'shared_unix.socket')) do
13
- adapter :PStore, file: File.join(make_tempdir, 'shared_unix')
14
- end
15
- end
16
- end
17
-
18
- def load_value(value)
19
- Marshal.load(value)
20
- end
21
-
22
- include_context 'setup_store'
23
- it_should_behave_like 'concurrent_create'
24
- it_should_behave_like 'concurrent_increment'
25
- it_should_behave_like 'create'
26
- it_should_behave_like 'features'
27
- it_should_behave_like 'increment'
28
- it_should_behave_like 'multiprocess'
29
- it_should_behave_like 'null_stringkey_stringvalue'
30
- it_should_behave_like 'null_pathkey_stringvalue'
31
- it_should_behave_like 'persist_stringkey_stringvalue'
32
- it_should_behave_like 'persist_pathkey_stringvalue'
33
- it_should_behave_like 'returndifferent_stringkey_stringvalue'
34
- it_should_behave_like 'returndifferent_pathkey_stringvalue'
35
- it_should_behave_like 'store_stringkey_stringvalue'
36
- it_should_behave_like 'store_pathkey_stringvalue'
37
- it_should_behave_like 'store_large'
38
- it 'shares values' do
39
- store['shared_key'] = 'shared_value'
40
- second = new_store
41
- second.key?('shared_key').should be true
42
- second['shared_key'].should == 'shared_value'
43
- second.close
44
- end
45
-
46
- end
@@ -1,253 +0,0 @@
1
- # coding: binary
2
- # Generated by generate-specs
3
- require 'helper'
4
-
5
- describe_moneta "standard_activerecord" do
6
- def features
7
- [:create, :increment]
8
- end
9
-
10
- def new_store
11
- Moneta.new(:ActiveRecord, table: 'standard_activerecord', connection: { adapter: (defined?(JRUBY_VERSION) ? 'jdbcmysql' : 'mysql2'), database: 'moneta', username: 'root' }, logger: {file: File.join(make_tempdir, 'standard_activerecord.log')})
12
- end
13
-
14
- def load_value(value)
15
- ::Marshal.load(value.unpack('m').first)
16
- end
17
-
18
- include_context 'setup_store'
19
- it_should_behave_like 'concurrent_create'
20
- it_should_behave_like 'concurrent_increment'
21
- it_should_behave_like 'create'
22
- it_should_behave_like 'features'
23
- it_should_behave_like 'increment'
24
- it_should_behave_like 'marshallable_key'
25
- it_should_behave_like 'marshallable_value'
26
- it_should_behave_like 'multiprocess'
27
- it_should_behave_like 'null_objectkey_objectvalue'
28
- it_should_behave_like 'null_objectkey_stringvalue'
29
- it_should_behave_like 'null_objectkey_binaryvalue'
30
- it_should_behave_like 'null_objectkey_hashvalue'
31
- it_should_behave_like 'null_objectkey_booleanvalue'
32
- it_should_behave_like 'null_objectkey_nilvalue'
33
- it_should_behave_like 'null_objectkey_integervalue'
34
- it_should_behave_like 'null_objectkey_numbervalue'
35
- it_should_behave_like 'null_stringkey_objectvalue'
36
- it_should_behave_like 'null_stringkey_stringvalue'
37
- it_should_behave_like 'null_stringkey_binaryvalue'
38
- it_should_behave_like 'null_stringkey_hashvalue'
39
- it_should_behave_like 'null_stringkey_booleanvalue'
40
- it_should_behave_like 'null_stringkey_nilvalue'
41
- it_should_behave_like 'null_stringkey_integervalue'
42
- it_should_behave_like 'null_stringkey_numbervalue'
43
- it_should_behave_like 'null_binarykey_objectvalue'
44
- it_should_behave_like 'null_binarykey_stringvalue'
45
- it_should_behave_like 'null_binarykey_binaryvalue'
46
- it_should_behave_like 'null_binarykey_hashvalue'
47
- it_should_behave_like 'null_binarykey_booleanvalue'
48
- it_should_behave_like 'null_binarykey_nilvalue'
49
- it_should_behave_like 'null_binarykey_integervalue'
50
- it_should_behave_like 'null_binarykey_numbervalue'
51
- it_should_behave_like 'null_hashkey_objectvalue'
52
- it_should_behave_like 'null_hashkey_stringvalue'
53
- it_should_behave_like 'null_hashkey_binaryvalue'
54
- it_should_behave_like 'null_hashkey_hashvalue'
55
- it_should_behave_like 'null_hashkey_booleanvalue'
56
- it_should_behave_like 'null_hashkey_nilvalue'
57
- it_should_behave_like 'null_hashkey_integervalue'
58
- it_should_behave_like 'null_hashkey_numbervalue'
59
- it_should_behave_like 'null_booleankey_objectvalue'
60
- it_should_behave_like 'null_booleankey_stringvalue'
61
- it_should_behave_like 'null_booleankey_binaryvalue'
62
- it_should_behave_like 'null_booleankey_hashvalue'
63
- it_should_behave_like 'null_booleankey_booleanvalue'
64
- it_should_behave_like 'null_booleankey_nilvalue'
65
- it_should_behave_like 'null_booleankey_integervalue'
66
- it_should_behave_like 'null_booleankey_numbervalue'
67
- it_should_behave_like 'null_nilkey_objectvalue'
68
- it_should_behave_like 'null_nilkey_stringvalue'
69
- it_should_behave_like 'null_nilkey_binaryvalue'
70
- it_should_behave_like 'null_nilkey_hashvalue'
71
- it_should_behave_like 'null_nilkey_booleanvalue'
72
- it_should_behave_like 'null_nilkey_nilvalue'
73
- it_should_behave_like 'null_nilkey_integervalue'
74
- it_should_behave_like 'null_nilkey_numbervalue'
75
- it_should_behave_like 'null_integerkey_objectvalue'
76
- it_should_behave_like 'null_integerkey_stringvalue'
77
- it_should_behave_like 'null_integerkey_binaryvalue'
78
- it_should_behave_like 'null_integerkey_hashvalue'
79
- it_should_behave_like 'null_integerkey_booleanvalue'
80
- it_should_behave_like 'null_integerkey_nilvalue'
81
- it_should_behave_like 'null_integerkey_integervalue'
82
- it_should_behave_like 'null_integerkey_numbervalue'
83
- it_should_behave_like 'null_numberkey_objectvalue'
84
- it_should_behave_like 'null_numberkey_stringvalue'
85
- it_should_behave_like 'null_numberkey_binaryvalue'
86
- it_should_behave_like 'null_numberkey_hashvalue'
87
- it_should_behave_like 'null_numberkey_booleanvalue'
88
- it_should_behave_like 'null_numberkey_nilvalue'
89
- it_should_behave_like 'null_numberkey_integervalue'
90
- it_should_behave_like 'null_numberkey_numbervalue'
91
- it_should_behave_like 'persist_objectkey_objectvalue'
92
- it_should_behave_like 'persist_objectkey_stringvalue'
93
- it_should_behave_like 'persist_objectkey_binaryvalue'
94
- it_should_behave_like 'persist_objectkey_hashvalue'
95
- it_should_behave_like 'persist_objectkey_booleanvalue'
96
- it_should_behave_like 'persist_objectkey_nilvalue'
97
- it_should_behave_like 'persist_objectkey_integervalue'
98
- it_should_behave_like 'persist_objectkey_numbervalue'
99
- it_should_behave_like 'persist_stringkey_objectvalue'
100
- it_should_behave_like 'persist_stringkey_stringvalue'
101
- it_should_behave_like 'persist_stringkey_binaryvalue'
102
- it_should_behave_like 'persist_stringkey_hashvalue'
103
- it_should_behave_like 'persist_stringkey_booleanvalue'
104
- it_should_behave_like 'persist_stringkey_nilvalue'
105
- it_should_behave_like 'persist_stringkey_integervalue'
106
- it_should_behave_like 'persist_stringkey_numbervalue'
107
- it_should_behave_like 'persist_binarykey_objectvalue'
108
- it_should_behave_like 'persist_binarykey_stringvalue'
109
- it_should_behave_like 'persist_binarykey_binaryvalue'
110
- it_should_behave_like 'persist_binarykey_hashvalue'
111
- it_should_behave_like 'persist_binarykey_booleanvalue'
112
- it_should_behave_like 'persist_binarykey_nilvalue'
113
- it_should_behave_like 'persist_binarykey_integervalue'
114
- it_should_behave_like 'persist_binarykey_numbervalue'
115
- it_should_behave_like 'persist_hashkey_objectvalue'
116
- it_should_behave_like 'persist_hashkey_stringvalue'
117
- it_should_behave_like 'persist_hashkey_binaryvalue'
118
- it_should_behave_like 'persist_hashkey_hashvalue'
119
- it_should_behave_like 'persist_hashkey_booleanvalue'
120
- it_should_behave_like 'persist_hashkey_nilvalue'
121
- it_should_behave_like 'persist_hashkey_integervalue'
122
- it_should_behave_like 'persist_hashkey_numbervalue'
123
- it_should_behave_like 'persist_booleankey_objectvalue'
124
- it_should_behave_like 'persist_booleankey_stringvalue'
125
- it_should_behave_like 'persist_booleankey_binaryvalue'
126
- it_should_behave_like 'persist_booleankey_hashvalue'
127
- it_should_behave_like 'persist_booleankey_booleanvalue'
128
- it_should_behave_like 'persist_booleankey_nilvalue'
129
- it_should_behave_like 'persist_booleankey_integervalue'
130
- it_should_behave_like 'persist_booleankey_numbervalue'
131
- it_should_behave_like 'persist_nilkey_objectvalue'
132
- it_should_behave_like 'persist_nilkey_stringvalue'
133
- it_should_behave_like 'persist_nilkey_binaryvalue'
134
- it_should_behave_like 'persist_nilkey_hashvalue'
135
- it_should_behave_like 'persist_nilkey_booleanvalue'
136
- it_should_behave_like 'persist_nilkey_nilvalue'
137
- it_should_behave_like 'persist_nilkey_integervalue'
138
- it_should_behave_like 'persist_nilkey_numbervalue'
139
- it_should_behave_like 'persist_integerkey_objectvalue'
140
- it_should_behave_like 'persist_integerkey_stringvalue'
141
- it_should_behave_like 'persist_integerkey_binaryvalue'
142
- it_should_behave_like 'persist_integerkey_hashvalue'
143
- it_should_behave_like 'persist_integerkey_booleanvalue'
144
- it_should_behave_like 'persist_integerkey_nilvalue'
145
- it_should_behave_like 'persist_integerkey_integervalue'
146
- it_should_behave_like 'persist_integerkey_numbervalue'
147
- it_should_behave_like 'persist_numberkey_objectvalue'
148
- it_should_behave_like 'persist_numberkey_stringvalue'
149
- it_should_behave_like 'persist_numberkey_binaryvalue'
150
- it_should_behave_like 'persist_numberkey_hashvalue'
151
- it_should_behave_like 'persist_numberkey_booleanvalue'
152
- it_should_behave_like 'persist_numberkey_nilvalue'
153
- it_should_behave_like 'persist_numberkey_integervalue'
154
- it_should_behave_like 'persist_numberkey_numbervalue'
155
- it_should_behave_like 'returndifferent_objectkey_objectvalue'
156
- it_should_behave_like 'returndifferent_objectkey_stringvalue'
157
- it_should_behave_like 'returndifferent_objectkey_binaryvalue'
158
- it_should_behave_like 'returndifferent_objectkey_hashvalue'
159
- it_should_behave_like 'returndifferent_stringkey_objectvalue'
160
- it_should_behave_like 'returndifferent_stringkey_stringvalue'
161
- it_should_behave_like 'returndifferent_stringkey_binaryvalue'
162
- it_should_behave_like 'returndifferent_stringkey_hashvalue'
163
- it_should_behave_like 'returndifferent_binarykey_objectvalue'
164
- it_should_behave_like 'returndifferent_binarykey_stringvalue'
165
- it_should_behave_like 'returndifferent_binarykey_binaryvalue'
166
- it_should_behave_like 'returndifferent_binarykey_hashvalue'
167
- it_should_behave_like 'returndifferent_hashkey_objectvalue'
168
- it_should_behave_like 'returndifferent_hashkey_stringvalue'
169
- it_should_behave_like 'returndifferent_hashkey_binaryvalue'
170
- it_should_behave_like 'returndifferent_hashkey_hashvalue'
171
- it_should_behave_like 'returndifferent_booleankey_objectvalue'
172
- it_should_behave_like 'returndifferent_booleankey_stringvalue'
173
- it_should_behave_like 'returndifferent_booleankey_binaryvalue'
174
- it_should_behave_like 'returndifferent_booleankey_hashvalue'
175
- it_should_behave_like 'returndifferent_nilkey_objectvalue'
176
- it_should_behave_like 'returndifferent_nilkey_stringvalue'
177
- it_should_behave_like 'returndifferent_nilkey_binaryvalue'
178
- it_should_behave_like 'returndifferent_nilkey_hashvalue'
179
- it_should_behave_like 'returndifferent_integerkey_objectvalue'
180
- it_should_behave_like 'returndifferent_integerkey_stringvalue'
181
- it_should_behave_like 'returndifferent_integerkey_binaryvalue'
182
- it_should_behave_like 'returndifferent_integerkey_hashvalue'
183
- it_should_behave_like 'returndifferent_numberkey_objectvalue'
184
- it_should_behave_like 'returndifferent_numberkey_stringvalue'
185
- it_should_behave_like 'returndifferent_numberkey_binaryvalue'
186
- it_should_behave_like 'returndifferent_numberkey_hashvalue'
187
- it_should_behave_like 'store_objectkey_objectvalue'
188
- it_should_behave_like 'store_objectkey_stringvalue'
189
- it_should_behave_like 'store_objectkey_binaryvalue'
190
- it_should_behave_like 'store_objectkey_hashvalue'
191
- it_should_behave_like 'store_objectkey_booleanvalue'
192
- it_should_behave_like 'store_objectkey_nilvalue'
193
- it_should_behave_like 'store_objectkey_integervalue'
194
- it_should_behave_like 'store_objectkey_numbervalue'
195
- it_should_behave_like 'store_stringkey_objectvalue'
196
- it_should_behave_like 'store_stringkey_stringvalue'
197
- it_should_behave_like 'store_stringkey_binaryvalue'
198
- it_should_behave_like 'store_stringkey_hashvalue'
199
- it_should_behave_like 'store_stringkey_booleanvalue'
200
- it_should_behave_like 'store_stringkey_nilvalue'
201
- it_should_behave_like 'store_stringkey_integervalue'
202
- it_should_behave_like 'store_stringkey_numbervalue'
203
- it_should_behave_like 'store_binarykey_objectvalue'
204
- it_should_behave_like 'store_binarykey_stringvalue'
205
- it_should_behave_like 'store_binarykey_binaryvalue'
206
- it_should_behave_like 'store_binarykey_hashvalue'
207
- it_should_behave_like 'store_binarykey_booleanvalue'
208
- it_should_behave_like 'store_binarykey_nilvalue'
209
- it_should_behave_like 'store_binarykey_integervalue'
210
- it_should_behave_like 'store_binarykey_numbervalue'
211
- it_should_behave_like 'store_hashkey_objectvalue'
212
- it_should_behave_like 'store_hashkey_stringvalue'
213
- it_should_behave_like 'store_hashkey_binaryvalue'
214
- it_should_behave_like 'store_hashkey_hashvalue'
215
- it_should_behave_like 'store_hashkey_booleanvalue'
216
- it_should_behave_like 'store_hashkey_nilvalue'
217
- it_should_behave_like 'store_hashkey_integervalue'
218
- it_should_behave_like 'store_hashkey_numbervalue'
219
- it_should_behave_like 'store_booleankey_objectvalue'
220
- it_should_behave_like 'store_booleankey_stringvalue'
221
- it_should_behave_like 'store_booleankey_binaryvalue'
222
- it_should_behave_like 'store_booleankey_hashvalue'
223
- it_should_behave_like 'store_booleankey_booleanvalue'
224
- it_should_behave_like 'store_booleankey_nilvalue'
225
- it_should_behave_like 'store_booleankey_integervalue'
226
- it_should_behave_like 'store_booleankey_numbervalue'
227
- it_should_behave_like 'store_nilkey_objectvalue'
228
- it_should_behave_like 'store_nilkey_stringvalue'
229
- it_should_behave_like 'store_nilkey_binaryvalue'
230
- it_should_behave_like 'store_nilkey_hashvalue'
231
- it_should_behave_like 'store_nilkey_booleanvalue'
232
- it_should_behave_like 'store_nilkey_nilvalue'
233
- it_should_behave_like 'store_nilkey_integervalue'
234
- it_should_behave_like 'store_nilkey_numbervalue'
235
- it_should_behave_like 'store_integerkey_objectvalue'
236
- it_should_behave_like 'store_integerkey_stringvalue'
237
- it_should_behave_like 'store_integerkey_binaryvalue'
238
- it_should_behave_like 'store_integerkey_hashvalue'
239
- it_should_behave_like 'store_integerkey_booleanvalue'
240
- it_should_behave_like 'store_integerkey_nilvalue'
241
- it_should_behave_like 'store_integerkey_integervalue'
242
- it_should_behave_like 'store_integerkey_numbervalue'
243
- it_should_behave_like 'store_numberkey_objectvalue'
244
- it_should_behave_like 'store_numberkey_stringvalue'
245
- it_should_behave_like 'store_numberkey_binaryvalue'
246
- it_should_behave_like 'store_numberkey_hashvalue'
247
- it_should_behave_like 'store_numberkey_booleanvalue'
248
- it_should_behave_like 'store_numberkey_nilvalue'
249
- it_should_behave_like 'store_numberkey_integervalue'
250
- it_should_behave_like 'store_numberkey_numbervalue'
251
- it_should_behave_like 'store_large'
252
- it_should_behave_like 'transform_value'
253
- end