xml_schema_mapper 0.0.1 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/lib/thor/templates/converter_class.erb +17 -10
- data/lib/thor/templates/converter_spec.erb +8 -7
- data/lib/thor/templates/mapper_class.erb +28 -9
- data/lib/thor/templates/mapper_spec.erb +15 -9
- data/lib/thor/xsd_mappers.rb +66 -21
- data/lib/xml_schema_mapper.rb +99 -23
- data/lib/xml_schema_mapper/builder.rb +69 -27
- data/lib/xml_schema_mapper/element.rb +39 -34
- data/lib/xml_schema_mapper/namespace_resolver.rb +33 -0
- data/lib/xml_schema_mapper/parser.rb +68 -8
- data/lib/xml_schema_mapper/test_builder.rb +84 -0
- data/lib/xml_schema_mapper/version.rb +1 -1
- data/spec/build_xml_spec.rb +3 -3
- data/spec/builder_spec.rb +23 -8
- data/spec/fixtures/UserService.xsd +23 -2
- data/spec/fixtures/common.xsd +1 -1
- data/spec/fixtures/get_first_name.xml +8 -8
- data/spec/fixtures/instance1.xml +8 -8
- data/spec/fixtures/instance_with_arrays.xml +29 -0
- data/spec/fixtures/user_service.rb +113 -4
- data/spec/parse_xml_spec.rb +51 -9
- data/spec/visitor_spec.rb +167 -0
- data/spec/xml_schema_mapper_spec.rb +2 -2
- metadata +40 -42
- data/.idea/.rakeTasks +0 -7
- data/.idea/encodings.xml +0 -5
- data/.idea/misc.xml +0 -8
- data/.idea/modules.xml +0 -9
- data/.idea/scopes/scope_settings.xml +0 -5
- data/.idea/vcs.xml +0 -7
- data/.idea/workspace.xml +0 -459
- data/.idea/xml_schema_mapper.iml +0 -29
data/.idea/xml_schema_mapper.iml
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<module type="RUBY_MODULE" version="4">
|
3
|
-
<component name="NewModuleRootManager">
|
4
|
-
<content url="file://$MODULE_DIR$" />
|
5
|
-
<orderEntry type="inheritedJdk" />
|
6
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
7
|
-
<orderEntry type="library" scope="PROVIDED" name="activesupport (v3.2.6, RVM: ruby-1.9.3-p194) [gem]" level="application" />
|
8
|
-
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.1.3, RVM: ruby-1.9.3-p194) [gem]" level="application" />
|
9
|
-
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.1.3, RVM: ruby-1.9.3-p194) [gem]" level="application" />
|
10
|
-
<orderEntry type="library" scope="PROVIDED" name="ffi (v1.0.11, RVM: ruby-1.9.3-p194) [gem]" level="application" />
|
11
|
-
<orderEntry type="library" scope="PROVIDED" name="guard (v1.2.3, RVM: ruby-1.9.3-p194) [gem]" level="application" />
|
12
|
-
<orderEntry type="library" scope="PROVIDED" name="guard-rspec (v1.2.0, RVM: ruby-1.9.3-p194) [gem]" level="application" />
|
13
|
-
<orderEntry type="library" scope="PROVIDED" name="i18n (v0.6.0, RVM: ruby-1.9.3-p194) [gem]" level="application" />
|
14
|
-
<orderEntry type="library" scope="PROVIDED" name="libxml-ruby (vruby, /Users/antonsozontov/Projects/libxml-ruby) [path][gem]" level="application" />
|
15
|
-
<orderEntry type="library" scope="PROVIDED" name="listen (v0.4.7, RVM: ruby-1.9.3-p194) [gem]" level="application" />
|
16
|
-
<orderEntry type="library" scope="PROVIDED" name="multi_json (v1.3.6, RVM: ruby-1.9.3-p194) [gem]" level="application" />
|
17
|
-
<orderEntry type="library" scope="PROVIDED" name="nokogiri (v1.5.5, RVM: ruby-1.9.3-p194) [gem]" level="application" />
|
18
|
-
<orderEntry type="library" scope="PROVIDED" name="rb-fchange (v0.0.5, RVM: ruby-1.9.3-p194) [gem]" level="application" />
|
19
|
-
<orderEntry type="library" scope="PROVIDED" name="rb-fsevent (v0.9.1, RVM: ruby-1.9.3-p194) [gem]" level="application" />
|
20
|
-
<orderEntry type="library" scope="PROVIDED" name="rb-inotify (v0.8.8, RVM: ruby-1.9.3-p194) [gem]" level="application" />
|
21
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec (v2.11.0, RVM: ruby-1.9.3-p194) [gem]" level="application" />
|
22
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.11.0, RVM: ruby-1.9.3-p194) [gem]" level="application" />
|
23
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v2.11.1, RVM: ruby-1.9.3-p194) [gem]" level="application" />
|
24
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v2.11.1, RVM: ruby-1.9.3-p194) [gem]" level="application" />
|
25
|
-
<orderEntry type="library" scope="PROVIDED" name="thor (v0.15.4, RVM: ruby-1.9.3-p194) [gem]" level="application" />
|
26
|
-
<orderEntry type="library" scope="PROVIDED" name="virtus (v0.5.1, RVM: ruby-1.9.3-p194) [gem]" level="application" />
|
27
|
-
</component>
|
28
|
-
</module>
|
29
|
-
|