dbf 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/History.txt +4 -0
  2. data/Rakefile +1 -1
  3. data/lib/dbf/record.rb +1 -1
  4. metadata +3 -3
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.0.2
2
+
3
+ * Compatibility fix for Visual Foxpro memo files (ignore negative memo index values)
4
+
1
5
  == 1.0.1
2
6
 
3
7
  * Fixes error when using the command-line interface [#11984]
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'hoe'
2
2
  require 'spec/rake/spectask'
3
3
 
4
4
  PKG_NAME = "dbf"
5
- PKG_VERSION = "1.0.1"
5
+ PKG_VERSION = "1.0.2"
6
6
  PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
7
7
 
8
8
  Hoe.new PKG_NAME, PKG_VERSION do |p|
data/lib/dbf/record.rb CHANGED
@@ -63,7 +63,7 @@ module DBF
63
63
  end
64
64
 
65
65
  def read_memo(start_block)
66
- return nil if start_block == 0
66
+ return nil if start_block <= 0
67
67
  @memo.seek(start_block * @table.memo_block_size)
68
68
  if @table.memo_file_format == :fpt
69
69
  memo_type, memo_size, memo_string = @memo.read(@table.memo_block_size).unpack("NNa56")
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: dbf
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.1
7
- date: 2007-07-23 00:00:00 -07:00
6
+ version: 1.0.2
7
+ date: 2007-08-14 00:00:00 -07:00
8
8
  summary: A small fast library for reading dBase, xBase, Clipper and FoxPro database files.
9
9
  require_paths:
10
10
  - lib
@@ -85,5 +85,5 @@ dependencies:
85
85
  requirements:
86
86
  - - ">="
87
87
  - !ruby/object:Gem::Version
88
- version: 1.2.1
88
+ version: 1.2.2
89
89
  version: