dbm-mapdb3 0.6.0.beta.1 → 0.6.0.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +35 -0
- data/lib/dbm.jar +0 -0
- data/lib/dbm.rb +0 -1
- metadata +3 -3
- data/lib/mapdb.jar +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f8c65a7c229d1c0b6ed88f58b0f6f82172fe1fb
|
4
|
+
data.tar.gz: 7e67625e849bb86328d3181dfa858c87438e2f0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5de9e0976ffc5733da392e098440ec25f5073e9250c15bc9e2aef8bc0fb8976309138b97427204cc56b4ad547a6c80387da92ecdb3cc8b3bb699e00c1de69e68
|
7
|
+
data.tar.gz: c7f480600747d77538367f012249429f58f00d71c2e9fc9ca6fd3e17783cf90ec0104cc7d99b9a5d3bf42f1f98c17e19b0061053afa46ce0c9971f45d0fb60ca
|
data/README.md
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
## dbm-mapdb3
|
2
|
+
|
3
|
+
#### overview
|
4
|
+
|
5
|
+
This is a fork of [jruby/dbm][jruby/dbm] that uses MapDB 3. This work intends to make MapDB 3 a good choice to implement the DBM abstraction in a JRuby environment.
|
6
|
+
|
7
|
+
MapDB 3.0.0 is in beta so this gem is also beta.
|
8
|
+
|
9
|
+
#### usage
|
10
|
+
|
11
|
+
It provides a DBM interface (using MapDB) for use in JRuby.
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'dbm'
|
15
|
+
|
16
|
+
db = DBM.open('/tmp/objects.db')
|
17
|
+
10_000.times each |num|
|
18
|
+
db[num.to_s] = Marshal.dump([1,2,3,4,5])
|
19
|
+
end
|
20
|
+
|
21
|
+
Marshal.load(db['5000']) # => [1, 2, 3, 4, 5]
|
22
|
+
|
23
|
+
db.shift # => ["0", "\u0004\b[\ni\u0006i\ai\bi\ti\n"]
|
24
|
+
```
|
25
|
+
|
26
|
+
#### build
|
27
|
+
|
28
|
+
First build the java project and copy over the JAR.
|
29
|
+
|
30
|
+
- `mvn clean package`
|
31
|
+
- `mv target/jruby-dbm-VERSION-jar-with-dependencies.jar lib/dbm.jar`
|
32
|
+
- `gem build dbm-mapdb3.gemspec`
|
33
|
+
- `gem install dbm-mapdb3-VERSION.gem`
|
34
|
+
|
35
|
+
[jruby/dbm]: https://github.com/jruby/dbm
|
data/lib/dbm.jar
CHANGED
Binary file
|
data/lib/dbm.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dbm-mapdb3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.0.beta.
|
4
|
+
version: 0.6.0.beta.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anthony Bargnesi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: DBM extension using MapDB version 3.
|
14
14
|
email:
|
@@ -17,9 +17,9 @@ executables: []
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
+
- README.md
|
20
21
|
- lib/dbm.jar
|
21
22
|
- lib/dbm.rb
|
22
|
-
- lib/mapdb.jar
|
23
23
|
homepage: http://github.com/abargnesi/dbm-mapdb3
|
24
24
|
licenses:
|
25
25
|
- EPL-1.0
|
data/lib/mapdb.jar
DELETED
Binary file
|