dbf 3.0.5 → 3.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 064632eced72b296864cd94cecd0fe3dfee7cd6a
4
- data.tar.gz: 2a6a8328c5d2bef35025cf4543c021ed4e6fb997
3
+ metadata.gz: 41935c53aee72a8e3dc2ba3588e79b1309ef87dd
4
+ data.tar.gz: c2c3cf1f2c5caa077167c5c00b5e378991456235
5
5
  SHA512:
6
- metadata.gz: 53f5f9819d2136a296f9677f6806d7d63ebc1794fd0dd7230da96db1035f7c9fa8ea5bd70674a029974a120f9e55997ccec17a42991b3ef911f4823d7a92f6d9
7
- data.tar.gz: 1909fefeba3bd3dc38a3b8fc96c6bb1a75ac54e750e9b764b6b3bd90eaa43a8bdd138629df3168485553c7932aac09a28e7215a9fb403d45bec0efaf746f6e15
6
+ metadata.gz: 0e2d4a3f554f7a993813b4e0c91134831d625e7af2e151d2e4ac27f591fe1b74e15f98afa52d5681ade8b2478c073874f9e838a0c8c43f9893bc8d4870478913
7
+ data.tar.gz: cdf64f0cc6615ce1e2aa428c74e5c86cd124eeaa6d3bb53993f4434e91f9e7bcd1e3a92e6130352ff073b036b314befeecb00c7dc961b42a6ef7bbf393b6d201
@@ -1,3 +1,9 @@
1
+ # 3.0.7
2
+ - Ignore non-existent records if header record count is incorrect
3
+
4
+ # 3.0.6
5
+ - This version has been yanked from rubygems due to errors
6
+
1
7
  # 3.0.5
2
8
  - Override table name for schema output
3
9
 
data/Gemfile CHANGED
@@ -2,6 +2,7 @@ gemspec
2
2
  source 'https://rubygems.org'
3
3
 
4
4
  group :development, :test do
5
+ gem 'rake'
5
6
  gem 'rspec'
6
7
  gem 'guard'
7
8
  gem 'guard-rspec'
@@ -1,11 +1,11 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
+ dbf (3.0.7)
4
5
 
5
6
  GEM
6
7
  remote: https://rubygems.org/
7
8
  specs:
8
- byebug (8.2.0)
9
9
  coderay (1.1.0)
10
10
  diff-lcs (1.2.5)
11
11
  ffi (1.9.10)
@@ -43,6 +43,7 @@ GEM
43
43
  method_source (~> 0.8.1)
44
44
  slop (~> 3.4)
45
45
  spoon (~> 0.0)
46
+ rake (11.2.2)
46
47
  rb-fsevent (0.9.6)
47
48
  rb-inotify (0.9.5)
48
49
  ffi (>= 0.5.0)
@@ -70,11 +71,11 @@ PLATFORMS
70
71
  ruby
71
72
 
72
73
  DEPENDENCIES
73
- byebug
74
74
  dbf!
75
75
  guard
76
76
  guard-rspec
77
+ rake
77
78
  rspec
78
79
 
79
80
  BUNDLED WITH
80
- 1.10.6
81
+ 1.11.2
@@ -13,7 +13,7 @@
13
13
  +---------+-----------------------------------+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
14
14
  | 07 | Visual Objects 1.x | Y | Y | Y | Y | - | - | - | - | - | - | - | - | - | - | - | - | - |
15
15
  +---------+-----------------------------------+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
16
- | 30 | Visual FoxPro | Y | Y | Y | Y | - | Y | Y | Y | N | Y | N | Y | N | N | N | N | - |
16
+ | 30 | Visual FoxPro | Y | Y | Y | Y | Y | Y | Y | Y | N | Y | N | Y | N | N | N | N | - |
17
17
  +---------+-----------------------------------+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
18
18
  | 31 | Visual FoxPro with AutoIncrement | Y | Y | Y | Y | Y | Y | Y | Y | N | Y | N | Y | N | N | N | N | N |
19
19
  +---------+-----------------------------------+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
@@ -279,7 +279,8 @@ module DBF
279
279
  end
280
280
 
281
281
  def deleted_record? # nodoc
282
- @data.read(1).unpack('a') == ['*']
282
+ flag = @data.read(1)
283
+ flag ? flag.unpack('a') == ['*'] : true
283
284
  end
284
285
 
285
286
  def seek(offset) # nodoc
@@ -1,3 +1,3 @@
1
1
  module DBF
2
- VERSION = '3.0.5'
2
+ VERSION = '3.0.7'
3
3
  end
@@ -4,6 +4,8 @@ begin
4
4
  rescue LoadError
5
5
  end
6
6
 
7
+ Encoding.default_external = "UTF-8"
8
+
7
9
  require 'dbf'
8
10
  require 'yaml'
9
11
  require 'rspec'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dbf
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.5
4
+ version: 3.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith Morrison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-10 00:00:00.000000000 Z
11
+ date: 2016-08-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A small fast library for reading dBase, xBase, Clipper and FoxPro database
14
14
  files.