xmlmapper 0.5.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +35 -0
  3. data/README.md +605 -0
  4. data/lib/happymapper.rb +776 -0
  5. data/lib/happymapper/anonymous_mapper.rb +114 -0
  6. data/lib/happymapper/attribute.rb +21 -0
  7. data/lib/happymapper/element.rb +55 -0
  8. data/lib/happymapper/item.rb +160 -0
  9. data/lib/happymapper/supported_types.rb +140 -0
  10. data/lib/happymapper/text_node.rb +8 -0
  11. data/lib/happymapper/version.rb +3 -0
  12. data/lib/xmlmapper.rb +1 -0
  13. data/spec/attribute_default_value_spec.rb +50 -0
  14. data/spec/attributes_spec.rb +36 -0
  15. data/spec/fixtures/address.xml +9 -0
  16. data/spec/fixtures/ambigous_items.xml +22 -0
  17. data/spec/fixtures/analytics.xml +61 -0
  18. data/spec/fixtures/analytics_profile.xml +127 -0
  19. data/spec/fixtures/atom.xml +19 -0
  20. data/spec/fixtures/commit.xml +52 -0
  21. data/spec/fixtures/current_weather.xml +89 -0
  22. data/spec/fixtures/current_weather_missing_elements.xml +18 -0
  23. data/spec/fixtures/default_namespace_combi.xml +6 -0
  24. data/spec/fixtures/dictionary.xml +20 -0
  25. data/spec/fixtures/family_tree.xml +21 -0
  26. data/spec/fixtures/inagy.xml +85 -0
  27. data/spec/fixtures/lastfm.xml +355 -0
  28. data/spec/fixtures/multiple_namespaces.xml +170 -0
  29. data/spec/fixtures/multiple_primitives.xml +5 -0
  30. data/spec/fixtures/optional_attributes.xml +6 -0
  31. data/spec/fixtures/pita.xml +133 -0
  32. data/spec/fixtures/posts.xml +23 -0
  33. data/spec/fixtures/product_default_namespace.xml +18 -0
  34. data/spec/fixtures/product_no_namespace.xml +10 -0
  35. data/spec/fixtures/product_single_namespace.xml +10 -0
  36. data/spec/fixtures/quarters.xml +19 -0
  37. data/spec/fixtures/radar.xml +21 -0
  38. data/spec/fixtures/set_config_options.xml +3 -0
  39. data/spec/fixtures/statuses.xml +422 -0
  40. data/spec/fixtures/subclass_namespace.xml +50 -0
  41. data/spec/fixtures/wrapper.xml +11 -0
  42. data/spec/happymapper/attribute_spec.rb +12 -0
  43. data/spec/happymapper/element_spec.rb +9 -0
  44. data/spec/happymapper/item_spec.rb +115 -0
  45. data/spec/happymapper/text_node_spec.rb +9 -0
  46. data/spec/happymapper_parse_spec.rb +113 -0
  47. data/spec/happymapper_spec.rb +1116 -0
  48. data/spec/has_many_empty_array_spec.rb +43 -0
  49. data/spec/ignay_spec.rb +95 -0
  50. data/spec/inheritance_spec.rb +107 -0
  51. data/spec/mixed_namespaces_spec.rb +61 -0
  52. data/spec/parse_with_object_to_update_spec.rb +111 -0
  53. data/spec/spec_helper.rb +7 -0
  54. data/spec/to_xml_spec.rb +200 -0
  55. data/spec/to_xml_with_namespaces_spec.rb +231 -0
  56. data/spec/wilcard_tag_name_spec.rb +96 -0
  57. data/spec/wrap_spec.rb +82 -0
  58. data/spec/xpath_spec.rb +89 -0
  59. metadata +182 -0
