diff --git a/Gemfile.lock b/Gemfile.lock index b2b7341..f097232 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -70,6 +70,7 @@ GEM PLATFORMS arm64-darwin-22 arm64-darwin-23 + arm64-darwin-24 x86_64-linux DEPENDENCIES diff --git a/lib/shale/schema/xml_compiler.rb b/lib/shale/schema/xml_compiler.rb index 62614fc..bbca56a 100644 --- a/lib/shale/schema/xml_compiler.rb +++ b/lib/shale/schema/xml_compiler.rb @@ -111,7 +111,7 @@ class XMLCompiler # XML Schema "decimal" types # @api private XS_TYPE_DECIMAL = [ - "#{XS_NAMESPACE_URI}:decimal" + "#{XS_NAMESPACE_URI}:decimal", ].freeze # XML Schema "integer" types diff --git a/spec/shale/schema/xml_compiler_spec.rb b/spec/shale/schema/xml_compiler_spec.rb index 99abfdf..b59172c 100644 --- a/spec/shale/schema/xml_compiler_spec.rb +++ b/spec/shale/schema/xml_compiler_spec.rb @@ -851,7 +851,7 @@ - + diff --git a/spec/shale/type/complex_spec/with_types_spec.rb b/spec/shale/type/complex_spec/with_types_spec.rb index 6e63bfc..d4c908b 100644 --- a/spec/shale/type/complex_spec/with_types_spec.rb +++ b/spec/shale/type/complex_spec/with_types_spec.rb @@ -85,17 +85,17 @@ class Root < Shale::Mapper expect(instance.type_boolean_collection).to eq([true, false]) expect(instance.type_date_collection).to eq([ - Date.new(2022, 1, 1), - Date.new(2022, 1, 2), - ]) + Date.new(2022, 1, 1), + Date.new(2022, 1, 2), + ]) expect(instance.type_decimal_collection).to eq([BigDecimal('1.1'), BigDecimal('2.2')]) expect(instance.type_float_collection).to eq([1.1, 2.2]) expect(instance.type_integer_collection).to eq([1, 2]) expect(instance.type_string_collection).to eq(%w[foo bar]) expect(instance.type_time_collection).to eq([ - Time.new(2021, 1, 1, 10, 10, 10, '+01:00'), - Time.new(2021, 1, 2, 10, 10, 10, '+01:00'), - ]) + Time.new(2021, 1, 1, 10, 10, 10, '+01:00'), + Time.new(2021, 1, 2, 10, 10, 10, '+01:00'), + ]) # expect(instance.type_value_collection).to eq(['foo', 1, true]) expect(instance.child_collection[0].type_boolean).to eq(true) diff --git a/spec/shale/type/decimal_spec.rb b/spec/shale/type/decimal_spec.rb index 675b20b..6730e86 100644 --- a/spec/shale/type/decimal_spec.rb +++ b/spec/shale/type/decimal_spec.rb @@ -12,8 +12,8 @@ context 'when value is float' do it 'returns BigDecimal number' do - expect(described_class.cast(123.123)).to eq(BigDecimal("123.123")) - expect(described_class.cast(123.33)).to eq(BigDecimal("123.33")) + expect(described_class.cast(123.123)).to eq(BigDecimal('123.123')) + expect(described_class.cast(123.33)).to eq(BigDecimal('123.33')) end end @@ -37,7 +37,7 @@ context 'when value is anything other' do it 'returns BigDecimal value' do - expect(described_class.cast('123.123')).to eq(BigDecimal("123.123")) + expect(described_class.cast('123.123')).to eq(BigDecimal('123.123')) end end end