nokogiri-happymapper-deiga 0.5.9

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