leveldb-native 0.3 → 0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +24 -6
- data/lib/leveldb-native/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07126608e96b0b1773e42ff4a14a890576d2870c
|
4
|
+
data.tar.gz: 831edbc4756bcac0dba3aa990f73d11911dcdbe6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dad3324248d546a781174976a517de07022033d39126a3fbcf665c95a4eb5e8bcde1d901b7fff8f19ad40f6f82c64a6b52f7d03e8a088ad35a1c732735394cb4
|
7
|
+
data.tar.gz: 88b15b17a4c645ccab734378995ff16004f5255d2ae2966b6565fd500f5c71c51fc8b38555ac7c9e89e62a0c08302bbaf1d04c8f1bbc9517fdefe64706c56d97
|
data/README.md
CHANGED
@@ -12,6 +12,24 @@ LevelDB
|
|
12
12
|
|
13
13
|
[LevelDB] (http://code.google.com/p/leveldb/) is a persistent key-value store developed at Google.
|
14
14
|
|
15
|
+
Synopsis
|
16
|
+
--------
|
17
|
+
|
18
|
+
require 'leveldb-native'
|
19
|
+
|
20
|
+
db = LevelDBNative::DB.new '/tmp/db'
|
21
|
+
|
22
|
+
db["key"] = "value"
|
23
|
+
p db["key"] # "value"
|
24
|
+
|
25
|
+
sn = db.snapshot
|
26
|
+
db["key"] = "new value"
|
27
|
+
|
28
|
+
p db["key"] # "new value"
|
29
|
+
p sn["key"] # "value"
|
30
|
+
|
31
|
+
See also the [example] (example/snapshot.rb).
|
32
|
+
|
15
33
|
Installation
|
16
34
|
------------
|
17
35
|
|
@@ -19,11 +37,7 @@ The gem installs in the normal way:
|
|
19
37
|
|
20
38
|
gem install leveldb-native
|
21
39
|
|
22
|
-
However, you need to have libleveldb installed. It may be available as part of your OS (from debian repos, for example), or you may prefer to install from source. The source packages from google do not have install scripts, but that is easy to fix. Here is a git repo with the necessary fixes to the makefile:
|
23
|
-
|
24
|
-
https://github.com/vjoel/leveldb
|
25
|
-
|
26
|
-
Just follow the instructions in that repo's README to build and install.
|
40
|
+
However, you need to have libleveldb installed. It may be available as part of your OS (from debian repos, for example), or you may prefer to install from source. The source packages from google do not have install scripts, but that is easy to fix. Here is a git repo with the necessary fixes to the makefile: https://github.com/vjoel/leveldb. Just follow the instructions in that repo's README to build and install.
|
27
41
|
|
28
42
|
FAQ
|
29
43
|
---
|
@@ -56,7 +70,11 @@ Contact
|
|
56
70
|
|
57
71
|
This project is hosted at https://github.com/vjoel/leveldb-native.
|
58
72
|
|
59
|
-
Joel VanderWerf
|
73
|
+
Contact Joel VanderWerf:
|
74
|
+
|
75
|
+
* vjoel@users.sourceforge.net
|
76
|
+
|
77
|
+
* https://twitter.com/JoelVanderWerf
|
60
78
|
|
61
79
|
License and Copyright
|
62
80
|
---------------------
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: leveldb-native
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.4'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel VanderWerf
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Ruby binding to LevelDB.
|
14
14
|
email: vjoel@users.sourceforge.net
|
@@ -18,6 +18,7 @@ extensions:
|
|
18
18
|
extra_rdoc_files:
|
19
19
|
- README.md
|
20
20
|
- LICENSE
|
21
|
+
- ext/leveldb-native/leveldb-native.cc
|
21
22
|
files:
|
22
23
|
- README.md
|
23
24
|
- LICENSE
|
@@ -61,7 +62,7 @@ rubyforge_project:
|
|
61
62
|
rubygems_version: 2.1.10
|
62
63
|
signing_key:
|
63
64
|
specification_version: 4
|
64
|
-
summary: Ruby binding to LevelDB
|
65
|
+
summary: Ruby binding to LevelDB
|
65
66
|
test_files:
|
66
67
|
- test/test-db.rb
|
67
68
|
- test/test-db-options.rb
|