Skip to content

Commit

Permalink
maintain support for ruby-3.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
infused committed Jan 23, 2024
1 parent 44f8bf7 commit e61bbef
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.0
3.0.6
2 changes: 1 addition & 1 deletion lib/dbf/column.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def memo?
#
# @return [Hash]
def to_hash
{name:, type:, length:, decimal:}
{name: name, type: type, length: length, decimal: decimal}
end

# Underscored name
Expand Down
2 changes: 1 addition & 1 deletion lib/dbf/database/foxpro.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def process_field(record, data)
end

def table_field_hash(name)
{name:, fields: []}
{name: name, fields: []}
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/dbf/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module Schema
# @return [String]
def schema(format = :activerecord, table_only: false)
schema_method_name = schema_name(format)
send(schema_method_name, table_only:)
send(schema_method_name, table_only: table_only)
rescue NameError
raise ArgumentError, ":#{format} is not a valid schema. Valid schemas are: #{FORMATS.join(', ')}."
end
Expand Down
2 changes: 1 addition & 1 deletion spec/dbf/record_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

describe 'if other attributes match' do
let(:attributes) { {x: 1, y: 2} }
let(:other) { instance_double('DBF::Record', attributes:) }
let(:other) { instance_double('DBF::Record', attributes: attributes) }

before do
allow(record).to receive(:attributes).and_return(attributes)
Expand Down

0 comments on commit e61bbef

Please sign in to comment.