Skip to content

Commit

Permalink
Renamed tc_adapter to tokyo_cabinet_adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
Makoto Inoue committed Nov 16, 2008
1 parent cae703d commit 6b72528
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
10 changes: 8 additions & 2 deletions README
Expand Up @@ -27,8 +27,14 @@ How to install (Work in progress)
3.2 cd to the dir 3.2 cd to the dir
3.3 gem build dm-tokyo-cabinet-adapter.gemspec 3.3 gem build dm-tokyo-cabinet-adapter.gemspec
3.4 gem install dm-tokyo-cabinet-adapter-0.0.1.gem 3.4 gem install dm-tokyo-cabinet-adapter-0.0.1.gem
4. Set data dir 4. Create data dir
5. Setup DataMapper.setup 5. Setup database.yml like below

:development:
:adapter: tokyo_cabinet
:data_path: <%= Pathname(__FILE__).dirname.expand_path + 'data' %>

6. The rest is usual way to setup datamapper on Merb.


Further research topics/TODO Further research topics/TODO
- Performance benchmarking. - Performance benchmarking.
Expand Down
7 changes: 3 additions & 4 deletions dm-tokyo-cabinet-adapter.gemspec
Expand Up @@ -6,14 +6,13 @@ Gem::Specification.new do |s|
s.date = %q{2008-11-15} s.date = %q{2008-11-15}
s.description = %q{A DataMapper adapter for Tokyo Cabinet} s.description = %q{A DataMapper adapter for Tokyo Cabinet}
s.email = %q{inouemak@googlemail.com} s.email = %q{inouemak@googlemail.com}
s.files = ["lib/tc_adapter.rb", "README", "Rakefile", "dm-tokyo-cabinet-adapter.gemspec", "spec/tc_adapter_spec.rb", "spec/spec_helper.rb"] s.files = ["lib/tokyo_cabinet_adapter.rb", "README", "dm-tokyo-cabinet-adapter.gemspec", "spec/tokyo_cabinet_adapter_spec.rb", "spec/spec_helper.rb"]
s.homepage = %q{http://github.com/makoto/dm-tokyo-cabinet-adapter} s.homepage = %q{http://github.com/makoto/dm-tokyo-cabinet-adapter}
s.require_paths = ["lib"] s.require_paths = ["lib"]
s.rubygems_version = %q{1.2.0} s.rubygems_version = %q{1.2.0}
s.summary = %q{A DatMapper adapter for Tokyo Cabinet} s.summary = %q{A DatMapper adapter for Tokyo Cabinet}
s.test_files = ["spec/tc_adapter_spec.rb", "spec/spec_helper.rb"] s.test_files = ["spec/tokyo_cabinet_adapter_spec.rb", "spec/spec_helper.rb"]
s.add_runtime_dependency(%q<dm-core>, ["> 0.0.0"])
end end




require 'dm-core'
require 'tokyocabinet'
File renamed without changes.
4 changes: 3 additions & 1 deletion spec/spec_helper.rb
@@ -1,6 +1,8 @@
require 'rubygems' require 'rubygems'
require 'dm-core'

require 'pathname' require 'pathname'
require Pathname(__FILE__).dirname.parent.expand_path + 'lib/tc_adapter' require Pathname(__FILE__).dirname.parent.expand_path + 'lib/tokyo_cabinet_adapter'


DataMapper.setup(:default, { DataMapper.setup(:default, {
:adapter => 'tokyo_cabinet', :adapter => 'tokyo_cabinet',
Expand Down
File renamed without changes.

0 comments on commit 6b72528

Please sign in to comment.