Permalink
Browse files

update gem

  • Loading branch information...
1 parent b800a41 commit 7b248ba2f287086c2b079047e172d0ae560571e6 @actsasflinn committed Oct 11, 2011
Showing with 18 additions and 13 deletions.
  1. +3 −2 README.rdoc
  2. +11 −7 Rakefile
  3. +4 −4 ruby-tokyotyrant.gemspec
View
@@ -4,9 +4,9 @@ This is a c extension for Ruby to access TokyoTyrant databases. It currently su
== Install
- # install tokyocabinet (1.4.34) and tokyotyrant (requires 1.1.35)
+ # install tokyocabinet (1.4.47) and tokyotyrant (requires 1.1.41)
# after installing tc and tt on linux I had to /sbin/ldconfig (as root)
- sudo gem install ruby-tokyotyrant --source=http://gemcutter.org
+ sudo gem install --no-ri --no-rdoc ruby-tokyotyrant
== Performance
@@ -246,6 +246,7 @@ This is not in production but the initial benchmarks are very interesting. Resul
== Contributors
* Flinn Mueller (actsasflinn) author/maintainer
+* ??? (gottlike) ruby 1.9.2 compatibility
* Justin Reagor (cheapRoc) specs
* Seth Yates (sethyates) run method (lua ext)
* John Mettraux (jmettraux) inspiration (rufus-tokyo)
View
@@ -1,15 +1,18 @@
#!/usr/bin/env ruby
+GEMNAME = 'ruby-tokyotyrant'
+GEMVERSION = '0.5.2'
+
require 'pathname'
$root = Pathname(__FILE__).dirname
require 'rubygems'
require 'rake'
require 'rake/clean'
require 'rake/packagetask'
-require 'rake/gempackagetask'
+require 'rubygems/package_task'
require 'rake/testtask'
-require 'rake/rdoctask'
+require 'rdoc/task'
task :spec do
load $root.join('spec', 'spec_base.rb')
@@ -19,8 +22,8 @@ task :default => [ :spec ]
CLEAN.include('pkg', 'tmp')
gemspec = Gem::Specification.new do |s|
- s.name = 'ruby-tokyotyrant'
- s.version = '0.5.1'
+ s.name = GEMNAME
+ s.version = GEMVERSION
s.authors = [ 'Flinn' ]
s.email = 'flinn@actsasflinn.com'
s.homepage = 'http://github.com/actsasflinn/ruby-tokyotyrant/'
@@ -42,16 +45,17 @@ gemspec = Gem::Specification.new do |s|
end
task :gemspec do
- File.open('ruby-tokyotyrant.gemspec', 'w') do |f|
+ File.open("#{GEMNAME}.gemspec", 'w') do |f|
f.write(gemspec.to_ruby)
end
end
-Rake::GemPackageTask.new(gemspec) do |pkg|
+Gem::PackageTask.new(gemspec) do |pkg|
+ pkg.need_zip = true
pkg.need_tar = true
end
-Rake::PackageTask.new('ruby-tokyotyrant', '0.5') do |pkg|
+Rake::PackageTask.new(GEMNAME, GEMVERSION) do |pkg|
pkg.need_zip = true
pkg.package_files = FileList[
'COPYING',
View
@@ -2,26 +2,26 @@
Gem::Specification.new do |s|
s.name = %q{ruby-tokyotyrant}
- s.version = "0.5.1"
+ s.version = "0.5.2"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Flinn"]
- s.date = %q{2010-05-22}
+ s.date = %q{2011-10-10}
s.email = %q{flinn@actsasflinn.com}
s.extensions = ["ext/extconf.rb"]
s.extra_rdoc_files = ["README.rdoc"]
s.files = ["COPYING", "Rakefile", "README.rdoc", "ext/tokyo_tyrant.c", "ext/tokyo_tyrant.h", "ext/tokyo_tyrant_bdb.c", "ext/tokyo_tyrant_bdb.h", "ext/tokyo_tyrant_consistent_hash.c", "ext/tokyo_tyrant_consistent_hash.h", "ext/tokyo_tyrant_db.c", "ext/tokyo_tyrant_db.h", "ext/tokyo_tyrant_module.c", "ext/tokyo_tyrant_module.h", "ext/tokyo_tyrant_query.c", "ext/tokyo_tyrant_query.h", "ext/tokyo_tyrant_table.c", "ext/tokyo_tyrant_table.h", "ext/tokyo_tyrant/balancer.rb", "ext/tokyo_tyrant/rails/tokyo_tyrant_store.rb", "spec/ext.lua", "spec/plu_db.rb", "spec/spec.rb", "spec/spec_base.rb", "spec/start_tyrants.sh", "spec/stop_tyrants.sh", "spec/tokyo_tyrant_balancer_db_spec.rb", "spec/tokyo_tyrant_balancer_table_spec.rb", "spec/tokyo_tyrant_bdb_spec.rb", "spec/tokyo_tyrant_query_spec.rb", "spec/tokyo_tyrant_spec.rb", "spec/tokyo_tyrant_table_spec.rb", "benchmarks/balancer.rb", "benchmarks/bulk_db.rb", "benchmarks/bulk_table.rb", "benchmarks/db.rb", "benchmarks/table.rb", "ext/extconf.rb"]
s.homepage = %q{http://github.com/actsasflinn/ruby-tokyotyrant/}
s.require_paths = ["ext"]
- s.rubygems_version = %q{1.3.5}
+ s.rubygems_version = %q{1.3.7}
s.summary = %q{A C based TokyoTyrant Ruby binding}
s.test_files = ["spec/spec.rb"]
if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
else
end
else

0 comments on commit 7b248ba

Please sign in to comment.