juno 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -277
- data/juno.gemspec +6 -5
- data/lib/juno.rb +3 -122
- metadata +23 -307
- data/.gitignore +0 -6
- data/.travis.yml +0 -30
- data/Gemfile +0 -56
- data/LICENSE +0 -20
- data/Rakefile +0 -33
- data/SPEC.md +0 -71
- data/benchmarks/run.rb +0 -180
- data/lib/juno/adapters/activerecord.rb +0 -74
- data/lib/juno/adapters/cassandra.rb +0 -89
- data/lib/juno/adapters/cookie.rb +0 -35
- data/lib/juno/adapters/couch.rb +0 -57
- data/lib/juno/adapters/datamapper.rb +0 -76
- data/lib/juno/adapters/dbm.rb +0 -25
- data/lib/juno/adapters/file.rb +0 -60
- data/lib/juno/adapters/fog.rb +0 -51
- data/lib/juno/adapters/gdbm.rb +0 -25
- data/lib/juno/adapters/hbase.rb +0 -64
- data/lib/juno/adapters/leveldb.rb +0 -35
- data/lib/juno/adapters/localmemcache.rb +0 -26
- data/lib/juno/adapters/lruhash.rb +0 -83
- data/lib/juno/adapters/memcached.rb +0 -11
- data/lib/juno/adapters/memcached_dalli.rb +0 -51
- data/lib/juno/adapters/memcached_native.rb +0 -52
- data/lib/juno/adapters/memory.rb +0 -32
- data/lib/juno/adapters/mongo.rb +0 -50
- data/lib/juno/adapters/null.rb +0 -30
- data/lib/juno/adapters/pstore.rb +0 -58
- data/lib/juno/adapters/redis.rb +0 -56
- data/lib/juno/adapters/riak.rb +0 -57
- data/lib/juno/adapters/sdbm.rb +0 -35
- data/lib/juno/adapters/sequel.rb +0 -67
- data/lib/juno/adapters/sqlite.rb +0 -61
- data/lib/juno/adapters/tokyocabinet.rb +0 -41
- data/lib/juno/adapters/yaml.rb +0 -15
- data/lib/juno/base.rb +0 -62
- data/lib/juno/builder.rb +0 -39
- data/lib/juno/cache.rb +0 -78
- data/lib/juno/expires.rb +0 -47
- data/lib/juno/lock.rb +0 -44
- data/lib/juno/logger.rb +0 -86
- data/lib/juno/proxy.rb +0 -72
- data/lib/juno/stack.rb +0 -72
- data/lib/juno/transformer.rb +0 -176
- data/lib/juno/version.rb +0 -5
- data/lib/rack/cache/juno.rb +0 -93
- data/lib/rack/juno_cookies.rb +0 -64
- data/lib/rack/session/juno.rb +0 -63
- data/spec/generate.rb +0 -1068
- data/spec/helper.rb +0 -78
- data/spec/juno/adapter_activerecord_spec.rb +0 -27
- data/spec/juno/adapter_cassandra_spec.rb +0 -13
- data/spec/juno/adapter_cookie_spec.rb +0 -13
- data/spec/juno/adapter_couch_spec.rb +0 -13
- data/spec/juno/adapter_datamapper_spec.rb +0 -44
- data/spec/juno/adapter_dbm_spec.rb +0 -13
- data/spec/juno/adapter_file_spec.rb +0 -13
- data/spec/juno/adapter_fog_spec.rb +0 -18
- data/spec/juno/adapter_gdbm_spec.rb +0 -13
- data/spec/juno/adapter_hbase_spec.rb +0 -13
- data/spec/juno/adapter_leveldb_spec.rb +0 -13
- data/spec/juno/adapter_localmemcache_spec.rb +0 -13
- data/spec/juno/adapter_lruhash_spec.rb +0 -26
- data/spec/juno/adapter_memcached_dalli_spec.rb +0 -14
- data/spec/juno/adapter_memcached_native_spec.rb +0 -14
- data/spec/juno/adapter_memcached_spec.rb +0 -14
- data/spec/juno/adapter_memory_spec.rb +0 -34
- data/spec/juno/adapter_mongo_spec.rb +0 -13
- data/spec/juno/adapter_pstore_spec.rb +0 -16
- data/spec/juno/adapter_redis_spec.rb +0 -14
- data/spec/juno/adapter_riak_spec.rb +0 -17
- data/spec/juno/adapter_sdbm_spec.rb +0 -13
- data/spec/juno/adapter_sequel_spec.rb +0 -13
- data/spec/juno/adapter_sqlite_spec.rb +0 -13
- data/spec/juno/adapter_tokyocabinet_bdb_spec.rb +0 -13
- data/spec/juno/adapter_tokyocabinet_hdb_spec.rb +0 -13
- data/spec/juno/adapter_yaml_spec.rb +0 -16
- data/spec/juno/cache_file_memory_spec.rb +0 -29
- data/spec/juno/cache_memory_null_spec.rb +0 -18
- data/spec/juno/expires_file_spec.rb +0 -71
- data/spec/juno/expires_memory_spec.rb +0 -49
- data/spec/juno/lock_spec.rb +0 -37
- data/spec/juno/null_adapter_spec.rb +0 -22
- data/spec/juno/proxy_expires_memory_spec.rb +0 -51
- data/spec/juno/proxy_redis_spec.rb +0 -18
- data/spec/juno/simple_activerecord_spec.rb +0 -45
- data/spec/juno/simple_activerecord_with_expires_spec.rb +0 -46
- data/spec/juno/simple_cassandra_spec.rb +0 -46
- data/spec/juno/simple_couch_spec.rb +0 -45
- data/spec/juno/simple_couch_with_expires_spec.rb +0 -46
- data/spec/juno/simple_datamapper_spec.rb +0 -47
- data/spec/juno/simple_datamapper_with_expires_spec.rb +0 -48
- data/spec/juno/simple_datamapper_with_repository_spec.rb +0 -47
- data/spec/juno/simple_dbm_spec.rb +0 -45
- data/spec/juno/simple_dbm_with_expires_spec.rb +0 -46
- data/spec/juno/simple_file_spec.rb +0 -45
- data/spec/juno/simple_file_with_expires_spec.rb +0 -46
- data/spec/juno/simple_fog_spec.rb +0 -50
- data/spec/juno/simple_fog_with_expires_spec.rb +0 -52
- data/spec/juno/simple_gdbm_spec.rb +0 -45
- data/spec/juno/simple_gdbm_with_expires_spec.rb +0 -46
- data/spec/juno/simple_hashfile_spec.rb +0 -45
- data/spec/juno/simple_hashfile_with_expires_spec.rb +0 -46
- data/spec/juno/simple_hbase_spec.rb +0 -45
- data/spec/juno/simple_hbase_with_expires_spec.rb +0 -46
- data/spec/juno/simple_leveldb_spec.rb +0 -45
- data/spec/juno/simple_leveldb_with_expires_spec.rb +0 -46
- data/spec/juno/simple_localmemcache_spec.rb +0 -45
- data/spec/juno/simple_localmemcache_with_expires_spec.rb +0 -46
- data/spec/juno/simple_lruhash_spec.rb +0 -45
- data/spec/juno/simple_lruhash_with_expires_spec.rb +0 -46
- data/spec/juno/simple_memcached_dalli_spec.rb +0 -46
- data/spec/juno/simple_memcached_native_spec.rb +0 -46
- data/spec/juno/simple_memcached_spec.rb +0 -46
- data/spec/juno/simple_memory_spec.rb +0 -45
- data/spec/juno/simple_memory_with_compress_spec.rb +0 -45
- data/spec/juno/simple_memory_with_expires_spec.rb +0 -46
- data/spec/juno/simple_memory_with_json_key_serializer_spec.rb +0 -32
- data/spec/juno/simple_memory_with_json_md5_key_serializer_spec.rb +0 -32
- data/spec/juno/simple_memory_with_json_serializer_spec.rb +0 -22
- data/spec/juno/simple_memory_with_json_value_serializer_spec.rb +0 -29
- data/spec/juno/simple_memory_with_prefix_spec.rb +0 -45
- data/spec/juno/simple_memory_with_quicklz_compress_spec.rb +0 -45
- data/spec/juno/simple_mongo_spec.rb +0 -45
- data/spec/juno/simple_mongo_with_expires_spec.rb +0 -46
- data/spec/juno/simple_null_spec.rb +0 -32
- data/spec/juno/simple_pstore_spec.rb +0 -45
- data/spec/juno/simple_pstore_with_expires_spec.rb +0 -46
- data/spec/juno/simple_redis_spec.rb +0 -46
- data/spec/juno/simple_riak_spec.rb +0 -49
- data/spec/juno/simple_riak_with_expires_spec.rb +0 -50
- data/spec/juno/simple_sdbm_spec.rb +0 -45
- data/spec/juno/simple_sdbm_with_expires_spec.rb +0 -46
- data/spec/juno/simple_sequel_spec.rb +0 -45
- data/spec/juno/simple_sequel_with_expires_spec.rb +0 -46
- data/spec/juno/simple_sqlite_spec.rb +0 -45
- data/spec/juno/simple_sqlite_with_expires_spec.rb +0 -46
- data/spec/juno/simple_tokyocabinet_spec.rb +0 -45
- data/spec/juno/simple_tokyocabinet_with_expires_spec.rb +0 -46
- data/spec/juno/simple_yaml_spec.rb +0 -44
- data/spec/juno/simple_yaml_with_expires_spec.rb +0 -45
- data/spec/juno/stack_file_memory_spec.rb +0 -20
- data/spec/juno/stack_memory_file_spec.rb +0 -19
- data/spec/juno/transformer_bencode_spec.rb +0 -25
- data/spec/juno/transformer_bert_spec.rb +0 -25
- data/spec/juno/transformer_bson_spec.rb +0 -25
- data/spec/juno/transformer_bzip2_spec.rb +0 -22
- data/spec/juno/transformer_json_spec.rb +0 -25
- data/spec/juno/transformer_lzma_spec.rb +0 -22
- data/spec/juno/transformer_lzo_spec.rb +0 -22
- data/spec/juno/transformer_marshal_base64_spec.rb +0 -48
- data/spec/juno/transformer_marshal_escape_spec.rb +0 -48
- data/spec/juno/transformer_marshal_hmac_spec.rb +0 -48
- data/spec/juno/transformer_marshal_md5_spec.rb +0 -48
- data/spec/juno/transformer_marshal_md5_spread_spec.rb +0 -48
- data/spec/juno/transformer_marshal_prefix_spec.rb +0 -48
- data/spec/juno/transformer_marshal_rmd160_spec.rb +0 -48
- data/spec/juno/transformer_marshal_sha1_spec.rb +0 -48
- data/spec/juno/transformer_marshal_sha256_spec.rb +0 -48
- data/spec/juno/transformer_marshal_sha384_spec.rb +0 -48
- data/spec/juno/transformer_marshal_sha512_spec.rb +0 -48
- data/spec/juno/transformer_marshal_uuencode_spec.rb +0 -48
- data/spec/juno/transformer_msgpack_spec.rb +0 -25
- data/spec/juno/transformer_ox_spec.rb +0 -46
- data/spec/juno/transformer_quicklz_spec.rb +0 -22
- data/spec/juno/transformer_snappy_spec.rb +0 -22
- data/spec/juno/transformer_tnet_spec.rb +0 -25
- data/spec/juno/transformer_yaml_spec.rb +0 -46
- data/spec/juno/transformer_zlib_spec.rb +0 -22
- data/spec/junospecs.rb +0 -2284
- data/spec/rack/cache_juno_spec.rb +0 -355
- data/spec/rack/juno_cookies_spec.rb +0 -81
- data/spec/rack/session_juno_spec.rb +0 -305
@@ -1,14 +0,0 @@
|
|
1
|
-
# Generated by generate.rb
|
2
|
-
require 'helper'
|
3
|
-
|
4
|
-
describe_juno "adapter_redis" do
|
5
|
-
def new_store
|
6
|
-
Juno::Adapters::Redis.new
|
7
|
-
end
|
8
|
-
|
9
|
-
include_context 'setup_store'
|
10
|
-
it_should_behave_like 'null_stringkey_stringvalue'
|
11
|
-
it_should_behave_like 'store_stringkey_stringvalue'
|
12
|
-
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
13
|
-
it_should_behave_like 'expires_stringkey_stringvalue'
|
14
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# Generated by generate.rb
|
2
|
-
require 'helper'
|
3
|
-
|
4
|
-
describe_juno "adapter_riak" do
|
5
|
-
require 'riak'
|
6
|
-
|
7
|
-
Riak.disable_list_keys_warnings = true
|
8
|
-
|
9
|
-
def new_store
|
10
|
-
Juno::Adapters::Riak.new
|
11
|
-
end
|
12
|
-
|
13
|
-
include_context 'setup_store'
|
14
|
-
it_should_behave_like 'null_stringkey_stringvalue'
|
15
|
-
it_should_behave_like 'store_stringkey_stringvalue'
|
16
|
-
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
17
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# Generated by generate.rb
|
2
|
-
require 'helper'
|
3
|
-
|
4
|
-
describe_juno "adapter_sdbm" do
|
5
|
-
def new_store
|
6
|
-
Juno::Adapters::SDBM.new(:file => File.join(make_tempdir, "adapter_sdbm"))
|
7
|
-
end
|
8
|
-
|
9
|
-
include_context 'setup_store'
|
10
|
-
it_should_behave_like 'null_stringkey_stringvalue'
|
11
|
-
it_should_behave_like 'store_stringkey_stringvalue'
|
12
|
-
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
13
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# Generated by generate.rb
|
2
|
-
require 'helper'
|
3
|
-
|
4
|
-
describe_juno "adapter_sequel" do
|
5
|
-
def new_store
|
6
|
-
Juno::Adapters::Sequel.new(:db => (defined?(JRUBY_VERSION) ? "jdbc:sqlite:" : "sqlite:") + File.join(make_tempdir, "adapter_sequel"))
|
7
|
-
end
|
8
|
-
|
9
|
-
include_context 'setup_store'
|
10
|
-
it_should_behave_like 'null_stringkey_stringvalue'
|
11
|
-
it_should_behave_like 'store_stringkey_stringvalue'
|
12
|
-
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
13
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# Generated by generate.rb
|
2
|
-
require 'helper'
|
3
|
-
|
4
|
-
describe_juno "adapter_sqlite" do
|
5
|
-
def new_store
|
6
|
-
Juno::Adapters::Sqlite.new(:file => File.join(make_tempdir, "adapter_sqlite"))
|
7
|
-
end
|
8
|
-
|
9
|
-
include_context 'setup_store'
|
10
|
-
it_should_behave_like 'null_stringkey_stringvalue'
|
11
|
-
it_should_behave_like 'store_stringkey_stringvalue'
|
12
|
-
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
13
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# Generated by generate.rb
|
2
|
-
require 'helper'
|
3
|
-
|
4
|
-
describe_juno "adapter_tokyocabinet_bdb" do
|
5
|
-
def new_store
|
6
|
-
Juno::Adapters::TokyoCabinet.new(:file => File.join(make_tempdir, "adapter_tokyocabinet_bdb"), :type => :bdb)
|
7
|
-
end
|
8
|
-
|
9
|
-
include_context 'setup_store'
|
10
|
-
it_should_behave_like 'null_stringkey_stringvalue'
|
11
|
-
it_should_behave_like 'store_stringkey_stringvalue'
|
12
|
-
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
13
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# Generated by generate.rb
|
2
|
-
require 'helper'
|
3
|
-
|
4
|
-
describe_juno "adapter_tokyocabinet_hdb" do
|
5
|
-
def new_store
|
6
|
-
Juno::Adapters::TokyoCabinet.new(:file => File.join(make_tempdir, "adapter_tokyocabinet_hdb"), :type => :hdb)
|
7
|
-
end
|
8
|
-
|
9
|
-
include_context 'setup_store'
|
10
|
-
it_should_behave_like 'null_stringkey_stringvalue'
|
11
|
-
it_should_behave_like 'store_stringkey_stringvalue'
|
12
|
-
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
13
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# Generated by generate.rb
|
2
|
-
require 'helper'
|
3
|
-
|
4
|
-
describe_juno "adapter_yaml" do
|
5
|
-
def new_store
|
6
|
-
Juno::Adapters::YAML.new(:file => File.join(make_tempdir, "adapter_yaml"))
|
7
|
-
end
|
8
|
-
|
9
|
-
include_context 'setup_store'
|
10
|
-
it_should_behave_like 'null_stringkey_stringvalue'
|
11
|
-
it_should_behave_like 'store_stringkey_stringvalue'
|
12
|
-
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
13
|
-
it_should_behave_like 'null_stringkey_objectvalue'
|
14
|
-
it_should_behave_like 'store_stringkey_objectvalue'
|
15
|
-
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
16
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
# Generated by generate.rb
|
2
|
-
require 'helper'
|
3
|
-
|
4
|
-
describe_juno "cache_file_memory" do
|
5
|
-
def new_store
|
6
|
-
Juno.build do
|
7
|
-
use(:Cache) do
|
8
|
-
backend { adapter :File, :dir => File.join(make_tempdir, "cache_file_memory") }
|
9
|
-
cache { adapter :Memory }
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
include_context 'setup_store'
|
15
|
-
it_should_behave_like 'null_stringkey_stringvalue'
|
16
|
-
it_should_behave_like 'store_stringkey_stringvalue'
|
17
|
-
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
18
|
-
it 'should store loaded values in cache' do
|
19
|
-
store.backend['foo'] = 'bar'
|
20
|
-
store.cache['foo'].should == nil
|
21
|
-
store['foo'].should == 'bar'
|
22
|
-
store.cache['foo'].should == 'bar'
|
23
|
-
store.backend.delete('foo')
|
24
|
-
store['foo'].should == 'bar'
|
25
|
-
store.delete('foo')
|
26
|
-
store['foo'].should == nil
|
27
|
-
end
|
28
|
-
|
29
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# Generated by generate.rb
|
2
|
-
require 'helper'
|
3
|
-
|
4
|
-
describe_juno "cache_memory_null" do
|
5
|
-
def new_store
|
6
|
-
Juno.build do
|
7
|
-
use(:Cache) do
|
8
|
-
backend(Juno::Adapters::Memory.new)
|
9
|
-
cache(Juno::Adapters::Null.new)
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
include_context 'setup_store'
|
15
|
-
it_should_behave_like 'null_stringkey_stringvalue'
|
16
|
-
it_should_behave_like 'store_stringkey_stringvalue'
|
17
|
-
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
18
|
-
end
|
@@ -1,71 +0,0 @@
|
|
1
|
-
# Generated by generate.rb
|
2
|
-
require 'helper'
|
3
|
-
|
4
|
-
describe_juno "expires_file" do
|
5
|
-
def new_store
|
6
|
-
Juno.build do
|
7
|
-
use :Expires
|
8
|
-
use :Transformer, :key => [:marshal, :escape], :value => :marshal
|
9
|
-
adapter :File, :dir => File.join(make_tempdir, "expires-file")
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
include_context 'setup_store'
|
14
|
-
it_should_behave_like 'null_objectkey_objectvalue'
|
15
|
-
it_should_behave_like 'null_objectkey_stringvalue'
|
16
|
-
it_should_behave_like 'null_objectkey_hashvalue'
|
17
|
-
it_should_behave_like 'null_objectkey_booleanvalue'
|
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_stringkey_booleanvalue'
|
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 'null_hashkey_booleanvalue'
|
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_objectkey_booleanvalue'
|
30
|
-
it_should_behave_like 'store_stringkey_objectvalue'
|
31
|
-
it_should_behave_like 'store_stringkey_stringvalue'
|
32
|
-
it_should_behave_like 'store_stringkey_hashvalue'
|
33
|
-
it_should_behave_like 'store_stringkey_booleanvalue'
|
34
|
-
it_should_behave_like 'store_hashkey_objectvalue'
|
35
|
-
it_should_behave_like 'store_hashkey_stringvalue'
|
36
|
-
it_should_behave_like 'store_hashkey_hashvalue'
|
37
|
-
it_should_behave_like 'store_hashkey_booleanvalue'
|
38
|
-
it_should_behave_like 'expires_objectkey_objectvalue'
|
39
|
-
it_should_behave_like 'expires_objectkey_stringvalue'
|
40
|
-
it_should_behave_like 'expires_objectkey_hashvalue'
|
41
|
-
it_should_behave_like 'expires_objectkey_booleanvalue'
|
42
|
-
it_should_behave_like 'expires_stringkey_objectvalue'
|
43
|
-
it_should_behave_like 'expires_stringkey_stringvalue'
|
44
|
-
it_should_behave_like 'expires_stringkey_hashvalue'
|
45
|
-
it_should_behave_like 'expires_stringkey_booleanvalue'
|
46
|
-
it_should_behave_like 'expires_hashkey_objectvalue'
|
47
|
-
it_should_behave_like 'expires_hashkey_stringvalue'
|
48
|
-
it_should_behave_like 'expires_hashkey_hashvalue'
|
49
|
-
it_should_behave_like 'expires_hashkey_booleanvalue'
|
50
|
-
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
51
|
-
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
52
|
-
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
53
|
-
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
54
|
-
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
55
|
-
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
56
|
-
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
57
|
-
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
58
|
-
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
59
|
-
it_should_behave_like 'marshallable_key'
|
60
|
-
it 'should delete expired value in underlying file storage' do
|
61
|
-
store.store('foo', 'bar', :expires => 2)
|
62
|
-
store['foo'].should == 'bar'
|
63
|
-
sleep 1
|
64
|
-
store['foo'].should == 'bar'
|
65
|
-
sleep 2
|
66
|
-
store['foo'].should == nil
|
67
|
-
store.adapter['foo'].should == nil
|
68
|
-
store.adapter.adapter['foo'].should == nil
|
69
|
-
end
|
70
|
-
|
71
|
-
end
|
@@ -1,49 +0,0 @@
|
|
1
|
-
# Generated by generate.rb
|
2
|
-
require 'helper'
|
3
|
-
|
4
|
-
describe_juno "expires_memory" do
|
5
|
-
def new_store
|
6
|
-
Juno.build do
|
7
|
-
use :Expires
|
8
|
-
adapter :Memory
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
include_context 'setup_store'
|
13
|
-
it_should_behave_like 'null_objectkey_objectvalue'
|
14
|
-
it_should_behave_like 'null_objectkey_stringvalue'
|
15
|
-
it_should_behave_like 'null_objectkey_hashvalue'
|
16
|
-
it_should_behave_like 'null_objectkey_booleanvalue'
|
17
|
-
it_should_behave_like 'null_stringkey_objectvalue'
|
18
|
-
it_should_behave_like 'null_stringkey_stringvalue'
|
19
|
-
it_should_behave_like 'null_stringkey_hashvalue'
|
20
|
-
it_should_behave_like 'null_stringkey_booleanvalue'
|
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 'null_hashkey_booleanvalue'
|
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_objectkey_booleanvalue'
|
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_stringkey_booleanvalue'
|
33
|
-
it_should_behave_like 'store_hashkey_objectvalue'
|
34
|
-
it_should_behave_like 'store_hashkey_stringvalue'
|
35
|
-
it_should_behave_like 'store_hashkey_hashvalue'
|
36
|
-
it_should_behave_like 'store_hashkey_booleanvalue'
|
37
|
-
it_should_behave_like 'expires_objectkey_objectvalue'
|
38
|
-
it_should_behave_like 'expires_objectkey_stringvalue'
|
39
|
-
it_should_behave_like 'expires_objectkey_hashvalue'
|
40
|
-
it_should_behave_like 'expires_objectkey_booleanvalue'
|
41
|
-
it_should_behave_like 'expires_stringkey_objectvalue'
|
42
|
-
it_should_behave_like 'expires_stringkey_stringvalue'
|
43
|
-
it_should_behave_like 'expires_stringkey_hashvalue'
|
44
|
-
it_should_behave_like 'expires_stringkey_booleanvalue'
|
45
|
-
it_should_behave_like 'expires_hashkey_objectvalue'
|
46
|
-
it_should_behave_like 'expires_hashkey_stringvalue'
|
47
|
-
it_should_behave_like 'expires_hashkey_hashvalue'
|
48
|
-
it_should_behave_like 'expires_hashkey_booleanvalue'
|
49
|
-
end
|
data/spec/juno/lock_spec.rb
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
# Generated by generate.rb
|
2
|
-
require 'helper'
|
3
|
-
|
4
|
-
describe_juno "lock" do
|
5
|
-
def new_store
|
6
|
-
Juno.build do
|
7
|
-
use :Lock
|
8
|
-
adapter :Memory
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
include_context 'setup_store'
|
13
|
-
it_should_behave_like 'null_objectkey_objectvalue'
|
14
|
-
it_should_behave_like 'null_objectkey_stringvalue'
|
15
|
-
it_should_behave_like 'null_objectkey_hashvalue'
|
16
|
-
it_should_behave_like 'null_objectkey_booleanvalue'
|
17
|
-
it_should_behave_like 'null_stringkey_objectvalue'
|
18
|
-
it_should_behave_like 'null_stringkey_stringvalue'
|
19
|
-
it_should_behave_like 'null_stringkey_hashvalue'
|
20
|
-
it_should_behave_like 'null_stringkey_booleanvalue'
|
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 'null_hashkey_booleanvalue'
|
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_objectkey_booleanvalue'
|
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_stringkey_booleanvalue'
|
33
|
-
it_should_behave_like 'store_hashkey_objectvalue'
|
34
|
-
it_should_behave_like 'store_hashkey_stringvalue'
|
35
|
-
it_should_behave_like 'store_hashkey_hashvalue'
|
36
|
-
it_should_behave_like 'store_hashkey_booleanvalue'
|
37
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# Generated by generate.rb
|
2
|
-
require 'helper'
|
3
|
-
|
4
|
-
describe_juno "null_adapter" do
|
5
|
-
def new_store
|
6
|
-
Juno::Adapters::Null.new
|
7
|
-
end
|
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_objectkey_booleanvalue'
|
14
|
-
it_should_behave_like 'null_stringkey_objectvalue'
|
15
|
-
it_should_behave_like 'null_stringkey_stringvalue'
|
16
|
-
it_should_behave_like 'null_stringkey_hashvalue'
|
17
|
-
it_should_behave_like 'null_stringkey_booleanvalue'
|
18
|
-
it_should_behave_like 'null_hashkey_objectvalue'
|
19
|
-
it_should_behave_like 'null_hashkey_stringvalue'
|
20
|
-
it_should_behave_like 'null_hashkey_hashvalue'
|
21
|
-
it_should_behave_like 'null_hashkey_booleanvalue'
|
22
|
-
end
|
@@ -1,51 +0,0 @@
|
|
1
|
-
# Generated by generate.rb
|
2
|
-
require 'helper'
|
3
|
-
|
4
|
-
describe_juno "proxy_expires_memory" do
|
5
|
-
def new_store
|
6
|
-
Juno.build do
|
7
|
-
use :Proxy
|
8
|
-
use :Expires
|
9
|
-
use :Proxy
|
10
|
-
adapter :Memory
|
11
|
-
end
|
12
|
-
end
|
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_objectkey_booleanvalue'
|
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_stringkey_booleanvalue'
|
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 'null_hashkey_booleanvalue'
|
27
|
-
it_should_behave_like 'store_objectkey_objectvalue'
|
28
|
-
it_should_behave_like 'store_objectkey_stringvalue'
|
29
|
-
it_should_behave_like 'store_objectkey_hashvalue'
|
30
|
-
it_should_behave_like 'store_objectkey_booleanvalue'
|
31
|
-
it_should_behave_like 'store_stringkey_objectvalue'
|
32
|
-
it_should_behave_like 'store_stringkey_stringvalue'
|
33
|
-
it_should_behave_like 'store_stringkey_hashvalue'
|
34
|
-
it_should_behave_like 'store_stringkey_booleanvalue'
|
35
|
-
it_should_behave_like 'store_hashkey_objectvalue'
|
36
|
-
it_should_behave_like 'store_hashkey_stringvalue'
|
37
|
-
it_should_behave_like 'store_hashkey_hashvalue'
|
38
|
-
it_should_behave_like 'store_hashkey_booleanvalue'
|
39
|
-
it_should_behave_like 'expires_objectkey_objectvalue'
|
40
|
-
it_should_behave_like 'expires_objectkey_stringvalue'
|
41
|
-
it_should_behave_like 'expires_objectkey_hashvalue'
|
42
|
-
it_should_behave_like 'expires_objectkey_booleanvalue'
|
43
|
-
it_should_behave_like 'expires_stringkey_objectvalue'
|
44
|
-
it_should_behave_like 'expires_stringkey_stringvalue'
|
45
|
-
it_should_behave_like 'expires_stringkey_hashvalue'
|
46
|
-
it_should_behave_like 'expires_stringkey_booleanvalue'
|
47
|
-
it_should_behave_like 'expires_hashkey_objectvalue'
|
48
|
-
it_should_behave_like 'expires_hashkey_stringvalue'
|
49
|
-
it_should_behave_like 'expires_hashkey_hashvalue'
|
50
|
-
it_should_behave_like 'expires_hashkey_booleanvalue'
|
51
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# Generated by generate.rb
|
2
|
-
require 'helper'
|
3
|
-
|
4
|
-
describe_juno "proxy_redis" do
|
5
|
-
def new_store
|
6
|
-
Juno.build do
|
7
|
-
use :Proxy
|
8
|
-
use :Proxy
|
9
|
-
adapter :Redis
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
include_context 'setup_store'
|
14
|
-
it_should_behave_like 'null_stringkey_stringvalue'
|
15
|
-
it_should_behave_like 'store_stringkey_stringvalue'
|
16
|
-
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
17
|
-
it_should_behave_like 'expires_stringkey_stringvalue'
|
18
|
-
end
|
@@ -1,45 +0,0 @@
|
|
1
|
-
# Generated by generate.rb
|
2
|
-
require 'helper'
|
3
|
-
|
4
|
-
describe_juno "simple_activerecord" do
|
5
|
-
def new_store
|
6
|
-
Juno.new(:ActiveRecord, :connection => { :adapter => (defined?(JRUBY_VERSION) ? 'jdbcsqlite3' : 'sqlite3'), :database => File.join(make_tempdir, 'simple_activerecord') }, :logger => {:out => File.open(File.join(make_tempdir, 'simple_activerecord.log'), 'a')})
|
7
|
-
end
|
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_objectkey_booleanvalue'
|
14
|
-
it_should_behave_like 'null_stringkey_objectvalue'
|
15
|
-
it_should_behave_like 'null_stringkey_stringvalue'
|
16
|
-
it_should_behave_like 'null_stringkey_hashvalue'
|
17
|
-
it_should_behave_like 'null_stringkey_booleanvalue'
|
18
|
-
it_should_behave_like 'null_hashkey_objectvalue'
|
19
|
-
it_should_behave_like 'null_hashkey_stringvalue'
|
20
|
-
it_should_behave_like 'null_hashkey_hashvalue'
|
21
|
-
it_should_behave_like 'null_hashkey_booleanvalue'
|
22
|
-
it_should_behave_like 'store_objectkey_objectvalue'
|
23
|
-
it_should_behave_like 'store_objectkey_stringvalue'
|
24
|
-
it_should_behave_like 'store_objectkey_hashvalue'
|
25
|
-
it_should_behave_like 'store_objectkey_booleanvalue'
|
26
|
-
it_should_behave_like 'store_stringkey_objectvalue'
|
27
|
-
it_should_behave_like 'store_stringkey_stringvalue'
|
28
|
-
it_should_behave_like 'store_stringkey_hashvalue'
|
29
|
-
it_should_behave_like 'store_stringkey_booleanvalue'
|
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 'store_hashkey_booleanvalue'
|
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 'marshallable_value'
|
45
|
-
end
|