moneta 0.7.8 → 0.7.9
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +1 -0
- data/CHANGES +6 -0
- data/Gemfile +1 -0
- data/README.md +107 -40
- data/SPEC.md +8 -0
- data/lib/moneta.rb +6 -7
- data/lib/moneta/adapters/activerecord.rb +2 -0
- data/lib/moneta/adapters/client.rb +9 -0
- data/lib/moneta/adapters/datamapper.rb +2 -0
- data/lib/moneta/adapters/file.rb +2 -0
- data/lib/moneta/adapters/kyotocabinet.rb +39 -0
- data/lib/moneta/adapters/lruhash.rb +1 -1
- data/lib/moneta/adapters/memcached/dalli.rb +3 -5
- data/lib/moneta/adapters/memcached/native.rb +2 -0
- data/lib/moneta/adapters/mongo.rb +2 -0
- data/lib/moneta/adapters/pstore.rb +2 -0
- data/lib/moneta/adapters/redis.rb +3 -3
- data/lib/moneta/adapters/sequel.rb +2 -0
- data/lib/moneta/adapters/sqlite.rb +2 -0
- data/lib/moneta/adapters/tokyocabinet.rb +2 -3
- data/lib/moneta/adapters/yaml.rb +1 -1
- data/lib/moneta/cache.rb +5 -0
- data/lib/moneta/expires.rb +1 -0
- data/lib/moneta/mixins.rb +68 -1
- data/lib/moneta/proxy.rb +5 -0
- data/lib/moneta/server.rb +1 -1
- data/lib/moneta/stack.rb +16 -0
- data/lib/moneta/synchronize.rb +3 -1
- data/lib/moneta/version.rb +1 -1
- data/lib/moneta/weak.rb +15 -1
- data/lib/moneta/wrapper.rb +5 -0
- data/script/benchmarks +2 -0
- data/script/generate-specs +64 -37
- data/script/install-bundle +2 -1
- data/script/install-kyotocabinet +17 -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 +5 -0
- data/spec/moneta/adapter_couch_spec.rb +5 -0
- 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 +29 -0
- data/spec/moneta/adapter_leveldb_spec.rb +5 -0
- data/spec/moneta/adapter_localmemcache_spec.rb +5 -0
- data/spec/moneta/adapter_lruhash_spec.rb +5 -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 +5 -0
- data/spec/moneta/adapter_mongo_spec.rb +5 -0
- data/spec/moneta/adapter_mongo_with_default_expires_spec.rb +5 -0
- data/spec/moneta/adapter_pstore_spec.rb +5 -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_yaml_spec.rb +5 -0
- data/spec/moneta/cache_file_memory_spec.rb +5 -0
- data/spec/moneta/cache_memory_null_spec.rb +5 -0
- data/spec/moneta/expires_file_spec.rb +5 -0
- data/spec/moneta/expires_memory_spec.rb +5 -0
- data/spec/moneta/expires_memory_with_default_expires_spec.rb +5 -0
- data/spec/moneta/lock_spec.rb +5 -0
- data/spec/moneta/mutex_spec.rb +4 -0
- data/spec/moneta/null_adapter_spec.rb +4 -0
- data/spec/moneta/optionmerger_spec.rb +8 -0
- data/spec/moneta/pool_spec.rb +5 -0
- data/spec/moneta/proxy_expires_memory_spec.rb +5 -0
- data/spec/moneta/proxy_redis_spec.rb +5 -0
- data/spec/moneta/semaphore_spec.rb +4 -0
- data/spec/moneta/shared_tcp_spec.rb +5 -0
- data/spec/moneta/shared_unix_spec.rb +5 -0
- data/spec/moneta/simple_activerecord_spec.rb +5 -0
- data/spec/moneta/simple_activerecord_with_expires_spec.rb +5 -0
- data/spec/moneta/simple_cassandra_spec.rb +5 -0
- data/spec/moneta/simple_client_tcp_spec.rb +5 -0
- data/spec/moneta/simple_client_unix_spec.rb +5 -0
- data/spec/moneta/simple_couch_spec.rb +5 -0
- data/spec/moneta/simple_couch_with_expires_spec.rb +5 -0
- data/spec/moneta/simple_datamapper_spec.rb +5 -0
- data/spec/moneta/simple_datamapper_with_expires_spec.rb +5 -0
- data/spec/moneta/simple_datamapper_with_repository_spec.rb +5 -0
- data/spec/moneta/simple_daybreak_spec.rb +5 -0
- data/spec/moneta/simple_daybreak_with_expires_spec.rb +5 -0
- data/spec/moneta/simple_dbm_spec.rb +5 -0
- data/spec/moneta/simple_dbm_with_expires_spec.rb +5 -0
- data/spec/moneta/simple_file_spec.rb +5 -0
- data/spec/moneta/simple_file_with_expires_spec.rb +5 -0
- data/spec/moneta/simple_fog_spec.rb +5 -0
- data/spec/moneta/simple_fog_with_expires_spec.rb +5 -0
- data/spec/moneta/simple_gdbm_spec.rb +5 -0
- data/spec/moneta/simple_gdbm_with_expires_spec.rb +5 -0
- data/spec/moneta/simple_hashfile_spec.rb +5 -0
- data/spec/moneta/simple_hashfile_with_expires_spec.rb +5 -0
- data/spec/moneta/simple_hbase_spec.rb +5 -0
- data/spec/moneta/simple_hbase_with_expires_spec.rb +5 -0
- data/spec/moneta/simple_kyotocabinet_spec.rb +154 -0
- data/spec/moneta/simple_kyotocabinet_with_expires_spec.rb +156 -0
- data/spec/moneta/simple_leveldb_spec.rb +5 -0
- data/spec/moneta/simple_leveldb_with_expires_spec.rb +5 -0
- data/spec/moneta/simple_localmemcache_spec.rb +5 -0
- data/spec/moneta/simple_localmemcache_with_expires_spec.rb +5 -0
- data/spec/moneta/simple_lruhash_spec.rb +5 -0
- data/spec/moneta/simple_lruhash_with_expires_spec.rb +5 -0
- data/spec/moneta/simple_memcached_dalli_spec.rb +5 -0
- data/spec/moneta/simple_memcached_native_spec.rb +5 -0
- data/spec/moneta/simple_memcached_spec.rb +5 -0
- data/spec/moneta/simple_memory_spec.rb +5 -0
- data/spec/moneta/simple_memory_with_compress_spec.rb +5 -0
- data/spec/moneta/simple_memory_with_expires_spec.rb +5 -0
- data/spec/moneta/simple_memory_with_json_key_serializer_spec.rb +5 -0
- data/spec/moneta/simple_memory_with_json_serializer_spec.rb +5 -0
- data/spec/moneta/simple_memory_with_json_value_serializer_spec.rb +5 -0
- data/spec/moneta/simple_memory_with_prefix_spec.rb +5 -0
- data/spec/moneta/simple_memory_with_snappy_compress_spec.rb +5 -0
- data/spec/moneta/simple_mongo_spec.rb +5 -0
- data/spec/moneta/simple_null_spec.rb +5 -0
- data/spec/moneta/simple_pstore_spec.rb +5 -0
- data/spec/moneta/simple_pstore_with_expires_spec.rb +5 -0
- data/spec/moneta/simple_redis_spec.rb +5 -0
- data/spec/moneta/simple_restclient_spec.rb +5 -0
- data/spec/moneta/simple_riak_spec.rb +5 -0
- data/spec/moneta/simple_riak_with_expires_spec.rb +5 -0
- data/spec/moneta/simple_sdbm_spec.rb +5 -0
- data/spec/moneta/simple_sdbm_with_expires_spec.rb +5 -0
- data/spec/moneta/simple_sequel_spec.rb +5 -0
- data/spec/moneta/simple_sequel_with_expires_spec.rb +5 -0
- data/spec/moneta/simple_sqlite_spec.rb +5 -0
- data/spec/moneta/simple_sqlite_with_expires_spec.rb +5 -0
- data/spec/moneta/simple_tdb_spec.rb +5 -0
- data/spec/moneta/simple_tdb_with_expires_spec.rb +5 -0
- data/spec/moneta/simple_tokyocabinet_spec.rb +5 -0
- data/spec/moneta/simple_tokyocabinet_with_expires_spec.rb +5 -0
- data/spec/moneta/simple_yaml_spec.rb +5 -0
- data/spec/moneta/simple_yaml_with_expires_spec.rb +5 -0
- data/spec/moneta/stack_file_memory_spec.rb +5 -0
- data/spec/moneta/stack_memory_file_spec.rb +7 -4
- data/spec/moneta/transformer_bencode_spec.rb +5 -0
- data/spec/moneta/transformer_bert_spec.rb +5 -0
- data/spec/moneta/transformer_bson_spec.rb +5 -0
- data/spec/moneta/transformer_bzip2_spec.rb +5 -0
- data/spec/moneta/transformer_json_spec.rb +5 -0
- data/spec/moneta/transformer_key_inspect_spec.rb +5 -0
- data/spec/moneta/transformer_key_marshal_spec.rb +5 -0
- data/spec/moneta/transformer_key_to_s_spec.rb +5 -0
- data/spec/moneta/transformer_key_yaml_spec.rb +5 -0
- data/spec/moneta/transformer_lzma_spec.rb +5 -0
- data/spec/moneta/transformer_lzo_spec.rb +5 -0
- data/spec/moneta/transformer_marshal_base64_spec.rb +5 -0
- data/spec/moneta/transformer_marshal_escape_spec.rb +5 -0
- data/spec/moneta/transformer_marshal_hmac_spec.rb +5 -0
- data/spec/moneta/transformer_marshal_md5_spec.rb +5 -0
- data/spec/moneta/transformer_marshal_md5_spread_spec.rb +5 -0
- data/spec/moneta/transformer_marshal_prefix_spec.rb +5 -0
- data/spec/moneta/transformer_marshal_rmd160_spec.rb +5 -0
- data/spec/moneta/transformer_marshal_sha1_spec.rb +5 -0
- data/spec/moneta/transformer_marshal_sha256_spec.rb +5 -0
- data/spec/moneta/transformer_marshal_sha384_spec.rb +5 -0
- data/spec/moneta/transformer_marshal_sha512_spec.rb +5 -0
- data/spec/moneta/transformer_marshal_spec.rb +5 -0
- data/spec/moneta/transformer_marshal_truncate_spec.rb +5 -0
- data/spec/moneta/transformer_marshal_uuencode_spec.rb +5 -0
- data/spec/moneta/transformer_msgpack_spec.rb +5 -0
- data/spec/moneta/transformer_ox_spec.rb +5 -0
- data/spec/moneta/transformer_quicklz_spec.rb +5 -0
- data/spec/moneta/transformer_snappy_spec.rb +5 -0
- data/spec/moneta/transformer_tnet_spec.rb +5 -0
- data/spec/moneta/transformer_value_marshal_spec.rb +5 -0
- data/spec/moneta/transformer_value_yaml_spec.rb +5 -0
- data/spec/moneta/transformer_yaml_spec.rb +5 -0
- data/spec/moneta/transformer_zlib_spec.rb +5 -0
- data/spec/moneta/weak_create_spec.rb +10 -91
- data/spec/moneta/weak_increment_spec.rb +10 -91
- data/spec/monetaspecs.rb +19 -0
- metadata +10 -2
@@ -6,6 +6,10 @@ describe_moneta "transformer_key_to_s" do
|
|
6
6
|
@log ||= File.open(File.join(make_tempdir, 'transformer_key_to_s.log'), 'a')
|
7
7
|
end
|
8
8
|
|
9
|
+
def features
|
10
|
+
[:create, :increment]
|
11
|
+
end
|
12
|
+
|
9
13
|
def new_store
|
10
14
|
Moneta.build do
|
11
15
|
use :Transformer, :key => :to_s
|
@@ -19,6 +23,7 @@ describe_moneta "transformer_key_to_s" do
|
|
19
23
|
|
20
24
|
include_context 'setup_store'
|
21
25
|
it_should_behave_like 'create'
|
26
|
+
it_should_behave_like 'features'
|
22
27
|
it_should_behave_like 'increment'
|
23
28
|
it_should_behave_like 'null_stringkey_objectvalue'
|
24
29
|
it_should_behave_like 'null_stringkey_stringvalue'
|
@@ -6,6 +6,10 @@ describe_moneta "transformer_key_yaml" do
|
|
6
6
|
@log ||= File.open(File.join(make_tempdir, 'transformer_key_yaml.log'), 'a')
|
7
7
|
end
|
8
8
|
|
9
|
+
def features
|
10
|
+
[:create, :increment]
|
11
|
+
end
|
12
|
+
|
9
13
|
def new_store
|
10
14
|
Moneta.build do
|
11
15
|
use :Transformer, :key => :yaml
|
@@ -19,6 +23,7 @@ describe_moneta "transformer_key_yaml" do
|
|
19
23
|
|
20
24
|
include_context 'setup_store'
|
21
25
|
it_should_behave_like 'create'
|
26
|
+
it_should_behave_like 'features'
|
22
27
|
it_should_behave_like 'increment'
|
23
28
|
it_should_behave_like 'null_objectkey_objectvalue'
|
24
29
|
it_should_behave_like 'null_objectkey_stringvalue'
|
@@ -6,6 +6,10 @@ describe_moneta "transformer_lzma" do
|
|
6
6
|
@log ||= File.open(File.join(make_tempdir, 'transformer_lzma.log'), 'a')
|
7
7
|
end
|
8
8
|
|
9
|
+
def features
|
10
|
+
[:create, :increment]
|
11
|
+
end
|
12
|
+
|
9
13
|
def new_store
|
10
14
|
Moneta.build do
|
11
15
|
use :Transformer, :value => :lzma
|
@@ -19,6 +23,7 @@ describe_moneta "transformer_lzma" do
|
|
19
23
|
|
20
24
|
include_context 'setup_store'
|
21
25
|
it_should_behave_like 'create'
|
26
|
+
it_should_behave_like 'features'
|
22
27
|
it_should_behave_like 'increment'
|
23
28
|
it_should_behave_like 'null_objectkey_stringvalue'
|
24
29
|
it_should_behave_like 'null_stringkey_stringvalue'
|
@@ -6,6 +6,10 @@ describe_moneta "transformer_lzo" do
|
|
6
6
|
@log ||= File.open(File.join(make_tempdir, 'transformer_lzo.log'), 'a')
|
7
7
|
end
|
8
8
|
|
9
|
+
def features
|
10
|
+
[:create, :increment]
|
11
|
+
end
|
12
|
+
|
9
13
|
def new_store
|
10
14
|
Moneta.build do
|
11
15
|
use :Transformer, :value => :lzo
|
@@ -19,6 +23,7 @@ describe_moneta "transformer_lzo" do
|
|
19
23
|
|
20
24
|
include_context 'setup_store'
|
21
25
|
it_should_behave_like 'create'
|
26
|
+
it_should_behave_like 'features'
|
22
27
|
it_should_behave_like 'increment'
|
23
28
|
it_should_behave_like 'null_objectkey_stringvalue'
|
24
29
|
it_should_behave_like 'null_stringkey_stringvalue'
|
@@ -6,6 +6,10 @@ describe_moneta "transformer_marshal_base64" do
|
|
6
6
|
@log ||= File.open(File.join(make_tempdir, 'transformer_marshal_base64.log'), 'a')
|
7
7
|
end
|
8
8
|
|
9
|
+
def features
|
10
|
+
[:create, :increment]
|
11
|
+
end
|
12
|
+
|
9
13
|
def new_store
|
10
14
|
Moneta.build do
|
11
15
|
use :Transformer, :key => [:marshal, :base64], :value => [:marshal, :base64]
|
@@ -19,6 +23,7 @@ describe_moneta "transformer_marshal_base64" do
|
|
19
23
|
|
20
24
|
include_context 'setup_store'
|
21
25
|
it_should_behave_like 'create'
|
26
|
+
it_should_behave_like 'features'
|
22
27
|
it_should_behave_like 'increment'
|
23
28
|
it_should_behave_like 'marshallable_key'
|
24
29
|
it_should_behave_like 'marshallable_value'
|
@@ -6,6 +6,10 @@ describe_moneta "transformer_marshal_escape" do
|
|
6
6
|
@log ||= File.open(File.join(make_tempdir, 'transformer_marshal_escape.log'), 'a')
|
7
7
|
end
|
8
8
|
|
9
|
+
def features
|
10
|
+
[:create, :increment]
|
11
|
+
end
|
12
|
+
|
9
13
|
def new_store
|
10
14
|
Moneta.build do
|
11
15
|
use :Transformer, :key => [:marshal, :escape], :value => :marshal
|
@@ -19,6 +23,7 @@ describe_moneta "transformer_marshal_escape" do
|
|
19
23
|
|
20
24
|
include_context 'setup_store'
|
21
25
|
it_should_behave_like 'create'
|
26
|
+
it_should_behave_like 'features'
|
22
27
|
it_should_behave_like 'increment'
|
23
28
|
it_should_behave_like 'marshallable_key'
|
24
29
|
it_should_behave_like 'marshallable_value'
|
@@ -6,6 +6,10 @@ describe_moneta "transformer_marshal_hmac" do
|
|
6
6
|
@log ||= File.open(File.join(make_tempdir, 'transformer_marshal_hmac.log'), 'a')
|
7
7
|
end
|
8
8
|
|
9
|
+
def features
|
10
|
+
[:create, :increment]
|
11
|
+
end
|
12
|
+
|
9
13
|
def new_store
|
10
14
|
Moneta.build do
|
11
15
|
use :Transformer, :key => :marshal, :value => [:marshal, :hmac], :secret => 'secret'
|
@@ -19,6 +23,7 @@ describe_moneta "transformer_marshal_hmac" do
|
|
19
23
|
|
20
24
|
include_context 'setup_store'
|
21
25
|
it_should_behave_like 'create'
|
26
|
+
it_should_behave_like 'features'
|
22
27
|
it_should_behave_like 'increment'
|
23
28
|
it_should_behave_like 'marshallable_key'
|
24
29
|
it_should_behave_like 'marshallable_value'
|
@@ -6,6 +6,10 @@ describe_moneta "transformer_marshal_md5" do
|
|
6
6
|
@log ||= File.open(File.join(make_tempdir, 'transformer_marshal_md5.log'), 'a')
|
7
7
|
end
|
8
8
|
|
9
|
+
def features
|
10
|
+
[:create, :increment]
|
11
|
+
end
|
12
|
+
|
9
13
|
def new_store
|
10
14
|
Moneta.build do
|
11
15
|
use :Transformer, :key => [:marshal, :md5], :value => :marshal
|
@@ -19,6 +23,7 @@ describe_moneta "transformer_marshal_md5" do
|
|
19
23
|
|
20
24
|
include_context 'setup_store'
|
21
25
|
it_should_behave_like 'create'
|
26
|
+
it_should_behave_like 'features'
|
22
27
|
it_should_behave_like 'increment'
|
23
28
|
it_should_behave_like 'marshallable_key'
|
24
29
|
it_should_behave_like 'marshallable_value'
|
@@ -6,6 +6,10 @@ describe_moneta "transformer_marshal_md5_spread" do
|
|
6
6
|
@log ||= File.open(File.join(make_tempdir, 'transformer_marshal_md5_spread.log'), 'a')
|
7
7
|
end
|
8
8
|
|
9
|
+
def features
|
10
|
+
[:create, :increment]
|
11
|
+
end
|
12
|
+
|
9
13
|
def new_store
|
10
14
|
Moneta.build do
|
11
15
|
use :Transformer, :key => [:marshal, :md5, :spread], :value => :marshal
|
@@ -19,6 +23,7 @@ describe_moneta "transformer_marshal_md5_spread" do
|
|
19
23
|
|
20
24
|
include_context 'setup_store'
|
21
25
|
it_should_behave_like 'create'
|
26
|
+
it_should_behave_like 'features'
|
22
27
|
it_should_behave_like 'increment'
|
23
28
|
it_should_behave_like 'marshallable_key'
|
24
29
|
it_should_behave_like 'marshallable_value'
|
@@ -6,6 +6,10 @@ describe_moneta "transformer_marshal_prefix" do
|
|
6
6
|
@log ||= File.open(File.join(make_tempdir, 'transformer_marshal_prefix.log'), 'a')
|
7
7
|
end
|
8
8
|
|
9
|
+
def features
|
10
|
+
[:create, :increment]
|
11
|
+
end
|
12
|
+
|
9
13
|
def new_store
|
10
14
|
Moneta.build do
|
11
15
|
use :Transformer, :key => [:marshal, :prefix], :value => :marshal, :prefix => 'moneta'
|
@@ -19,6 +23,7 @@ describe_moneta "transformer_marshal_prefix" do
|
|
19
23
|
|
20
24
|
include_context 'setup_store'
|
21
25
|
it_should_behave_like 'create'
|
26
|
+
it_should_behave_like 'features'
|
22
27
|
it_should_behave_like 'increment'
|
23
28
|
it_should_behave_like 'marshallable_key'
|
24
29
|
it_should_behave_like 'marshallable_value'
|
@@ -6,6 +6,10 @@ describe_moneta "transformer_marshal_rmd160" do
|
|
6
6
|
@log ||= File.open(File.join(make_tempdir, 'transformer_marshal_rmd160.log'), 'a')
|
7
7
|
end
|
8
8
|
|
9
|
+
def features
|
10
|
+
[:create, :increment]
|
11
|
+
end
|
12
|
+
|
9
13
|
def new_store
|
10
14
|
Moneta.build do
|
11
15
|
use :Transformer, :key => [:marshal, :rmd160], :value => :marshal
|
@@ -19,6 +23,7 @@ describe_moneta "transformer_marshal_rmd160" do
|
|
19
23
|
|
20
24
|
include_context 'setup_store'
|
21
25
|
it_should_behave_like 'create'
|
26
|
+
it_should_behave_like 'features'
|
22
27
|
it_should_behave_like 'increment'
|
23
28
|
it_should_behave_like 'marshallable_key'
|
24
29
|
it_should_behave_like 'marshallable_value'
|
@@ -6,6 +6,10 @@ describe_moneta "transformer_marshal_sha1" do
|
|
6
6
|
@log ||= File.open(File.join(make_tempdir, 'transformer_marshal_sha1.log'), 'a')
|
7
7
|
end
|
8
8
|
|
9
|
+
def features
|
10
|
+
[:create, :increment]
|
11
|
+
end
|
12
|
+
|
9
13
|
def new_store
|
10
14
|
Moneta.build do
|
11
15
|
use :Transformer, :key => [:marshal, :sha1], :value => :marshal
|
@@ -19,6 +23,7 @@ describe_moneta "transformer_marshal_sha1" do
|
|
19
23
|
|
20
24
|
include_context 'setup_store'
|
21
25
|
it_should_behave_like 'create'
|
26
|
+
it_should_behave_like 'features'
|
22
27
|
it_should_behave_like 'increment'
|
23
28
|
it_should_behave_like 'marshallable_key'
|
24
29
|
it_should_behave_like 'marshallable_value'
|
@@ -6,6 +6,10 @@ describe_moneta "transformer_marshal_sha256" do
|
|
6
6
|
@log ||= File.open(File.join(make_tempdir, 'transformer_marshal_sha256.log'), 'a')
|
7
7
|
end
|
8
8
|
|
9
|
+
def features
|
10
|
+
[:create, :increment]
|
11
|
+
end
|
12
|
+
|
9
13
|
def new_store
|
10
14
|
Moneta.build do
|
11
15
|
use :Transformer, :key => [:marshal, :sha256], :value => :marshal
|
@@ -19,6 +23,7 @@ describe_moneta "transformer_marshal_sha256" do
|
|
19
23
|
|
20
24
|
include_context 'setup_store'
|
21
25
|
it_should_behave_like 'create'
|
26
|
+
it_should_behave_like 'features'
|
22
27
|
it_should_behave_like 'increment'
|
23
28
|
it_should_behave_like 'marshallable_key'
|
24
29
|
it_should_behave_like 'marshallable_value'
|
@@ -6,6 +6,10 @@ describe_moneta "transformer_marshal_sha384" do
|
|
6
6
|
@log ||= File.open(File.join(make_tempdir, 'transformer_marshal_sha384.log'), 'a')
|
7
7
|
end
|
8
8
|
|
9
|
+
def features
|
10
|
+
[:create, :increment]
|
11
|
+
end
|
12
|
+
|
9
13
|
def new_store
|
10
14
|
Moneta.build do
|
11
15
|
use :Transformer, :key => [:marshal, :sha384], :value => :marshal
|
@@ -19,6 +23,7 @@ describe_moneta "transformer_marshal_sha384" do
|
|
19
23
|
|
20
24
|
include_context 'setup_store'
|
21
25
|
it_should_behave_like 'create'
|
26
|
+
it_should_behave_like 'features'
|
22
27
|
it_should_behave_like 'increment'
|
23
28
|
it_should_behave_like 'marshallable_key'
|
24
29
|
it_should_behave_like 'marshallable_value'
|
@@ -6,6 +6,10 @@ describe_moneta "transformer_marshal_sha512" do
|
|
6
6
|
@log ||= File.open(File.join(make_tempdir, 'transformer_marshal_sha512.log'), 'a')
|
7
7
|
end
|
8
8
|
|
9
|
+
def features
|
10
|
+
[:create, :increment]
|
11
|
+
end
|
12
|
+
|
9
13
|
def new_store
|
10
14
|
Moneta.build do
|
11
15
|
use :Transformer, :key => [:marshal, :sha512], :value => :marshal
|
@@ -19,6 +23,7 @@ describe_moneta "transformer_marshal_sha512" do
|
|
19
23
|
|
20
24
|
include_context 'setup_store'
|
21
25
|
it_should_behave_like 'create'
|
26
|
+
it_should_behave_like 'features'
|
22
27
|
it_should_behave_like 'increment'
|
23
28
|
it_should_behave_like 'marshallable_key'
|
24
29
|
it_should_behave_like 'marshallable_value'
|
@@ -6,6 +6,10 @@ describe_moneta "transformer_marshal" do
|
|
6
6
|
@log ||= File.open(File.join(make_tempdir, 'transformer_marshal.log'), 'a')
|
7
7
|
end
|
8
8
|
|
9
|
+
def features
|
10
|
+
[:create, :increment]
|
11
|
+
end
|
12
|
+
|
9
13
|
def new_store
|
10
14
|
Moneta.build do
|
11
15
|
use :Transformer, :key => :marshal, :value => :marshal
|
@@ -19,6 +23,7 @@ describe_moneta "transformer_marshal" do
|
|
19
23
|
|
20
24
|
include_context 'setup_store'
|
21
25
|
it_should_behave_like 'create'
|
26
|
+
it_should_behave_like 'features'
|
22
27
|
it_should_behave_like 'increment'
|
23
28
|
it_should_behave_like 'null_objectkey_objectvalue'
|
24
29
|
it_should_behave_like 'null_objectkey_stringvalue'
|
@@ -6,6 +6,10 @@ describe_moneta "transformer_marshal_truncate" do
|
|
6
6
|
@log ||= File.open(File.join(make_tempdir, 'transformer_marshal_truncate.log'), 'a')
|
7
7
|
end
|
8
8
|
|
9
|
+
def features
|
10
|
+
[:create, :increment]
|
11
|
+
end
|
12
|
+
|
9
13
|
def new_store
|
10
14
|
Moneta.build do
|
11
15
|
use :Transformer, :key => [:marshal, :truncate], :value => :marshal, :maxlen => 64
|
@@ -19,6 +23,7 @@ describe_moneta "transformer_marshal_truncate" do
|
|
19
23
|
|
20
24
|
include_context 'setup_store'
|
21
25
|
it_should_behave_like 'create'
|
26
|
+
it_should_behave_like 'features'
|
22
27
|
it_should_behave_like 'increment'
|
23
28
|
it_should_behave_like 'marshallable_key'
|
24
29
|
it_should_behave_like 'marshallable_value'
|
@@ -6,6 +6,10 @@ describe_moneta "transformer_marshal_uuencode" do
|
|
6
6
|
@log ||= File.open(File.join(make_tempdir, 'transformer_marshal_uuencode.log'), 'a')
|
7
7
|
end
|
8
8
|
|
9
|
+
def features
|
10
|
+
[:create, :increment]
|
11
|
+
end
|
12
|
+
|
9
13
|
def new_store
|
10
14
|
Moneta.build do
|
11
15
|
use :Transformer, :key => [:marshal, :uuencode], :value => [:marshal, :uuencode]
|
@@ -19,6 +23,7 @@ describe_moneta "transformer_marshal_uuencode" do
|
|
19
23
|
|
20
24
|
include_context 'setup_store'
|
21
25
|
it_should_behave_like 'create'
|
26
|
+
it_should_behave_like 'features'
|
22
27
|
it_should_behave_like 'increment'
|
23
28
|
it_should_behave_like 'marshallable_key'
|
24
29
|
it_should_behave_like 'marshallable_value'
|
@@ -6,6 +6,10 @@ describe_moneta "transformer_msgpack" do
|
|
6
6
|
@log ||= File.open(File.join(make_tempdir, 'transformer_msgpack.log'), 'a')
|
7
7
|
end
|
8
8
|
|
9
|
+
def features
|
10
|
+
[:create, :increment]
|
11
|
+
end
|
12
|
+
|
9
13
|
def new_store
|
10
14
|
Moneta.build do
|
11
15
|
use :Transformer, :key => :msgpack, :value => :msgpack
|
@@ -19,6 +23,7 @@ describe_moneta "transformer_msgpack" do
|
|
19
23
|
|
20
24
|
include_context 'setup_store'
|
21
25
|
it_should_behave_like 'create'
|
26
|
+
it_should_behave_like 'features'
|
22
27
|
it_should_behave_like 'increment'
|
23
28
|
it_should_behave_like 'null_stringkey_stringvalue'
|
24
29
|
it_should_behave_like 'null_stringkey_hashvalue'
|
@@ -6,6 +6,10 @@ describe_moneta "transformer_ox" do
|
|
6
6
|
@log ||= File.open(File.join(make_tempdir, 'transformer_ox.log'), 'a')
|
7
7
|
end
|
8
8
|
|
9
|
+
def features
|
10
|
+
[:create, :increment]
|
11
|
+
end
|
12
|
+
|
9
13
|
def new_store
|
10
14
|
Moneta.build do
|
11
15
|
use :Transformer, :key => :ox, :value => :ox
|
@@ -19,6 +23,7 @@ describe_moneta "transformer_ox" do
|
|
19
23
|
|
20
24
|
include_context 'setup_store'
|
21
25
|
it_should_behave_like 'create'
|
26
|
+
it_should_behave_like 'features'
|
22
27
|
it_should_behave_like 'increment'
|
23
28
|
it_should_behave_like 'null_objectkey_objectvalue'
|
24
29
|
it_should_behave_like 'null_objectkey_stringvalue'
|
@@ -6,6 +6,10 @@ describe_moneta "transformer_quicklz" do
|
|
6
6
|
@log ||= File.open(File.join(make_tempdir, 'transformer_quicklz.log'), 'a')
|
7
7
|
end
|
8
8
|
|
9
|
+
def features
|
10
|
+
[:create, :increment]
|
11
|
+
end
|
12
|
+
|
9
13
|
def new_store
|
10
14
|
Moneta.build do
|
11
15
|
use :Transformer, :value => :quicklz
|
@@ -19,6 +23,7 @@ describe_moneta "transformer_quicklz" do
|
|
19
23
|
|
20
24
|
include_context 'setup_store'
|
21
25
|
it_should_behave_like 'create'
|
26
|
+
it_should_behave_like 'features'
|
22
27
|
it_should_behave_like 'increment'
|
23
28
|
it_should_behave_like 'null_objectkey_stringvalue'
|
24
29
|
it_should_behave_like 'null_stringkey_stringvalue'
|
@@ -6,6 +6,10 @@ describe_moneta "transformer_snappy" do
|
|
6
6
|
@log ||= File.open(File.join(make_tempdir, 'transformer_snappy.log'), 'a')
|
7
7
|
end
|
8
8
|
|
9
|
+
def features
|
10
|
+
[:create, :increment]
|
11
|
+
end
|
12
|
+
|
9
13
|
def new_store
|
10
14
|
Moneta.build do
|
11
15
|
use :Transformer, :value => :snappy
|
@@ -19,6 +23,7 @@ describe_moneta "transformer_snappy" do
|
|
19
23
|
|
20
24
|
include_context 'setup_store'
|
21
25
|
it_should_behave_like 'create'
|
26
|
+
it_should_behave_like 'features'
|
22
27
|
it_should_behave_like 'increment'
|
23
28
|
it_should_behave_like 'null_objectkey_stringvalue'
|
24
29
|
it_should_behave_like 'null_stringkey_stringvalue'
|
@@ -6,6 +6,10 @@ describe_moneta "transformer_tnet" do
|
|
6
6
|
@log ||= File.open(File.join(make_tempdir, 'transformer_tnet.log'), 'a')
|
7
7
|
end
|
8
8
|
|
9
|
+
def features
|
10
|
+
[:create, :increment]
|
11
|
+
end
|
12
|
+
|
9
13
|
def new_store
|
10
14
|
Moneta.build do
|
11
15
|
use :Transformer, :key => :tnet, :value => :tnet
|
@@ -19,6 +23,7 @@ describe_moneta "transformer_tnet" do
|
|
19
23
|
|
20
24
|
include_context 'setup_store'
|
21
25
|
it_should_behave_like 'create'
|
26
|
+
it_should_behave_like 'features'
|
22
27
|
it_should_behave_like 'increment'
|
23
28
|
it_should_behave_like 'null_stringkey_stringvalue'
|
24
29
|
it_should_behave_like 'null_stringkey_hashvalue'
|