dbf 4.1.5 → 4.1.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68d5e427f28ed4ecfe46703031af46cb8edfa4cd3781f5e1fc8393c505d6286c
4
- data.tar.gz: fa0f6ff80840de09eed5216ac8b02126c8cd396fc385e880c11e7a6e9a56bf3f
3
+ metadata.gz: 5a45d2baaa7a531875b0528d1d7b83f7cc01cfe502b85c42b461b5749745638a
4
+ data.tar.gz: f5eebeb1bc1f3d49bab802671f7ac3cfbc7722a1c1a797173cfdd025a684e30f
5
5
  SHA512:
6
- metadata.gz: f185690b99273879ef6d7222da8a0c85005edced9b5ee5a9b7fcf0775f786e3937f159bd82e2a47fafcd42d91cd60dc0fdb6b94550a67b1818b12b4beb60cfb5
7
- data.tar.gz: 2bf490dba96e63910e998eea1fd4892ee97440698ec84f210e58b73502948c00cc2be1de6f89e2010e6a6d4ca0e4271af786f9b7ed38f86fab98d0fcc1a7a49e
6
+ metadata.gz: a9624d7a37d29bc6f2eaf3546ad41ec8e04b84d1c48ccc9d92122e9682161bbe706459468f6a220e288ba07203fb419574723b376236868f8351e6a66dc58b67
7
+ data.tar.gz: d821ec9443f26d3c7c5515cd6f0722f0c5ebcdf189aee5689cb63133c1ba3d1d03a03b6c9f2f9f1514900169ce8895c7ca33cbc8e24611ddbfeb9c216ee5171b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dbf (4.1.4)
4
+ dbf (4.1.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -110,4 +110,4 @@ DEPENDENCIES
110
110
  yard
111
111
 
112
112
  BUNDLED WITH
113
- 1.17.3
113
+ 2.2.15
data/README.md CHANGED
@@ -324,22 +324,23 @@ at this time.
324
324
 
325
325
  ### Supported data types by dBase version
326
326
 
327
- | Version | Description | C | N | L | D | M | F | B | G | P | Y | T | I | V | X | @ | O | + |
328
- |---------|-----------------------------------|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
329
- | 02 | FoxBase | Y | Y | Y | Y | - | - | - | - | - | - | - | - | - | - | - | - | - |
330
- | 03 | dBase III without memo file | Y | Y | Y | Y | - | - | - | - | - | - | - | - | - | - | - | - | - |
331
- | 04 | dBase IV without memo file | Y | Y | Y | Y | - | - | - | - | - | - | - | - | - | - | - | - | - |
332
- | 05 | dBase V without memo file | Y | Y | Y | Y | - | - | - | - | - | - | - | - | - | - | - | - | - |
333
- | 07 | Visual Objects 1.x | Y | Y | Y | Y | - | - | - | - | - | - | - | - | - | - | - | - | - |
334
- | 30 | Visual FoxPro | Y | Y | Y | Y | Y | Y | Y | Y | N | Y | N | Y | N | N | N | N | - |
335
- | 31 | Visual FoxPro with AutoIncrement | Y | Y | Y | Y | Y | Y | Y | Y | N | Y | N | Y | N | N | N | N | N |
336
- | 7b | dBase IV with memo file | Y | Y | Y | Y | Y | Y | - | - | - | - | - | - | - | - | - | - | - |
337
- | 83 | dBase III with memo file | Y | Y | Y | Y | Y | - | - | - | - | - | - | - | - | - | - | - | - |
338
- | 87 | Visual Objects 1.x with memo file | Y | Y | Y | Y | Y | - | - | - | - | - | - | - | - | - | - | - | - |
339
- | 8b | dBase IV with memo file | Y | Y | Y | Y | Y | - | - | - | - | - | - | - | - | N | - | - | - |
340
- | 8e | dBase IV with SQL table | Y | Y | Y | Y | Y | - | - | - | - | - | - | - | - | N | - | - | - |
341
- | f5 | FoxPro with memo file | Y | Y | Y | Y | Y | Y | Y | Y | N | Y | N | Y | N | N | N | N | N |
342
- | fb | FoxPro without memo file | Y | Y | Y | Y | - | Y | Y | Y | N | Y | N | Y | N | N | N | N | N |
327
+ | Version | Description | C | N | L | D | M | F | B | G | P | Y | T | I | V | X | @ | O | + |
328
+ |---------|-----------------------------------------------------|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
329
+ | 02 | FoxBase | Y | Y | Y | Y | - | - | - | - | - | - | - | - | - | - | - | - | - |
330
+ | 03 | dBase III without memo file | Y | Y | Y | Y | - | - | - | - | - | - | - | - | - | - | - | - | - |
331
+ | 04 | dBase IV without memo file | Y | Y | Y | Y | - | - | - | - | - | - | - | - | - | - | - | - | - |
332
+ | 05 | dBase V without memo file | Y | Y | Y | Y | - | - | - | - | - | - | - | - | - | - | - | - | - |
333
+ | 07 | Visual Objects 1.x | Y | Y | Y | Y | - | - | - | - | - | - | - | - | - | - | - | - | - |
334
+ | 30 | Visual FoxPro | Y | Y | Y | Y | Y | Y | Y | Y | N | Y | N | Y | N | N | N | N | - |
335
+ | 31 | Visual FoxPro with AutoIncrement | Y | Y | Y | Y | Y | Y | Y | Y | N | Y | N | Y | N | N | N | N | N |
336
+ | 32 | Visual FoxPro with field type Varchar or Varbinary | Y | Y | Y | Y | Y | Y | Y | Y | N | Y | N | Y | N | N | N | N | N |
337
+ | 7b | dBase IV with memo file | Y | Y | Y | Y | Y | Y | - | - | - | - | - | - | - | - | - | - | - |
338
+ | 83 | dBase III with memo file | Y | Y | Y | Y | Y | - | - | - | - | - | - | - | - | - | - | - | - |
339
+ | 87 | Visual Objects 1.x with memo file | Y | Y | Y | Y | Y | - | - | - | - | - | - | - | - | - | - | - | - |
340
+ | 8b | dBase IV with memo file | Y | Y | Y | Y | Y | - | - | - | - | - | - | - | - | N | - | - | - |
341
+ | 8e | dBase IV with SQL table | Y | Y | Y | Y | Y | - | - | - | - | - | - | - | - | N | - | - | - |
342
+ | f5 | FoxPro with memo file | Y | Y | Y | Y | Y | Y | Y | Y | N | Y | N | Y | N | N | N | N | N |
343
+ | fb | FoxPro without memo file | Y | Y | Y | Y | - | Y | Y | Y | N | Y | N | Y | N | N | N | N | N |
343
344
 
344
345
  Data type descriptions
345
346
 
data/lib/dbf/table.rb CHANGED
@@ -22,6 +22,7 @@ module DBF
22
22
  '05' => 'dBase V without memo file',
23
23
  '07' => 'Visual Objects 1.x',
24
24
  '30' => 'Visual FoxPro',
25
+ '32' => 'Visual FoxPro with field type Varchar or Varbinary',
25
26
  '31' => 'Visual FoxPro with AutoIncrement field',
26
27
  '43' => 'dBASE IV SQL table files, no memo',
27
28
  '63' => 'dBASE IV SQL system files, no memo',
data/lib/dbf/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DBF
2
- VERSION = '4.1.5'.freeze
2
+ VERSION = '4.1.6'.freeze
3
3
  end
@@ -124,6 +124,24 @@ RSpec.describe DBF, 'of type 31 (Visual FoxPro with AutoIncrement field)' do
124
124
  end
125
125
  end
126
126
 
127
+ RSpec.describe DBF, 'of type 32 (Visual FoxPro with field type Varchar or Varbinary)' do
128
+ let(:table) { DBF::Table.new fixture('dbase_32.dbf') }
129
+
130
+ it_behaves_like 'DBF'
131
+
132
+ it 'has a dBase version of 32' do
133
+ expect(table.version).to eq '32'
134
+ end
135
+
136
+ it 'reports the correct version description' do
137
+ expect(table.version_description).to eq 'Visual FoxPro with field type Varchar or Varbinary'
138
+ end
139
+
140
+ it 'determines the number of records' do
141
+ expect(table.record_count).to eq 1
142
+ end
143
+ end
144
+
127
145
  RSpec.describe DBF, 'of type 83 (dBase III with memo file)' do
128
146
  let(:table) { DBF::Table.new fixture('dbase_83.dbf') }
129
147
 
Binary file
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: 4.1.5
4
+ version: 4.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith Morrison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-09 00:00:00.000000000 Z
11
+ date: 2021-08-12 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.
@@ -107,6 +107,7 @@ files:
107
107
  - spec/fixtures/dbase_30_summary.txt
108
108
  - spec/fixtures/dbase_31.dbf
109
109
  - spec/fixtures/dbase_31_summary.txt
110
+ - spec/fixtures/dbase_32.dbf
110
111
  - spec/fixtures/dbase_83.dbf
111
112
  - spec/fixtures/dbase_83.dbt
112
113
  - spec/fixtures/dbase_83_missing_memo.dbf
@@ -158,13 +159,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
159
  - !ruby/object:Gem::Version
159
160
  version: 1.3.0
160
161
  requirements: []
161
- rubygems_version: 3.0.9
162
+ rubygems_version: 3.2.15
162
163
  signing_key:
163
164
  specification_version: 4
164
165
  summary: Read xBase files
165
166
  test_files:
167
+ - spec/dbf/column_spec.rb
166
168
  - spec/dbf/database/foxpro_spec.rb
167
169
  - spec/dbf/file_formats_spec.rb
168
- - spec/dbf/column_spec.rb
169
170
  - spec/dbf/record_spec.rb
170
171
  - spec/dbf/table_spec.rb