dbf 4.2.1 → 4.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +2 -4
- data/lib/dbf/record.rb +4 -4
- data/lib/dbf/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 429e8806f5675886a27b904b879c244f9808c83c3da82937d6953d13a01dd333
|
4
|
+
data.tar.gz: e3d916d24891b6f26237c41fc6cad865544b2c1b6c91430f93fad58a8d712298
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 542522a8b7964b4a517bb4a1c68ae95ebbebab15ca4ef9ca8b6ce515b5a4df73e8c8b6dd27bf7c9273d6c879839c165ed94bfc17a2a26b069697b6badcbac3f9
|
7
|
+
data.tar.gz: 81b8db3ad10edbef672257239b2c9389f7292420feb7fab8343c9e2736bbc17835a55101c87dae84463b0c931fcc6d5acb6a9a27190a37dd284d1e2175d4a5f0
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
dbf (4.2.
|
4
|
+
dbf (4.2.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
9
|
ast (2.4.2)
|
10
10
|
awesome_print (1.9.2)
|
11
|
-
benchmark (0.2.0)
|
12
11
|
byebug (11.1.3)
|
13
12
|
coderay (1.1.3)
|
14
13
|
diff-lcs (1.5.0)
|
@@ -98,7 +97,6 @@ PLATFORMS
|
|
98
97
|
|
99
98
|
DEPENDENCIES
|
100
99
|
awesome_print
|
101
|
-
benchmark
|
102
100
|
byebug
|
103
101
|
dbf!
|
104
102
|
e2mmap
|
@@ -113,4 +111,4 @@ DEPENDENCIES
|
|
113
111
|
yard
|
114
112
|
|
115
113
|
BUNDLED WITH
|
116
|
-
2.3.
|
114
|
+
2.3.20
|
data/lib/dbf/record.rb
CHANGED
@@ -38,7 +38,7 @@ module DBF
|
|
38
38
|
#
|
39
39
|
# @return [Hash]
|
40
40
|
def attributes
|
41
|
-
@attributes ||= Hash[
|
41
|
+
@attributes ||= Hash[column_names.zip(to_a)]
|
42
42
|
end
|
43
43
|
|
44
44
|
# Do all search parameters match?
|
@@ -53,13 +53,13 @@ module DBF
|
|
53
53
|
#
|
54
54
|
# @return [Array]
|
55
55
|
def to_a
|
56
|
-
@columns.map { |column|
|
56
|
+
@to_a ||= @columns.map { |column| init_attribute(column) }
|
57
57
|
end
|
58
58
|
|
59
59
|
private
|
60
60
|
|
61
|
-
def
|
62
|
-
@columns.map { |column|
|
61
|
+
def column_names # :nodoc:
|
62
|
+
@column_names ||= @columns.map { |column| column.name }
|
63
63
|
end
|
64
64
|
|
65
65
|
def get_data(column) # :nodoc:
|
data/lib/dbf/version.rb
CHANGED
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.2.
|
4
|
+
version: 4.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keith Morrison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-15 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.
|