metadata ADDED
@@ -0,0 +1,182 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: xmlmapper
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.9
5
+ platform: ruby
6
+ authors:
7
+ - Damien Le Berrigaud
8
+ - John Nunemaker
9
+ - David Bolton
10
+ - Roland Swingler
11
+ - Etienne Vallette d'Osia
12
+ - Franklin Webber
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+ date: 2015-11-23 00:00:00.000000000 Z
17
+ dependencies:
18
+ - !ruby/object:Gem::Dependency
19
+ name: nokogiri
20
+ requirement: !ruby/object:Gem::Requirement
21
+ requirements:
22
+ - - "~>"
23
+ - !ruby/object:Gem::Version
24
+ version: '1.5'
25
+ type: :runtime
26
+ prerelease: false
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - "~>"
30
+ - !ruby/object:Gem::Version
31
+ version: '1.5'
32
+ - !ruby/object:Gem::Dependency
33
+ name: rspec
34
+ requirement: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - "~>"
37
+ - !ruby/object:Gem::Version
38
+ version: '2.8'
39
+ type: :development
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - "~>"
44
+ - !ruby/object:Gem::Version
45
+ version: '2.8'
46
+ description: Object to XML Mapping Library, using Nokogiri (fork from John Nunemaker's
47
+ Happymapper)
48
+ email: bclaassen@digidentity.eu
49
+ executables: []
50
+ extensions: []
51
+ extra_rdoc_files:
52
+ - README.md
53
+ - CHANGELOG.md
54
+ files:
55
+ - CHANGELOG.md
56
+ - README.md
57
+ - lib/happymapper.rb
58
+ - lib/happymapper/anonymous_mapper.rb
59
+ - lib/happymapper/attribute.rb
60
+ - lib/happymapper/element.rb
61
+ - lib/happymapper/item.rb
62
+ - lib/happymapper/supported_types.rb
63
+ - lib/happymapper/text_node.rb
64
+ - lib/happymapper/version.rb
65
+ - lib/xmlmapper.rb
66
+ - spec/attribute_default_value_spec.rb
67
+ - spec/attributes_spec.rb
68
+ - spec/fixtures/address.xml
69
+ - spec/fixtures/ambigous_items.xml
70
+ - spec/fixtures/analytics.xml
71
+ - spec/fixtures/analytics_profile.xml
72
+ - spec/fixtures/atom.xml
73
+ - spec/fixtures/commit.xml
74
+ - spec/fixtures/current_weather.xml
75
+ - spec/fixtures/current_weather_missing_elements.xml
76
+ - spec/fixtures/default_namespace_combi.xml
77
+ - spec/fixtures/dictionary.xml
78
+ - spec/fixtures/family_tree.xml
79
+ - spec/fixtures/inagy.xml
80
+ - spec/fixtures/lastfm.xml
81
+ - spec/fixtures/multiple_namespaces.xml
82
+ - spec/fixtures/multiple_primitives.xml
83
+ - spec/fixtures/optional_attributes.xml
84
+ - spec/fixtures/pita.xml
85
+ - spec/fixtures/posts.xml
86
+ - spec/fixtures/product_default_namespace.xml
87
+ - spec/fixtures/product_no_namespace.xml
88
+ - spec/fixtures/product_single_namespace.xml
89
+ - spec/fixtures/quarters.xml
90
+ - spec/fixtures/radar.xml
91
+ - spec/fixtures/set_config_options.xml
92
+ - spec/fixtures/statuses.xml
93
+ - spec/fixtures/subclass_namespace.xml
94
+ - spec/fixtures/wrapper.xml
95
+ - spec/happymapper/attribute_spec.rb
96
+ - spec/happymapper/element_spec.rb
97
+ - spec/happymapper/item_spec.rb
98
+ - spec/happymapper/text_node_spec.rb
99
+ - spec/happymapper_parse_spec.rb
100
+ - spec/happymapper_spec.rb
101
+ - spec/has_many_empty_array_spec.rb
102
+ - spec/ignay_spec.rb
103
+ - spec/inheritance_spec.rb
104
+ - spec/mixed_namespaces_spec.rb
105
+ - spec/parse_with_object_to_update_spec.rb
106
+ - spec/spec_helper.rb
107
+ - spec/to_xml_spec.rb
108
+ - spec/to_xml_with_namespaces_spec.rb
109
+ - spec/wilcard_tag_name_spec.rb
110
+ - spec/wrap_spec.rb
111
+ - spec/xpath_spec.rb
112
+ homepage: http://github.com/digidentity/xmlmapper
113
+ licenses:
114
+ - MIT
115
+ metadata: {}
116
+ post_install_message:
117
+ rdoc_options: []
118
+ require_paths:
119
+ - lib
120
+ required_ruby_version: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ required_rubygems_version: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ version: '0'
130
+ requirements: []
131
+ rubyforge_project:
132
+ rubygems_version: 2.4.6
133
+ signing_key:
134
+ specification_version: 3
135
+ summary: Provides a simple way to map XML to Ruby Objects and back again.
136
+ test_files:
137
+ - spec/attribute_default_value_spec.rb
138
+ - spec/attributes_spec.rb
139
+ - spec/fixtures/address.xml
140
+ - spec/fixtures/ambigous_items.xml
141
+ - spec/fixtures/analytics.xml
142
+ - spec/fixtures/analytics_profile.xml
143
+ - spec/fixtures/atom.xml
144
+ - spec/fixtures/commit.xml
145
+ - spec/fixtures/current_weather.xml
146
+ - spec/fixtures/current_weather_missing_elements.xml
147
+ - spec/fixtures/default_namespace_combi.xml
148
+ - spec/fixtures/dictionary.xml
149
+ - spec/fixtures/family_tree.xml
150
+ - spec/fixtures/inagy.xml
151
+ - spec/fixtures/lastfm.xml
152
+ - spec/fixtures/multiple_namespaces.xml
153
+ - spec/fixtures/multiple_primitives.xml
154
+ - spec/fixtures/optional_attributes.xml
155
+ - spec/fixtures/pita.xml
156
+ - spec/fixtures/posts.xml
157
+ - spec/fixtures/product_default_namespace.xml
158
+ - spec/fixtures/product_no_namespace.xml
159
+ - spec/fixtures/product_single_namespace.xml
160
+ - spec/fixtures/quarters.xml
161
+ - spec/fixtures/radar.xml
162
+ - spec/fixtures/set_config_options.xml
163
+ - spec/fixtures/statuses.xml
164
+ - spec/fixtures/subclass_namespace.xml
165
+ - spec/fixtures/wrapper.xml
166
+ - spec/happymapper/attribute_spec.rb
167
+ - spec/happymapper/element_spec.rb
168
+ - spec/happymapper/item_spec.rb
169
+ - spec/happymapper/text_node_spec.rb
170
+ - spec/happymapper_parse_spec.rb
171
+ - spec/happymapper_spec.rb
172
+ - spec/has_many_empty_array_spec.rb
173
+ - spec/ignay_spec.rb
174
+ - spec/inheritance_spec.rb
175
+ - spec/mixed_namespaces_spec.rb
176
+ - spec/parse_with_object_to_update_spec.rb
177
+ - spec/spec_helper.rb
178
+ - spec/to_xml_spec.rb
179
+ - spec/to_xml_with_namespaces_spec.rb
180
+ - spec/wilcard_tag_name_spec.rb
181
+ - spec/wrap_spec.rb
182
+ - spec/xpath_spec.rb