SBDB::Queue::unshift ready
This commit is contained in:
parent
5a8329161b
commit
9182884749
|
@ -4,9 +4,7 @@ Dependencies
|
|||
Bdb
|
||||
---
|
||||
|
||||
Your need first this library:
|
||||
|
||||
http://github.com/DenisKnauf/bdb
|
||||
You need first the [Bdb](http://github.com/DenisKnauf/bdb) and of course ruby.
|
||||
|
||||
Download
|
||||
========
|
||||
|
|
2
Rakefile
2
Rakefile
|
@ -10,7 +10,7 @@ begin
|
|||
gem.email = "Denis.Knauf@gmail.com"
|
||||
gem.homepage = "http://github.com/DenisKnauf/bdb"
|
||||
gem.authors = ["Denis Knauf"]
|
||||
gem.files = ["README", "VERSION", "lib/**/*.rb", "test/**/*.rb"]
|
||||
gem.files = ["README.md", "VERSION", "lib/**/*.rb", "test/**/*.rb"]
|
||||
gem.require_paths = ["lib"]
|
||||
gem.add_dependency 'bdb'
|
||||
end
|
||||
|
|
|
@ -117,7 +117,7 @@ module SBDB
|
|||
end
|
||||
|
||||
def unshift
|
||||
@db.get nil, nil, nil, Bdb::DB_CONSUME
|
||||
@db.get nil, "\0\0\0\0", nil, Bdb::DB_CONSUME
|
||||
end
|
||||
|
||||
def push v
|
||||
|
|
|
@ -14,10 +14,10 @@ Gem::Specification.new do |s|
|
|||
s.email = %q{Denis.Knauf@gmail.com}
|
||||
s.extra_rdoc_files = [
|
||||
"LICENSE",
|
||||
"README"
|
||||
"README.md"
|
||||
]
|
||||
s.files = [
|
||||
"README",
|
||||
"README.md",
|
||||
"VERSION",
|
||||
"lib/sbdb.rb",
|
||||
"lib/sbdb/cursor.rb",
|
||||
|
|
Loading…
Reference in a new issue