i think, i should write some tests.

This commit is contained in:
Denis Knauf 2010-03-29 11:44:04 +02:00
parent f35c674923
commit 51f1627093
2 changed files with 3 additions and 3 deletions

View file

@ -128,13 +128,13 @@ module SBDB
end end
class Recno < DB class Recno < DB
extend Arrayisch include Arrayisch
end end
Array = Recno Array = Recno
TYPES[DB::RECNO] = Recno TYPES[DB::RECNO] = Recno
class Queue < DB class Queue < DB
extend Arrayisch include Arrayisch
def unshift txn = nil def unshift txn = nil
@db.get _txn(txn), "\0\0\0\0", nil, Bdb::DB_CONSUME @db.get _txn(txn), "\0\0\0\0", nil, Bdb::DB_CONSUME
end end

View file

@ -9,7 +9,7 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Denis Knauf"] s.authors = ["Denis Knauf"]
s.date = %q{2010-03-21} s.date = %q{2010-03-29}
s.description = %q{Simple Ruby Berkeley DB wrapper library for bdb.} s.description = %q{Simple Ruby Berkeley DB wrapper library for bdb.}
s.email = %q{Denis.Knauf@gmail.com} s.email = %q{Denis.Knauf@gmail.com}
s.extra_rdoc_files = [ s.extra_rdoc_files = [