diff --git a/.ruby-version b/.ruby-version index 15a2799..818bd47 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.3.0 +3.0.6 diff --git a/lib/dbf/column.rb b/lib/dbf/column.rb index b36ce6f..a2bcd7b 100644 --- a/lib/dbf/column.rb +++ b/lib/dbf/column.rb @@ -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 diff --git a/lib/dbf/database/foxpro.rb b/lib/dbf/database/foxpro.rb index b2e1476..fcc65c3 100644 --- a/lib/dbf/database/foxpro.rb +++ b/lib/dbf/database/foxpro.rb @@ -105,7 +105,7 @@ def process_field(record, data) end def table_field_hash(name) - {name:, fields: []} + {name: name, fields: []} end end diff --git a/lib/dbf/schema.rb b/lib/dbf/schema.rb index 077a2de..7804caf 100644 --- a/lib/dbf/schema.rb +++ b/lib/dbf/schema.rb @@ -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 diff --git a/spec/dbf/record_spec.rb b/spec/dbf/record_spec.rb index 3b3648d..72b6ded 100644 --- a/spec/dbf/record_spec.rb +++ b/spec/dbf/record_spec.rb @@ -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)