leveldb-native 0.3 → 0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 87b336d5ad009cf92a483c22c12daf7a5ddbe709
4
- data.tar.gz: b89a5864acb35075e2c97ae5da9d509093ff90da
3
+ metadata.gz: 07126608e96b0b1773e42ff4a14a890576d2870c
4
+ data.tar.gz: 831edbc4756bcac0dba3aa990f73d11911dcdbe6
5
5
  SHA512:
6
- metadata.gz: 3a22b86e3e2ac2291bde9bb3685bcd859dff59661bf879f13f20a0b79b21b8a4f9a750c023fa46a55bd58a82b8be8ac257425548120849435719cb5bde9918b9
7
- data.tar.gz: 5529fc3e0d84002e96389ec091fc5c025c9be88e16fa9d64593dccc4c3d88b44c9304844fce31f95be9dc439f02836a21d7de087f72d536234b88fe9c244b974
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, vjoel@users.sourceforge.net.
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
  ---------------------
@@ -1,3 +1,3 @@
1
1
  module LevelDBNative
2
- VERSION = "0.3"
2
+ VERSION = "0.4"
3
3
  end
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.3'
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-07 00:00:00.000000000 Z
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