moneta 0.7.17 → 0.7.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +15 -9
- data/CHANGES +12 -1
- data/CONTRIBUTORS +2 -2
- data/Gemfile +3 -0
- data/README.md +30 -5
- data/Rakefile +1 -1
- data/lib/active_support/cache/moneta_store.rb +5 -2
- data/lib/moneta/adapters/couch.rb +63 -5
- data/lib/moneta/adapters/file.rb +29 -12
- data/lib/moneta/adapters/fog.rb +1 -0
- data/lib/moneta/adapters/mongo.rb +74 -22
- data/lib/moneta/adapters/sqlite.rb +6 -5
- data/lib/moneta/pool.rb +28 -5
- data/lib/moneta/transformer/config.rb +37 -34
- data/lib/moneta/version.rb +1 -1
- data/script/contributors +7 -0
- data/script/generate-specs +89 -30
- data/script/install-bundle +1 -1
- data/script/start-services +6 -12
- data/script/wait-services +15 -0
- data/spec/active_support/cache_moneta_store_spec.rb +3 -3
- data/spec/moneta/adapter_couch_spec.rb +14 -6
- data/spec/moneta/adapter_memory_spec.rb +29 -0
- data/spec/moneta/adapter_mongo_spec.rb +7 -0
- data/spec/moneta/adapter_mongo_with_default_expires_spec.rb +7 -0
- data/spec/moneta/adapter_pstore_spec.rb +42 -0
- data/spec/moneta/expires_file_spec.rb +4 -0
- data/spec/moneta/expires_memory_spec.rb +29 -0
- data/spec/moneta/expires_memory_with_default_expires_spec.rb +29 -0
- data/spec/moneta/lock_spec.rb +29 -0
- data/spec/moneta/null_adapter_spec.rb +13 -0
- data/spec/moneta/proxy_expires_memory_spec.rb +29 -0
- data/spec/moneta/simple_activerecord_spec.rb +42 -0
- data/spec/moneta/simple_activerecord_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_cassandra_spec.rb +42 -0
- data/spec/moneta/simple_client_tcp_spec.rb +42 -0
- data/spec/moneta/simple_client_unix_spec.rb +42 -0
- data/spec/moneta/simple_couch_spec.rb +45 -2
- data/spec/moneta/simple_couch_with_expires_spec.rb +46 -2
- data/spec/moneta/simple_datamapper_spec.rb +42 -0
- data/spec/moneta/simple_datamapper_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_datamapper_with_repository_spec.rb +42 -0
- data/spec/moneta/simple_daybreak_spec.rb +42 -0
- data/spec/moneta/simple_daybreak_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_dbm_spec.rb +42 -0
- data/spec/moneta/simple_dbm_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_file_spec.rb +42 -0
- data/spec/moneta/simple_file_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_fog_spec.rb +42 -0
- data/spec/moneta/simple_fog_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_gdbm_spec.rb +42 -0
- data/spec/moneta/simple_gdbm_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_hashfile_spec.rb +42 -0
- data/spec/moneta/simple_hashfile_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_hbase_spec.rb +42 -0
- data/spec/moneta/simple_hbase_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_kyotocabinet_spec.rb +42 -0
- data/spec/moneta/simple_kyotocabinet_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_leveldb_spec.rb +42 -0
- data/spec/moneta/simple_leveldb_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_localmemcache_spec.rb +42 -0
- data/spec/moneta/simple_localmemcache_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_lruhash_spec.rb +29 -0
- data/spec/moneta/simple_lruhash_with_expires_spec.rb +29 -0
- data/spec/moneta/simple_memcached_dalli_spec.rb +42 -0
- data/spec/moneta/simple_memcached_native_spec.rb +42 -0
- data/spec/moneta/simple_memcached_spec.rb +42 -0
- data/spec/moneta/simple_memory_spec.rb +29 -0
- data/spec/moneta/simple_memory_with_compress_spec.rb +29 -0
- data/spec/moneta/simple_memory_with_expires_spec.rb +29 -0
- data/spec/moneta/simple_memory_with_json_key_serializer_spec.rb +6 -0
- data/spec/moneta/simple_memory_with_json_value_serializer_spec.rb +8 -0
- data/spec/moneta/simple_memory_with_prefix_spec.rb +29 -0
- data/spec/moneta/simple_memory_with_snappy_compress_spec.rb +29 -0
- data/spec/moneta/simple_mongo_spec.rb +42 -0
- data/spec/moneta/simple_null_spec.rb +16 -0
- data/spec/moneta/simple_pstore_spec.rb +42 -0
- data/spec/moneta/simple_pstore_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_redis_spec.rb +42 -0
- data/spec/moneta/simple_restclient_spec.rb +42 -0
- data/spec/moneta/simple_riak_spec.rb +42 -0
- data/spec/moneta/simple_riak_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_sdbm_spec.rb +42 -0
- data/spec/moneta/simple_sdbm_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_sequel_spec.rb +42 -0
- data/spec/moneta/simple_sequel_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_sqlite_spec.rb +42 -0
- data/spec/moneta/simple_sqlite_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_tdb_spec.rb +42 -0
- data/spec/moneta/simple_tdb_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_tokyocabinet_spec.rb +42 -0
- data/spec/moneta/simple_tokyocabinet_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_tokyotyrant_spec.rb +42 -0
- data/spec/moneta/simple_tokyotyrant_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_yaml_spec.rb +42 -0
- data/spec/moneta/simple_yaml_with_expires_spec.rb +42 -0
- data/spec/moneta/transformer_bzip2_spec.rb +3 -0
- data/spec/moneta/transformer_key_inspect_spec.rb +6 -0
- data/spec/moneta/transformer_key_marshal_spec.rb +29 -0
- data/spec/moneta/transformer_key_to_s_spec.rb +6 -0
- data/spec/moneta/transformer_key_yaml_spec.rb +29 -0
- data/spec/moneta/transformer_lz4_spec.rb +3 -0
- data/spec/moneta/transformer_lzma_spec.rb +3 -0
- data/spec/moneta/transformer_lzo_spec.rb +3 -0
- data/spec/moneta/transformer_marshal_base64_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_city128_spec.rb +152 -0
- data/spec/moneta/transformer_marshal_city32_spec.rb +152 -0
- data/spec/moneta/transformer_marshal_city64_spec.rb +152 -0
- data/spec/moneta/transformer_marshal_escape_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_hmac_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_md5_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_md5_spread_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_prefix_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_qp_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_rmd160_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_sha1_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_sha256_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_sha384_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_sha512_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_truncate_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_uuencode_spec.rb +29 -0
- data/spec/moneta/transformer_ox_spec.rb +29 -0
- data/spec/moneta/transformer_quicklz_spec.rb +3 -0
- data/spec/moneta/transformer_snappy_spec.rb +3 -0
- data/spec/moneta/transformer_value_marshal_spec.rb +29 -0
- data/spec/moneta/transformer_value_yaml_spec.rb +29 -0
- data/spec/moneta/transformer_yaml_spec.rb +29 -0
- data/spec/moneta/transformer_zlib_spec.rb +3 -0
- data/spec/moneta/weak_create_spec.rb +2 -1
- data/spec/moneta/weak_increment_spec.rb +2 -1
- data/spec/monetaspecs.rb +29879 -6167
- metadata +10 -2
@@ -27,36 +27,49 @@ describe_moneta "simple_memory" do
|
|
27
27
|
it_should_behave_like 'null_objectkey_booleanvalue'
|
28
28
|
it_should_behave_like 'null_objectkey_nilvalue'
|
29
29
|
it_should_behave_like 'null_objectkey_integervalue'
|
30
|
+
it_should_behave_like 'null_objectkey_numbervalue'
|
30
31
|
it_should_behave_like 'null_stringkey_objectvalue'
|
31
32
|
it_should_behave_like 'null_stringkey_stringvalue'
|
32
33
|
it_should_behave_like 'null_stringkey_hashvalue'
|
33
34
|
it_should_behave_like 'null_stringkey_booleanvalue'
|
34
35
|
it_should_behave_like 'null_stringkey_nilvalue'
|
35
36
|
it_should_behave_like 'null_stringkey_integervalue'
|
37
|
+
it_should_behave_like 'null_stringkey_numbervalue'
|
36
38
|
it_should_behave_like 'null_hashkey_objectvalue'
|
37
39
|
it_should_behave_like 'null_hashkey_stringvalue'
|
38
40
|
it_should_behave_like 'null_hashkey_hashvalue'
|
39
41
|
it_should_behave_like 'null_hashkey_booleanvalue'
|
40
42
|
it_should_behave_like 'null_hashkey_nilvalue'
|
41
43
|
it_should_behave_like 'null_hashkey_integervalue'
|
44
|
+
it_should_behave_like 'null_hashkey_numbervalue'
|
42
45
|
it_should_behave_like 'null_booleankey_objectvalue'
|
43
46
|
it_should_behave_like 'null_booleankey_stringvalue'
|
44
47
|
it_should_behave_like 'null_booleankey_hashvalue'
|
45
48
|
it_should_behave_like 'null_booleankey_booleanvalue'
|
46
49
|
it_should_behave_like 'null_booleankey_nilvalue'
|
47
50
|
it_should_behave_like 'null_booleankey_integervalue'
|
51
|
+
it_should_behave_like 'null_booleankey_numbervalue'
|
48
52
|
it_should_behave_like 'null_nilkey_objectvalue'
|
49
53
|
it_should_behave_like 'null_nilkey_stringvalue'
|
50
54
|
it_should_behave_like 'null_nilkey_hashvalue'
|
51
55
|
it_should_behave_like 'null_nilkey_booleanvalue'
|
52
56
|
it_should_behave_like 'null_nilkey_nilvalue'
|
53
57
|
it_should_behave_like 'null_nilkey_integervalue'
|
58
|
+
it_should_behave_like 'null_nilkey_numbervalue'
|
54
59
|
it_should_behave_like 'null_integerkey_objectvalue'
|
55
60
|
it_should_behave_like 'null_integerkey_stringvalue'
|
56
61
|
it_should_behave_like 'null_integerkey_hashvalue'
|
57
62
|
it_should_behave_like 'null_integerkey_booleanvalue'
|
58
63
|
it_should_behave_like 'null_integerkey_nilvalue'
|
59
64
|
it_should_behave_like 'null_integerkey_integervalue'
|
65
|
+
it_should_behave_like 'null_integerkey_numbervalue'
|
66
|
+
it_should_behave_like 'null_numberkey_objectvalue'
|
67
|
+
it_should_behave_like 'null_numberkey_stringvalue'
|
68
|
+
it_should_behave_like 'null_numberkey_hashvalue'
|
69
|
+
it_should_behave_like 'null_numberkey_booleanvalue'
|
70
|
+
it_should_behave_like 'null_numberkey_nilvalue'
|
71
|
+
it_should_behave_like 'null_numberkey_integervalue'
|
72
|
+
it_should_behave_like 'null_numberkey_numbervalue'
|
60
73
|
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
61
74
|
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
62
75
|
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
@@ -75,42 +88,58 @@ describe_moneta "simple_memory" do
|
|
75
88
|
it_should_behave_like 'returndifferent_integerkey_objectvalue'
|
76
89
|
it_should_behave_like 'returndifferent_integerkey_stringvalue'
|
77
90
|
it_should_behave_like 'returndifferent_integerkey_hashvalue'
|
91
|
+
it_should_behave_like 'returndifferent_numberkey_objectvalue'
|
92
|
+
it_should_behave_like 'returndifferent_numberkey_stringvalue'
|
93
|
+
it_should_behave_like 'returndifferent_numberkey_hashvalue'
|
78
94
|
it_should_behave_like 'store_objectkey_objectvalue'
|
79
95
|
it_should_behave_like 'store_objectkey_stringvalue'
|
80
96
|
it_should_behave_like 'store_objectkey_hashvalue'
|
81
97
|
it_should_behave_like 'store_objectkey_booleanvalue'
|
82
98
|
it_should_behave_like 'store_objectkey_nilvalue'
|
83
99
|
it_should_behave_like 'store_objectkey_integervalue'
|
100
|
+
it_should_behave_like 'store_objectkey_numbervalue'
|
84
101
|
it_should_behave_like 'store_stringkey_objectvalue'
|
85
102
|
it_should_behave_like 'store_stringkey_stringvalue'
|
86
103
|
it_should_behave_like 'store_stringkey_hashvalue'
|
87
104
|
it_should_behave_like 'store_stringkey_booleanvalue'
|
88
105
|
it_should_behave_like 'store_stringkey_nilvalue'
|
89
106
|
it_should_behave_like 'store_stringkey_integervalue'
|
107
|
+
it_should_behave_like 'store_stringkey_numbervalue'
|
90
108
|
it_should_behave_like 'store_hashkey_objectvalue'
|
91
109
|
it_should_behave_like 'store_hashkey_stringvalue'
|
92
110
|
it_should_behave_like 'store_hashkey_hashvalue'
|
93
111
|
it_should_behave_like 'store_hashkey_booleanvalue'
|
94
112
|
it_should_behave_like 'store_hashkey_nilvalue'
|
95
113
|
it_should_behave_like 'store_hashkey_integervalue'
|
114
|
+
it_should_behave_like 'store_hashkey_numbervalue'
|
96
115
|
it_should_behave_like 'store_booleankey_objectvalue'
|
97
116
|
it_should_behave_like 'store_booleankey_stringvalue'
|
98
117
|
it_should_behave_like 'store_booleankey_hashvalue'
|
99
118
|
it_should_behave_like 'store_booleankey_booleanvalue'
|
100
119
|
it_should_behave_like 'store_booleankey_nilvalue'
|
101
120
|
it_should_behave_like 'store_booleankey_integervalue'
|
121
|
+
it_should_behave_like 'store_booleankey_numbervalue'
|
102
122
|
it_should_behave_like 'store_nilkey_objectvalue'
|
103
123
|
it_should_behave_like 'store_nilkey_stringvalue'
|
104
124
|
it_should_behave_like 'store_nilkey_hashvalue'
|
105
125
|
it_should_behave_like 'store_nilkey_booleanvalue'
|
106
126
|
it_should_behave_like 'store_nilkey_nilvalue'
|
107
127
|
it_should_behave_like 'store_nilkey_integervalue'
|
128
|
+
it_should_behave_like 'store_nilkey_numbervalue'
|
108
129
|
it_should_behave_like 'store_integerkey_objectvalue'
|
109
130
|
it_should_behave_like 'store_integerkey_stringvalue'
|
110
131
|
it_should_behave_like 'store_integerkey_hashvalue'
|
111
132
|
it_should_behave_like 'store_integerkey_booleanvalue'
|
112
133
|
it_should_behave_like 'store_integerkey_nilvalue'
|
113
134
|
it_should_behave_like 'store_integerkey_integervalue'
|
135
|
+
it_should_behave_like 'store_integerkey_numbervalue'
|
136
|
+
it_should_behave_like 'store_numberkey_objectvalue'
|
137
|
+
it_should_behave_like 'store_numberkey_stringvalue'
|
138
|
+
it_should_behave_like 'store_numberkey_hashvalue'
|
139
|
+
it_should_behave_like 'store_numberkey_booleanvalue'
|
140
|
+
it_should_behave_like 'store_numberkey_nilvalue'
|
141
|
+
it_should_behave_like 'store_numberkey_integervalue'
|
142
|
+
it_should_behave_like 'store_numberkey_numbervalue'
|
114
143
|
it_should_behave_like 'store_large'
|
115
144
|
it_should_behave_like 'transform_value'
|
116
145
|
end
|
@@ -27,36 +27,49 @@ describe_moneta "simple_memory_with_compress" do
|
|
27
27
|
it_should_behave_like 'null_objectkey_booleanvalue'
|
28
28
|
it_should_behave_like 'null_objectkey_nilvalue'
|
29
29
|
it_should_behave_like 'null_objectkey_integervalue'
|
30
|
+
it_should_behave_like 'null_objectkey_numbervalue'
|
30
31
|
it_should_behave_like 'null_stringkey_objectvalue'
|
31
32
|
it_should_behave_like 'null_stringkey_stringvalue'
|
32
33
|
it_should_behave_like 'null_stringkey_hashvalue'
|
33
34
|
it_should_behave_like 'null_stringkey_booleanvalue'
|
34
35
|
it_should_behave_like 'null_stringkey_nilvalue'
|
35
36
|
it_should_behave_like 'null_stringkey_integervalue'
|
37
|
+
it_should_behave_like 'null_stringkey_numbervalue'
|
36
38
|
it_should_behave_like 'null_hashkey_objectvalue'
|
37
39
|
it_should_behave_like 'null_hashkey_stringvalue'
|
38
40
|
it_should_behave_like 'null_hashkey_hashvalue'
|
39
41
|
it_should_behave_like 'null_hashkey_booleanvalue'
|
40
42
|
it_should_behave_like 'null_hashkey_nilvalue'
|
41
43
|
it_should_behave_like 'null_hashkey_integervalue'
|
44
|
+
it_should_behave_like 'null_hashkey_numbervalue'
|
42
45
|
it_should_behave_like 'null_booleankey_objectvalue'
|
43
46
|
it_should_behave_like 'null_booleankey_stringvalue'
|
44
47
|
it_should_behave_like 'null_booleankey_hashvalue'
|
45
48
|
it_should_behave_like 'null_booleankey_booleanvalue'
|
46
49
|
it_should_behave_like 'null_booleankey_nilvalue'
|
47
50
|
it_should_behave_like 'null_booleankey_integervalue'
|
51
|
+
it_should_behave_like 'null_booleankey_numbervalue'
|
48
52
|
it_should_behave_like 'null_nilkey_objectvalue'
|
49
53
|
it_should_behave_like 'null_nilkey_stringvalue'
|
50
54
|
it_should_behave_like 'null_nilkey_hashvalue'
|
51
55
|
it_should_behave_like 'null_nilkey_booleanvalue'
|
52
56
|
it_should_behave_like 'null_nilkey_nilvalue'
|
53
57
|
it_should_behave_like 'null_nilkey_integervalue'
|
58
|
+
it_should_behave_like 'null_nilkey_numbervalue'
|
54
59
|
it_should_behave_like 'null_integerkey_objectvalue'
|
55
60
|
it_should_behave_like 'null_integerkey_stringvalue'
|
56
61
|
it_should_behave_like 'null_integerkey_hashvalue'
|
57
62
|
it_should_behave_like 'null_integerkey_booleanvalue'
|
58
63
|
it_should_behave_like 'null_integerkey_nilvalue'
|
59
64
|
it_should_behave_like 'null_integerkey_integervalue'
|
65
|
+
it_should_behave_like 'null_integerkey_numbervalue'
|
66
|
+
it_should_behave_like 'null_numberkey_objectvalue'
|
67
|
+
it_should_behave_like 'null_numberkey_stringvalue'
|
68
|
+
it_should_behave_like 'null_numberkey_hashvalue'
|
69
|
+
it_should_behave_like 'null_numberkey_booleanvalue'
|
70
|
+
it_should_behave_like 'null_numberkey_nilvalue'
|
71
|
+
it_should_behave_like 'null_numberkey_integervalue'
|
72
|
+
it_should_behave_like 'null_numberkey_numbervalue'
|
60
73
|
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
61
74
|
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
62
75
|
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
@@ -75,42 +88,58 @@ describe_moneta "simple_memory_with_compress" do
|
|
75
88
|
it_should_behave_like 'returndifferent_integerkey_objectvalue'
|
76
89
|
it_should_behave_like 'returndifferent_integerkey_stringvalue'
|
77
90
|
it_should_behave_like 'returndifferent_integerkey_hashvalue'
|
91
|
+
it_should_behave_like 'returndifferent_numberkey_objectvalue'
|
92
|
+
it_should_behave_like 'returndifferent_numberkey_stringvalue'
|
93
|
+
it_should_behave_like 'returndifferent_numberkey_hashvalue'
|
78
94
|
it_should_behave_like 'store_objectkey_objectvalue'
|
79
95
|
it_should_behave_like 'store_objectkey_stringvalue'
|
80
96
|
it_should_behave_like 'store_objectkey_hashvalue'
|
81
97
|
it_should_behave_like 'store_objectkey_booleanvalue'
|
82
98
|
it_should_behave_like 'store_objectkey_nilvalue'
|
83
99
|
it_should_behave_like 'store_objectkey_integervalue'
|
100
|
+
it_should_behave_like 'store_objectkey_numbervalue'
|
84
101
|
it_should_behave_like 'store_stringkey_objectvalue'
|
85
102
|
it_should_behave_like 'store_stringkey_stringvalue'
|
86
103
|
it_should_behave_like 'store_stringkey_hashvalue'
|
87
104
|
it_should_behave_like 'store_stringkey_booleanvalue'
|
88
105
|
it_should_behave_like 'store_stringkey_nilvalue'
|
89
106
|
it_should_behave_like 'store_stringkey_integervalue'
|
107
|
+
it_should_behave_like 'store_stringkey_numbervalue'
|
90
108
|
it_should_behave_like 'store_hashkey_objectvalue'
|
91
109
|
it_should_behave_like 'store_hashkey_stringvalue'
|
92
110
|
it_should_behave_like 'store_hashkey_hashvalue'
|
93
111
|
it_should_behave_like 'store_hashkey_booleanvalue'
|
94
112
|
it_should_behave_like 'store_hashkey_nilvalue'
|
95
113
|
it_should_behave_like 'store_hashkey_integervalue'
|
114
|
+
it_should_behave_like 'store_hashkey_numbervalue'
|
96
115
|
it_should_behave_like 'store_booleankey_objectvalue'
|
97
116
|
it_should_behave_like 'store_booleankey_stringvalue'
|
98
117
|
it_should_behave_like 'store_booleankey_hashvalue'
|
99
118
|
it_should_behave_like 'store_booleankey_booleanvalue'
|
100
119
|
it_should_behave_like 'store_booleankey_nilvalue'
|
101
120
|
it_should_behave_like 'store_booleankey_integervalue'
|
121
|
+
it_should_behave_like 'store_booleankey_numbervalue'
|
102
122
|
it_should_behave_like 'store_nilkey_objectvalue'
|
103
123
|
it_should_behave_like 'store_nilkey_stringvalue'
|
104
124
|
it_should_behave_like 'store_nilkey_hashvalue'
|
105
125
|
it_should_behave_like 'store_nilkey_booleanvalue'
|
106
126
|
it_should_behave_like 'store_nilkey_nilvalue'
|
107
127
|
it_should_behave_like 'store_nilkey_integervalue'
|
128
|
+
it_should_behave_like 'store_nilkey_numbervalue'
|
108
129
|
it_should_behave_like 'store_integerkey_objectvalue'
|
109
130
|
it_should_behave_like 'store_integerkey_stringvalue'
|
110
131
|
it_should_behave_like 'store_integerkey_hashvalue'
|
111
132
|
it_should_behave_like 'store_integerkey_booleanvalue'
|
112
133
|
it_should_behave_like 'store_integerkey_nilvalue'
|
113
134
|
it_should_behave_like 'store_integerkey_integervalue'
|
135
|
+
it_should_behave_like 'store_integerkey_numbervalue'
|
136
|
+
it_should_behave_like 'store_numberkey_objectvalue'
|
137
|
+
it_should_behave_like 'store_numberkey_stringvalue'
|
138
|
+
it_should_behave_like 'store_numberkey_hashvalue'
|
139
|
+
it_should_behave_like 'store_numberkey_booleanvalue'
|
140
|
+
it_should_behave_like 'store_numberkey_nilvalue'
|
141
|
+
it_should_behave_like 'store_numberkey_integervalue'
|
142
|
+
it_should_behave_like 'store_numberkey_numbervalue'
|
114
143
|
it_should_behave_like 'store_large'
|
115
144
|
it_should_behave_like 'transform_value'
|
116
145
|
end
|
@@ -29,36 +29,49 @@ describe_moneta "simple_memory_with_expires" do
|
|
29
29
|
it_should_behave_like 'null_objectkey_booleanvalue'
|
30
30
|
it_should_behave_like 'null_objectkey_nilvalue'
|
31
31
|
it_should_behave_like 'null_objectkey_integervalue'
|
32
|
+
it_should_behave_like 'null_objectkey_numbervalue'
|
32
33
|
it_should_behave_like 'null_stringkey_objectvalue'
|
33
34
|
it_should_behave_like 'null_stringkey_stringvalue'
|
34
35
|
it_should_behave_like 'null_stringkey_hashvalue'
|
35
36
|
it_should_behave_like 'null_stringkey_booleanvalue'
|
36
37
|
it_should_behave_like 'null_stringkey_nilvalue'
|
37
38
|
it_should_behave_like 'null_stringkey_integervalue'
|
39
|
+
it_should_behave_like 'null_stringkey_numbervalue'
|
38
40
|
it_should_behave_like 'null_hashkey_objectvalue'
|
39
41
|
it_should_behave_like 'null_hashkey_stringvalue'
|
40
42
|
it_should_behave_like 'null_hashkey_hashvalue'
|
41
43
|
it_should_behave_like 'null_hashkey_booleanvalue'
|
42
44
|
it_should_behave_like 'null_hashkey_nilvalue'
|
43
45
|
it_should_behave_like 'null_hashkey_integervalue'
|
46
|
+
it_should_behave_like 'null_hashkey_numbervalue'
|
44
47
|
it_should_behave_like 'null_booleankey_objectvalue'
|
45
48
|
it_should_behave_like 'null_booleankey_stringvalue'
|
46
49
|
it_should_behave_like 'null_booleankey_hashvalue'
|
47
50
|
it_should_behave_like 'null_booleankey_booleanvalue'
|
48
51
|
it_should_behave_like 'null_booleankey_nilvalue'
|
49
52
|
it_should_behave_like 'null_booleankey_integervalue'
|
53
|
+
it_should_behave_like 'null_booleankey_numbervalue'
|
50
54
|
it_should_behave_like 'null_nilkey_objectvalue'
|
51
55
|
it_should_behave_like 'null_nilkey_stringvalue'
|
52
56
|
it_should_behave_like 'null_nilkey_hashvalue'
|
53
57
|
it_should_behave_like 'null_nilkey_booleanvalue'
|
54
58
|
it_should_behave_like 'null_nilkey_nilvalue'
|
55
59
|
it_should_behave_like 'null_nilkey_integervalue'
|
60
|
+
it_should_behave_like 'null_nilkey_numbervalue'
|
56
61
|
it_should_behave_like 'null_integerkey_objectvalue'
|
57
62
|
it_should_behave_like 'null_integerkey_stringvalue'
|
58
63
|
it_should_behave_like 'null_integerkey_hashvalue'
|
59
64
|
it_should_behave_like 'null_integerkey_booleanvalue'
|
60
65
|
it_should_behave_like 'null_integerkey_nilvalue'
|
61
66
|
it_should_behave_like 'null_integerkey_integervalue'
|
67
|
+
it_should_behave_like 'null_integerkey_numbervalue'
|
68
|
+
it_should_behave_like 'null_numberkey_objectvalue'
|
69
|
+
it_should_behave_like 'null_numberkey_stringvalue'
|
70
|
+
it_should_behave_like 'null_numberkey_hashvalue'
|
71
|
+
it_should_behave_like 'null_numberkey_booleanvalue'
|
72
|
+
it_should_behave_like 'null_numberkey_nilvalue'
|
73
|
+
it_should_behave_like 'null_numberkey_integervalue'
|
74
|
+
it_should_behave_like 'null_numberkey_numbervalue'
|
62
75
|
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
63
76
|
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
64
77
|
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
@@ -77,42 +90,58 @@ describe_moneta "simple_memory_with_expires" do
|
|
77
90
|
it_should_behave_like 'returndifferent_integerkey_objectvalue'
|
78
91
|
it_should_behave_like 'returndifferent_integerkey_stringvalue'
|
79
92
|
it_should_behave_like 'returndifferent_integerkey_hashvalue'
|
93
|
+
it_should_behave_like 'returndifferent_numberkey_objectvalue'
|
94
|
+
it_should_behave_like 'returndifferent_numberkey_stringvalue'
|
95
|
+
it_should_behave_like 'returndifferent_numberkey_hashvalue'
|
80
96
|
it_should_behave_like 'store_objectkey_objectvalue'
|
81
97
|
it_should_behave_like 'store_objectkey_stringvalue'
|
82
98
|
it_should_behave_like 'store_objectkey_hashvalue'
|
83
99
|
it_should_behave_like 'store_objectkey_booleanvalue'
|
84
100
|
it_should_behave_like 'store_objectkey_nilvalue'
|
85
101
|
it_should_behave_like 'store_objectkey_integervalue'
|
102
|
+
it_should_behave_like 'store_objectkey_numbervalue'
|
86
103
|
it_should_behave_like 'store_stringkey_objectvalue'
|
87
104
|
it_should_behave_like 'store_stringkey_stringvalue'
|
88
105
|
it_should_behave_like 'store_stringkey_hashvalue'
|
89
106
|
it_should_behave_like 'store_stringkey_booleanvalue'
|
90
107
|
it_should_behave_like 'store_stringkey_nilvalue'
|
91
108
|
it_should_behave_like 'store_stringkey_integervalue'
|
109
|
+
it_should_behave_like 'store_stringkey_numbervalue'
|
92
110
|
it_should_behave_like 'store_hashkey_objectvalue'
|
93
111
|
it_should_behave_like 'store_hashkey_stringvalue'
|
94
112
|
it_should_behave_like 'store_hashkey_hashvalue'
|
95
113
|
it_should_behave_like 'store_hashkey_booleanvalue'
|
96
114
|
it_should_behave_like 'store_hashkey_nilvalue'
|
97
115
|
it_should_behave_like 'store_hashkey_integervalue'
|
116
|
+
it_should_behave_like 'store_hashkey_numbervalue'
|
98
117
|
it_should_behave_like 'store_booleankey_objectvalue'
|
99
118
|
it_should_behave_like 'store_booleankey_stringvalue'
|
100
119
|
it_should_behave_like 'store_booleankey_hashvalue'
|
101
120
|
it_should_behave_like 'store_booleankey_booleanvalue'
|
102
121
|
it_should_behave_like 'store_booleankey_nilvalue'
|
103
122
|
it_should_behave_like 'store_booleankey_integervalue'
|
123
|
+
it_should_behave_like 'store_booleankey_numbervalue'
|
104
124
|
it_should_behave_like 'store_nilkey_objectvalue'
|
105
125
|
it_should_behave_like 'store_nilkey_stringvalue'
|
106
126
|
it_should_behave_like 'store_nilkey_hashvalue'
|
107
127
|
it_should_behave_like 'store_nilkey_booleanvalue'
|
108
128
|
it_should_behave_like 'store_nilkey_nilvalue'
|
109
129
|
it_should_behave_like 'store_nilkey_integervalue'
|
130
|
+
it_should_behave_like 'store_nilkey_numbervalue'
|
110
131
|
it_should_behave_like 'store_integerkey_objectvalue'
|
111
132
|
it_should_behave_like 'store_integerkey_stringvalue'
|
112
133
|
it_should_behave_like 'store_integerkey_hashvalue'
|
113
134
|
it_should_behave_like 'store_integerkey_booleanvalue'
|
114
135
|
it_should_behave_like 'store_integerkey_nilvalue'
|
115
136
|
it_should_behave_like 'store_integerkey_integervalue'
|
137
|
+
it_should_behave_like 'store_integerkey_numbervalue'
|
138
|
+
it_should_behave_like 'store_numberkey_objectvalue'
|
139
|
+
it_should_behave_like 'store_numberkey_stringvalue'
|
140
|
+
it_should_behave_like 'store_numberkey_hashvalue'
|
141
|
+
it_should_behave_like 'store_numberkey_booleanvalue'
|
142
|
+
it_should_behave_like 'store_numberkey_nilvalue'
|
143
|
+
it_should_behave_like 'store_numberkey_integervalue'
|
144
|
+
it_should_behave_like 'store_numberkey_numbervalue'
|
116
145
|
it_should_behave_like 'store_large'
|
117
146
|
it_should_behave_like 'transform_value_expires'
|
118
147
|
end
|
@@ -26,18 +26,21 @@ describe_moneta "simple_memory_with_json_key_serializer" do
|
|
26
26
|
it_should_behave_like 'null_stringkey_booleanvalue'
|
27
27
|
it_should_behave_like 'null_stringkey_nilvalue'
|
28
28
|
it_should_behave_like 'null_stringkey_integervalue'
|
29
|
+
it_should_behave_like 'null_stringkey_numbervalue'
|
29
30
|
it_should_behave_like 'null_hashkey_objectvalue'
|
30
31
|
it_should_behave_like 'null_hashkey_stringvalue'
|
31
32
|
it_should_behave_like 'null_hashkey_hashvalue'
|
32
33
|
it_should_behave_like 'null_hashkey_booleanvalue'
|
33
34
|
it_should_behave_like 'null_hashkey_nilvalue'
|
34
35
|
it_should_behave_like 'null_hashkey_integervalue'
|
36
|
+
it_should_behave_like 'null_hashkey_numbervalue'
|
35
37
|
it_should_behave_like 'null_integerkey_objectvalue'
|
36
38
|
it_should_behave_like 'null_integerkey_stringvalue'
|
37
39
|
it_should_behave_like 'null_integerkey_hashvalue'
|
38
40
|
it_should_behave_like 'null_integerkey_booleanvalue'
|
39
41
|
it_should_behave_like 'null_integerkey_nilvalue'
|
40
42
|
it_should_behave_like 'null_integerkey_integervalue'
|
43
|
+
it_should_behave_like 'null_integerkey_numbervalue'
|
41
44
|
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
42
45
|
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
43
46
|
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
@@ -53,18 +56,21 @@ describe_moneta "simple_memory_with_json_key_serializer" do
|
|
53
56
|
it_should_behave_like 'store_stringkey_booleanvalue'
|
54
57
|
it_should_behave_like 'store_stringkey_nilvalue'
|
55
58
|
it_should_behave_like 'store_stringkey_integervalue'
|
59
|
+
it_should_behave_like 'store_stringkey_numbervalue'
|
56
60
|
it_should_behave_like 'store_hashkey_objectvalue'
|
57
61
|
it_should_behave_like 'store_hashkey_stringvalue'
|
58
62
|
it_should_behave_like 'store_hashkey_hashvalue'
|
59
63
|
it_should_behave_like 'store_hashkey_booleanvalue'
|
60
64
|
it_should_behave_like 'store_hashkey_nilvalue'
|
61
65
|
it_should_behave_like 'store_hashkey_integervalue'
|
66
|
+
it_should_behave_like 'store_hashkey_numbervalue'
|
62
67
|
it_should_behave_like 'store_integerkey_objectvalue'
|
63
68
|
it_should_behave_like 'store_integerkey_stringvalue'
|
64
69
|
it_should_behave_like 'store_integerkey_hashvalue'
|
65
70
|
it_should_behave_like 'store_integerkey_booleanvalue'
|
66
71
|
it_should_behave_like 'store_integerkey_nilvalue'
|
67
72
|
it_should_behave_like 'store_integerkey_integervalue'
|
73
|
+
it_should_behave_like 'store_integerkey_numbervalue'
|
68
74
|
it_should_behave_like 'store_large'
|
69
75
|
it_should_behave_like 'transform_value'
|
70
76
|
end
|
@@ -38,6 +38,9 @@ describe_moneta "simple_memory_with_json_value_serializer" do
|
|
38
38
|
it_should_behave_like 'null_integerkey_stringvalue'
|
39
39
|
it_should_behave_like 'null_integerkey_hashvalue'
|
40
40
|
it_should_behave_like 'null_integerkey_integervalue'
|
41
|
+
it_should_behave_like 'null_numberkey_stringvalue'
|
42
|
+
it_should_behave_like 'null_numberkey_hashvalue'
|
43
|
+
it_should_behave_like 'null_numberkey_integervalue'
|
41
44
|
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
42
45
|
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
43
46
|
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
@@ -50,6 +53,8 @@ describe_moneta "simple_memory_with_json_value_serializer" do
|
|
50
53
|
it_should_behave_like 'returndifferent_nilkey_hashvalue'
|
51
54
|
it_should_behave_like 'returndifferent_integerkey_stringvalue'
|
52
55
|
it_should_behave_like 'returndifferent_integerkey_hashvalue'
|
56
|
+
it_should_behave_like 'returndifferent_numberkey_stringvalue'
|
57
|
+
it_should_behave_like 'returndifferent_numberkey_hashvalue'
|
53
58
|
it_should_behave_like 'store_objectkey_stringvalue'
|
54
59
|
it_should_behave_like 'store_objectkey_hashvalue'
|
55
60
|
it_should_behave_like 'store_objectkey_integervalue'
|
@@ -68,6 +73,9 @@ describe_moneta "simple_memory_with_json_value_serializer" do
|
|
68
73
|
it_should_behave_like 'store_integerkey_stringvalue'
|
69
74
|
it_should_behave_like 'store_integerkey_hashvalue'
|
70
75
|
it_should_behave_like 'store_integerkey_integervalue'
|
76
|
+
it_should_behave_like 'store_numberkey_stringvalue'
|
77
|
+
it_should_behave_like 'store_numberkey_hashvalue'
|
78
|
+
it_should_behave_like 'store_numberkey_integervalue'
|
71
79
|
it_should_behave_like 'store_large'
|
72
80
|
it_should_behave_like 'transform_value'
|
73
81
|
end
|
@@ -27,36 +27,49 @@ describe_moneta "simple_memory_with_prefix" do
|
|
27
27
|
it_should_behave_like 'null_objectkey_booleanvalue'
|
28
28
|
it_should_behave_like 'null_objectkey_nilvalue'
|
29
29
|
it_should_behave_like 'null_objectkey_integervalue'
|
30
|
+
it_should_behave_like 'null_objectkey_numbervalue'
|
30
31
|
it_should_behave_like 'null_stringkey_objectvalue'
|
31
32
|
it_should_behave_like 'null_stringkey_stringvalue'
|
32
33
|
it_should_behave_like 'null_stringkey_hashvalue'
|
33
34
|
it_should_behave_like 'null_stringkey_booleanvalue'
|
34
35
|
it_should_behave_like 'null_stringkey_nilvalue'
|
35
36
|
it_should_behave_like 'null_stringkey_integervalue'
|
37
|
+
it_should_behave_like 'null_stringkey_numbervalue'
|
36
38
|
it_should_behave_like 'null_hashkey_objectvalue'
|
37
39
|
it_should_behave_like 'null_hashkey_stringvalue'
|
38
40
|
it_should_behave_like 'null_hashkey_hashvalue'
|
39
41
|
it_should_behave_like 'null_hashkey_booleanvalue'
|
40
42
|
it_should_behave_like 'null_hashkey_nilvalue'
|
41
43
|
it_should_behave_like 'null_hashkey_integervalue'
|
44
|
+
it_should_behave_like 'null_hashkey_numbervalue'
|
42
45
|
it_should_behave_like 'null_booleankey_objectvalue'
|
43
46
|
it_should_behave_like 'null_booleankey_stringvalue'
|
44
47
|
it_should_behave_like 'null_booleankey_hashvalue'
|
45
48
|
it_should_behave_like 'null_booleankey_booleanvalue'
|
46
49
|
it_should_behave_like 'null_booleankey_nilvalue'
|
47
50
|
it_should_behave_like 'null_booleankey_integervalue'
|
51
|
+
it_should_behave_like 'null_booleankey_numbervalue'
|
48
52
|
it_should_behave_like 'null_nilkey_objectvalue'
|
49
53
|
it_should_behave_like 'null_nilkey_stringvalue'
|
50
54
|
it_should_behave_like 'null_nilkey_hashvalue'
|
51
55
|
it_should_behave_like 'null_nilkey_booleanvalue'
|
52
56
|
it_should_behave_like 'null_nilkey_nilvalue'
|
53
57
|
it_should_behave_like 'null_nilkey_integervalue'
|
58
|
+
it_should_behave_like 'null_nilkey_numbervalue'
|
54
59
|
it_should_behave_like 'null_integerkey_objectvalue'
|
55
60
|
it_should_behave_like 'null_integerkey_stringvalue'
|
56
61
|
it_should_behave_like 'null_integerkey_hashvalue'
|
57
62
|
it_should_behave_like 'null_integerkey_booleanvalue'
|
58
63
|
it_should_behave_like 'null_integerkey_nilvalue'
|
59
64
|
it_should_behave_like 'null_integerkey_integervalue'
|
65
|
+
it_should_behave_like 'null_integerkey_numbervalue'
|
66
|
+
it_should_behave_like 'null_numberkey_objectvalue'
|
67
|
+
it_should_behave_like 'null_numberkey_stringvalue'
|
68
|
+
it_should_behave_like 'null_numberkey_hashvalue'
|
69
|
+
it_should_behave_like 'null_numberkey_booleanvalue'
|
70
|
+
it_should_behave_like 'null_numberkey_nilvalue'
|
71
|
+
it_should_behave_like 'null_numberkey_integervalue'
|
72
|
+
it_should_behave_like 'null_numberkey_numbervalue'
|
60
73
|
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
61
74
|
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
62
75
|
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
@@ -75,42 +88,58 @@ describe_moneta "simple_memory_with_prefix" do
|
|
75
88
|
it_should_behave_like 'returndifferent_integerkey_objectvalue'
|
76
89
|
it_should_behave_like 'returndifferent_integerkey_stringvalue'
|
77
90
|
it_should_behave_like 'returndifferent_integerkey_hashvalue'
|
91
|
+
it_should_behave_like 'returndifferent_numberkey_objectvalue'
|
92
|
+
it_should_behave_like 'returndifferent_numberkey_stringvalue'
|
93
|
+
it_should_behave_like 'returndifferent_numberkey_hashvalue'
|
78
94
|
it_should_behave_like 'store_objectkey_objectvalue'
|
79
95
|
it_should_behave_like 'store_objectkey_stringvalue'
|
80
96
|
it_should_behave_like 'store_objectkey_hashvalue'
|
81
97
|
it_should_behave_like 'store_objectkey_booleanvalue'
|
82
98
|
it_should_behave_like 'store_objectkey_nilvalue'
|
83
99
|
it_should_behave_like 'store_objectkey_integervalue'
|
100
|
+
it_should_behave_like 'store_objectkey_numbervalue'
|
84
101
|
it_should_behave_like 'store_stringkey_objectvalue'
|
85
102
|
it_should_behave_like 'store_stringkey_stringvalue'
|
86
103
|
it_should_behave_like 'store_stringkey_hashvalue'
|
87
104
|
it_should_behave_like 'store_stringkey_booleanvalue'
|
88
105
|
it_should_behave_like 'store_stringkey_nilvalue'
|
89
106
|
it_should_behave_like 'store_stringkey_integervalue'
|
107
|
+
it_should_behave_like 'store_stringkey_numbervalue'
|
90
108
|
it_should_behave_like 'store_hashkey_objectvalue'
|
91
109
|
it_should_behave_like 'store_hashkey_stringvalue'
|
92
110
|
it_should_behave_like 'store_hashkey_hashvalue'
|
93
111
|
it_should_behave_like 'store_hashkey_booleanvalue'
|
94
112
|
it_should_behave_like 'store_hashkey_nilvalue'
|
95
113
|
it_should_behave_like 'store_hashkey_integervalue'
|
114
|
+
it_should_behave_like 'store_hashkey_numbervalue'
|
96
115
|
it_should_behave_like 'store_booleankey_objectvalue'
|
97
116
|
it_should_behave_like 'store_booleankey_stringvalue'
|
98
117
|
it_should_behave_like 'store_booleankey_hashvalue'
|
99
118
|
it_should_behave_like 'store_booleankey_booleanvalue'
|
100
119
|
it_should_behave_like 'store_booleankey_nilvalue'
|
101
120
|
it_should_behave_like 'store_booleankey_integervalue'
|
121
|
+
it_should_behave_like 'store_booleankey_numbervalue'
|
102
122
|
it_should_behave_like 'store_nilkey_objectvalue'
|
103
123
|
it_should_behave_like 'store_nilkey_stringvalue'
|
104
124
|
it_should_behave_like 'store_nilkey_hashvalue'
|
105
125
|
it_should_behave_like 'store_nilkey_booleanvalue'
|
106
126
|
it_should_behave_like 'store_nilkey_nilvalue'
|
107
127
|
it_should_behave_like 'store_nilkey_integervalue'
|
128
|
+
it_should_behave_like 'store_nilkey_numbervalue'
|
108
129
|
it_should_behave_like 'store_integerkey_objectvalue'
|
109
130
|
it_should_behave_like 'store_integerkey_stringvalue'
|
110
131
|
it_should_behave_like 'store_integerkey_hashvalue'
|
111
132
|
it_should_behave_like 'store_integerkey_booleanvalue'
|
112
133
|
it_should_behave_like 'store_integerkey_nilvalue'
|
113
134
|
it_should_behave_like 'store_integerkey_integervalue'
|
135
|
+
it_should_behave_like 'store_integerkey_numbervalue'
|
136
|
+
it_should_behave_like 'store_numberkey_objectvalue'
|
137
|
+
it_should_behave_like 'store_numberkey_stringvalue'
|
138
|
+
it_should_behave_like 'store_numberkey_hashvalue'
|
139
|
+
it_should_behave_like 'store_numberkey_booleanvalue'
|
140
|
+
it_should_behave_like 'store_numberkey_nilvalue'
|
141
|
+
it_should_behave_like 'store_numberkey_integervalue'
|
142
|
+
it_should_behave_like 'store_numberkey_numbervalue'
|
114
143
|
it_should_behave_like 'store_large'
|
115
144
|
it_should_behave_like 'transform_value'
|
116
145
|
end
|