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