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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '018bddbea260f8bb7bbdb218a6601746377f9e07c68fb5785c2c03d39e9d1dfe'
4
- data.tar.gz: 9c906f4f7d62016d88d13e56f3565a2b1dfb387c1dabd013cde2bfc6eeb30b5d
3
+ metadata.gz: 429e8806f5675886a27b904b879c244f9808c83c3da82937d6953d13a01dd333
4
+ data.tar.gz: e3d916d24891b6f26237c41fc6cad865544b2c1b6c91430f93fad58a8d712298
5
5
  SHA512:
6
- metadata.gz: 912b2de5a0c39ba4b5ddbfdc815a13e0c59f252d1f4f4ec821246ead6a72da764bd3b2ee29a7c77feda5db6c6e5f2a7e9431c24abdee920691e04822c061541d
7
- data.tar.gz: 625a7f42e67cc0c52a40610ca5d65d397e93bd232fd6a08ac1d07773e915720720658e21279b085aed63a3d83adaa7dea55baf8be8985305bcc3b7de93abfd00
6
+ metadata.gz: 542522a8b7964b4a517bb4a1c68ae95ebbebab15ca4ef9ca8b6ce515b5a4df73e8c8b6dd27bf7c9273d6c879839c165ed94bfc17a2a26b069697b6badcbac3f9
7
+ data.tar.gz: 81b8db3ad10edbef672257239b2c9389f7292420feb7fab8343c9e2736bbc17835a55101c87dae84463b0c931fcc6d5acb6a9a27190a37dd284d1e2175d4a5f0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.2.2
4
+
5
+ - Faster CSV generation
6
+
7
+ ## 4.2.1
8
+
9
+ - Support for dBase IV "04" type files
10
+
3
11
  ## 4.2.0
4
12
 
5
13
  - Initial support for dBase 7 files
data/Gemfile.lock CHANGED
@@ -1,14 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dbf (4.2.0)
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.16
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[attribute_map]
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| attributes[column.name] }
56
+ @to_a ||= @columns.map { |column| init_attribute(column) }
57
57
  end
58
58
 
59
59
  private
60
60
 
61
- def attribute_map # :nodoc:
62
- @columns.map { |column| [column.name, init_attribute(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
@@ -1,3 +1,3 @@
1
1
  module DBF
2
- VERSION = '4.2.1'.freeze
2
+ VERSION = '4.2.2'.freeze
3
3
  end
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.1
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-07-18 00:00:00.000000000 Z
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.