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.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +35 -0
  3. data/lib/dbm.jar +0 -0
  4. data/lib/dbm.rb +0 -1
  5. metadata +3 -3
  6. data/lib/mapdb.jar +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d5234426c64f0fe1ebf7d723f5c084c9cebdba7
4
- data.tar.gz: aa2aa375b9d4d7230997752870e2526a265d587e
3
+ metadata.gz: 2f8c65a7c229d1c0b6ed88f58b0f6f82172fe1fb
4
+ data.tar.gz: 7e67625e849bb86328d3181dfa858c87438e2f0a
5
5
  SHA512:
6
- metadata.gz: 5b3ff033e3d3f2b097167ec3fd8493112291e0575f65d0f7c237122bd4267bb4329de7cca3bb6db0b3b02ada8f4aedbc7aeba12e3f3124966e551efcfe5ae0ee
7
- data.tar.gz: 743f12c1719be90918b7f182c5648fe1da1f0b196be0202c882c043ec584574c966019feb50d1812a76720575dc0a0987560f951c9476501f9d58e998ef6d0e9
6
+ metadata.gz: 5de9e0976ffc5733da392e098440ec25f5073e9250c15bc9e2aef8bc0fb8976309138b97427204cc56b4ad547a6c80387da92ecdb3cc8b3bb699e00c1de69e68
7
+ data.tar.gz: c7f480600747d77538367f012249429f58f00d71c2e9fc9ca6fd3e17783cf90ec0104cc7d99b9a5d3bf42f1f98c17e19b0061053afa46ce0c9971f45d0fb60ca
@@ -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
Binary file
data/lib/dbm.rb CHANGED
@@ -1,4 +1,3 @@
1
- require_relative 'mapdb.jar'
2
1
  require_relative 'dbm.jar'
3
2
  org.jruby.ext.dbm.DBMLibrary.new.load(JRuby.runtime, false)
4
3
 
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.1
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 00:00:00.000000000 Z
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
Binary file