Permalink
Browse files

fix rakefile.

bump v0.1.9
  • Loading branch information...
1 parent 3d6e4d8 commit 1d2d03e20bdcc8cd6ca0ba095e30b0e1d7ca9449 @nofxx committed Jul 5, 2009
Showing with 35 additions and 12 deletions.
  1. +3 −3 README.rdoc
  2. +21 −4 Rakefile
  3. +1 −1 VERSION
  4. +7 −2 benchmark/session.rb
  5. +3 −2 tokyo_store.gemspec
View
@@ -21,12 +21,12 @@ Rails (enviroment.rb)
config.gem 'nofxx-tokyo_store', :lib => 'tokyo_store'
ActionController::Base.session_store = Rack::Session::Tokyo
+Start Tyrant
-== Run
+ ttserver data.tch
-Just start tyrant
- ttserver data.tch
+Have fun!
== Thanks
View
@@ -16,12 +16,29 @@ rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
-require 'rake/testtask'
-Rake::TestTask.new(:spec) do |spec|
+require 'spec/rake/spectask'
+Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs << 'lib' << 'spec'
- spec.pattern = 'spec/**/*_spec.rb'
- spec.verbose = true
+ spec.spec_files = FileList['spec/**/*_spec.rb']
end
+Spec::Rake::SpecTask.new(:rcov) do |spec|
+ spec.libs << 'lib' << 'spec'
+ spec.pattern = 'spec/**/*_spec.rb'
+ spec.rcov = true
+end
task :default => :spec
+require 'rake/rdoctask'
+Rake::RDocTask.new do |rdoc|
+ if File.exist?('VERSION')
+ version = File.read('VERSION').chomp
+ else
+ version = ""
+ end
+
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = "foo #{version}"
+ rdoc.rdoc_files.include('README*')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
View
@@ -1 +1 @@
-0.1.8
+0.1.9
@@ -1,7 +1,9 @@
#
# Tokyo Store
#
-# Session Benchmark vs MemCacheStore on memcached and tyrant
+# Session Benchmark vs Redis Store
+#
+# TODO: memcache
#
$: << File.join(File.dirname(__FILE__), "/../lib")
require 'rubygems'
@@ -54,6 +56,9 @@
__END__
+*Note: Tokyo uses FFI adapter, while redis a pure ruby.
+Both comparable to memcache pr too. Check the cache benchmark.
+
_____________________________________________ GET
Tokyo 6.310000 1.030000 7.340000 ( 8.511138)
Redis 7.300000 1.010000 8.310000 ( 9.325441)
@@ -65,6 +70,6 @@
-------------------------------- total: 8.380000sec
_____________________________________________ EXIST
-Redis 4.700000 0.700000 5.400000 ( 6.061131)
Tokyo 4.090000 0.650000 4.740000 ( 5.537898)
+Redis 4.700000 0.700000 5.400000 ( 6.061131)
------------------------------- total: 10.140000sec
View
@@ -2,11 +2,11 @@
Gem::Specification.new do |s|
s.name = %q{tokyo_store}
- s.version = "0.1.8"
+ s.version = "0.1.9"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Marcos Piccinini"]
- s.date = %q{2009-07-04}
+ s.date = %q{2009-07-05}
s.email = %q{x@nofxx.com}
s.extra_rdoc_files = [
"LICENSE",
@@ -20,6 +20,7 @@ Gem::Specification.new do |s|
"Rakefile",
"VERSION",
"benchmark/cache.rb",
+ "benchmark/session.rb",
"lib/cache/tokyo_store.rb",
"lib/rack/cache/tokyo_entitystore.rb",
"lib/rack/cache/tokyo_metastore.rb",

0 comments on commit 1d2d03e

Please sign in to comment.