daybreak 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -5,9 +5,10 @@
5
5
 
6
6
  Daybreak is a simple key value store for ruby. It has user defined persistence,
7
7
  and all data is stored in a table in memory so ruby niceties are available.
8
- Daybreak's performance is on par with other options like pstore and dbm.
8
+ Daybreak is faster than other options ruby options like pstore and dbm.
9
9
 
10
10
  $ gem install daybreak
11
11
 
12
12
  Docs: http://propublica.github.com/daybreak/
13
- Issue Tracker: http://propublica.github.com/daybreak/issues
13
+ Issue Tracker: http://propublica.github.com/daybreak/issues
14
+ Benchmarks: https://gist.github.com/4146590
data/lib/daybreak/db.rb CHANGED
@@ -135,7 +135,7 @@ module Daybreak
135
135
  def compact!
136
136
  # Create a new temporary file
137
137
  tmp_file = Tempfile.new File.basename(@file_name)
138
- copy_db = DB.new tmp_file.path
138
+ copy_db = self.class.new tmp_file.path
139
139
 
140
140
  # Copy the database key by key into the temporary table
141
141
  each do |key, i|
@@ -1,4 +1,4 @@
1
1
  module Daybreak
2
2
  # Updated using SemVer
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
@@ -59,7 +59,6 @@ module Daybreak
59
59
  def initialize(fd)
60
60
  @queue = Queue.new
61
61
  @fd = fd
62
- @buffer = ""
63
62
  @thread = Thread.new { work }
64
63
  at_exit { finish! }
65
64
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daybreak
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-11 00:00:00.000000000 Z
12
+ date: 2012-12-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest