xml_schema_mapper 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/thor/xsd_mappers.rb +16 -0
- data/lib/xml_schema_mapper/version.rb +1 -1
- metadata +2 -2
data/lib/thor/xsd_mappers.rb
CHANGED
@@ -103,3 +103,19 @@ module XsdMappers
|
|
103
103
|
end
|
104
104
|
end
|
105
105
|
end
|
106
|
+
|
107
|
+
module LibXML
|
108
|
+
module XML
|
109
|
+
class Schema::Type
|
110
|
+
def annonymus_subtypes_recursively(parent=nil)
|
111
|
+
annonymus_subtypes.map do |element_name, e|
|
112
|
+
parent_name = [parent, element_name].compact.join('::')
|
113
|
+
|
114
|
+
[{parent_name => e.type},
|
115
|
+
e.type.annonymus_subtypes_recursively(parent_name)]
|
116
|
+
|
117
|
+
end.flatten
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: xml_schema_mapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.10
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Anton Sozontov
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-06-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
version_requirements: !ruby/object:Gem::Requirement
|