shanna-dm-tokyo-adapter 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,6 @@
1
+ *.sw?
2
+ .DS_Store
3
+ coverage
4
+ rdoc
5
+ pkg
6
+ test/tc/*
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009 "Shane Hanna"
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,86 @@
1
+ = DataMapper Tokyo Cabinet/Tyrant Table Store Adapter
2
+
3
+ * http://github.com/shanna/dm-tokyo-adapter/tree/master
4
+
5
+ == Description
6
+
7
+ A DataMapper Tokyo Cabinet/Tyrant table store adapter.
8
+
9
+ === Table Store
10
+
11
+ http://tokyocabinet.sourceforge.net/spex-en.html#features_tctdb
12
+
13
+ The Tokyo Cabinet table storage engine doesn't require a predefined schema and as such properties in your resource are
14
+ only used for by the adapter for typecasting. There is no need to migrate your resource when you create, update or
15
+ delete properties.
16
+
17
+ == Dependencies
18
+
19
+ Ruby::
20
+ * dm-core ~> 0.10.0
21
+ * rufus-tokyo ~> 0.1.12
22
+
23
+ == Install
24
+
25
+ * Via gem:
26
+
27
+ gem install shanna-dm-tokyo-adapter -s http://gems.github.com
28
+
29
+ * Via git:
30
+
31
+ git clone git://github.com/shanna/dm-tokyo-adapter.git
32
+ rake install
33
+
34
+ == Synopsis
35
+
36
+ # Tokyo Cabinet DB files will be located in #{path}/#{database}/#{resource}.tdb
37
+ DataMapper.setup(:default,
38
+ :adapter => 'tokyo_cabinet',
39
+ :database => 'tc',
40
+ :path => File.dirname(__FILE__)
41
+ )
42
+
43
+ # Tokyo Tyrant connection.
44
+ DataMapper.setup(:default,
45
+ :adapter => 'tokyo_tyrant',
46
+ :host => 'localhost',
47
+ :port => '1978',
48
+ )
49
+
50
+ # Define your DataMapper resource and start saving:
51
+ class User
52
+ include DataMapper::Resource
53
+ property :id, Serial
54
+ property :name, String
55
+ property :age, Integer
56
+ end
57
+
58
+ # No need to (auto_)migrate!
59
+ User.create(:name => 'Fred', :age => '25')
60
+
61
+ # Conditions:
62
+ users = User.all(:age.gte => 10, :limit => 20, :order => [:age.asc])
63
+
64
+ == TODO
65
+
66
+ * Documentation. It's undocumented at the moment.
67
+ * Give access to the <tt>Rufus::Tokyo::Table</tt> object through the adapter. Handy if you want to add indexes and
68
+ other things that can't be done through the DataMapper API.
69
+ * Better tests. I haven't really tested all the DM primitives and query operators yet.
70
+ * Better typecasting. DataTime and Time should typecast to Integer so that they can be searched using the numeric
71
+ operators.
72
+
73
+ Ideally in the future I'd like to contribute to these broader goals:
74
+
75
+ * All the TokyoCabinet stores equally supported in DM.
76
+ * DataMapper define a public/semipublic API for key => value and search stores through Moneta (memcachedb, memcacheq,
77
+ couchdb, mtokyo cabinet bdb, etc.)
78
+ * DataMapper per adapter query operators. You can't always shoehorn everything into an SQL mindset.
79
+
80
+ == Contributing
81
+
82
+ Go nuts. Just send me a pull request (github or otherwise) when you are happy with your code.
83
+
84
+ == Copyright
85
+
86
+ Copyright (c) 2009 "Shane Hanna". See LICENSE for details.
data/Rakefile ADDED
@@ -0,0 +1,36 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+
4
+ begin
5
+ require 'jeweler'
6
+ Jeweler::Tasks.new do |gem|
7
+ gem.name = 'dm-tokyo-adapter'
8
+ gem.summary = %Q{TODO}
9
+ gem.email = 'shane.hanna@gmail.com'
10
+ gem.homepage = 'http://github.com/shanna/dm-tokyo-adapter'
11
+ gem.authors = ['Shane Hanna']
12
+ gem.files.reject!{|f| f =~ /\.tdb$/}
13
+ gem.add_dependency 'dm-core', '~> 0.10.0'
14
+ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
15
+ end
16
+ rescue LoadError
17
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
18
+ end
19
+
20
+ require 'rake/rdoctask'
21
+ Rake::RDocTask.new do |rdoc|
22
+ rdoc.rdoc_dir = 'rdoc'
23
+ rdoc.title = 'dm-tokyo-cabinet-adapter'
24
+ rdoc.options << '--line-numbers' << '--inline-source'
25
+ rdoc.rdoc_files.include('README*')
26
+ rdoc.rdoc_files.include('lib/**/*.rb')
27
+ end
28
+
29
+ require 'rake/testtask'
30
+ Rake::TestTask.new(:test) do |test|
31
+ test.libs << 'lib' << 'test'
32
+ test.pattern = 'test/**/test_*.rb'
33
+ test.verbose = true
34
+ end
35
+
36
+ task :default => :test
data/VERSION.yml ADDED
@@ -0,0 +1,4 @@
1
+ ---
2
+ :minor: 2
3
+ :patch: 1
4
+ :major: 0
@@ -0,0 +1,56 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{dm-tokyo-adapter}
5
+ s.version = "0.2.1"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Shane Hanna"]
9
+ s.date = %q{2009-06-01}
10
+ s.email = %q{shane.hanna@gmail.com}
11
+ s.extra_rdoc_files = [
12
+ "LICENSE",
13
+ "README.rdoc"
14
+ ]
15
+ s.files = [
16
+ ".gitignore",
17
+ "LICENSE",
18
+ "README.rdoc",
19
+ "Rakefile",
20
+ "VERSION.yml",
21
+ "dm-tokyo-adapter.gemspec",
22
+ "lib/dm-tokyo-adapter.rb",
23
+ "lib/dm-tokyo-adapter/cabinet.rb",
24
+ "lib/dm-tokyo-adapter/query.rb",
25
+ "lib/dm-tokyo-adapter/tyrant.rb",
26
+ "test/helper.rb",
27
+ "test/test_cabinet.rb",
28
+ "test/test_query.rb",
29
+ "test/test_tyrant.rb"
30
+ ]
31
+ s.has_rdoc = true
32
+ s.homepage = %q{http://github.com/shanna/dm-tokyo-adapter}
33
+ s.rdoc_options = ["--charset=UTF-8"]
34
+ s.require_paths = ["lib"]
35
+ s.rubygems_version = %q{1.3.1}
36
+ s.summary = %q{TODO}
37
+ s.test_files = [
38
+ "test/test_cabinet.rb",
39
+ "test/test_tyrant.rb",
40
+ "test/helper.rb",
41
+ "test/test_query.rb"
42
+ ]
43
+
44
+ if s.respond_to? :specification_version then
45
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
46
+ s.specification_version = 2
47
+
48
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
49
+ s.add_runtime_dependency(%q<dm-core>, ["~> 0.10.0"])
50
+ else
51
+ s.add_dependency(%q<dm-core>, ["~> 0.10.0"])
52
+ end
53
+ else
54
+ s.add_dependency(%q<dm-core>, ["~> 0.10.0"])
55
+ end
56
+ end
@@ -0,0 +1,95 @@
1
+ require 'dm-core'
2
+ require 'fileutils'
3
+ require 'rufus-tokyo'
4
+
5
+ module DataMapper
6
+ module Adapters
7
+ module Tokyo
8
+
9
+ # A DataMapper Tokyo Cabinet table store adapter.
10
+ #
11
+ # http://tokyocabinet.sourceforge.net/spex-en.html#features_tctdb
12
+ #
13
+ # The Tokyo Cabinet table storage engine doesn't require a predefined schema and as such properties in your
14
+ # resource are only used by the adapter for typecasting. There is no need to migrate your resource when you
15
+ # create, update or delete properties.
16
+ #
17
+ # == See
18
+ #
19
+ # DataMapper::Adapters::Tokyo::Query:: Table Query.
20
+ class CabinetAdapter < AbstractAdapter
21
+ def create(resources)
22
+ resources.map do |resource|
23
+ model = resource.model
24
+ identity_field = model.identity_field
25
+
26
+ with_connection(resource.model) do |connection|
27
+ initialize_identity_field(resource, connection.generate_unique_id) if identity_field
28
+ connection[key(resource)] = attributes(resource, :field)
29
+ end
30
+ end.size
31
+ end
32
+
33
+ def read(query)
34
+ with_connection(query.model) do |connection|
35
+ Tokyo::Query.new(connection, query).read
36
+ end
37
+ end
38
+
39
+ def update(attributes, collection)
40
+ with_connection(collection.query.model) do |connection|
41
+ collection.each do |record|
42
+ connection[key(record)] = attributes(record, :field)
43
+ end.size
44
+ end
45
+ end
46
+
47
+ def delete(collection)
48
+ with_connection(collection.query.model) do |connection|
49
+ collection.each do |record|
50
+ connection.delete(key(record))
51
+ end.size
52
+ end
53
+ end
54
+
55
+ protected
56
+ def create_connection(model)
57
+ @tdb_path ||= FileUtils.mkdir_p(
58
+ File.join(*[@options[:path], (@options[:host] || @options[:database])].compact)
59
+ ).first
60
+ tdb = File.join(@tdb_path, "#{model.base_model.storage_name(name)}.tdb")
61
+ Rufus::Tokyo::Table.new(tdb)
62
+ end
63
+
64
+ def close_connection(connection)
65
+ connection.close
66
+ end
67
+
68
+ private
69
+ def key(resource)
70
+ key = resource.key
71
+ (key.size > 1 ? key.join(':') : key.first).to_s
72
+ end
73
+
74
+ def attributes(resource, key_on = :name)
75
+ resource.attributes(key_on).map{|k, v| [k, v.to_s]}.to_hash
76
+ end
77
+
78
+ def with_connection(model)
79
+ begin
80
+ connection = create_connection(model)
81
+ return yield(connection)
82
+ rescue => error
83
+ DataMapper.logger.error(error.to_s)
84
+ raise error
85
+ ensure
86
+ close_connection(connection) if connection
87
+ end
88
+ end
89
+ end # CabinetAdapter
90
+ end # Tokyo
91
+
92
+ TokyoCabinetAdapter = Tokyo::CabinetAdapter
93
+ const_added(:TokyoCabinetAdapter)
94
+ end # Adapters
95
+ end # DataMapper
@@ -0,0 +1,109 @@
1
+ require 'dm-core'
2
+ require 'rufus-tokyo'
3
+
4
+ module DataMapper
5
+ module Adapters
6
+ module Tokyo
7
+
8
+ # Query a Tokyo Cabinet table store with a DataMapper query.
9
+ #
10
+ # == Notes
11
+ #
12
+ # Query conditions not supported natively by TC's table query will fall back to DM's in-memory query
13
+ # filtering. This may impact performance.
14
+ class Query
15
+ include Extlib::Assertions
16
+ include DataMapper::Query::Conditions
17
+
18
+ def initialize(connection, query)
19
+ assert_kind_of 'connection', connection, Rufus::Tokyo::Table
20
+ assert_kind_of 'query', query, DataMapper::Query
21
+ @connection, @query, @native = connection, query, true
22
+ end
23
+
24
+ #--
25
+ # TODO: Log when a query cannot be performed natively by TC.
26
+ # TODO: Use native sorting if there is only a single order condition.
27
+ # TODO: connection[] if I have everything I need to fetch by the primary key.
28
+ def read
29
+ records = @connection.query do |statements|
30
+ if @query.conditions.kind_of?(OrOperation)
31
+ @native = false
32
+ else
33
+ @query.conditions.each do |condition|
34
+ condition_statement(statements, condition)
35
+ end
36
+ end
37
+
38
+ statements.no_pk
39
+ if @native
40
+ statements.limit(@query.limit) if @query.limit
41
+ # TODO: Native sorting when only one order field.
42
+ end
43
+ end
44
+
45
+ # Typecast return values.
46
+ records.each do |record|
47
+ @query.fields.each do |property|
48
+ field = property.field
49
+ record[field] = property.typecast(record[field])
50
+ end
51
+ end
52
+
53
+ @query.filter_records(records)
54
+ end
55
+
56
+ private
57
+ def condition_statement(statements, conditions, affirmative = true)
58
+ case conditions
59
+ when AbstractOperation then operation_statement(statements, conditions, affrimative)
60
+ when AbstractComparison then comparison_statement(statements, conditions, affirmative)
61
+ end
62
+ end
63
+
64
+ def operation_statement(statements, operation, affirmative = true)
65
+ case operation
66
+ when OrOperation then @native = false
67
+ when NotOperation then condition_statement(statements, operation.first, !affirmative)
68
+ when AndOperation then operation.each{|op| condition_statement(statements, op, affirmative)}
69
+ end
70
+ end
71
+
72
+ def comparison_statement(statements, comparison, affirmative = true)
73
+ value = comparison.value
74
+ primitive = comparison.property.primitive
75
+
76
+ if value.kind_of?(Range) && value.exclude_end?
77
+ operation = BooleanOperation.new(:and,
78
+ Comparison.new(:gte, comparison.property, value.first),
79
+ Comparison.new(:lt, comparison.property, value.last)
80
+ )
81
+ operation_statement(statements, operation, affirmative)
82
+ return
83
+ end
84
+
85
+ operator = case comparison
86
+ when EqualToComparison then primitive == Integer ? :numeq : :eq
87
+ when InclusionComparison then primitive == Integer ? :numoreq : nil
88
+ when RegexpComparison then :regex
89
+ when LikeComparison then :regex
90
+ when GreaterThanComparison then :gt
91
+ when LessThanComparison then :lt
92
+ when GreaterThanOrEqualToComparison then :gte
93
+ when LessThanOrEqualToComparison then :lte
94
+ end
95
+
96
+ unless operator
97
+ @native = false
98
+ return
99
+ end
100
+ statements.add(comparison.property.field, operator, quote_value(value), affirmative)
101
+ end
102
+
103
+ def quote_value(value)
104
+ "#{value}"
105
+ end
106
+ end # Query
107
+ end # Tokyo
108
+ end # Adapters
109
+ end # DataMapper
@@ -0,0 +1,35 @@
1
+ require 'dm-tokyo-adapter/cabinet'
2
+
3
+ module DataMapper
4
+ module Adapters
5
+ module Tokyo
6
+
7
+ # A DataMapper Tokyo Tyrant table store adapter.
8
+ #
9
+ # http://tokyocabinet.sourceforge.net/tyrantdoc/
10
+ # http://tokyocabinet.sourceforge.net/spex-en.html#features_tctdb
11
+ #
12
+ # The Tokyo Cabinet table storage engine doesn't require a predefined schema and as such properties in your
13
+ # resource are only used by the adapter for typecasting. There is no need to migrate your resource when you
14
+ # create, update or delete properties.
15
+ #
16
+ # == See
17
+ #
18
+ # DataMapper::Adapters::Tokyo::Query:: Table Query.
19
+ class TyrantAdapter < Tokyo::CabinetAdapter
20
+ protected
21
+
22
+ #--
23
+ # TODO: Default port to 1978?
24
+ def create_connection(model)
25
+ credentials = [@options[:socket] || @options.values_at(:host, :port)]
26
+ Rufus::Tokyo::TyrantTable.new(*credentials.flatten)
27
+ end
28
+ end # TyrantAdapter
29
+ end # Tokyo
30
+
31
+ TokyoTyrantAdapter = Tokyo::TyrantAdapter
32
+ const_added(:TokyoTyrantAdapter)
33
+ end # Adapters
34
+ end
35
+
@@ -0,0 +1,3 @@
1
+ require 'dm-tokyo-adapter/query'
2
+ require 'dm-tokyo-adapter/cabinet'
3
+ require 'dm-tokyo-adapter/tyrant'
data/test/helper.rb ADDED
@@ -0,0 +1,30 @@
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+ require 'shoulda'
4
+
5
+ $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
+ require 'dm-tokyo-adapter'
7
+
8
+ class Test::Unit::TestCase
9
+ end
10
+
11
+ DataMapper.setup(:default, {
12
+ :adapter => 'tokyo_cabinet',
13
+ :database => 'tc',
14
+ :path => File.dirname(__FILE__)
15
+ })
16
+
17
+ class Test::Unit::TestCase
18
+ include Extlib::Hook
19
+
20
+ # after :teardown do
21
+ def teardown
22
+ descendants = DataMapper::Model.descendants.dup.to_a
23
+ while model = descendants.shift
24
+ descendants.concat(model.descendants) if model.respond_to?(:descendants)
25
+ Object.send(:remove_const, model.name.to_sym)
26
+ DataMapper::Model.descendants.delete(model)
27
+ end
28
+ end
29
+ end
30
+
@@ -0,0 +1,67 @@
1
+ require File.join(File.dirname(__FILE__), 'helper')
2
+
3
+ class AdapterTest < Test::Unit::TestCase
4
+ context DataMapper::Adapters::TokyoCabinetAdapter do
5
+ context 'Serial key resource' do
6
+ setup do
7
+ class ::User
8
+ include DataMapper::Resource
9
+ property :id, Serial
10
+ property :name, String
11
+ property :age, Integer
12
+ end
13
+
14
+ @user = User.create(:name => 'Joe', :age => 22)
15
+ end
16
+
17
+ teardown do
18
+ User.all.destroy
19
+ end
20
+
21
+ should 'assign id to attributes' do
22
+ item = User.create
23
+ assert_kind_of User, item
24
+ assert_not_nil item.id
25
+ end
26
+
27
+ should 'get an item' do
28
+ assert_equal @user, User.get(@user.id)
29
+ end
30
+
31
+ should 'get items' do
32
+ assert_equal 1, User.all.size
33
+ end
34
+
35
+ should 'destroy item' do
36
+ assert @user.destroy
37
+ assert_equal 0, User.all.size
38
+ end
39
+
40
+ should 'update item' do
41
+ @user.name = 'Woot'
42
+ assert @user.save
43
+ assert_equal 'Woot', User.get(@user.id).name
44
+ end
45
+ end
46
+
47
+ context 'Compound key resource' do
48
+ setup do
49
+ class ::User
50
+ include DataMapper::Resource
51
+ property :name, String, :key => true
52
+ property :age, Integer, :key => true
53
+ end
54
+
55
+ @user = User.create(:name => 'Joe', :age => 22)
56
+ end
57
+
58
+ teardown do
59
+ User.all.destroy
60
+ end
61
+
62
+ should 'get an item' do
63
+ assert_equal @user, User.get(*@user.key)
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,58 @@
1
+ require File.join(File.dirname(__FILE__), 'helper')
2
+
3
+ class QueryTest < Test::Unit::TestCase
4
+ context 'Resource' do
5
+ setup do
6
+ class ::User
7
+ include DataMapper::Resource
8
+ property :id, Serial
9
+ property :name, String
10
+ property :age, Integer
11
+ end
12
+
13
+ @joe = User.create(:name => 'Joe', :age => 11)
14
+ @jack = User.create(:name => 'Jack', :age => 22)
15
+ @john = User.create(:name => 'John', :age => 33)
16
+ end
17
+
18
+ teardown do
19
+ User.all.destroy
20
+ end
21
+
22
+ should 'get items' do
23
+ assert_equal 3, User.all.size
24
+ end
25
+
26
+ should 'get items with sring conditions' do
27
+ User.create(:name => 'John', :age => 44)
28
+ assert_equal 2, User.all(:name => 'John').size
29
+ end
30
+
31
+ should 'get items with integer equality conditions' do
32
+ User.create(:name => 'Fred', :age => 33)
33
+ assert_equal 2, User.all(:age => 33).size
34
+ end
35
+
36
+ should 'get items with integer range conditions' do
37
+ User.create(:name => 'Fred', :age => 33)
38
+ assert_equal 3, User.all(:age.gte => 22, :age.lte => 34).size
39
+ end
40
+
41
+ should 'order items by string' do
42
+ users = [@jack, @joe, @john]
43
+ assert_equal users, User.all(:order => [:name.asc])
44
+ assert_equal users.reverse, User.all(:order => [:name.desc])
45
+ end
46
+
47
+ should 'order items by integer' do
48
+ users = [@joe, @jack, @john]
49
+ assert_equal users, User.all(:order => [:age.asc])
50
+ assert_equal users.reverse, User.all(:order => [:age.desc])
51
+ end
52
+
53
+ should 'limit items' do
54
+ assert_equal 2, User.all(:limit => 2).size
55
+ end
56
+ end
57
+ end # QueryTest
58
+
@@ -0,0 +1,7 @@
1
+ require File.join(File.dirname(__FILE__), 'helper')
2
+
3
+ class AdapterTest < Test::Unit::TestCase
4
+ context DataMapper::Adapters::TokyoTyrantAdapter do
5
+ should 'behave like DM::A::TokyoCabinetAdapter'
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,79 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: shanna-dm-tokyo-adapter
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.1
5
+ platform: ruby
6
+ authors:
7
+ - Shane Hanna
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-06-01 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: dm-core
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ~>
22
+ - !ruby/object:Gem::Version
23
+ version: 0.10.0
24
+ version:
25
+ description:
26
+ email: shane.hanna@gmail.com
27
+ executables: []
28
+
29
+ extensions: []
30
+
31
+ extra_rdoc_files:
32
+ - LICENSE
33
+ - README.rdoc
34
+ files:
35
+ - .gitignore
36
+ - LICENSE
37
+ - README.rdoc
38
+ - Rakefile
39
+ - VERSION.yml
40
+ - dm-tokyo-adapter.gemspec
41
+ - lib/dm-tokyo-adapter.rb
42
+ - lib/dm-tokyo-adapter/cabinet.rb
43
+ - lib/dm-tokyo-adapter/query.rb
44
+ - lib/dm-tokyo-adapter/tyrant.rb
45
+ - test/helper.rb
46
+ - test/test_cabinet.rb
47
+ - test/test_query.rb
48
+ - test/test_tyrant.rb
49
+ has_rdoc: true
50
+ homepage: http://github.com/shanna/dm-tokyo-adapter
51
+ post_install_message:
52
+ rdoc_options:
53
+ - --charset=UTF-8
54
+ require_paths:
55
+ - lib
56
+ required_ruby_version: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: "0"
61
+ version:
62
+ required_rubygems_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: "0"
67
+ version:
68
+ requirements: []
69
+
70
+ rubyforge_project:
71
+ rubygems_version: 1.2.0
72
+ signing_key:
73
+ specification_version: 2
74
+ summary: TODO
75
+ test_files:
76
+ - test/test_cabinet.rb
77
+ - test/test_tyrant.rb
78
+ - test/helper.rb
79
+ - test/test_query.rb