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
@@ -30,72 +30,98 @@ describe_moneta "simple_client_unix" do
|
|
30
30
|
it_should_behave_like 'null_objectkey_booleanvalue'
|
31
31
|
it_should_behave_like 'null_objectkey_nilvalue'
|
32
32
|
it_should_behave_like 'null_objectkey_integervalue'
|
33
|
+
it_should_behave_like 'null_objectkey_numbervalue'
|
33
34
|
it_should_behave_like 'null_stringkey_objectvalue'
|
34
35
|
it_should_behave_like 'null_stringkey_stringvalue'
|
35
36
|
it_should_behave_like 'null_stringkey_hashvalue'
|
36
37
|
it_should_behave_like 'null_stringkey_booleanvalue'
|
37
38
|
it_should_behave_like 'null_stringkey_nilvalue'
|
38
39
|
it_should_behave_like 'null_stringkey_integervalue'
|
40
|
+
it_should_behave_like 'null_stringkey_numbervalue'
|
39
41
|
it_should_behave_like 'null_hashkey_objectvalue'
|
40
42
|
it_should_behave_like 'null_hashkey_stringvalue'
|
41
43
|
it_should_behave_like 'null_hashkey_hashvalue'
|
42
44
|
it_should_behave_like 'null_hashkey_booleanvalue'
|
43
45
|
it_should_behave_like 'null_hashkey_nilvalue'
|
44
46
|
it_should_behave_like 'null_hashkey_integervalue'
|
47
|
+
it_should_behave_like 'null_hashkey_numbervalue'
|
45
48
|
it_should_behave_like 'null_booleankey_objectvalue'
|
46
49
|
it_should_behave_like 'null_booleankey_stringvalue'
|
47
50
|
it_should_behave_like 'null_booleankey_hashvalue'
|
48
51
|
it_should_behave_like 'null_booleankey_booleanvalue'
|
49
52
|
it_should_behave_like 'null_booleankey_nilvalue'
|
50
53
|
it_should_behave_like 'null_booleankey_integervalue'
|
54
|
+
it_should_behave_like 'null_booleankey_numbervalue'
|
51
55
|
it_should_behave_like 'null_nilkey_objectvalue'
|
52
56
|
it_should_behave_like 'null_nilkey_stringvalue'
|
53
57
|
it_should_behave_like 'null_nilkey_hashvalue'
|
54
58
|
it_should_behave_like 'null_nilkey_booleanvalue'
|
55
59
|
it_should_behave_like 'null_nilkey_nilvalue'
|
56
60
|
it_should_behave_like 'null_nilkey_integervalue'
|
61
|
+
it_should_behave_like 'null_nilkey_numbervalue'
|
57
62
|
it_should_behave_like 'null_integerkey_objectvalue'
|
58
63
|
it_should_behave_like 'null_integerkey_stringvalue'
|
59
64
|
it_should_behave_like 'null_integerkey_hashvalue'
|
60
65
|
it_should_behave_like 'null_integerkey_booleanvalue'
|
61
66
|
it_should_behave_like 'null_integerkey_nilvalue'
|
62
67
|
it_should_behave_like 'null_integerkey_integervalue'
|
68
|
+
it_should_behave_like 'null_integerkey_numbervalue'
|
69
|
+
it_should_behave_like 'null_numberkey_objectvalue'
|
70
|
+
it_should_behave_like 'null_numberkey_stringvalue'
|
71
|
+
it_should_behave_like 'null_numberkey_hashvalue'
|
72
|
+
it_should_behave_like 'null_numberkey_booleanvalue'
|
73
|
+
it_should_behave_like 'null_numberkey_nilvalue'
|
74
|
+
it_should_behave_like 'null_numberkey_integervalue'
|
75
|
+
it_should_behave_like 'null_numberkey_numbervalue'
|
63
76
|
it_should_behave_like 'persist_objectkey_objectvalue'
|
64
77
|
it_should_behave_like 'persist_objectkey_stringvalue'
|
65
78
|
it_should_behave_like 'persist_objectkey_hashvalue'
|
66
79
|
it_should_behave_like 'persist_objectkey_booleanvalue'
|
67
80
|
it_should_behave_like 'persist_objectkey_nilvalue'
|
68
81
|
it_should_behave_like 'persist_objectkey_integervalue'
|
82
|
+
it_should_behave_like 'persist_objectkey_numbervalue'
|
69
83
|
it_should_behave_like 'persist_stringkey_objectvalue'
|
70
84
|
it_should_behave_like 'persist_stringkey_stringvalue'
|
71
85
|
it_should_behave_like 'persist_stringkey_hashvalue'
|
72
86
|
it_should_behave_like 'persist_stringkey_booleanvalue'
|
73
87
|
it_should_behave_like 'persist_stringkey_nilvalue'
|
74
88
|
it_should_behave_like 'persist_stringkey_integervalue'
|
89
|
+
it_should_behave_like 'persist_stringkey_numbervalue'
|
75
90
|
it_should_behave_like 'persist_hashkey_objectvalue'
|
76
91
|
it_should_behave_like 'persist_hashkey_stringvalue'
|
77
92
|
it_should_behave_like 'persist_hashkey_hashvalue'
|
78
93
|
it_should_behave_like 'persist_hashkey_booleanvalue'
|
79
94
|
it_should_behave_like 'persist_hashkey_nilvalue'
|
80
95
|
it_should_behave_like 'persist_hashkey_integervalue'
|
96
|
+
it_should_behave_like 'persist_hashkey_numbervalue'
|
81
97
|
it_should_behave_like 'persist_booleankey_objectvalue'
|
82
98
|
it_should_behave_like 'persist_booleankey_stringvalue'
|
83
99
|
it_should_behave_like 'persist_booleankey_hashvalue'
|
84
100
|
it_should_behave_like 'persist_booleankey_booleanvalue'
|
85
101
|
it_should_behave_like 'persist_booleankey_nilvalue'
|
86
102
|
it_should_behave_like 'persist_booleankey_integervalue'
|
103
|
+
it_should_behave_like 'persist_booleankey_numbervalue'
|
87
104
|
it_should_behave_like 'persist_nilkey_objectvalue'
|
88
105
|
it_should_behave_like 'persist_nilkey_stringvalue'
|
89
106
|
it_should_behave_like 'persist_nilkey_hashvalue'
|
90
107
|
it_should_behave_like 'persist_nilkey_booleanvalue'
|
91
108
|
it_should_behave_like 'persist_nilkey_nilvalue'
|
92
109
|
it_should_behave_like 'persist_nilkey_integervalue'
|
110
|
+
it_should_behave_like 'persist_nilkey_numbervalue'
|
93
111
|
it_should_behave_like 'persist_integerkey_objectvalue'
|
94
112
|
it_should_behave_like 'persist_integerkey_stringvalue'
|
95
113
|
it_should_behave_like 'persist_integerkey_hashvalue'
|
96
114
|
it_should_behave_like 'persist_integerkey_booleanvalue'
|
97
115
|
it_should_behave_like 'persist_integerkey_nilvalue'
|
98
116
|
it_should_behave_like 'persist_integerkey_integervalue'
|
117
|
+
it_should_behave_like 'persist_integerkey_numbervalue'
|
118
|
+
it_should_behave_like 'persist_numberkey_objectvalue'
|
119
|
+
it_should_behave_like 'persist_numberkey_stringvalue'
|
120
|
+
it_should_behave_like 'persist_numberkey_hashvalue'
|
121
|
+
it_should_behave_like 'persist_numberkey_booleanvalue'
|
122
|
+
it_should_behave_like 'persist_numberkey_nilvalue'
|
123
|
+
it_should_behave_like 'persist_numberkey_integervalue'
|
124
|
+
it_should_behave_like 'persist_numberkey_numbervalue'
|
99
125
|
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
100
126
|
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
101
127
|
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
@@ -114,42 +140,58 @@ describe_moneta "simple_client_unix" do
|
|
114
140
|
it_should_behave_like 'returndifferent_integerkey_objectvalue'
|
115
141
|
it_should_behave_like 'returndifferent_integerkey_stringvalue'
|
116
142
|
it_should_behave_like 'returndifferent_integerkey_hashvalue'
|
143
|
+
it_should_behave_like 'returndifferent_numberkey_objectvalue'
|
144
|
+
it_should_behave_like 'returndifferent_numberkey_stringvalue'
|
145
|
+
it_should_behave_like 'returndifferent_numberkey_hashvalue'
|
117
146
|
it_should_behave_like 'store_objectkey_objectvalue'
|
118
147
|
it_should_behave_like 'store_objectkey_stringvalue'
|
119
148
|
it_should_behave_like 'store_objectkey_hashvalue'
|
120
149
|
it_should_behave_like 'store_objectkey_booleanvalue'
|
121
150
|
it_should_behave_like 'store_objectkey_nilvalue'
|
122
151
|
it_should_behave_like 'store_objectkey_integervalue'
|
152
|
+
it_should_behave_like 'store_objectkey_numbervalue'
|
123
153
|
it_should_behave_like 'store_stringkey_objectvalue'
|
124
154
|
it_should_behave_like 'store_stringkey_stringvalue'
|
125
155
|
it_should_behave_like 'store_stringkey_hashvalue'
|
126
156
|
it_should_behave_like 'store_stringkey_booleanvalue'
|
127
157
|
it_should_behave_like 'store_stringkey_nilvalue'
|
128
158
|
it_should_behave_like 'store_stringkey_integervalue'
|
159
|
+
it_should_behave_like 'store_stringkey_numbervalue'
|
129
160
|
it_should_behave_like 'store_hashkey_objectvalue'
|
130
161
|
it_should_behave_like 'store_hashkey_stringvalue'
|
131
162
|
it_should_behave_like 'store_hashkey_hashvalue'
|
132
163
|
it_should_behave_like 'store_hashkey_booleanvalue'
|
133
164
|
it_should_behave_like 'store_hashkey_nilvalue'
|
134
165
|
it_should_behave_like 'store_hashkey_integervalue'
|
166
|
+
it_should_behave_like 'store_hashkey_numbervalue'
|
135
167
|
it_should_behave_like 'store_booleankey_objectvalue'
|
136
168
|
it_should_behave_like 'store_booleankey_stringvalue'
|
137
169
|
it_should_behave_like 'store_booleankey_hashvalue'
|
138
170
|
it_should_behave_like 'store_booleankey_booleanvalue'
|
139
171
|
it_should_behave_like 'store_booleankey_nilvalue'
|
140
172
|
it_should_behave_like 'store_booleankey_integervalue'
|
173
|
+
it_should_behave_like 'store_booleankey_numbervalue'
|
141
174
|
it_should_behave_like 'store_nilkey_objectvalue'
|
142
175
|
it_should_behave_like 'store_nilkey_stringvalue'
|
143
176
|
it_should_behave_like 'store_nilkey_hashvalue'
|
144
177
|
it_should_behave_like 'store_nilkey_booleanvalue'
|
145
178
|
it_should_behave_like 'store_nilkey_nilvalue'
|
146
179
|
it_should_behave_like 'store_nilkey_integervalue'
|
180
|
+
it_should_behave_like 'store_nilkey_numbervalue'
|
147
181
|
it_should_behave_like 'store_integerkey_objectvalue'
|
148
182
|
it_should_behave_like 'store_integerkey_stringvalue'
|
149
183
|
it_should_behave_like 'store_integerkey_hashvalue'
|
150
184
|
it_should_behave_like 'store_integerkey_booleanvalue'
|
151
185
|
it_should_behave_like 'store_integerkey_nilvalue'
|
152
186
|
it_should_behave_like 'store_integerkey_integervalue'
|
187
|
+
it_should_behave_like 'store_integerkey_numbervalue'
|
188
|
+
it_should_behave_like 'store_numberkey_objectvalue'
|
189
|
+
it_should_behave_like 'store_numberkey_stringvalue'
|
190
|
+
it_should_behave_like 'store_numberkey_hashvalue'
|
191
|
+
it_should_behave_like 'store_numberkey_booleanvalue'
|
192
|
+
it_should_behave_like 'store_numberkey_nilvalue'
|
193
|
+
it_should_behave_like 'store_numberkey_integervalue'
|
194
|
+
it_should_behave_like 'store_numberkey_numbervalue'
|
153
195
|
it_should_behave_like 'store_large'
|
154
196
|
it_should_behave_like 'transform_value'
|
155
197
|
end
|
@@ -3,7 +3,7 @@ require 'helper'
|
|
3
3
|
|
4
4
|
describe_moneta "simple_couch" do
|
5
5
|
def features
|
6
|
-
[]
|
6
|
+
[:create]
|
7
7
|
end
|
8
8
|
|
9
9
|
def new_store
|
@@ -15,11 +15,12 @@ describe_moneta "simple_couch" do
|
|
15
15
|
end
|
16
16
|
|
17
17
|
include_context 'setup_store'
|
18
|
+
it_should_behave_like 'concurrent_create'
|
19
|
+
it_should_behave_like 'create'
|
18
20
|
it_should_behave_like 'features'
|
19
21
|
it_should_behave_like 'marshallable_key'
|
20
22
|
it_should_behave_like 'marshallable_value'
|
21
23
|
it_should_behave_like 'multiprocess'
|
22
|
-
it_should_behave_like 'not_create'
|
23
24
|
it_should_behave_like 'not_increment'
|
24
25
|
it_should_behave_like 'null_objectkey_objectvalue'
|
25
26
|
it_should_behave_like 'null_objectkey_stringvalue'
|
@@ -27,72 +28,98 @@ describe_moneta "simple_couch" do
|
|
27
28
|
it_should_behave_like 'null_objectkey_booleanvalue'
|
28
29
|
it_should_behave_like 'null_objectkey_nilvalue'
|
29
30
|
it_should_behave_like 'null_objectkey_integervalue'
|
31
|
+
it_should_behave_like 'null_objectkey_numbervalue'
|
30
32
|
it_should_behave_like 'null_stringkey_objectvalue'
|
31
33
|
it_should_behave_like 'null_stringkey_stringvalue'
|
32
34
|
it_should_behave_like 'null_stringkey_hashvalue'
|
33
35
|
it_should_behave_like 'null_stringkey_booleanvalue'
|
34
36
|
it_should_behave_like 'null_stringkey_nilvalue'
|
35
37
|
it_should_behave_like 'null_stringkey_integervalue'
|
38
|
+
it_should_behave_like 'null_stringkey_numbervalue'
|
36
39
|
it_should_behave_like 'null_hashkey_objectvalue'
|
37
40
|
it_should_behave_like 'null_hashkey_stringvalue'
|
38
41
|
it_should_behave_like 'null_hashkey_hashvalue'
|
39
42
|
it_should_behave_like 'null_hashkey_booleanvalue'
|
40
43
|
it_should_behave_like 'null_hashkey_nilvalue'
|
41
44
|
it_should_behave_like 'null_hashkey_integervalue'
|
45
|
+
it_should_behave_like 'null_hashkey_numbervalue'
|
42
46
|
it_should_behave_like 'null_booleankey_objectvalue'
|
43
47
|
it_should_behave_like 'null_booleankey_stringvalue'
|
44
48
|
it_should_behave_like 'null_booleankey_hashvalue'
|
45
49
|
it_should_behave_like 'null_booleankey_booleanvalue'
|
46
50
|
it_should_behave_like 'null_booleankey_nilvalue'
|
47
51
|
it_should_behave_like 'null_booleankey_integervalue'
|
52
|
+
it_should_behave_like 'null_booleankey_numbervalue'
|
48
53
|
it_should_behave_like 'null_nilkey_objectvalue'
|
49
54
|
it_should_behave_like 'null_nilkey_stringvalue'
|
50
55
|
it_should_behave_like 'null_nilkey_hashvalue'
|
51
56
|
it_should_behave_like 'null_nilkey_booleanvalue'
|
52
57
|
it_should_behave_like 'null_nilkey_nilvalue'
|
53
58
|
it_should_behave_like 'null_nilkey_integervalue'
|
59
|
+
it_should_behave_like 'null_nilkey_numbervalue'
|
54
60
|
it_should_behave_like 'null_integerkey_objectvalue'
|
55
61
|
it_should_behave_like 'null_integerkey_stringvalue'
|
56
62
|
it_should_behave_like 'null_integerkey_hashvalue'
|
57
63
|
it_should_behave_like 'null_integerkey_booleanvalue'
|
58
64
|
it_should_behave_like 'null_integerkey_nilvalue'
|
59
65
|
it_should_behave_like 'null_integerkey_integervalue'
|
66
|
+
it_should_behave_like 'null_integerkey_numbervalue'
|
67
|
+
it_should_behave_like 'null_numberkey_objectvalue'
|
68
|
+
it_should_behave_like 'null_numberkey_stringvalue'
|
69
|
+
it_should_behave_like 'null_numberkey_hashvalue'
|
70
|
+
it_should_behave_like 'null_numberkey_booleanvalue'
|
71
|
+
it_should_behave_like 'null_numberkey_nilvalue'
|
72
|
+
it_should_behave_like 'null_numberkey_integervalue'
|
73
|
+
it_should_behave_like 'null_numberkey_numbervalue'
|
60
74
|
it_should_behave_like 'persist_objectkey_objectvalue'
|
61
75
|
it_should_behave_like 'persist_objectkey_stringvalue'
|
62
76
|
it_should_behave_like 'persist_objectkey_hashvalue'
|
63
77
|
it_should_behave_like 'persist_objectkey_booleanvalue'
|
64
78
|
it_should_behave_like 'persist_objectkey_nilvalue'
|
65
79
|
it_should_behave_like 'persist_objectkey_integervalue'
|
80
|
+
it_should_behave_like 'persist_objectkey_numbervalue'
|
66
81
|
it_should_behave_like 'persist_stringkey_objectvalue'
|
67
82
|
it_should_behave_like 'persist_stringkey_stringvalue'
|
68
83
|
it_should_behave_like 'persist_stringkey_hashvalue'
|
69
84
|
it_should_behave_like 'persist_stringkey_booleanvalue'
|
70
85
|
it_should_behave_like 'persist_stringkey_nilvalue'
|
71
86
|
it_should_behave_like 'persist_stringkey_integervalue'
|
87
|
+
it_should_behave_like 'persist_stringkey_numbervalue'
|
72
88
|
it_should_behave_like 'persist_hashkey_objectvalue'
|
73
89
|
it_should_behave_like 'persist_hashkey_stringvalue'
|
74
90
|
it_should_behave_like 'persist_hashkey_hashvalue'
|
75
91
|
it_should_behave_like 'persist_hashkey_booleanvalue'
|
76
92
|
it_should_behave_like 'persist_hashkey_nilvalue'
|
77
93
|
it_should_behave_like 'persist_hashkey_integervalue'
|
94
|
+
it_should_behave_like 'persist_hashkey_numbervalue'
|
78
95
|
it_should_behave_like 'persist_booleankey_objectvalue'
|
79
96
|
it_should_behave_like 'persist_booleankey_stringvalue'
|
80
97
|
it_should_behave_like 'persist_booleankey_hashvalue'
|
81
98
|
it_should_behave_like 'persist_booleankey_booleanvalue'
|
82
99
|
it_should_behave_like 'persist_booleankey_nilvalue'
|
83
100
|
it_should_behave_like 'persist_booleankey_integervalue'
|
101
|
+
it_should_behave_like 'persist_booleankey_numbervalue'
|
84
102
|
it_should_behave_like 'persist_nilkey_objectvalue'
|
85
103
|
it_should_behave_like 'persist_nilkey_stringvalue'
|
86
104
|
it_should_behave_like 'persist_nilkey_hashvalue'
|
87
105
|
it_should_behave_like 'persist_nilkey_booleanvalue'
|
88
106
|
it_should_behave_like 'persist_nilkey_nilvalue'
|
89
107
|
it_should_behave_like 'persist_nilkey_integervalue'
|
108
|
+
it_should_behave_like 'persist_nilkey_numbervalue'
|
90
109
|
it_should_behave_like 'persist_integerkey_objectvalue'
|
91
110
|
it_should_behave_like 'persist_integerkey_stringvalue'
|
92
111
|
it_should_behave_like 'persist_integerkey_hashvalue'
|
93
112
|
it_should_behave_like 'persist_integerkey_booleanvalue'
|
94
113
|
it_should_behave_like 'persist_integerkey_nilvalue'
|
95
114
|
it_should_behave_like 'persist_integerkey_integervalue'
|
115
|
+
it_should_behave_like 'persist_integerkey_numbervalue'
|
116
|
+
it_should_behave_like 'persist_numberkey_objectvalue'
|
117
|
+
it_should_behave_like 'persist_numberkey_stringvalue'
|
118
|
+
it_should_behave_like 'persist_numberkey_hashvalue'
|
119
|
+
it_should_behave_like 'persist_numberkey_booleanvalue'
|
120
|
+
it_should_behave_like 'persist_numberkey_nilvalue'
|
121
|
+
it_should_behave_like 'persist_numberkey_integervalue'
|
122
|
+
it_should_behave_like 'persist_numberkey_numbervalue'
|
96
123
|
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
97
124
|
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
98
125
|
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
@@ -111,42 +138,58 @@ describe_moneta "simple_couch" do
|
|
111
138
|
it_should_behave_like 'returndifferent_integerkey_objectvalue'
|
112
139
|
it_should_behave_like 'returndifferent_integerkey_stringvalue'
|
113
140
|
it_should_behave_like 'returndifferent_integerkey_hashvalue'
|
141
|
+
it_should_behave_like 'returndifferent_numberkey_objectvalue'
|
142
|
+
it_should_behave_like 'returndifferent_numberkey_stringvalue'
|
143
|
+
it_should_behave_like 'returndifferent_numberkey_hashvalue'
|
114
144
|
it_should_behave_like 'store_objectkey_objectvalue'
|
115
145
|
it_should_behave_like 'store_objectkey_stringvalue'
|
116
146
|
it_should_behave_like 'store_objectkey_hashvalue'
|
117
147
|
it_should_behave_like 'store_objectkey_booleanvalue'
|
118
148
|
it_should_behave_like 'store_objectkey_nilvalue'
|
119
149
|
it_should_behave_like 'store_objectkey_integervalue'
|
150
|
+
it_should_behave_like 'store_objectkey_numbervalue'
|
120
151
|
it_should_behave_like 'store_stringkey_objectvalue'
|
121
152
|
it_should_behave_like 'store_stringkey_stringvalue'
|
122
153
|
it_should_behave_like 'store_stringkey_hashvalue'
|
123
154
|
it_should_behave_like 'store_stringkey_booleanvalue'
|
124
155
|
it_should_behave_like 'store_stringkey_nilvalue'
|
125
156
|
it_should_behave_like 'store_stringkey_integervalue'
|
157
|
+
it_should_behave_like 'store_stringkey_numbervalue'
|
126
158
|
it_should_behave_like 'store_hashkey_objectvalue'
|
127
159
|
it_should_behave_like 'store_hashkey_stringvalue'
|
128
160
|
it_should_behave_like 'store_hashkey_hashvalue'
|
129
161
|
it_should_behave_like 'store_hashkey_booleanvalue'
|
130
162
|
it_should_behave_like 'store_hashkey_nilvalue'
|
131
163
|
it_should_behave_like 'store_hashkey_integervalue'
|
164
|
+
it_should_behave_like 'store_hashkey_numbervalue'
|
132
165
|
it_should_behave_like 'store_booleankey_objectvalue'
|
133
166
|
it_should_behave_like 'store_booleankey_stringvalue'
|
134
167
|
it_should_behave_like 'store_booleankey_hashvalue'
|
135
168
|
it_should_behave_like 'store_booleankey_booleanvalue'
|
136
169
|
it_should_behave_like 'store_booleankey_nilvalue'
|
137
170
|
it_should_behave_like 'store_booleankey_integervalue'
|
171
|
+
it_should_behave_like 'store_booleankey_numbervalue'
|
138
172
|
it_should_behave_like 'store_nilkey_objectvalue'
|
139
173
|
it_should_behave_like 'store_nilkey_stringvalue'
|
140
174
|
it_should_behave_like 'store_nilkey_hashvalue'
|
141
175
|
it_should_behave_like 'store_nilkey_booleanvalue'
|
142
176
|
it_should_behave_like 'store_nilkey_nilvalue'
|
143
177
|
it_should_behave_like 'store_nilkey_integervalue'
|
178
|
+
it_should_behave_like 'store_nilkey_numbervalue'
|
144
179
|
it_should_behave_like 'store_integerkey_objectvalue'
|
145
180
|
it_should_behave_like 'store_integerkey_stringvalue'
|
146
181
|
it_should_behave_like 'store_integerkey_hashvalue'
|
147
182
|
it_should_behave_like 'store_integerkey_booleanvalue'
|
148
183
|
it_should_behave_like 'store_integerkey_nilvalue'
|
149
184
|
it_should_behave_like 'store_integerkey_integervalue'
|
185
|
+
it_should_behave_like 'store_integerkey_numbervalue'
|
186
|
+
it_should_behave_like 'store_numberkey_objectvalue'
|
187
|
+
it_should_behave_like 'store_numberkey_stringvalue'
|
188
|
+
it_should_behave_like 'store_numberkey_hashvalue'
|
189
|
+
it_should_behave_like 'store_numberkey_booleanvalue'
|
190
|
+
it_should_behave_like 'store_numberkey_nilvalue'
|
191
|
+
it_should_behave_like 'store_numberkey_integervalue'
|
192
|
+
it_should_behave_like 'store_numberkey_numbervalue'
|
150
193
|
it_should_behave_like 'store_large'
|
151
194
|
it_should_behave_like 'transform_value'
|
152
195
|
end
|
@@ -3,7 +3,7 @@ require 'helper'
|
|
3
3
|
|
4
4
|
describe_moneta "simple_couch_with_expires" do
|
5
5
|
def features
|
6
|
-
[:expires]
|
6
|
+
[:create, :expires]
|
7
7
|
end
|
8
8
|
|
9
9
|
def new_store
|
@@ -15,12 +15,14 @@ describe_moneta "simple_couch_with_expires" do
|
|
15
15
|
end
|
16
16
|
|
17
17
|
include_context 'setup_store'
|
18
|
+
it_should_behave_like 'concurrent_create'
|
19
|
+
it_should_behave_like 'create'
|
20
|
+
it_should_behave_like 'create_expires'
|
18
21
|
it_should_behave_like 'expires'
|
19
22
|
it_should_behave_like 'features'
|
20
23
|
it_should_behave_like 'marshallable_key'
|
21
24
|
it_should_behave_like 'marshallable_value'
|
22
25
|
it_should_behave_like 'multiprocess'
|
23
|
-
it_should_behave_like 'not_create'
|
24
26
|
it_should_behave_like 'not_increment'
|
25
27
|
it_should_behave_like 'null_objectkey_objectvalue'
|
26
28
|
it_should_behave_like 'null_objectkey_stringvalue'
|
@@ -28,72 +30,98 @@ describe_moneta "simple_couch_with_expires" do
|
|
28
30
|
it_should_behave_like 'null_objectkey_booleanvalue'
|
29
31
|
it_should_behave_like 'null_objectkey_nilvalue'
|
30
32
|
it_should_behave_like 'null_objectkey_integervalue'
|
33
|
+
it_should_behave_like 'null_objectkey_numbervalue'
|
31
34
|
it_should_behave_like 'null_stringkey_objectvalue'
|
32
35
|
it_should_behave_like 'null_stringkey_stringvalue'
|
33
36
|
it_should_behave_like 'null_stringkey_hashvalue'
|
34
37
|
it_should_behave_like 'null_stringkey_booleanvalue'
|
35
38
|
it_should_behave_like 'null_stringkey_nilvalue'
|
36
39
|
it_should_behave_like 'null_stringkey_integervalue'
|
40
|
+
it_should_behave_like 'null_stringkey_numbervalue'
|
37
41
|
it_should_behave_like 'null_hashkey_objectvalue'
|
38
42
|
it_should_behave_like 'null_hashkey_stringvalue'
|
39
43
|
it_should_behave_like 'null_hashkey_hashvalue'
|
40
44
|
it_should_behave_like 'null_hashkey_booleanvalue'
|
41
45
|
it_should_behave_like 'null_hashkey_nilvalue'
|
42
46
|
it_should_behave_like 'null_hashkey_integervalue'
|
47
|
+
it_should_behave_like 'null_hashkey_numbervalue'
|
43
48
|
it_should_behave_like 'null_booleankey_objectvalue'
|
44
49
|
it_should_behave_like 'null_booleankey_stringvalue'
|
45
50
|
it_should_behave_like 'null_booleankey_hashvalue'
|
46
51
|
it_should_behave_like 'null_booleankey_booleanvalue'
|
47
52
|
it_should_behave_like 'null_booleankey_nilvalue'
|
48
53
|
it_should_behave_like 'null_booleankey_integervalue'
|
54
|
+
it_should_behave_like 'null_booleankey_numbervalue'
|
49
55
|
it_should_behave_like 'null_nilkey_objectvalue'
|
50
56
|
it_should_behave_like 'null_nilkey_stringvalue'
|
51
57
|
it_should_behave_like 'null_nilkey_hashvalue'
|
52
58
|
it_should_behave_like 'null_nilkey_booleanvalue'
|
53
59
|
it_should_behave_like 'null_nilkey_nilvalue'
|
54
60
|
it_should_behave_like 'null_nilkey_integervalue'
|
61
|
+
it_should_behave_like 'null_nilkey_numbervalue'
|
55
62
|
it_should_behave_like 'null_integerkey_objectvalue'
|
56
63
|
it_should_behave_like 'null_integerkey_stringvalue'
|
57
64
|
it_should_behave_like 'null_integerkey_hashvalue'
|
58
65
|
it_should_behave_like 'null_integerkey_booleanvalue'
|
59
66
|
it_should_behave_like 'null_integerkey_nilvalue'
|
60
67
|
it_should_behave_like 'null_integerkey_integervalue'
|
68
|
+
it_should_behave_like 'null_integerkey_numbervalue'
|
69
|
+
it_should_behave_like 'null_numberkey_objectvalue'
|
70
|
+
it_should_behave_like 'null_numberkey_stringvalue'
|
71
|
+
it_should_behave_like 'null_numberkey_hashvalue'
|
72
|
+
it_should_behave_like 'null_numberkey_booleanvalue'
|
73
|
+
it_should_behave_like 'null_numberkey_nilvalue'
|
74
|
+
it_should_behave_like 'null_numberkey_integervalue'
|
75
|
+
it_should_behave_like 'null_numberkey_numbervalue'
|
61
76
|
it_should_behave_like 'persist_objectkey_objectvalue'
|
62
77
|
it_should_behave_like 'persist_objectkey_stringvalue'
|
63
78
|
it_should_behave_like 'persist_objectkey_hashvalue'
|
64
79
|
it_should_behave_like 'persist_objectkey_booleanvalue'
|
65
80
|
it_should_behave_like 'persist_objectkey_nilvalue'
|
66
81
|
it_should_behave_like 'persist_objectkey_integervalue'
|
82
|
+
it_should_behave_like 'persist_objectkey_numbervalue'
|
67
83
|
it_should_behave_like 'persist_stringkey_objectvalue'
|
68
84
|
it_should_behave_like 'persist_stringkey_stringvalue'
|
69
85
|
it_should_behave_like 'persist_stringkey_hashvalue'
|
70
86
|
it_should_behave_like 'persist_stringkey_booleanvalue'
|
71
87
|
it_should_behave_like 'persist_stringkey_nilvalue'
|
72
88
|
it_should_behave_like 'persist_stringkey_integervalue'
|
89
|
+
it_should_behave_like 'persist_stringkey_numbervalue'
|
73
90
|
it_should_behave_like 'persist_hashkey_objectvalue'
|
74
91
|
it_should_behave_like 'persist_hashkey_stringvalue'
|
75
92
|
it_should_behave_like 'persist_hashkey_hashvalue'
|
76
93
|
it_should_behave_like 'persist_hashkey_booleanvalue'
|
77
94
|
it_should_behave_like 'persist_hashkey_nilvalue'
|
78
95
|
it_should_behave_like 'persist_hashkey_integervalue'
|
96
|
+
it_should_behave_like 'persist_hashkey_numbervalue'
|
79
97
|
it_should_behave_like 'persist_booleankey_objectvalue'
|
80
98
|
it_should_behave_like 'persist_booleankey_stringvalue'
|
81
99
|
it_should_behave_like 'persist_booleankey_hashvalue'
|
82
100
|
it_should_behave_like 'persist_booleankey_booleanvalue'
|
83
101
|
it_should_behave_like 'persist_booleankey_nilvalue'
|
84
102
|
it_should_behave_like 'persist_booleankey_integervalue'
|
103
|
+
it_should_behave_like 'persist_booleankey_numbervalue'
|
85
104
|
it_should_behave_like 'persist_nilkey_objectvalue'
|
86
105
|
it_should_behave_like 'persist_nilkey_stringvalue'
|
87
106
|
it_should_behave_like 'persist_nilkey_hashvalue'
|
88
107
|
it_should_behave_like 'persist_nilkey_booleanvalue'
|
89
108
|
it_should_behave_like 'persist_nilkey_nilvalue'
|
90
109
|
it_should_behave_like 'persist_nilkey_integervalue'
|
110
|
+
it_should_behave_like 'persist_nilkey_numbervalue'
|
91
111
|
it_should_behave_like 'persist_integerkey_objectvalue'
|
92
112
|
it_should_behave_like 'persist_integerkey_stringvalue'
|
93
113
|
it_should_behave_like 'persist_integerkey_hashvalue'
|
94
114
|
it_should_behave_like 'persist_integerkey_booleanvalue'
|
95
115
|
it_should_behave_like 'persist_integerkey_nilvalue'
|
96
116
|
it_should_behave_like 'persist_integerkey_integervalue'
|
117
|
+
it_should_behave_like 'persist_integerkey_numbervalue'
|
118
|
+
it_should_behave_like 'persist_numberkey_objectvalue'
|
119
|
+
it_should_behave_like 'persist_numberkey_stringvalue'
|
120
|
+
it_should_behave_like 'persist_numberkey_hashvalue'
|
121
|
+
it_should_behave_like 'persist_numberkey_booleanvalue'
|
122
|
+
it_should_behave_like 'persist_numberkey_nilvalue'
|
123
|
+
it_should_behave_like 'persist_numberkey_integervalue'
|
124
|
+
it_should_behave_like 'persist_numberkey_numbervalue'
|
97
125
|
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
98
126
|
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
99
127
|
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
@@ -112,42 +140,58 @@ describe_moneta "simple_couch_with_expires" do
|
|
112
140
|
it_should_behave_like 'returndifferent_integerkey_objectvalue'
|
113
141
|
it_should_behave_like 'returndifferent_integerkey_stringvalue'
|
114
142
|
it_should_behave_like 'returndifferent_integerkey_hashvalue'
|
143
|
+
it_should_behave_like 'returndifferent_numberkey_objectvalue'
|
144
|
+
it_should_behave_like 'returndifferent_numberkey_stringvalue'
|
145
|
+
it_should_behave_like 'returndifferent_numberkey_hashvalue'
|
115
146
|
it_should_behave_like 'store_objectkey_objectvalue'
|
116
147
|
it_should_behave_like 'store_objectkey_stringvalue'
|
117
148
|
it_should_behave_like 'store_objectkey_hashvalue'
|
118
149
|
it_should_behave_like 'store_objectkey_booleanvalue'
|
119
150
|
it_should_behave_like 'store_objectkey_nilvalue'
|
120
151
|
it_should_behave_like 'store_objectkey_integervalue'
|
152
|
+
it_should_behave_like 'store_objectkey_numbervalue'
|
121
153
|
it_should_behave_like 'store_stringkey_objectvalue'
|
122
154
|
it_should_behave_like 'store_stringkey_stringvalue'
|
123
155
|
it_should_behave_like 'store_stringkey_hashvalue'
|
124
156
|
it_should_behave_like 'store_stringkey_booleanvalue'
|
125
157
|
it_should_behave_like 'store_stringkey_nilvalue'
|
126
158
|
it_should_behave_like 'store_stringkey_integervalue'
|
159
|
+
it_should_behave_like 'store_stringkey_numbervalue'
|
127
160
|
it_should_behave_like 'store_hashkey_objectvalue'
|
128
161
|
it_should_behave_like 'store_hashkey_stringvalue'
|
129
162
|
it_should_behave_like 'store_hashkey_hashvalue'
|
130
163
|
it_should_behave_like 'store_hashkey_booleanvalue'
|
131
164
|
it_should_behave_like 'store_hashkey_nilvalue'
|
132
165
|
it_should_behave_like 'store_hashkey_integervalue'
|
166
|
+
it_should_behave_like 'store_hashkey_numbervalue'
|
133
167
|
it_should_behave_like 'store_booleankey_objectvalue'
|
134
168
|
it_should_behave_like 'store_booleankey_stringvalue'
|
135
169
|
it_should_behave_like 'store_booleankey_hashvalue'
|
136
170
|
it_should_behave_like 'store_booleankey_booleanvalue'
|
137
171
|
it_should_behave_like 'store_booleankey_nilvalue'
|
138
172
|
it_should_behave_like 'store_booleankey_integervalue'
|
173
|
+
it_should_behave_like 'store_booleankey_numbervalue'
|
139
174
|
it_should_behave_like 'store_nilkey_objectvalue'
|
140
175
|
it_should_behave_like 'store_nilkey_stringvalue'
|
141
176
|
it_should_behave_like 'store_nilkey_hashvalue'
|
142
177
|
it_should_behave_like 'store_nilkey_booleanvalue'
|
143
178
|
it_should_behave_like 'store_nilkey_nilvalue'
|
144
179
|
it_should_behave_like 'store_nilkey_integervalue'
|
180
|
+
it_should_behave_like 'store_nilkey_numbervalue'
|
145
181
|
it_should_behave_like 'store_integerkey_objectvalue'
|
146
182
|
it_should_behave_like 'store_integerkey_stringvalue'
|
147
183
|
it_should_behave_like 'store_integerkey_hashvalue'
|
148
184
|
it_should_behave_like 'store_integerkey_booleanvalue'
|
149
185
|
it_should_behave_like 'store_integerkey_nilvalue'
|
150
186
|
it_should_behave_like 'store_integerkey_integervalue'
|
187
|
+
it_should_behave_like 'store_integerkey_numbervalue'
|
188
|
+
it_should_behave_like 'store_numberkey_objectvalue'
|
189
|
+
it_should_behave_like 'store_numberkey_stringvalue'
|
190
|
+
it_should_behave_like 'store_numberkey_hashvalue'
|
191
|
+
it_should_behave_like 'store_numberkey_booleanvalue'
|
192
|
+
it_should_behave_like 'store_numberkey_nilvalue'
|
193
|
+
it_should_behave_like 'store_numberkey_integervalue'
|
194
|
+
it_should_behave_like 'store_numberkey_numbervalue'
|
151
195
|
it_should_behave_like 'store_large'
|
152
196
|
it_should_behave_like 'transform_value_expires'
|
153
197
|
end
|