xml_resource 3.1.0 → 3.1.1

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
  SHA1:
3
- metadata.gz: de1ab78fcc96262051a83dcdb86d0ffcefb32c91
4
- data.tar.gz: 61e48f997133bc8a877a5185556365b164ad1567
3
+ metadata.gz: 162d71e560ca3e955bf503f7806023f9ca853831
4
+ data.tar.gz: 860132f2c80926d6f2245b0e6de3bdfef7cba2d9
5
5
  SHA512:
6
- metadata.gz: 13ea4d58a8fbed8d619cffd73b46e2ef5db4af97a7653b8b9d717a64cac0909e08f0118d1386ce37d5e09a7e5d89d3bf8247a76fa89dd0ce3676021804e87587
7
- data.tar.gz: e3d202e1fa89698f9bf2a851e45d9b2dac3bc06b65752189b889407331155901161ea9221f757d23d8b4fe3082d53add71b607edad5b64e2eeb5a4eb0e2c5228
6
+ metadata.gz: 06c727c1f22ca682bd26d2e7474db8d2feb7facc58cd44c5bd8f8a6f868df34c3b1671da8b03495cb92d8ef0211cdda5847bde06bda06a7e15973408fc6d3616
7
+ data.tar.gz: 2b589c01a341d86c5a2795be1653455dc9809bf161b1872f77a0d94b4e283c7b6a58711e04fcc597f1b2b13de8149fafe3c75545dc74ef22b6632b208f72eccd
@@ -131,7 +131,7 @@ module XmlResource
131
131
  when :integer then value.to_i
132
132
  when :float then value.to_f
133
133
  when :boolean then cast_to_boolean(value)
134
- when :decimal then BigDecimal.new(value)
134
+ when :decimal then BigDecimal(value, Float::DIG + 1)
135
135
  when :date then value.presence && Date.parse(value)
136
136
  when :time then value.presence && Time.parse(value)
137
137
  else
@@ -1,3 +1,3 @@
1
1
  module XmlResource
2
- VERSION = '3.1.0'
2
+ VERSION = '3.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xml_resource
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthias Grosser
@@ -113,21 +113,21 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  version: '0'
114
114
  requirements: []
115
115
  rubyforge_project:
116
- rubygems_version: 2.6.11
116
+ rubygems_version: 2.6.13
117
117
  signing_key:
118
118
  specification_version: 4
119
119
  summary: Turn XML into Ruby objects
120
120
  test_files:
121
- - test/data/inflection.xml
122
- - test/data/orders.xml
123
121
  - test/models/camel.rb
124
- - test/models/camelid.rb
122
+ - test/models/elephant.rb
123
+ - test/models/item.rb
124
+ - test/models/shark.rb
125
125
  - test/models/contact.rb
126
126
  - test/models/dromedary.rb
127
- - test/models/elephant.rb
128
127
  - test/models/gadget.rb
129
- - test/models/item.rb
128
+ - test/models/camelid.rb
130
129
  - test/models/order.rb
131
- - test/models/shark.rb
132
130
  - test/test_helper.rb
131
+ - test/data/inflection.xml
132
+ - test/data/orders.xml
133
133
  - test/xml_resource_test.rb