Skip to content

Commit e61bbef

Browse files
committed
maintain support for ruby-3.0.x
1 parent 44f8bf7 commit e61bbef

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3.0
1+
3.0.6

lib/dbf/column.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def memo?
6161
#
6262
# @return [Hash]
6363
def to_hash
64-
{name:, type:, length:, decimal:}
64+
{name: name, type: type, length: length, decimal: decimal}
6565
end
6666

6767
# Underscored name

lib/dbf/database/foxpro.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def process_field(record, data)
105105
end
106106

107107
def table_field_hash(name)
108-
{name:, fields: []}
108+
{name: name, fields: []}
109109
end
110110
end
111111

lib/dbf/schema.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module Schema
3737
# @return [String]
3838
def schema(format = :activerecord, table_only: false)
3939
schema_method_name = schema_name(format)
40-
send(schema_method_name, table_only:)
40+
send(schema_method_name, table_only: table_only)
4141
rescue NameError
4242
raise ArgumentError, ":#{format} is not a valid schema. Valid schemas are: #{FORMATS.join(', ')}."
4343
end

spec/dbf/record_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151
describe 'if other attributes match' do
5252
let(:attributes) { {x: 1, y: 2} }
53-
let(:other) { instance_double('DBF::Record', attributes:) }
53+
let(:other) { instance_double('DBF::Record', attributes: attributes) }
5454

5555
before do
5656
allow(record).to receive(:attributes).and_return(attributes)

0 commit comments

Comments
 (0)