juno 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +2 -4
- data/Gemfile +3 -1
- data/README.md +40 -8
- data/benchmarks/run.rb +17 -5
- data/lib/juno/adapters/activerecord.rb +23 -14
- data/lib/juno/adapters/cassandra.rb +11 -0
- data/lib/juno/adapters/couch.rb +9 -0
- data/lib/juno/adapters/datamapper.rb +10 -0
- data/lib/juno/adapters/dbm.rb +8 -0
- data/lib/juno/adapters/file.rb +2 -0
- data/lib/juno/adapters/fog.rb +9 -0
- data/lib/juno/adapters/gdbm.rb +8 -0
- data/lib/juno/adapters/localmemcache.rb +8 -0
- data/lib/juno/adapters/lruhash.rb +8 -0
- data/lib/juno/adapters/memcached_dalli.rb +9 -0
- data/lib/juno/adapters/memcached_native.rb +10 -0
- data/lib/juno/adapters/memory.rb +2 -0
- data/lib/juno/adapters/mongo.rb +11 -0
- data/lib/juno/adapters/null.rb +2 -0
- data/lib/juno/adapters/pstore.rb +9 -2
- data/lib/juno/adapters/redis.rb +5 -0
- data/lib/juno/adapters/riak.rb +9 -0
- data/lib/juno/adapters/sdbm.rb +8 -0
- data/lib/juno/adapters/sequel.rb +10 -0
- data/lib/juno/adapters/sqlite.rb +9 -0
- data/lib/juno/adapters/tokyocabinet.rb +16 -4
- data/lib/juno/adapters/yaml.rb +2 -0
- data/lib/juno/base.rb +1 -0
- data/lib/juno/builder.rb +2 -0
- data/lib/juno/cache.rb +2 -0
- data/lib/juno/expires.rb +1 -0
- data/lib/juno/lock.rb +37 -0
- data/lib/juno/proxy.rb +1 -0
- data/lib/juno/stack.rb +2 -0
- data/lib/juno/transformer.rb +16 -4
- data/lib/juno/version.rb +3 -1
- data/lib/juno.rb +33 -2
- data/spec/adapter_activerecord_spec.rb +20 -34
- data/spec/adapter_cassandra_spec.rb +9 -23
- data/spec/adapter_couch_spec.rb +9 -23
- data/spec/adapter_datamapper_spec.rb +36 -50
- data/spec/adapter_dbm_spec.rb +9 -23
- data/spec/adapter_file_spec.rb +9 -23
- data/spec/adapter_fog_spec.rb +12 -29
- data/spec/adapter_gdbm_spec.rb +9 -23
- data/spec/adapter_localmemcache_spec.rb +9 -23
- data/spec/adapter_lruhash_spec.rb +24 -38
- data/spec/adapter_memcached_dalli_spec.rb +10 -24
- data/spec/adapter_memcached_native_spec.rb +10 -24
- data/spec/adapter_memcached_spec.rb +10 -24
- data/spec/adapter_memory_spec.rb +24 -38
- data/spec/adapter_mongo_spec.rb +9 -23
- data/spec/adapter_pstore_spec.rb +12 -26
- data/spec/adapter_redis_spec.rb +10 -24
- data/spec/adapter_riak_spec.rb +9 -23
- data/spec/adapter_sdbm_spec.rb +9 -23
- data/spec/adapter_sequel_spec.rb +9 -23
- data/spec/adapter_sqlite_spec.rb +9 -23
- data/spec/adapter_tokyocabinet_bdb_spec.rb +13 -0
- data/spec/adapter_tokyocabinet_hdb_spec.rb +13 -0
- data/spec/adapter_yaml_spec.rb +12 -26
- data/spec/cache_file_memory_spec.rb +22 -43
- data/spec/cache_memory_null_spec.rb +13 -34
- data/spec/expires_file_spec.rb +56 -76
- data/spec/expires_memory_spec.rb +35 -54
- data/spec/generate.rb +147 -160
- data/spec/helper.rb +39 -0
- data/spec/junospecs.rb +612 -610
- data/spec/lock_spec.rb +31 -0
- data/spec/null_adapter_spec.rb +15 -29
- data/spec/proxy_expires_memory_spec.rb +37 -58
- data/spec/proxy_redis_spec.rb +13 -33
- data/spec/simple_activerecord_spec.rb +34 -48
- data/spec/simple_activerecord_with_expires_spec.rb +35 -49
- data/spec/simple_cassandra_spec.rb +35 -49
- data/spec/simple_couch_spec.rb +34 -48
- data/spec/simple_couch_with_expires_spec.rb +35 -49
- data/spec/simple_datamapper_spec.rb +34 -48
- data/spec/simple_datamapper_with_expires_spec.rb +35 -49
- data/spec/simple_datamapper_with_repository_spec.rb +34 -48
- data/spec/simple_dbm_spec.rb +34 -48
- data/spec/simple_dbm_with_expires_spec.rb +35 -49
- data/spec/simple_file_spec.rb +34 -48
- data/spec/simple_file_with_expires_spec.rb +35 -49
- data/spec/simple_fog_spec.rb +37 -54
- data/spec/simple_fog_with_expires_spec.rb +39 -57
- data/spec/simple_gdbm_spec.rb +34 -48
- data/spec/simple_gdbm_with_expires_spec.rb +35 -49
- data/spec/simple_hashfile_spec.rb +34 -48
- data/spec/simple_hashfile_with_expires_spec.rb +35 -49
- data/spec/simple_localmemcache_spec.rb +34 -48
- data/spec/simple_localmemcache_with_expires_spec.rb +35 -49
- data/spec/simple_lruhash_spec.rb +34 -48
- data/spec/simple_lruhash_with_expires_spec.rb +35 -49
- data/spec/simple_memcached_dalli_spec.rb +35 -49
- data/spec/simple_memcached_native_spec.rb +35 -49
- data/spec/simple_memcached_spec.rb +35 -49
- data/spec/simple_memory_spec.rb +34 -48
- data/spec/simple_memory_with_expires_spec.rb +35 -49
- data/spec/simple_mongo_spec.rb +34 -48
- data/spec/simple_mongo_with_expires_spec.rb +35 -49
- data/spec/simple_null_spec.rb +25 -39
- data/spec/simple_pstore_spec.rb +34 -48
- data/spec/simple_pstore_with_expires_spec.rb +35 -49
- data/spec/simple_redis_spec.rb +35 -49
- data/spec/simple_riak_spec.rb +34 -48
- data/spec/simple_riak_with_expires_spec.rb +35 -49
- data/spec/simple_sdbm_spec.rb +34 -48
- data/spec/simple_sdbm_with_expires_spec.rb +35 -49
- data/spec/simple_sequel_spec.rb +34 -48
- data/spec/simple_sequel_with_expires_spec.rb +35 -49
- data/spec/simple_sqlite_spec.rb +34 -48
- data/spec/simple_sqlite_with_expires_spec.rb +35 -49
- data/spec/simple_tokyocabinet_spec.rb +34 -48
- data/spec/simple_tokyocabinet_with_expires_spec.rb +35 -49
- data/spec/simple_yaml_spec.rb +34 -48
- data/spec/simple_yaml_with_expires_spec.rb +35 -49
- data/spec/stack_file_memory_spec.rb +15 -38
- data/spec/stack_memory_file_spec.rb +14 -37
- data/spec/transformer_bson_spec.rb +20 -39
- data/spec/transformer_compress_spec.rb +17 -36
- data/spec/transformer_json_spec.rb +20 -39
- data/spec/transformer_marshal_base64_spec.rb +36 -55
- data/spec/transformer_marshal_escape_spec.rb +36 -55
- data/spec/transformer_marshal_md5_spec.rb +36 -55
- data/spec/transformer_marshal_md5_spread_spec.rb +36 -55
- data/spec/transformer_msgpack_spec.rb +20 -39
- data/spec/transformer_ox_spec.rb +40 -0
- data/spec/transformer_yaml_spec.rb +35 -54
- metadata +11 -6
- data/spec/adapter_tokyocabinet_spec.rb +0 -27
- data/spec/simpl_memory_with_expires_spec.rb +0 -53
@@ -1,53 +1,39 @@
|
|
1
|
-
# Generated
|
1
|
+
# Generated by generate.rb at 2012-12-02 18:03:24 +0100, heads/master-0-g9a90bb4
|
2
2
|
require 'helper'
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
describe "simple_file_with_expires" do
|
8
|
-
before do
|
9
|
-
@store = Juno.new(:File, :dir => File.join(make_tempdir, "simple_file_with_expires"), :expires => true)
|
10
|
-
@store.clear
|
11
|
-
end
|
12
|
-
|
13
|
-
after do
|
14
|
-
@store.close.should == nil if @store
|
15
|
-
end
|
16
|
-
|
17
|
-
it_should_behave_like 'null_objectkey_objectvalue'
|
18
|
-
it_should_behave_like 'null_objectkey_stringvalue'
|
19
|
-
it_should_behave_like 'null_objectkey_hashvalue'
|
20
|
-
it_should_behave_like 'null_stringkey_objectvalue'
|
21
|
-
it_should_behave_like 'null_stringkey_stringvalue'
|
22
|
-
it_should_behave_like 'null_stringkey_hashvalue'
|
23
|
-
it_should_behave_like 'null_hashkey_objectvalue'
|
24
|
-
it_should_behave_like 'null_hashkey_stringvalue'
|
25
|
-
it_should_behave_like 'null_hashkey_hashvalue'
|
26
|
-
it_should_behave_like 'store_objectkey_objectvalue'
|
27
|
-
it_should_behave_like 'store_objectkey_stringvalue'
|
28
|
-
it_should_behave_like 'store_objectkey_hashvalue'
|
29
|
-
it_should_behave_like 'store_stringkey_objectvalue'
|
30
|
-
it_should_behave_like 'store_stringkey_stringvalue'
|
31
|
-
it_should_behave_like 'store_stringkey_hashvalue'
|
32
|
-
it_should_behave_like 'store_hashkey_objectvalue'
|
33
|
-
it_should_behave_like 'store_hashkey_stringvalue'
|
34
|
-
it_should_behave_like 'store_hashkey_hashvalue'
|
35
|
-
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
36
|
-
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
37
|
-
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
38
|
-
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
39
|
-
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
40
|
-
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
41
|
-
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
42
|
-
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
43
|
-
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
44
|
-
it_should_behave_like 'marshallable_key'
|
45
|
-
it_should_behave_like 'expires_stringkey_stringvalue'
|
46
|
-
|
4
|
+
describe_juno "simple_file_with_expires" do
|
5
|
+
def new_store
|
6
|
+
Juno.new(:File, :dir => File.join(make_tempdir, "simple_file_with_expires"), :expires => true)
|
47
7
|
end
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
8
|
+
|
9
|
+
include_context 'setup_store'
|
10
|
+
it_should_behave_like 'null_objectkey_objectvalue'
|
11
|
+
it_should_behave_like 'null_objectkey_stringvalue'
|
12
|
+
it_should_behave_like 'null_objectkey_hashvalue'
|
13
|
+
it_should_behave_like 'null_stringkey_objectvalue'
|
14
|
+
it_should_behave_like 'null_stringkey_stringvalue'
|
15
|
+
it_should_behave_like 'null_stringkey_hashvalue'
|
16
|
+
it_should_behave_like 'null_hashkey_objectvalue'
|
17
|
+
it_should_behave_like 'null_hashkey_stringvalue'
|
18
|
+
it_should_behave_like 'null_hashkey_hashvalue'
|
19
|
+
it_should_behave_like 'store_objectkey_objectvalue'
|
20
|
+
it_should_behave_like 'store_objectkey_stringvalue'
|
21
|
+
it_should_behave_like 'store_objectkey_hashvalue'
|
22
|
+
it_should_behave_like 'store_stringkey_objectvalue'
|
23
|
+
it_should_behave_like 'store_stringkey_stringvalue'
|
24
|
+
it_should_behave_like 'store_stringkey_hashvalue'
|
25
|
+
it_should_behave_like 'store_hashkey_objectvalue'
|
26
|
+
it_should_behave_like 'store_hashkey_stringvalue'
|
27
|
+
it_should_behave_like 'store_hashkey_hashvalue'
|
28
|
+
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
29
|
+
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
30
|
+
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
31
|
+
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
32
|
+
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
33
|
+
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
34
|
+
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
35
|
+
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
36
|
+
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
37
|
+
it_should_behave_like 'marshallable_key'
|
38
|
+
it_should_behave_like 'expires_stringkey_stringvalue'
|
53
39
|
end
|
data/spec/simple_fog_spec.rb
CHANGED
@@ -1,60 +1,43 @@
|
|
1
|
-
# Generated
|
1
|
+
# Generated by generate.rb at 2012-12-02 18:03:24 +0100, heads/master-0-g9a90bb4
|
2
2
|
require 'helper'
|
3
3
|
|
4
|
-
|
4
|
+
describe_juno "simple_fog" do
|
5
5
|
require 'fog'
|
6
6
|
Fog.mock!
|
7
|
-
|
8
|
-
:
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
describe "simple_fog" do
|
13
|
-
before do
|
14
|
-
@store = Juno.new(:Fog, :aws_access_key_id => 'fake_access_key_id',
|
15
|
-
:aws_secret_access_key => 'fake_secret_access_key',
|
16
|
-
:provider => 'AWS',
|
17
|
-
:dir => 'juno')
|
18
|
-
@store.clear
|
19
|
-
end
|
20
|
-
|
21
|
-
after do
|
22
|
-
@store.close.should == nil if @store
|
23
|
-
end
|
24
|
-
|
25
|
-
it_should_behave_like 'null_objectkey_objectvalue'
|
26
|
-
it_should_behave_like 'null_objectkey_stringvalue'
|
27
|
-
it_should_behave_like 'null_objectkey_hashvalue'
|
28
|
-
it_should_behave_like 'null_stringkey_objectvalue'
|
29
|
-
it_should_behave_like 'null_stringkey_stringvalue'
|
30
|
-
it_should_behave_like 'null_stringkey_hashvalue'
|
31
|
-
it_should_behave_like 'null_hashkey_objectvalue'
|
32
|
-
it_should_behave_like 'null_hashkey_stringvalue'
|
33
|
-
it_should_behave_like 'null_hashkey_hashvalue'
|
34
|
-
it_should_behave_like 'store_objectkey_objectvalue'
|
35
|
-
it_should_behave_like 'store_objectkey_stringvalue'
|
36
|
-
it_should_behave_like 'store_objectkey_hashvalue'
|
37
|
-
it_should_behave_like 'store_stringkey_objectvalue'
|
38
|
-
it_should_behave_like 'store_stringkey_stringvalue'
|
39
|
-
it_should_behave_like 'store_stringkey_hashvalue'
|
40
|
-
it_should_behave_like 'store_hashkey_objectvalue'
|
41
|
-
it_should_behave_like 'store_hashkey_stringvalue'
|
42
|
-
it_should_behave_like 'store_hashkey_hashvalue'
|
43
|
-
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
44
|
-
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
45
|
-
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
46
|
-
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
47
|
-
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
48
|
-
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
49
|
-
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
50
|
-
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
51
|
-
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
52
|
-
it_should_behave_like 'marshallable_key'
|
53
|
-
|
7
|
+
def new_store
|
8
|
+
Juno.new(:Fog, :aws_access_key_id => 'fake_access_key_id',
|
9
|
+
:aws_secret_access_key => 'fake_secret_access_key',
|
10
|
+
:provider => 'AWS',
|
11
|
+
:dir => 'juno')
|
54
12
|
end
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
13
|
+
|
14
|
+
include_context 'setup_store'
|
15
|
+
it_should_behave_like 'null_objectkey_objectvalue'
|
16
|
+
it_should_behave_like 'null_objectkey_stringvalue'
|
17
|
+
it_should_behave_like 'null_objectkey_hashvalue'
|
18
|
+
it_should_behave_like 'null_stringkey_objectvalue'
|
19
|
+
it_should_behave_like 'null_stringkey_stringvalue'
|
20
|
+
it_should_behave_like 'null_stringkey_hashvalue'
|
21
|
+
it_should_behave_like 'null_hashkey_objectvalue'
|
22
|
+
it_should_behave_like 'null_hashkey_stringvalue'
|
23
|
+
it_should_behave_like 'null_hashkey_hashvalue'
|
24
|
+
it_should_behave_like 'store_objectkey_objectvalue'
|
25
|
+
it_should_behave_like 'store_objectkey_stringvalue'
|
26
|
+
it_should_behave_like 'store_objectkey_hashvalue'
|
27
|
+
it_should_behave_like 'store_stringkey_objectvalue'
|
28
|
+
it_should_behave_like 'store_stringkey_stringvalue'
|
29
|
+
it_should_behave_like 'store_stringkey_hashvalue'
|
30
|
+
it_should_behave_like 'store_hashkey_objectvalue'
|
31
|
+
it_should_behave_like 'store_hashkey_stringvalue'
|
32
|
+
it_should_behave_like 'store_hashkey_hashvalue'
|
33
|
+
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
34
|
+
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
35
|
+
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
36
|
+
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
37
|
+
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
38
|
+
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
39
|
+
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
40
|
+
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
41
|
+
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
42
|
+
it_should_behave_like 'marshallable_key'
|
60
43
|
end
|
@@ -1,63 +1,45 @@
|
|
1
|
-
# Generated
|
1
|
+
# Generated by generate.rb at 2012-12-02 18:03:24 +0100, heads/master-0-g9a90bb4
|
2
2
|
require 'helper'
|
3
3
|
|
4
|
-
|
4
|
+
describe_juno "simple_fog_with_expires" do
|
5
5
|
require 'fog'
|
6
6
|
Fog.mock!
|
7
|
-
|
8
|
-
:
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
describe "simple_fog_with_expires" do
|
14
|
-
before do
|
15
|
-
@store = Juno.new(:Fog, :aws_access_key_id => 'fake_access_key_id',
|
16
|
-
:aws_secret_access_key => 'fake_secret_access_key',
|
17
|
-
:provider => 'AWS',
|
18
|
-
:dir => 'juno',
|
19
|
-
:expires => true)
|
20
|
-
@store.clear
|
21
|
-
end
|
22
|
-
|
23
|
-
after do
|
24
|
-
@store.close.should == nil if @store
|
25
|
-
end
|
26
|
-
|
27
|
-
it_should_behave_like 'null_objectkey_objectvalue'
|
28
|
-
it_should_behave_like 'null_objectkey_stringvalue'
|
29
|
-
it_should_behave_like 'null_objectkey_hashvalue'
|
30
|
-
it_should_behave_like 'null_stringkey_objectvalue'
|
31
|
-
it_should_behave_like 'null_stringkey_stringvalue'
|
32
|
-
it_should_behave_like 'null_stringkey_hashvalue'
|
33
|
-
it_should_behave_like 'null_hashkey_objectvalue'
|
34
|
-
it_should_behave_like 'null_hashkey_stringvalue'
|
35
|
-
it_should_behave_like 'null_hashkey_hashvalue'
|
36
|
-
it_should_behave_like 'store_objectkey_objectvalue'
|
37
|
-
it_should_behave_like 'store_objectkey_stringvalue'
|
38
|
-
it_should_behave_like 'store_objectkey_hashvalue'
|
39
|
-
it_should_behave_like 'store_stringkey_objectvalue'
|
40
|
-
it_should_behave_like 'store_stringkey_stringvalue'
|
41
|
-
it_should_behave_like 'store_stringkey_hashvalue'
|
42
|
-
it_should_behave_like 'store_hashkey_objectvalue'
|
43
|
-
it_should_behave_like 'store_hashkey_stringvalue'
|
44
|
-
it_should_behave_like 'store_hashkey_hashvalue'
|
45
|
-
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
46
|
-
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
47
|
-
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
48
|
-
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
49
|
-
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
50
|
-
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
51
|
-
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
52
|
-
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
53
|
-
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
54
|
-
it_should_behave_like 'marshallable_key'
|
55
|
-
it_should_behave_like 'expires_stringkey_stringvalue'
|
56
|
-
|
7
|
+
def new_store
|
8
|
+
Juno.new(:Fog, :aws_access_key_id => 'fake_access_key_id',
|
9
|
+
:aws_secret_access_key => 'fake_secret_access_key',
|
10
|
+
:provider => 'AWS',
|
11
|
+
:dir => 'juno',
|
12
|
+
:expires => true)
|
57
13
|
end
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
14
|
+
|
15
|
+
include_context 'setup_store'
|
16
|
+
it_should_behave_like 'null_objectkey_objectvalue'
|
17
|
+
it_should_behave_like 'null_objectkey_stringvalue'
|
18
|
+
it_should_behave_like 'null_objectkey_hashvalue'
|
19
|
+
it_should_behave_like 'null_stringkey_objectvalue'
|
20
|
+
it_should_behave_like 'null_stringkey_stringvalue'
|
21
|
+
it_should_behave_like 'null_stringkey_hashvalue'
|
22
|
+
it_should_behave_like 'null_hashkey_objectvalue'
|
23
|
+
it_should_behave_like 'null_hashkey_stringvalue'
|
24
|
+
it_should_behave_like 'null_hashkey_hashvalue'
|
25
|
+
it_should_behave_like 'store_objectkey_objectvalue'
|
26
|
+
it_should_behave_like 'store_objectkey_stringvalue'
|
27
|
+
it_should_behave_like 'store_objectkey_hashvalue'
|
28
|
+
it_should_behave_like 'store_stringkey_objectvalue'
|
29
|
+
it_should_behave_like 'store_stringkey_stringvalue'
|
30
|
+
it_should_behave_like 'store_stringkey_hashvalue'
|
31
|
+
it_should_behave_like 'store_hashkey_objectvalue'
|
32
|
+
it_should_behave_like 'store_hashkey_stringvalue'
|
33
|
+
it_should_behave_like 'store_hashkey_hashvalue'
|
34
|
+
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
35
|
+
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
36
|
+
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
37
|
+
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
38
|
+
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
39
|
+
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
40
|
+
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
41
|
+
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
42
|
+
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
43
|
+
it_should_behave_like 'marshallable_key'
|
44
|
+
it_should_behave_like 'expires_stringkey_stringvalue'
|
63
45
|
end
|
data/spec/simple_gdbm_spec.rb
CHANGED
@@ -1,52 +1,38 @@
|
|
1
|
-
# Generated
|
1
|
+
# Generated by generate.rb at 2012-12-02 18:03:24 +0100, heads/master-0-g9a90bb4
|
2
2
|
require 'helper'
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
describe "simple_gdbm" do
|
8
|
-
before do
|
9
|
-
@store = Juno.new(:GDBM, :file => File.join(make_tempdir, "simple_gdbm"))
|
10
|
-
@store.clear
|
11
|
-
end
|
12
|
-
|
13
|
-
after do
|
14
|
-
@store.close.should == nil if @store
|
15
|
-
end
|
16
|
-
|
17
|
-
it_should_behave_like 'null_objectkey_objectvalue'
|
18
|
-
it_should_behave_like 'null_objectkey_stringvalue'
|
19
|
-
it_should_behave_like 'null_objectkey_hashvalue'
|
20
|
-
it_should_behave_like 'null_stringkey_objectvalue'
|
21
|
-
it_should_behave_like 'null_stringkey_stringvalue'
|
22
|
-
it_should_behave_like 'null_stringkey_hashvalue'
|
23
|
-
it_should_behave_like 'null_hashkey_objectvalue'
|
24
|
-
it_should_behave_like 'null_hashkey_stringvalue'
|
25
|
-
it_should_behave_like 'null_hashkey_hashvalue'
|
26
|
-
it_should_behave_like 'store_objectkey_objectvalue'
|
27
|
-
it_should_behave_like 'store_objectkey_stringvalue'
|
28
|
-
it_should_behave_like 'store_objectkey_hashvalue'
|
29
|
-
it_should_behave_like 'store_stringkey_objectvalue'
|
30
|
-
it_should_behave_like 'store_stringkey_stringvalue'
|
31
|
-
it_should_behave_like 'store_stringkey_hashvalue'
|
32
|
-
it_should_behave_like 'store_hashkey_objectvalue'
|
33
|
-
it_should_behave_like 'store_hashkey_stringvalue'
|
34
|
-
it_should_behave_like 'store_hashkey_hashvalue'
|
35
|
-
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
36
|
-
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
37
|
-
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
38
|
-
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
39
|
-
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
40
|
-
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
41
|
-
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
42
|
-
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
43
|
-
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
44
|
-
it_should_behave_like 'marshallable_key'
|
45
|
-
|
4
|
+
describe_juno "simple_gdbm" do
|
5
|
+
def new_store
|
6
|
+
Juno.new(:GDBM, :file => File.join(make_tempdir, "simple_gdbm"))
|
46
7
|
end
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
8
|
+
|
9
|
+
include_context 'setup_store'
|
10
|
+
it_should_behave_like 'null_objectkey_objectvalue'
|
11
|
+
it_should_behave_like 'null_objectkey_stringvalue'
|
12
|
+
it_should_behave_like 'null_objectkey_hashvalue'
|
13
|
+
it_should_behave_like 'null_stringkey_objectvalue'
|
14
|
+
it_should_behave_like 'null_stringkey_stringvalue'
|
15
|
+
it_should_behave_like 'null_stringkey_hashvalue'
|
16
|
+
it_should_behave_like 'null_hashkey_objectvalue'
|
17
|
+
it_should_behave_like 'null_hashkey_stringvalue'
|
18
|
+
it_should_behave_like 'null_hashkey_hashvalue'
|
19
|
+
it_should_behave_like 'store_objectkey_objectvalue'
|
20
|
+
it_should_behave_like 'store_objectkey_stringvalue'
|
21
|
+
it_should_behave_like 'store_objectkey_hashvalue'
|
22
|
+
it_should_behave_like 'store_stringkey_objectvalue'
|
23
|
+
it_should_behave_like 'store_stringkey_stringvalue'
|
24
|
+
it_should_behave_like 'store_stringkey_hashvalue'
|
25
|
+
it_should_behave_like 'store_hashkey_objectvalue'
|
26
|
+
it_should_behave_like 'store_hashkey_stringvalue'
|
27
|
+
it_should_behave_like 'store_hashkey_hashvalue'
|
28
|
+
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
29
|
+
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
30
|
+
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
31
|
+
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
32
|
+
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
33
|
+
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
34
|
+
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
35
|
+
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
36
|
+
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
37
|
+
it_should_behave_like 'marshallable_key'
|
52
38
|
end
|
@@ -1,53 +1,39 @@
|
|
1
|
-
# Generated
|
1
|
+
# Generated by generate.rb at 2012-12-02 18:03:24 +0100, heads/master-0-g9a90bb4
|
2
2
|
require 'helper'
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
describe "simple_gdbm_with_expires" do
|
8
|
-
before do
|
9
|
-
@store = Juno.new(:GDBM, :file => File.join(make_tempdir, "simple_gdbm_with_expires"), :expires => true)
|
10
|
-
@store.clear
|
11
|
-
end
|
12
|
-
|
13
|
-
after do
|
14
|
-
@store.close.should == nil if @store
|
15
|
-
end
|
16
|
-
|
17
|
-
it_should_behave_like 'null_objectkey_objectvalue'
|
18
|
-
it_should_behave_like 'null_objectkey_stringvalue'
|
19
|
-
it_should_behave_like 'null_objectkey_hashvalue'
|
20
|
-
it_should_behave_like 'null_stringkey_objectvalue'
|
21
|
-
it_should_behave_like 'null_stringkey_stringvalue'
|
22
|
-
it_should_behave_like 'null_stringkey_hashvalue'
|
23
|
-
it_should_behave_like 'null_hashkey_objectvalue'
|
24
|
-
it_should_behave_like 'null_hashkey_stringvalue'
|
25
|
-
it_should_behave_like 'null_hashkey_hashvalue'
|
26
|
-
it_should_behave_like 'store_objectkey_objectvalue'
|
27
|
-
it_should_behave_like 'store_objectkey_stringvalue'
|
28
|
-
it_should_behave_like 'store_objectkey_hashvalue'
|
29
|
-
it_should_behave_like 'store_stringkey_objectvalue'
|
30
|
-
it_should_behave_like 'store_stringkey_stringvalue'
|
31
|
-
it_should_behave_like 'store_stringkey_hashvalue'
|
32
|
-
it_should_behave_like 'store_hashkey_objectvalue'
|
33
|
-
it_should_behave_like 'store_hashkey_stringvalue'
|
34
|
-
it_should_behave_like 'store_hashkey_hashvalue'
|
35
|
-
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
36
|
-
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
37
|
-
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
38
|
-
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
39
|
-
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
40
|
-
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
41
|
-
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
42
|
-
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
43
|
-
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
44
|
-
it_should_behave_like 'marshallable_key'
|
45
|
-
it_should_behave_like 'expires_stringkey_stringvalue'
|
46
|
-
|
4
|
+
describe_juno "simple_gdbm_with_expires" do
|
5
|
+
def new_store
|
6
|
+
Juno.new(:GDBM, :file => File.join(make_tempdir, "simple_gdbm_with_expires"), :expires => true)
|
47
7
|
end
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
8
|
+
|
9
|
+
include_context 'setup_store'
|
10
|
+
it_should_behave_like 'null_objectkey_objectvalue'
|
11
|
+
it_should_behave_like 'null_objectkey_stringvalue'
|
12
|
+
it_should_behave_like 'null_objectkey_hashvalue'
|
13
|
+
it_should_behave_like 'null_stringkey_objectvalue'
|
14
|
+
it_should_behave_like 'null_stringkey_stringvalue'
|
15
|
+
it_should_behave_like 'null_stringkey_hashvalue'
|
16
|
+
it_should_behave_like 'null_hashkey_objectvalue'
|
17
|
+
it_should_behave_like 'null_hashkey_stringvalue'
|
18
|
+
it_should_behave_like 'null_hashkey_hashvalue'
|
19
|
+
it_should_behave_like 'store_objectkey_objectvalue'
|
20
|
+
it_should_behave_like 'store_objectkey_stringvalue'
|
21
|
+
it_should_behave_like 'store_objectkey_hashvalue'
|
22
|
+
it_should_behave_like 'store_stringkey_objectvalue'
|
23
|
+
it_should_behave_like 'store_stringkey_stringvalue'
|
24
|
+
it_should_behave_like 'store_stringkey_hashvalue'
|
25
|
+
it_should_behave_like 'store_hashkey_objectvalue'
|
26
|
+
it_should_behave_like 'store_hashkey_stringvalue'
|
27
|
+
it_should_behave_like 'store_hashkey_hashvalue'
|
28
|
+
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
29
|
+
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
30
|
+
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
31
|
+
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
32
|
+
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
33
|
+
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
34
|
+
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
35
|
+
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
36
|
+
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
37
|
+
it_should_behave_like 'marshallable_key'
|
38
|
+
it_should_behave_like 'expires_stringkey_stringvalue'
|
53
39
|
end
|
@@ -1,52 +1,38 @@
|
|
1
|
-
# Generated
|
1
|
+
# Generated by generate.rb at 2012-12-02 18:03:24 +0100, heads/master-0-g9a90bb4
|
2
2
|
require 'helper'
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
describe "simple_hashfile" do
|
8
|
-
before do
|
9
|
-
@store = Juno.new(:HashFile, :dir => File.join(make_tempdir, "simple_hashfile"))
|
10
|
-
@store.clear
|
11
|
-
end
|
12
|
-
|
13
|
-
after do
|
14
|
-
@store.close.should == nil if @store
|
15
|
-
end
|
16
|
-
|
17
|
-
it_should_behave_like 'null_objectkey_objectvalue'
|
18
|
-
it_should_behave_like 'null_objectkey_stringvalue'
|
19
|
-
it_should_behave_like 'null_objectkey_hashvalue'
|
20
|
-
it_should_behave_like 'null_stringkey_objectvalue'
|
21
|
-
it_should_behave_like 'null_stringkey_stringvalue'
|
22
|
-
it_should_behave_like 'null_stringkey_hashvalue'
|
23
|
-
it_should_behave_like 'null_hashkey_objectvalue'
|
24
|
-
it_should_behave_like 'null_hashkey_stringvalue'
|
25
|
-
it_should_behave_like 'null_hashkey_hashvalue'
|
26
|
-
it_should_behave_like 'store_objectkey_objectvalue'
|
27
|
-
it_should_behave_like 'store_objectkey_stringvalue'
|
28
|
-
it_should_behave_like 'store_objectkey_hashvalue'
|
29
|
-
it_should_behave_like 'store_stringkey_objectvalue'
|
30
|
-
it_should_behave_like 'store_stringkey_stringvalue'
|
31
|
-
it_should_behave_like 'store_stringkey_hashvalue'
|
32
|
-
it_should_behave_like 'store_hashkey_objectvalue'
|
33
|
-
it_should_behave_like 'store_hashkey_stringvalue'
|
34
|
-
it_should_behave_like 'store_hashkey_hashvalue'
|
35
|
-
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
36
|
-
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
37
|
-
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
38
|
-
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
39
|
-
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
40
|
-
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
41
|
-
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
42
|
-
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
43
|
-
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
44
|
-
it_should_behave_like 'marshallable_key'
|
45
|
-
|
4
|
+
describe_juno "simple_hashfile" do
|
5
|
+
def new_store
|
6
|
+
Juno.new(:HashFile, :dir => File.join(make_tempdir, "simple_hashfile"))
|
46
7
|
end
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
8
|
+
|
9
|
+
include_context 'setup_store'
|
10
|
+
it_should_behave_like 'null_objectkey_objectvalue'
|
11
|
+
it_should_behave_like 'null_objectkey_stringvalue'
|
12
|
+
it_should_behave_like 'null_objectkey_hashvalue'
|
13
|
+
it_should_behave_like 'null_stringkey_objectvalue'
|
14
|
+
it_should_behave_like 'null_stringkey_stringvalue'
|
15
|
+
it_should_behave_like 'null_stringkey_hashvalue'
|
16
|
+
it_should_behave_like 'null_hashkey_objectvalue'
|
17
|
+
it_should_behave_like 'null_hashkey_stringvalue'
|
18
|
+
it_should_behave_like 'null_hashkey_hashvalue'
|
19
|
+
it_should_behave_like 'store_objectkey_objectvalue'
|
20
|
+
it_should_behave_like 'store_objectkey_stringvalue'
|
21
|
+
it_should_behave_like 'store_objectkey_hashvalue'
|
22
|
+
it_should_behave_like 'store_stringkey_objectvalue'
|
23
|
+
it_should_behave_like 'store_stringkey_stringvalue'
|
24
|
+
it_should_behave_like 'store_stringkey_hashvalue'
|
25
|
+
it_should_behave_like 'store_hashkey_objectvalue'
|
26
|
+
it_should_behave_like 'store_hashkey_stringvalue'
|
27
|
+
it_should_behave_like 'store_hashkey_hashvalue'
|
28
|
+
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
29
|
+
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
30
|
+
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
31
|
+
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
32
|
+
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
33
|
+
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
34
|
+
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
35
|
+
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
36
|
+
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
37
|
+
it_should_behave_like 'marshallable_key'
|
52
38
|
end
|
@@ -1,53 +1,39 @@
|
|
1
|
-
# Generated
|
1
|
+
# Generated by generate.rb at 2012-12-02 18:03:24 +0100, heads/master-0-g9a90bb4
|
2
2
|
require 'helper'
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
describe "simple_hashfile_with_expires" do
|
8
|
-
before do
|
9
|
-
@store = Juno.new(:HashFile, :dir => File.join(make_tempdir, "simple_hashfile_with_expires"), :expires => true)
|
10
|
-
@store.clear
|
11
|
-
end
|
12
|
-
|
13
|
-
after do
|
14
|
-
@store.close.should == nil if @store
|
15
|
-
end
|
16
|
-
|
17
|
-
it_should_behave_like 'null_objectkey_objectvalue'
|
18
|
-
it_should_behave_like 'null_objectkey_stringvalue'
|
19
|
-
it_should_behave_like 'null_objectkey_hashvalue'
|
20
|
-
it_should_behave_like 'null_stringkey_objectvalue'
|
21
|
-
it_should_behave_like 'null_stringkey_stringvalue'
|
22
|
-
it_should_behave_like 'null_stringkey_hashvalue'
|
23
|
-
it_should_behave_like 'null_hashkey_objectvalue'
|
24
|
-
it_should_behave_like 'null_hashkey_stringvalue'
|
25
|
-
it_should_behave_like 'null_hashkey_hashvalue'
|
26
|
-
it_should_behave_like 'store_objectkey_objectvalue'
|
27
|
-
it_should_behave_like 'store_objectkey_stringvalue'
|
28
|
-
it_should_behave_like 'store_objectkey_hashvalue'
|
29
|
-
it_should_behave_like 'store_stringkey_objectvalue'
|
30
|
-
it_should_behave_like 'store_stringkey_stringvalue'
|
31
|
-
it_should_behave_like 'store_stringkey_hashvalue'
|
32
|
-
it_should_behave_like 'store_hashkey_objectvalue'
|
33
|
-
it_should_behave_like 'store_hashkey_stringvalue'
|
34
|
-
it_should_behave_like 'store_hashkey_hashvalue'
|
35
|
-
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
36
|
-
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
37
|
-
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
38
|
-
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
39
|
-
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
40
|
-
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
41
|
-
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
42
|
-
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
43
|
-
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
44
|
-
it_should_behave_like 'marshallable_key'
|
45
|
-
it_should_behave_like 'expires_stringkey_stringvalue'
|
46
|
-
|
4
|
+
describe_juno "simple_hashfile_with_expires" do
|
5
|
+
def new_store
|
6
|
+
Juno.new(:HashFile, :dir => File.join(make_tempdir, "simple_hashfile_with_expires"), :expires => true)
|
47
7
|
end
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
8
|
+
|
9
|
+
include_context 'setup_store'
|
10
|
+
it_should_behave_like 'null_objectkey_objectvalue'
|
11
|
+
it_should_behave_like 'null_objectkey_stringvalue'
|
12
|
+
it_should_behave_like 'null_objectkey_hashvalue'
|
13
|
+
it_should_behave_like 'null_stringkey_objectvalue'
|
14
|
+
it_should_behave_like 'null_stringkey_stringvalue'
|
15
|
+
it_should_behave_like 'null_stringkey_hashvalue'
|
16
|
+
it_should_behave_like 'null_hashkey_objectvalue'
|
17
|
+
it_should_behave_like 'null_hashkey_stringvalue'
|
18
|
+
it_should_behave_like 'null_hashkey_hashvalue'
|
19
|
+
it_should_behave_like 'store_objectkey_objectvalue'
|
20
|
+
it_should_behave_like 'store_objectkey_stringvalue'
|
21
|
+
it_should_behave_like 'store_objectkey_hashvalue'
|
22
|
+
it_should_behave_like 'store_stringkey_objectvalue'
|
23
|
+
it_should_behave_like 'store_stringkey_stringvalue'
|
24
|
+
it_should_behave_like 'store_stringkey_hashvalue'
|
25
|
+
it_should_behave_like 'store_hashkey_objectvalue'
|
26
|
+
it_should_behave_like 'store_hashkey_stringvalue'
|
27
|
+
it_should_behave_like 'store_hashkey_hashvalue'
|
28
|
+
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
29
|
+
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
30
|
+
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
31
|
+
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
32
|
+
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
33
|
+
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
34
|
+
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
35
|
+
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
36
|
+
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
37
|
+
it_should_behave_like 'marshallable_key'
|
38
|
+
it_should_behave_like 'expires_stringkey_stringvalue'
|
53
39
|
end
|