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 +4 -4
- data/lib/xml_resource/model.rb +1 -1
- data/lib/xml_resource/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 162d71e560ca3e955bf503f7806023f9ca853831
|
4
|
+
data.tar.gz: 860132f2c80926d6f2245b0e6de3bdfef7cba2d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06c727c1f22ca682bd26d2e7474db8d2feb7facc58cd44c5bd8f8a6f868df34c3b1671da8b03495cb92d8ef0211cdda5847bde06bda06a7e15973408fc6d3616
|
7
|
+
data.tar.gz: 2b589c01a341d86c5a2795be1653455dc9809bf161b1872f77a0d94b4e283c7b6a58711e04fcc597f1b2b13de8149fafe3c75545dc74ef22b6632b208f72eccd
|
data/lib/xml_resource/model.rb
CHANGED
@@ -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
|
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
|
data/lib/xml_resource/version.rb
CHANGED
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.
|
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.
|
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/
|
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/
|
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
|