dbf 4.3.1 → 4.3.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: 8d40b6c4a0c614eda7638ef810b682b3ee767153b95cc4075d90c1f12937e57c
4
- data.tar.gz: 6b74646387585dc0d497181d2253324cf92717b217b6642f5a1e307a7413e557
3
+ metadata.gz: c754ead4e347035e5997c61369dc602784ed7b1c6abda474d4f5678980d6280a
4
+ data.tar.gz: 5b8494f61b66720690b77cb11fc4bc2bfa778dd51e269b5091c9a77cb3c74c4e
5
5
  SHA512:
6
- metadata.gz: 98414f9a53a66b60f69b419740cb2f28eff4bdd81de67e5b09b9ae274c1f5a2e40c8730546f4719c09078b590837b1da607685833034f96a86ab2bea62637629
7
- data.tar.gz: 28a3a92617d4d889777d718cd88f43cec0217c6fd64135375699f81047186ddad0d1a345f32e2822d8f29a192fec579bef255efd316c5fb10594740042cd63a3
6
+ metadata.gz: bffdced2430256755264936f67bbabc996add3b10b89f39e0c03b53203b859eabf760d5d6c0660679e741daee619f4dc69c4707c7cca6fea4c86719709b99461
7
+ data.tar.gz: 447cd7a12f995dcd2fcedf4e0c9c009b9d5b990e2ce2bd0eac65515a98247bb112fd230b5fd4023bf1478ee407dedcac42e50102ed1cbd73ade5608056aa0ea9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.3.2
4
+
5
+ - Fixes to maintain support for Ruby 3.0.x until it's EOL
6
+
3
7
  ## 4.3.1
4
8
 
5
9
  - Fix bug (since 4.2.0) that caused column names not to be truncated after null character
data/lib/dbf/column.rb CHANGED
@@ -61,7 +61,7 @@ module DBF
61
61
  #
62
62
  # @return [Hash]
63
63
  def to_hash
64
- {name:, type:, length:, decimal:}
64
+ {name: name, type: type, length: length, decimal: decimal}
65
65
  end
66
66
 
67
67
  # Underscored name
@@ -105,7 +105,7 @@ module DBF
105
105
  end
106
106
 
107
107
  def table_field_hash(name)
108
- {name:, fields: []}
108
+ {name: name, fields: []}
109
109
  end
110
110
  end
111
111
 
data/lib/dbf/schema.rb CHANGED
@@ -37,7 +37,7 @@ module DBF
37
37
  # @return [String]
38
38
  def schema(format = :activerecord, table_only: false)
39
39
  schema_method_name = schema_name(format)
40
- send(schema_method_name, table_only:)
40
+ send(schema_method_name, table_only: table_only)
41
41
  rescue NameError
42
42
  raise ArgumentError, ":#{format} is not a valid schema. Valid schemas are: #{FORMATS.join(', ')}."
43
43
  end
data/lib/dbf/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DBF
2
- VERSION = '4.3.1'.freeze
2
+ VERSION = '4.3.2'.freeze
3
3
  end
@@ -50,7 +50,7 @@ RSpec.describe DBF::Record do
50
50
 
51
51
  describe 'if other attributes match' do
52
52
  let(:attributes) { {x: 1, y: 2} }
53
- let(:other) { instance_double('DBF::Record', attributes:) }
53
+ let(:other) { instance_double('DBF::Record', attributes: attributes) }
54
54
 
55
55
  before do
56
56
  allow(record).to receive(:attributes).and_return(attributes)
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.3.1
4
+ version: 4.3.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: 2024-01-22 00:00:00.000000000 Z
11
+ date: 2024-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: csv
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  - !ruby/object:Gem::Version
126
126
  version: 1.3.0
127
127
  requirements: []
128
- rubygems_version: 3.5.3
128
+ rubygems_version: 3.4.12
129
129
  signing_key:
130
130
  specification_version: 4
131
131
  summary: Read xBase files