gdbm 1.1 → 1.2
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.
- data/README.md +2 -2
- data/lib/gdbm.rb +3 -3
- data/test/test_gdbm-1.8.7.rb +1 -1
- data/test/test_gdbm-1.9.1.rb +1 -1
- metadata +16 -5
data/README.md
CHANGED
@@ -22,9 +22,9 @@ or, if using JRuby:
|
|
22
22
|
|
23
23
|
## Status
|
24
24
|
|
25
|
-
Passing all tests with JRuby
|
25
|
+
Passing all tests with JRuby 1.4 and 1.5rc2 on 32-bit Linux. There may (or may not) be issues using 64-bit.
|
26
26
|
|
27
|
-
Passing all tests with MRI Ruby 1.8.7 and 1.9.
|
27
|
+
Passing all tests with MRI Ruby 1.8.7 and 1.9.1 with Ruby-FFI 0.5.4 (and 0.6.3) on 32-bit Linux.
|
28
28
|
|
29
29
|
Does not currently work with Rubinius' FFI. Please let me know if this changes.
|
30
30
|
|
data/lib/gdbm.rb
CHANGED
@@ -32,12 +32,12 @@ module GDBM_FFI
|
|
32
32
|
#If it is given a String, it will initialize the fields, including
|
33
33
|
#setting dsize.
|
34
34
|
def initialize(*args)
|
35
|
-
if args.length ==
|
36
|
-
super
|
37
|
-
elsif args.length == 1 and args[0].is_a? String
|
35
|
+
if args.length == 1 and args[0].is_a? String
|
38
36
|
super()
|
39
37
|
self.dptr = args[0]
|
40
38
|
self[:dsize] = args[0].length
|
39
|
+
else
|
40
|
+
super
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
data/test/test_gdbm-1.8.7.rb
CHANGED
data/test/test_gdbm-1.9.1.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gdbm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 11
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 2
|
9
|
+
version: "1.2"
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Justin Collins
|
@@ -9,7 +14,7 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date:
|
17
|
+
date: 2010-05-03 00:00:00 -07:00
|
13
18
|
default_executable:
|
14
19
|
dependencies: []
|
15
20
|
|
@@ -36,21 +41,27 @@ rdoc_options: []
|
|
36
41
|
require_paths:
|
37
42
|
- lib
|
38
43
|
required_ruby_version: !ruby/object:Gem::Requirement
|
44
|
+
none: false
|
39
45
|
requirements:
|
40
46
|
- - ">="
|
41
47
|
- !ruby/object:Gem::Version
|
48
|
+
hash: 3
|
49
|
+
segments:
|
50
|
+
- 0
|
42
51
|
version: "0"
|
43
|
-
version:
|
44
52
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
45
54
|
requirements:
|
46
55
|
- - ">="
|
47
56
|
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
58
|
+
segments:
|
59
|
+
- 0
|
48
60
|
version: "0"
|
49
|
-
version:
|
50
61
|
requirements: []
|
51
62
|
|
52
63
|
rubyforge_project:
|
53
|
-
rubygems_version: 1.3.
|
64
|
+
rubygems_version: 1.3.7.pre.1
|
54
65
|
signing_key:
|
55
66
|
specification_version: 3
|
56
67
|
summary: Provides access to gdbm through Ruby-FFI, particularly for JRuby and other alternative Ruby implementations.
|