xommelier 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
data/lib/xommelier/version.rb
CHANGED
@@ -60,7 +60,8 @@ module Xommelier
|
|
60
60
|
|
61
61
|
def to_xml(options = {})
|
62
62
|
options = SERIALIZATION_OPTIONS.merge(options)
|
63
|
-
element_name = options.delete(:element_name) { self.element_name }
|
63
|
+
element_name = options.delete(:element_name) { self.element_name }.to_s
|
64
|
+
element_name << '_' if %w(text class id).include?(element_name)
|
64
65
|
if options[:builder] # Non-root element
|
65
66
|
builder = options.delete(:builder)
|
66
67
|
attribute_values = {}
|
data/spec/lib/xommelier_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xommelier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-04-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
149
|
version: '0'
|
150
150
|
requirements: []
|
151
151
|
rubyforge_project: xommelier
|
152
|
-
rubygems_version: 1.8.
|
152
|
+
rubygems_version: 1.8.21
|
153
153
|
signing_key:
|
154
154
|
specification_version: 3
|
155
155
|
summary: Xommelier is an XML Sommelier
|