xml-fu 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,7 @@
1
+ ### 0.1.5
2
+
3
+ * Fix false positive for Node value responding to "to_datetime" by checking explicitly for String values before hand.
4
+
1
5
  ### 0.1.4
2
6
 
3
7
  * Bug Fix with converting non-Array, non-Hash values to their proper XML string equivalent.
@@ -114,6 +114,7 @@ module XmlFu
114
114
  # Custom Setter for @value instance method
115
115
  def value=(val)
116
116
  case val
117
+ when ::String then @value = val.to_s
117
118
  when ::Hash then @value = val
118
119
  when ::Array then @value = val
119
120
  when ::DateTime then @value = val.strftime XS_DATETIME_FORMAT
@@ -1,3 +1,3 @@
1
1
  module XmlFu
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xml-fu
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Johnson