moneta 0.7.19 → 0.7.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -1
- data/CHANGES +11 -0
- data/Gemfile +9 -0
- data/README.md +15 -2
- data/lib/moneta.rb +8 -9
- data/lib/moneta/adapters/cassandra.rb +11 -11
- data/lib/moneta/adapters/lmdb.rb +93 -0
- data/lib/moneta/adapters/lruhash.rb +16 -10
- data/lib/moneta/adapters/mongo.rb +2 -3
- data/lib/moneta/adapters/sequel.rb +12 -5
- data/lib/moneta/cache.rb +1 -2
- data/lib/moneta/proxy.rb +1 -0
- data/lib/moneta/synchronize.rb +2 -3
- data/lib/moneta/transformer/config.rb +5 -3
- data/lib/moneta/utils.rb +8 -0
- data/lib/moneta/version.rb +1 -1
- data/script/benchmarks +1 -0
- data/script/generate-specs +139 -92
- data/script/travis-logs +2 -1
- data/spec/helper.rb +2 -2
- data/spec/moneta/adapter_activerecord_exisiting_connection_spec.rb +5 -0
- data/spec/moneta/adapter_activerecord_spec.rb +5 -0
- data/spec/moneta/adapter_cassandra_spec.rb +5 -0
- data/spec/moneta/adapter_cassandra_with_default_expires_spec.rb +5 -0
- data/spec/moneta/adapter_client_spec.rb +5 -0
- data/spec/moneta/adapter_cookie_spec.rb +4 -0
- data/spec/moneta/adapter_couch_spec.rb +12 -11
- data/spec/moneta/adapter_datamapper_spec.rb +5 -0
- data/spec/moneta/adapter_daybreak_spec.rb +5 -0
- data/spec/moneta/adapter_dbm_spec.rb +5 -0
- data/spec/moneta/adapter_file_spec.rb +5 -0
- data/spec/moneta/adapter_fog_spec.rb +5 -0
- data/spec/moneta/adapter_gdbm_spec.rb +5 -0
- data/spec/moneta/adapter_hbase_spec.rb +5 -0
- data/spec/moneta/adapter_kyotocabinet_spec.rb +5 -0
- data/spec/moneta/adapter_leveldb_spec.rb +5 -0
- data/spec/moneta/adapter_lmdb_spec.rb +32 -0
- data/spec/moneta/adapter_lmdb_with_db_spec.rb +32 -0
- data/spec/moneta/adapter_localmemcache_spec.rb +5 -0
- data/spec/moneta/adapter_lruhash_spec.rb +4 -0
- data/spec/moneta/adapter_memcached_dalli_spec.rb +5 -0
- data/spec/moneta/adapter_memcached_dalli_with_default_expires_spec.rb +5 -0
- data/spec/moneta/adapter_memcached_native_spec.rb +5 -0
- data/spec/moneta/adapter_memcached_native_with_default_expires_spec.rb +5 -0
- data/spec/moneta/adapter_memcached_spec.rb +5 -0
- data/spec/moneta/adapter_memcached_with_default_expires_spec.rb +5 -0
- data/spec/moneta/adapter_memory_spec.rb +42 -0
- data/spec/moneta/adapter_mongo_spec.rb +12 -0
- data/spec/moneta/adapter_mongo_with_default_expires_spec.rb +12 -0
- data/spec/moneta/adapter_pstore_spec.rb +57 -0
- data/spec/moneta/adapter_redis_spec.rb +5 -0
- data/spec/moneta/adapter_redis_with_default_expires_spec.rb +5 -0
- data/spec/moneta/adapter_restclient_spec.rb +5 -0
- data/spec/moneta/adapter_riak_spec.rb +5 -0
- data/spec/moneta/adapter_sdbm_spec.rb +5 -0
- data/spec/moneta/adapter_sequel_spec.rb +5 -0
- data/spec/moneta/adapter_sqlite_spec.rb +5 -0
- data/spec/moneta/adapter_tdb_spec.rb +5 -0
- data/spec/moneta/adapter_tokyocabinet_bdb_spec.rb +5 -0
- data/spec/moneta/adapter_tokyocabinet_hdb_spec.rb +5 -0
- data/spec/moneta/adapter_tokyotyrant_spec.rb +5 -0
- data/spec/moneta/adapter_yaml_spec.rb +1 -0
- data/spec/moneta/cache_file_memory_spec.rb +5 -0
- data/spec/moneta/cache_memory_null_spec.rb +4 -0
- data/spec/moneta/expires_file_spec.rb +5 -0
- data/spec/moneta/expires_memory_spec.rb +42 -0
- data/spec/moneta/expires_memory_with_default_expires_spec.rb +42 -0
- data/spec/moneta/lock_spec.rb +42 -0
- data/spec/moneta/mutex_spec.rb +1 -0
- data/spec/moneta/null_adapter_spec.rb +16 -0
- data/spec/moneta/optionmerger_spec.rb +1 -0
- data/spec/moneta/pool_spec.rb +5 -0
- data/spec/moneta/proxy_expires_memory_spec.rb +42 -0
- data/spec/moneta/proxy_redis_spec.rb +5 -0
- data/spec/moneta/semaphore_spec.rb +1 -0
- data/spec/moneta/shared_tcp_spec.rb +5 -0
- data/spec/moneta/shared_unix_spec.rb +5 -0
- data/spec/moneta/stack_file_memory_spec.rb +5 -0
- data/spec/moneta/stack_memory_file_spec.rb +5 -0
- data/spec/moneta/{simple_activerecord_spec.rb → standard_activerecord_spec.rb} +59 -2
- data/spec/moneta/{simple_activerecord_with_expires_spec.rb → standard_activerecord_with_expires_spec.rb} +59 -2
- data/spec/moneta/{simple_cassandra_spec.rb → standard_cassandra_spec.rb} +59 -2
- data/spec/moneta/{simple_client_tcp_spec.rb → standard_client_tcp_spec.rb} +59 -2
- data/spec/moneta/standard_client_unix_spec.rb +254 -0
- data/spec/moneta/{simple_couch_spec.rb → standard_couch_spec.rb} +59 -2
- data/spec/moneta/{simple_couch_with_expires_spec.rb → standard_couch_with_expires_spec.rb} +59 -2
- data/spec/moneta/{simple_datamapper_spec.rb → standard_datamapper_spec.rb} +59 -2
- data/spec/moneta/{simple_datamapper_with_expires_spec.rb → standard_datamapper_with_expires_spec.rb} +59 -2
- data/spec/moneta/{simple_datamapper_with_repository_spec.rb → standard_datamapper_with_repository_spec.rb} +59 -2
- data/spec/moneta/{simple_daybreak_spec.rb → standard_daybreak_spec.rb} +59 -2
- data/spec/moneta/{simple_daybreak_with_expires_spec.rb → standard_daybreak_with_expires_spec.rb} +59 -2
- data/spec/moneta/{simple_dbm_spec.rb → standard_dbm_spec.rb} +59 -2
- data/spec/moneta/{simple_dbm_with_expires_spec.rb → standard_dbm_with_expires_spec.rb} +59 -2
- data/spec/moneta/{simple_file_spec.rb → standard_file_spec.rb} +59 -2
- data/spec/moneta/{simple_file_with_expires_spec.rb → standard_file_with_expires_spec.rb} +59 -2
- data/spec/moneta/{simple_fog_spec.rb → standard_fog_spec.rb} +59 -2
- data/spec/moneta/{simple_fog_with_expires_spec.rb → standard_fog_with_expires_spec.rb} +60 -3
- data/spec/moneta/{simple_gdbm_spec.rb → standard_gdbm_spec.rb} +59 -2
- data/spec/moneta/{simple_gdbm_with_expires_spec.rb → standard_gdbm_with_expires_spec.rb} +59 -2
- data/spec/moneta/{simple_hashfile_spec.rb → standard_hashfile_spec.rb} +59 -2
- data/spec/moneta/{simple_hashfile_with_expires_spec.rb → standard_hashfile_with_expires_spec.rb} +59 -2
- data/spec/moneta/{simple_hbase_spec.rb → standard_hbase_spec.rb} +59 -2
- data/spec/moneta/{simple_hbase_with_expires_spec.rb → standard_hbase_with_expires_spec.rb} +59 -2
- data/spec/moneta/{simple_kyotocabinet_spec.rb → standard_kyotocabinet_spec.rb} +59 -2
- data/spec/moneta/{simple_kyotocabinet_with_expires_spec.rb → standard_kyotocabinet_with_expires_spec.rb} +59 -2
- data/spec/moneta/{simple_leveldb_spec.rb → standard_leveldb_spec.rb} +59 -2
- data/spec/moneta/{simple_leveldb_with_expires_spec.rb → standard_leveldb_with_expires_spec.rb} +59 -2
- data/spec/moneta/{simple_client_unix_spec.rb → standard_lmdb_spec.rb} +59 -5
- data/spec/moneta/standard_lmdb_with_expires_spec.rb +253 -0
- data/spec/moneta/{simple_localmemcache_spec.rb → standard_localmemcache_spec.rb} +59 -2
- data/spec/moneta/{simple_localmemcache_with_expires_spec.rb → standard_localmemcache_with_expires_spec.rb} +59 -2
- data/spec/moneta/{simple_lruhash_spec.rb → standard_lruhash_spec.rb} +44 -2
- data/spec/moneta/{simple_lruhash_with_expires_spec.rb → standard_lruhash_with_expires_spec.rb} +44 -2
- data/spec/moneta/{simple_memcached_dalli_spec.rb → standard_memcached_dalli_spec.rb} +59 -2
- data/spec/moneta/{simple_memcached_native_spec.rb → standard_memcached_native_spec.rb} +59 -2
- data/spec/moneta/{simple_memcached_spec.rb → standard_memcached_spec.rb} +59 -2
- data/spec/moneta/{simple_memory_spec.rb → standard_memory_spec.rb} +44 -2
- data/spec/moneta/{simple_memory_with_compress_spec.rb → standard_memory_with_compress_spec.rb} +44 -2
- data/spec/moneta/{simple_memory_with_expires_spec.rb → standard_memory_with_expires_spec.rb} +44 -2
- data/spec/moneta/{simple_memory_with_json_key_serializer_spec.rb → standard_memory_with_json_key_serializer_spec.rb} +12 -2
- data/spec/moneta/{simple_memory_with_json_serializer_spec.rb → standard_memory_with_json_serializer_spec.rb} +4 -3
- data/spec/moneta/{simple_memory_with_json_value_serializer_spec.rb → standard_memory_with_json_value_serializer_spec.rb} +12 -3
- data/spec/moneta/{simple_memory_with_prefix_spec.rb → standard_memory_with_prefix_spec.rb} +44 -2
- data/spec/moneta/{simple_memory_with_snappy_compress_spec.rb → standard_memory_with_snappy_compress_spec.rb} +44 -2
- data/spec/moneta/{simple_mongo_spec.rb → standard_mongo_spec.rb} +59 -2
- data/spec/moneta/{simple_null_spec.rb → standard_null_spec.rb} +29 -2
- data/spec/moneta/{simple_pstore_spec.rb → standard_pstore_spec.rb} +59 -2
- data/spec/moneta/{simple_pstore_with_expires_spec.rb → standard_pstore_with_expires_spec.rb} +59 -2
- data/spec/moneta/{simple_redis_spec.rb → standard_redis_spec.rb} +59 -2
- data/spec/moneta/{simple_restclient_spec.rb → standard_restclient_spec.rb} +59 -2
- data/spec/moneta/{simple_riak_spec.rb → standard_riak_spec.rb} +59 -2
- data/spec/moneta/{simple_riak_with_expires_spec.rb → standard_riak_with_expires_spec.rb} +59 -2
- data/spec/moneta/{simple_sdbm_spec.rb → standard_sdbm_spec.rb} +59 -2
- data/spec/moneta/{simple_sdbm_with_expires_spec.rb → standard_sdbm_with_expires_spec.rb} +59 -2
- data/spec/moneta/{simple_sequel_spec.rb → standard_sequel_spec.rb} +60 -3
- data/spec/moneta/{simple_sequel_with_expires_spec.rb → standard_sequel_with_expires_spec.rb} +60 -3
- data/spec/moneta/{simple_sqlite_spec.rb → standard_sqlite_spec.rb} +59 -2
- data/spec/moneta/{simple_sqlite_with_expires_spec.rb → standard_sqlite_with_expires_spec.rb} +59 -2
- data/spec/moneta/{simple_tdb_spec.rb → standard_tdb_spec.rb} +59 -2
- data/spec/moneta/{simple_tdb_with_expires_spec.rb → standard_tdb_with_expires_spec.rb} +59 -2
- data/spec/moneta/{simple_tokyocabinet_spec.rb → standard_tokyocabinet_spec.rb} +59 -2
- data/spec/moneta/{simple_tokyocabinet_with_expires_spec.rb → standard_tokyocabinet_with_expires_spec.rb} +59 -2
- data/spec/moneta/{simple_tokyotyrant_spec.rb → standard_tokyotyrant_spec.rb} +59 -2
- data/spec/moneta/{simple_tokyotyrant_with_expires_spec.rb → standard_tokyotyrant_with_expires_spec.rb} +59 -2
- data/spec/moneta/{simple_yaml_spec.rb → standard_yaml_spec.rb} +59 -2
- data/spec/moneta/{simple_yaml_with_expires_spec.rb → standard_yaml_with_expires_spec.rb} +59 -2
- data/spec/moneta/transformer_bencode_spec.rb +1 -0
- data/spec/moneta/transformer_bert_spec.rb +1 -0
- data/spec/moneta/transformer_bson_spec.rb +1 -0
- data/spec/moneta/transformer_bzip2_spec.rb +4 -0
- data/spec/moneta/transformer_json_spec.rb +2 -1
- data/spec/moneta/transformer_key_inspect_spec.rb +10 -0
- data/spec/moneta/transformer_key_marshal_spec.rb +42 -0
- data/spec/moneta/transformer_key_to_s_spec.rb +10 -0
- data/spec/moneta/transformer_key_yaml_spec.rb +42 -0
- data/spec/moneta/transformer_lz4_spec.rb +4 -0
- data/spec/moneta/transformer_lzma_spec.rb +4 -0
- data/spec/moneta/transformer_lzo_spec.rb +4 -0
- data/spec/moneta/transformer_marshal_base64_spec.rb +42 -0
- data/spec/moneta/transformer_marshal_city128_spec.rb +42 -0
- data/spec/moneta/transformer_marshal_city32_spec.rb +42 -0
- data/spec/moneta/transformer_marshal_city64_spec.rb +42 -0
- data/spec/moneta/transformer_marshal_escape_spec.rb +42 -0
- data/spec/moneta/transformer_marshal_hex_spec.rb +194 -0
- data/spec/moneta/transformer_marshal_hmac_spec.rb +42 -0
- data/spec/moneta/transformer_marshal_md5_spec.rb +42 -0
- data/spec/moneta/transformer_marshal_md5_spread_spec.rb +42 -0
- data/spec/moneta/transformer_marshal_prefix_spec.rb +42 -0
- data/spec/moneta/transformer_marshal_qp_spec.rb +42 -0
- data/spec/moneta/transformer_marshal_rmd160_spec.rb +42 -0
- data/spec/moneta/transformer_marshal_sha1_spec.rb +42 -0
- data/spec/moneta/transformer_marshal_sha256_spec.rb +42 -0
- data/spec/moneta/transformer_marshal_sha384_spec.rb +42 -0
- data/spec/moneta/transformer_marshal_sha512_spec.rb +42 -0
- data/spec/moneta/transformer_marshal_spec.rb +42 -0
- data/spec/moneta/transformer_marshal_truncate_spec.rb +42 -0
- data/spec/moneta/transformer_marshal_uuencode_spec.rb +42 -0
- data/spec/moneta/transformer_msgpack_spec.rb +1 -0
- data/spec/moneta/transformer_ox_spec.rb +42 -0
- data/spec/moneta/transformer_php_spec.rb +55 -0
- data/spec/moneta/transformer_quicklz_spec.rb +4 -0
- data/spec/moneta/transformer_snappy_spec.rb +4 -0
- data/spec/moneta/transformer_tnet_spec.rb +1 -0
- data/spec/moneta/transformer_value_marshal_spec.rb +42 -0
- data/spec/moneta/transformer_value_yaml_spec.rb +42 -0
- data/spec/moneta/transformer_yaml_spec.rb +42 -0
- data/spec/moneta/transformer_zlib_spec.rb +4 -0
- data/spec/moneta/weak_create_spec.rb +5 -0
- data/spec/moneta/weak_increment_spec.rb +5 -0
- data/spec/monetaspecs.rb +26531 -16522
- metadata +145 -133
- data/script/kill-travis +0 -16
data/script/travis-logs
CHANGED
@@ -5,7 +5,8 @@ require 'fileutils'
|
|
5
5
|
FileUtils.mkpath('logs')
|
6
6
|
`git remote -v | grep origin | head -n1` =~ /github\.com:(.*?)\.git/
|
7
7
|
repo = Travis::Repository.find($1)
|
8
|
-
repo.
|
8
|
+
build = repo.recent_builds.select {|b| b.finished_at }.first
|
9
|
+
build.jobs.each do |j|
|
9
10
|
c = j.config
|
10
11
|
id = "logs/#{j.allow_failures? ? 'allowed-' : ''}#{j.state}-#{c['rvm']}-#{CGI.escape c['env']}"
|
11
12
|
puts "Downloading #{j.id}"
|
data/spec/helper.rb
CHANGED
@@ -152,9 +152,9 @@ def describe_moneta(name, &block)
|
|
152
152
|
InitializeStore.new(&block)
|
153
153
|
describe(name, &block)
|
154
154
|
rescue LoadError => ex
|
155
|
-
puts "\e[31mTest #{name} not executed: #{ex.message}\e[0m"
|
155
|
+
puts "\e[31mTest #{name} not executed: #{ex.class} - #{ex.message}\e[0m"
|
156
156
|
rescue Exception => ex
|
157
|
-
puts "\e[31mTest #{name} not executed: #{ex.message}\e[0m"
|
157
|
+
puts "\e[31mTest #{name} not executed: #{ex.class} - #{ex.message}\e[0m"
|
158
158
|
puts ex.backtrace.join("\n")
|
159
159
|
end
|
160
160
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# coding: binary
|
1
2
|
# Generated by generate-specs
|
2
3
|
require 'helper'
|
3
4
|
|
@@ -24,8 +25,12 @@ describe_moneta "adapter_activerecord_exisiting_connection" do
|
|
24
25
|
it_should_behave_like 'increment'
|
25
26
|
it_should_behave_like 'multiprocess'
|
26
27
|
it_should_behave_like 'null_stringkey_stringvalue'
|
28
|
+
it_should_behave_like 'null_pathkey_stringvalue'
|
27
29
|
it_should_behave_like 'persist_stringkey_stringvalue'
|
30
|
+
it_should_behave_like 'persist_pathkey_stringvalue'
|
28
31
|
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
32
|
+
it_should_behave_like 'returndifferent_pathkey_stringvalue'
|
29
33
|
it_should_behave_like 'store_stringkey_stringvalue'
|
34
|
+
it_should_behave_like 'store_pathkey_stringvalue'
|
30
35
|
it_should_behave_like 'store_large'
|
31
36
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# coding: binary
|
1
2
|
# Generated by generate-specs
|
2
3
|
require 'helper'
|
3
4
|
|
@@ -22,9 +23,13 @@ describe_moneta "adapter_activerecord" do
|
|
22
23
|
it_should_behave_like 'increment'
|
23
24
|
it_should_behave_like 'multiprocess'
|
24
25
|
it_should_behave_like 'null_stringkey_stringvalue'
|
26
|
+
it_should_behave_like 'null_pathkey_stringvalue'
|
25
27
|
it_should_behave_like 'persist_stringkey_stringvalue'
|
28
|
+
it_should_behave_like 'persist_pathkey_stringvalue'
|
26
29
|
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
30
|
+
it_should_behave_like 'returndifferent_pathkey_stringvalue'
|
27
31
|
it_should_behave_like 'store_stringkey_stringvalue'
|
32
|
+
it_should_behave_like 'store_pathkey_stringvalue'
|
28
33
|
it_should_behave_like 'store_large'
|
29
34
|
it 'updates an existing key/value' do
|
30
35
|
store['foo/bar'] = '1'
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# coding: binary
|
1
2
|
# Generated by generate-specs
|
2
3
|
require 'helper'
|
3
4
|
|
@@ -21,8 +22,12 @@ describe_moneta "adapter_cassandra" do
|
|
21
22
|
it_should_behave_like 'not_create'
|
22
23
|
it_should_behave_like 'not_increment'
|
23
24
|
it_should_behave_like 'null_stringkey_stringvalue'
|
25
|
+
it_should_behave_like 'null_pathkey_stringvalue'
|
24
26
|
it_should_behave_like 'persist_stringkey_stringvalue'
|
27
|
+
it_should_behave_like 'persist_pathkey_stringvalue'
|
25
28
|
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
29
|
+
it_should_behave_like 'returndifferent_pathkey_stringvalue'
|
26
30
|
it_should_behave_like 'store_stringkey_stringvalue'
|
31
|
+
it_should_behave_like 'store_pathkey_stringvalue'
|
27
32
|
it_should_behave_like 'store_large'
|
28
33
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# coding: binary
|
1
2
|
# Generated by generate-specs
|
2
3
|
require 'helper'
|
3
4
|
|
@@ -22,8 +23,12 @@ describe_moneta "adapter_cassandra_with_default_expires" do
|
|
22
23
|
it_should_behave_like 'not_create'
|
23
24
|
it_should_behave_like 'not_increment'
|
24
25
|
it_should_behave_like 'null_stringkey_stringvalue'
|
26
|
+
it_should_behave_like 'null_pathkey_stringvalue'
|
25
27
|
it_should_behave_like 'persist_stringkey_stringvalue'
|
28
|
+
it_should_behave_like 'persist_pathkey_stringvalue'
|
26
29
|
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
30
|
+
it_should_behave_like 'returndifferent_pathkey_stringvalue'
|
27
31
|
it_should_behave_like 'store_stringkey_stringvalue'
|
32
|
+
it_should_behave_like 'store_pathkey_stringvalue'
|
28
33
|
it_should_behave_like 'store_large'
|
29
34
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# coding: binary
|
1
2
|
# Generated by generate-specs
|
2
3
|
require 'helper'
|
3
4
|
|
@@ -23,8 +24,12 @@ describe_moneta "adapter_client" do
|
|
23
24
|
it_should_behave_like 'increment'
|
24
25
|
it_should_behave_like 'multiprocess'
|
25
26
|
it_should_behave_like 'null_stringkey_stringvalue'
|
27
|
+
it_should_behave_like 'null_pathkey_stringvalue'
|
26
28
|
it_should_behave_like 'persist_stringkey_stringvalue'
|
29
|
+
it_should_behave_like 'persist_pathkey_stringvalue'
|
27
30
|
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
31
|
+
it_should_behave_like 'returndifferent_pathkey_stringvalue'
|
28
32
|
it_should_behave_like 'store_stringkey_stringvalue'
|
33
|
+
it_should_behave_like 'store_pathkey_stringvalue'
|
29
34
|
it_should_behave_like 'store_large'
|
30
35
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# coding: binary
|
1
2
|
# Generated by generate-specs
|
2
3
|
require 'helper'
|
3
4
|
|
@@ -20,7 +21,10 @@ describe_moneta "adapter_cookie" do
|
|
20
21
|
it_should_behave_like 'increment'
|
21
22
|
it_should_behave_like 'not_persist'
|
22
23
|
it_should_behave_like 'null_stringkey_stringvalue'
|
24
|
+
it_should_behave_like 'null_pathkey_stringvalue'
|
23
25
|
it_should_behave_like 'returnsame_stringkey_stringvalue'
|
26
|
+
it_should_behave_like 'returnsame_pathkey_stringvalue'
|
24
27
|
it_should_behave_like 'store_stringkey_stringvalue'
|
28
|
+
it_should_behave_like 'store_pathkey_stringvalue'
|
25
29
|
it_should_behave_like 'store_large'
|
26
30
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# coding: binary
|
1
2
|
# Generated by generate-specs
|
2
3
|
require 'helper'
|
3
4
|
|
@@ -20,16 +21,16 @@ describe_moneta "adapter_couch" do
|
|
20
21
|
it_should_behave_like 'features'
|
21
22
|
it_should_behave_like 'multiprocess'
|
22
23
|
it_should_behave_like 'not_increment'
|
23
|
-
it_should_behave_like '
|
24
|
-
it_should_behave_like '
|
25
|
-
it_should_behave_like '
|
26
|
-
it_should_behave_like '
|
27
|
-
it_should_behave_like '
|
28
|
-
it_should_behave_like '
|
29
|
-
it_should_behave_like '
|
30
|
-
it_should_behave_like '
|
31
|
-
it_should_behave_like '
|
32
|
-
it_should_behave_like '
|
33
|
-
it_should_behave_like '
|
24
|
+
it_should_behave_like 'null_stringkey_stringvalue'
|
25
|
+
it_should_behave_like 'null_stringkey_hashvalue'
|
26
|
+
it_should_behave_like 'null_stringkey_integervalue'
|
27
|
+
it_should_behave_like 'persist_stringkey_stringvalue'
|
28
|
+
it_should_behave_like 'persist_stringkey_hashvalue'
|
29
|
+
it_should_behave_like 'persist_stringkey_integervalue'
|
30
|
+
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
31
|
+
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
32
|
+
it_should_behave_like 'store_stringkey_stringvalue'
|
33
|
+
it_should_behave_like 'store_stringkey_hashvalue'
|
34
|
+
it_should_behave_like 'store_stringkey_integervalue'
|
34
35
|
it_should_behave_like 'store_large'
|
35
36
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# coding: binary
|
1
2
|
# Generated by generate-specs
|
2
3
|
require 'helper'
|
3
4
|
|
@@ -23,9 +24,13 @@ describe_moneta "adapter_datamapper" do
|
|
23
24
|
it_should_behave_like 'multiprocess'
|
24
25
|
it_should_behave_like 'not_increment'
|
25
26
|
it_should_behave_like 'null_stringkey_stringvalue'
|
27
|
+
it_should_behave_like 'null_pathkey_stringvalue'
|
26
28
|
it_should_behave_like 'persist_stringkey_stringvalue'
|
29
|
+
it_should_behave_like 'persist_pathkey_stringvalue'
|
27
30
|
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
31
|
+
it_should_behave_like 'returndifferent_pathkey_stringvalue'
|
28
32
|
it_should_behave_like 'store_stringkey_stringvalue'
|
33
|
+
it_should_behave_like 'store_pathkey_stringvalue'
|
29
34
|
it_should_behave_like 'store_large'
|
30
35
|
it 'does not cross contaminate when storing' do
|
31
36
|
first = Moneta::Adapters::DataMapper.new(:setup => "mysql://root:@localhost/moneta", :table => "datamapper_first")
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# coding: binary
|
1
2
|
# Generated by generate-specs
|
2
3
|
require 'helper'
|
3
4
|
|
@@ -19,8 +20,12 @@ describe_moneta "adapter_daybreak" do
|
|
19
20
|
it_should_behave_like 'features'
|
20
21
|
it_should_behave_like 'increment'
|
21
22
|
it_should_behave_like 'null_stringkey_stringvalue'
|
23
|
+
it_should_behave_like 'null_pathkey_stringvalue'
|
22
24
|
it_should_behave_like 'persist_stringkey_stringvalue'
|
25
|
+
it_should_behave_like 'persist_pathkey_stringvalue'
|
23
26
|
it_should_behave_like 'returnsame_stringkey_stringvalue'
|
27
|
+
it_should_behave_like 'returnsame_pathkey_stringvalue'
|
24
28
|
it_should_behave_like 'store_stringkey_stringvalue'
|
29
|
+
it_should_behave_like 'store_pathkey_stringvalue'
|
25
30
|
it_should_behave_like 'store_large'
|
26
31
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# coding: binary
|
1
2
|
# Generated by generate-specs
|
2
3
|
require 'helper'
|
3
4
|
|
@@ -19,8 +20,12 @@ describe_moneta "adapter_dbm" do
|
|
19
20
|
it_should_behave_like 'features'
|
20
21
|
it_should_behave_like 'increment'
|
21
22
|
it_should_behave_like 'null_stringkey_stringvalue'
|
23
|
+
it_should_behave_like 'null_pathkey_stringvalue'
|
22
24
|
it_should_behave_like 'persist_stringkey_stringvalue'
|
25
|
+
it_should_behave_like 'persist_pathkey_stringvalue'
|
23
26
|
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
27
|
+
it_should_behave_like 'returndifferent_pathkey_stringvalue'
|
24
28
|
it_should_behave_like 'store_stringkey_stringvalue'
|
29
|
+
it_should_behave_like 'store_pathkey_stringvalue'
|
25
30
|
it_should_behave_like 'store_large'
|
26
31
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# coding: binary
|
1
2
|
# Generated by generate-specs
|
2
3
|
require 'helper'
|
3
4
|
|
@@ -22,8 +23,12 @@ describe_moneta "adapter_file" do
|
|
22
23
|
it_should_behave_like 'increment'
|
23
24
|
it_should_behave_like 'multiprocess'
|
24
25
|
it_should_behave_like 'null_stringkey_stringvalue'
|
26
|
+
it_should_behave_like 'null_pathkey_stringvalue'
|
25
27
|
it_should_behave_like 'persist_stringkey_stringvalue'
|
28
|
+
it_should_behave_like 'persist_pathkey_stringvalue'
|
26
29
|
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
30
|
+
it_should_behave_like 'returndifferent_pathkey_stringvalue'
|
27
31
|
it_should_behave_like 'store_stringkey_stringvalue'
|
32
|
+
it_should_behave_like 'store_pathkey_stringvalue'
|
28
33
|
it_should_behave_like 'store_large'
|
29
34
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# coding: binary
|
1
2
|
# Generated by generate-specs
|
2
3
|
require 'helper'
|
3
4
|
|
@@ -25,8 +26,12 @@ describe_moneta "adapter_fog" do
|
|
25
26
|
it_should_behave_like 'not_create'
|
26
27
|
it_should_behave_like 'not_increment'
|
27
28
|
it_should_behave_like 'null_stringkey_stringvalue'
|
29
|
+
it_should_behave_like 'null_pathkey_stringvalue'
|
28
30
|
it_should_behave_like 'persist_stringkey_stringvalue'
|
31
|
+
it_should_behave_like 'persist_pathkey_stringvalue'
|
29
32
|
it_should_behave_like 'returnsame_stringkey_stringvalue'
|
33
|
+
it_should_behave_like 'returnsame_pathkey_stringvalue'
|
30
34
|
it_should_behave_like 'store_stringkey_stringvalue'
|
35
|
+
it_should_behave_like 'store_pathkey_stringvalue'
|
31
36
|
it_should_behave_like 'store_large'
|
32
37
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# coding: binary
|
1
2
|
# Generated by generate-specs
|
2
3
|
require 'helper'
|
3
4
|
|
@@ -19,8 +20,12 @@ describe_moneta "adapter_gdbm" do
|
|
19
20
|
it_should_behave_like 'features'
|
20
21
|
it_should_behave_like 'increment'
|
21
22
|
it_should_behave_like 'null_stringkey_stringvalue'
|
23
|
+
it_should_behave_like 'null_pathkey_stringvalue'
|
22
24
|
it_should_behave_like 'persist_stringkey_stringvalue'
|
25
|
+
it_should_behave_like 'persist_pathkey_stringvalue'
|
23
26
|
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
27
|
+
it_should_behave_like 'returndifferent_pathkey_stringvalue'
|
24
28
|
it_should_behave_like 'store_stringkey_stringvalue'
|
29
|
+
it_should_behave_like 'store_pathkey_stringvalue'
|
25
30
|
it_should_behave_like 'store_large'
|
26
31
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# coding: binary
|
1
2
|
# Generated by generate-specs
|
2
3
|
require 'helper'
|
3
4
|
|
@@ -21,8 +22,12 @@ describe_moneta "adapter_hbase" do
|
|
21
22
|
it_should_behave_like 'multiprocess'
|
22
23
|
it_should_behave_like 'not_create'
|
23
24
|
it_should_behave_like 'null_stringkey_stringvalue'
|
25
|
+
it_should_behave_like 'null_pathkey_stringvalue'
|
24
26
|
it_should_behave_like 'persist_stringkey_stringvalue'
|
27
|
+
it_should_behave_like 'persist_pathkey_stringvalue'
|
25
28
|
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
29
|
+
it_should_behave_like 'returndifferent_pathkey_stringvalue'
|
26
30
|
it_should_behave_like 'store_stringkey_stringvalue'
|
31
|
+
it_should_behave_like 'store_pathkey_stringvalue'
|
27
32
|
it_should_behave_like 'store_large'
|
28
33
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# coding: binary
|
1
2
|
# Generated by generate-specs
|
2
3
|
require 'helper'
|
3
4
|
|
@@ -19,8 +20,12 @@ describe_moneta "adapter_kyotocabinet" do
|
|
19
20
|
it_should_behave_like 'features'
|
20
21
|
it_should_behave_like 'increment'
|
21
22
|
it_should_behave_like 'null_stringkey_stringvalue'
|
23
|
+
it_should_behave_like 'null_pathkey_stringvalue'
|
22
24
|
it_should_behave_like 'persist_stringkey_stringvalue'
|
25
|
+
it_should_behave_like 'persist_pathkey_stringvalue'
|
23
26
|
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
27
|
+
it_should_behave_like 'returndifferent_pathkey_stringvalue'
|
24
28
|
it_should_behave_like 'store_stringkey_stringvalue'
|
29
|
+
it_should_behave_like 'store_pathkey_stringvalue'
|
25
30
|
it_should_behave_like 'store_large'
|
26
31
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# coding: binary
|
1
2
|
# Generated by generate-specs
|
2
3
|
require 'helper'
|
3
4
|
|
@@ -19,8 +20,12 @@ describe_moneta "adapter_leveldb" do
|
|
19
20
|
it_should_behave_like 'features'
|
20
21
|
it_should_behave_like 'increment'
|
21
22
|
it_should_behave_like 'null_stringkey_stringvalue'
|
23
|
+
it_should_behave_like 'null_pathkey_stringvalue'
|
22
24
|
it_should_behave_like 'persist_stringkey_stringvalue'
|
25
|
+
it_should_behave_like 'persist_pathkey_stringvalue'
|
23
26
|
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
27
|
+
it_should_behave_like 'returndifferent_pathkey_stringvalue'
|
24
28
|
it_should_behave_like 'store_stringkey_stringvalue'
|
29
|
+
it_should_behave_like 'store_pathkey_stringvalue'
|
25
30
|
it_should_behave_like 'store_large'
|
26
31
|
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# coding: binary
|
2
|
+
# Generated by generate-specs
|
3
|
+
require 'helper'
|
4
|
+
|
5
|
+
describe_moneta "adapter_lmdb" do
|
6
|
+
def features
|
7
|
+
[:create, :increment]
|
8
|
+
end
|
9
|
+
|
10
|
+
def new_store
|
11
|
+
Moneta::Adapters::LMDB.new(:dir => File.join(make_tempdir, "adapter_lmdb"))
|
12
|
+
end
|
13
|
+
|
14
|
+
def load_value(value)
|
15
|
+
Marshal.load(value)
|
16
|
+
end
|
17
|
+
|
18
|
+
include_context 'setup_store'
|
19
|
+
it_should_behave_like 'create'
|
20
|
+
it_should_behave_like 'features'
|
21
|
+
it_should_behave_like 'increment'
|
22
|
+
it_should_behave_like 'multiprocess'
|
23
|
+
it_should_behave_like 'null_stringkey_stringvalue'
|
24
|
+
it_should_behave_like 'null_pathkey_stringvalue'
|
25
|
+
it_should_behave_like 'persist_stringkey_stringvalue'
|
26
|
+
it_should_behave_like 'persist_pathkey_stringvalue'
|
27
|
+
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
28
|
+
it_should_behave_like 'returndifferent_pathkey_stringvalue'
|
29
|
+
it_should_behave_like 'store_stringkey_stringvalue'
|
30
|
+
it_should_behave_like 'store_pathkey_stringvalue'
|
31
|
+
it_should_behave_like 'store_large'
|
32
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# coding: binary
|
2
|
+
# Generated by generate-specs
|
3
|
+
require 'helper'
|
4
|
+
|
5
|
+
describe_moneta "adapter_lmdb_with_db" do
|
6
|
+
def features
|
7
|
+
[:create, :increment]
|
8
|
+
end
|
9
|
+
|
10
|
+
def new_store
|
11
|
+
Moneta::Adapters::LMDB.new(:dir => File.join(make_tempdir, "adapter_lmdb"), :db => "adapter_lmdb_with_db")
|
12
|
+
end
|
13
|
+
|
14
|
+
def load_value(value)
|
15
|
+
Marshal.load(value)
|
16
|
+
end
|
17
|
+
|
18
|
+
include_context 'setup_store'
|
19
|
+
it_should_behave_like 'create'
|
20
|
+
it_should_behave_like 'features'
|
21
|
+
it_should_behave_like 'increment'
|
22
|
+
it_should_behave_like 'multiprocess'
|
23
|
+
it_should_behave_like 'null_stringkey_stringvalue'
|
24
|
+
it_should_behave_like 'null_pathkey_stringvalue'
|
25
|
+
it_should_behave_like 'persist_stringkey_stringvalue'
|
26
|
+
it_should_behave_like 'persist_pathkey_stringvalue'
|
27
|
+
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
28
|
+
it_should_behave_like 'returndifferent_pathkey_stringvalue'
|
29
|
+
it_should_behave_like 'store_stringkey_stringvalue'
|
30
|
+
it_should_behave_like 'store_pathkey_stringvalue'
|
31
|
+
it_should_behave_like 'store_large'
|
32
|
+
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# coding: binary
|
1
2
|
# Generated by generate-specs
|
2
3
|
require 'helper'
|
3
4
|
|
@@ -20,8 +21,12 @@ describe_moneta "adapter_localmemcache" do
|
|
20
21
|
it_should_behave_like 'not_create'
|
21
22
|
it_should_behave_like 'not_increment'
|
22
23
|
it_should_behave_like 'null_stringkey_stringvalue'
|
24
|
+
it_should_behave_like 'null_pathkey_stringvalue'
|
23
25
|
it_should_behave_like 'persist_stringkey_stringvalue'
|
26
|
+
it_should_behave_like 'persist_pathkey_stringvalue'
|
24
27
|
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
28
|
+
it_should_behave_like 'returndifferent_pathkey_stringvalue'
|
25
29
|
it_should_behave_like 'store_stringkey_stringvalue'
|
30
|
+
it_should_behave_like 'store_pathkey_stringvalue'
|
26
31
|
it_should_behave_like 'store_large'
|
27
32
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# coding: binary
|
1
2
|
# Generated by generate-specs
|
2
3
|
require 'helper'
|
3
4
|
|
@@ -20,8 +21,11 @@ describe_moneta "adapter_lruhash" do
|
|
20
21
|
it_should_behave_like 'increment'
|
21
22
|
it_should_behave_like 'not_persist'
|
22
23
|
it_should_behave_like 'null_stringkey_stringvalue'
|
24
|
+
it_should_behave_like 'null_pathkey_stringvalue'
|
23
25
|
it_should_behave_like 'returnsame_stringkey_stringvalue'
|
26
|
+
it_should_behave_like 'returnsame_pathkey_stringvalue'
|
24
27
|
it_should_behave_like 'store_stringkey_stringvalue'
|
28
|
+
it_should_behave_like 'store_pathkey_stringvalue'
|
25
29
|
it_should_behave_like 'store_large'
|
26
30
|
it 'deletes oldest' do
|
27
31
|
store = Moneta::Adapters::LRUHash.new(:max_size => 10)
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# coding: binary
|
1
2
|
# Generated by generate-specs
|
2
3
|
require 'helper'
|
3
4
|
|
@@ -24,8 +25,12 @@ describe_moneta "adapter_memcached_dalli" do
|
|
24
25
|
it_should_behave_like 'increment'
|
25
26
|
it_should_behave_like 'multiprocess'
|
26
27
|
it_should_behave_like 'null_stringkey_stringvalue'
|
28
|
+
it_should_behave_like 'null_pathkey_stringvalue'
|
27
29
|
it_should_behave_like 'persist_stringkey_stringvalue'
|
30
|
+
it_should_behave_like 'persist_pathkey_stringvalue'
|
28
31
|
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
32
|
+
it_should_behave_like 'returndifferent_pathkey_stringvalue'
|
29
33
|
it_should_behave_like 'store_stringkey_stringvalue'
|
34
|
+
it_should_behave_like 'store_pathkey_stringvalue'
|
30
35
|
it_should_behave_like 'store_large'
|
31
36
|
end
|