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 +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +17 -16
- data/lib/dbf/table.rb +1 -0
- data/lib/dbf/version.rb +1 -1
- data/spec/dbf/file_formats_spec.rb +18 -0
- data/spec/fixtures/dbase_32.dbf +0 -0
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a45d2baaa7a531875b0528d1d7b83f7cc01cfe502b85c42b461b5749745638a
|
|
4
|
+
data.tar.gz: f5eebeb1bc1f3d49bab802671f7ac3cfbc7722a1c1a797173cfdd025a684e30f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a9624d7a37d29bc6f2eaf3546ad41ec8e04b84d1c48ccc9d92122e9682161bbe706459468f6a220e288ba07203fb419574723b376236868f8351e6a66dc58b67
|
|
7
|
+
data.tar.gz: d821ec9443f26d3c7c5515cd6f0722f0c5ebcdf189aee5689cb63133c1ba3d1d03a03b6c9f2f9f1514900169ce8895c7ca33cbc8e24611ddbfeb9c216ee5171b
|
data/Gemfile.lock
CHANGED
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
|
|
328
|
-
|
|
329
|
-
| 02 | FoxBase
|
|
330
|
-
| 03 | dBase III without memo file
|
|
331
|
-
| 04 | dBase IV without memo file
|
|
332
|
-
| 05 | dBase V without memo file
|
|
333
|
-
| 07 | Visual Objects 1.x
|
|
334
|
-
| 30 | Visual FoxPro
|
|
335
|
-
| 31 | Visual FoxPro with AutoIncrement
|
|
336
|
-
|
|
|
337
|
-
|
|
|
338
|
-
|
|
|
339
|
-
|
|
|
340
|
-
|
|
|
341
|
-
|
|
|
342
|
-
|
|
|
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
|
@@ -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.
|
|
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-
|
|
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.
|
|
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
|