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 CHANGED
@@ -22,9 +22,9 @@ or, if using JRuby:
22
22
 
23
23
  ## Status
24
24
 
25
- Passing all tests with JRuby >= 1.4, on 32-bit Linux with Sun's Java and OpenJDK. There may be issues using 64-bit.
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.2RC1 with FFI 0.5.4 on 32- and 64-bit Linux.
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
 
@@ -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 == 0 or (args.length == 1 and args[0].is_a? FFI::MemoryPointer)
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
 
@@ -1,7 +1,7 @@
1
1
  require 'test/unit'
2
2
 
3
3
  begin
4
- require 'gdbm'
4
+ # require 'gdbm'
5
5
  rescue LoadError
6
6
  end
7
7
 
@@ -2,7 +2,7 @@ require 'test/unit'
2
2
  require 'tmpdir'
3
3
 
4
4
  begin
5
- require 'gdbm'
5
+ # require 'gdbm'
6
6
  rescue LoadError
7
7
  end
8
8
 
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gdbm
3
3
  version: !ruby/object:Gem::Version
4
- version: "1.1"
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: 2009-12-01 00:00:00 -08:00
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.4
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.