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 +3 -2
- data/lib/daybreak/db.rb +1 -1
- data/lib/daybreak/version.rb +1 -1
- data/lib/daybreak/writer.rb +0 -1
- metadata +2 -2
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
|
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 =
|
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|
|
data/lib/daybreak/version.rb
CHANGED
data/lib/daybreak/writer.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2012-12-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|