ROXML 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. data/.gitignore +6 -0
  2. data/.gitmodules +3 -0
  3. data/History.txt +299 -0
  4. data/MIT-LICENSE +18 -0
  5. data/README.rdoc +161 -0
  6. data/Rakefile +95 -0
  7. data/TODO +39 -0
  8. data/VERSION +1 -0
  9. data/config/website.yml +2 -0
  10. data/examples/amazon.rb +35 -0
  11. data/examples/current_weather.rb +27 -0
  12. data/examples/dashed_elements.rb +20 -0
  13. data/examples/library.rb +40 -0
  14. data/examples/posts.rb +27 -0
  15. data/examples/rails.rb +70 -0
  16. data/examples/twitter.rb +37 -0
  17. data/examples/xml/active_record.xml +70 -0
  18. data/examples/xml/amazon.xml +133 -0
  19. data/examples/xml/current_weather.xml +89 -0
  20. data/examples/xml/dashed_elements.xml +52 -0
  21. data/examples/xml/posts.xml +23 -0
  22. data/examples/xml/twitter.xml +422 -0
  23. data/lib/roxml.rb +547 -0
  24. data/lib/roxml/definition.rb +236 -0
  25. data/lib/roxml/hash_definition.rb +25 -0
  26. data/lib/roxml/xml.rb +43 -0
  27. data/lib/roxml/xml/parsers/libxml.rb +91 -0
  28. data/lib/roxml/xml/parsers/nokogiri.rb +77 -0
  29. data/lib/roxml/xml/references.rb +297 -0
  30. data/roxml.gemspec +201 -0
  31. data/spec/definition_spec.rb +486 -0
  32. data/spec/examples/active_record_spec.rb +40 -0
  33. data/spec/examples/amazon_spec.rb +54 -0
  34. data/spec/examples/current_weather_spec.rb +37 -0
  35. data/spec/examples/dashed_elements_spec.rb +20 -0
  36. data/spec/examples/library_spec.rb +46 -0
  37. data/spec/examples/post_spec.rb +24 -0
  38. data/spec/examples/twitter_spec.rb +32 -0
  39. data/spec/roxml_spec.rb +372 -0
  40. data/spec/shared_specs.rb +15 -0
  41. data/spec/spec.opts +1 -0
  42. data/spec/spec_helper.rb +14 -0
  43. data/spec/support/libxml.rb +3 -0
  44. data/spec/support/nokogiri.rb +3 -0
  45. data/spec/xml/attributes_spec.rb +36 -0
  46. data/spec/xml/namespace_spec.rb +240 -0
  47. data/spec/xml/namespaces_spec.rb +32 -0
  48. data/spec/xml/parser_spec.rb +26 -0
  49. data/tasks/rdoc.rake +13 -0
  50. data/tasks/rspec.rake +25 -0
  51. data/tasks/test.rake +35 -0
  52. data/test/fixtures/book_malformed.xml +5 -0
  53. data/test/fixtures/book_pair.xml +8 -0
  54. data/test/fixtures/book_text_with_attribute.xml +5 -0
  55. data/test/fixtures/book_valid.xml +5 -0
  56. data/test/fixtures/book_with_authors.xml +7 -0
  57. data/test/fixtures/book_with_contributions.xml +9 -0
  58. data/test/fixtures/book_with_contributors.xml +7 -0
  59. data/test/fixtures/book_with_contributors_attrs.xml +7 -0
  60. data/test/fixtures/book_with_default_namespace.xml +9 -0
  61. data/test/fixtures/book_with_depth.xml +6 -0
  62. data/test/fixtures/book_with_octal_pages.xml +4 -0
  63. data/test/fixtures/book_with_publisher.xml +7 -0
  64. data/test/fixtures/book_with_wrapped_attr.xml +3 -0
  65. data/test/fixtures/dictionary_of_attr_name_clashes.xml +8 -0
  66. data/test/fixtures/dictionary_of_attrs.xml +6 -0
  67. data/test/fixtures/dictionary_of_guarded_names.xml +6 -0
  68. data/test/fixtures/dictionary_of_mixeds.xml +4 -0
  69. data/test/fixtures/dictionary_of_name_clashes.xml +10 -0
  70. data/test/fixtures/dictionary_of_names.xml +4 -0
  71. data/test/fixtures/dictionary_of_texts.xml +10 -0
  72. data/test/fixtures/library.xml +30 -0
  73. data/test/fixtures/library_uppercase.xml +30 -0
  74. data/test/fixtures/muffins.xml +3 -0
  75. data/test/fixtures/nameless_ageless_youth.xml +2 -0
  76. data/test/fixtures/node_with_attr_name_conflicts.xml +1 -0
  77. data/test/fixtures/node_with_name_conflicts.xml +4 -0
  78. data/test/fixtures/numerology.xml +4 -0
  79. data/test/fixtures/person.xml +1 -0
  80. data/test/fixtures/person_with_guarded_mothers.xml +13 -0
  81. data/test/fixtures/person_with_mothers.xml +10 -0
  82. data/test/mocks/dictionaries.rb +57 -0
  83. data/test/mocks/mocks.rb +279 -0
  84. data/test/support/fixtures.rb +11 -0
  85. data/test/test_helper.rb +34 -0
  86. data/test/unit/definition_test.rb +235 -0
  87. data/test/unit/deprecations_test.rb +24 -0
  88. data/test/unit/to_xml_test.rb +81 -0
  89. data/test/unit/xml_attribute_test.rb +39 -0
  90. data/test/unit/xml_block_test.rb +81 -0
  91. data/test/unit/xml_bool_test.rb +122 -0
  92. data/test/unit/xml_convention_test.rb +150 -0
  93. data/test/unit/xml_hash_test.rb +115 -0
  94. data/test/unit/xml_initialize_test.rb +49 -0
  95. data/test/unit/xml_name_test.rb +141 -0
  96. data/test/unit/xml_namespace_test.rb +31 -0
  97. data/test/unit/xml_object_test.rb +207 -0
  98. data/test/unit/xml_required_test.rb +94 -0
  99. data/test/unit/xml_text_test.rb +71 -0
  100. data/website/index.html +98 -0
  101. metadata +254 -0
metadata ADDED
@@ -0,0 +1,254 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ROXML
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Ben Woosley
8
+ - Zak Mandhro
9
+ - Anders Engstrom
10
+ - Russ Olsen
11
+ autorequire:
12
+ bindir: bin
13
+ cert_chain: []
14
+
15
+ date: 2009-10-16 00:00:00 -04:00
16
+ default_executable:
17
+ dependencies:
18
+ - !ruby/object:Gem::Dependency
19
+ name: activesupport
20
+ type: :runtime
21
+ version_requirement:
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 2.1.0
27
+ version:
28
+ - !ruby/object:Gem::Dependency
29
+ name: nokogiri
30
+ type: :runtime
31
+ version_requirement:
32
+ version_requirements: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 1.3.3
37
+ version:
38
+ - !ruby/object:Gem::Dependency
39
+ name: rspec
40
+ type: :development
41
+ version_requirement:
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: "0"
47
+ version:
48
+ - !ruby/object:Gem::Dependency
49
+ name: sqlite3-ruby
50
+ type: :development
51
+ version_requirement:
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 1.2.4
57
+ version:
58
+ - !ruby/object:Gem::Dependency
59
+ name: activerecord
60
+ type: :development
61
+ version_requirement:
62
+ version_requirements: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: 2.2.2
67
+ version:
68
+ description: |
69
+ ROXML is a Ruby library designed to make it easier for Ruby developers to work with XML.
70
+ Using simple annotations, it enables Ruby classes to be mapped to XML. ROXML takes care
71
+ of the marshalling and unmarshalling of mapped attributes so that developers can focus on
72
+ building first-class Ruby classes. As a result, ROXML simplifies the development of
73
+ RESTful applications, Web Services, and XML-RPC.
74
+
75
+ email: ben.woosley@gmail.com
76
+ executables: []
77
+
78
+ extensions: []
79
+
80
+ extra_rdoc_files:
81
+ - History.txt
82
+ - README.rdoc
83
+ files:
84
+ - .gitignore
85
+ - .gitmodules
86
+ - History.txt
87
+ - MIT-LICENSE
88
+ - README.rdoc
89
+ - Rakefile
90
+ - TODO
91
+ - VERSION
92
+ - config/website.yml
93
+ - examples/amazon.rb
94
+ - examples/current_weather.rb
95
+ - examples/dashed_elements.rb
96
+ - examples/library.rb
97
+ - examples/posts.rb
98
+ - examples/rails.rb
99
+ - examples/twitter.rb
100
+ - examples/xml/active_record.xml
101
+ - examples/xml/amazon.xml
102
+ - examples/xml/current_weather.xml
103
+ - examples/xml/dashed_elements.xml
104
+ - examples/xml/posts.xml
105
+ - examples/xml/twitter.xml
106
+ - lib/roxml.rb
107
+ - lib/roxml/definition.rb
108
+ - lib/roxml/hash_definition.rb
109
+ - lib/roxml/xml.rb
110
+ - lib/roxml/xml/parsers/libxml.rb
111
+ - lib/roxml/xml/parsers/nokogiri.rb
112
+ - lib/roxml/xml/references.rb
113
+ - roxml.gemspec
114
+ - spec/definition_spec.rb
115
+ - spec/examples/active_record_spec.rb
116
+ - spec/examples/amazon_spec.rb
117
+ - spec/examples/current_weather_spec.rb
118
+ - spec/examples/dashed_elements_spec.rb
119
+ - spec/examples/library_spec.rb
120
+ - spec/examples/post_spec.rb
121
+ - spec/examples/twitter_spec.rb
122
+ - spec/roxml_spec.rb
123
+ - spec/shared_specs.rb
124
+ - spec/spec.opts
125
+ - spec/spec_helper.rb
126
+ - spec/support/libxml.rb
127
+ - spec/support/nokogiri.rb
128
+ - spec/xml/attributes_spec.rb
129
+ - spec/xml/namespace_spec.rb
130
+ - spec/xml/namespaces_spec.rb
131
+ - spec/xml/parser_spec.rb
132
+ - tasks/rdoc.rake
133
+ - tasks/rspec.rake
134
+ - tasks/test.rake
135
+ - test/fixtures/book_malformed.xml
136
+ - test/fixtures/book_pair.xml
137
+ - test/fixtures/book_text_with_attribute.xml
138
+ - test/fixtures/book_valid.xml
139
+ - test/fixtures/book_with_authors.xml
140
+ - test/fixtures/book_with_contributions.xml
141
+ - test/fixtures/book_with_contributors.xml
142
+ - test/fixtures/book_with_contributors_attrs.xml
143
+ - test/fixtures/book_with_default_namespace.xml
144
+ - test/fixtures/book_with_depth.xml
145
+ - test/fixtures/book_with_octal_pages.xml
146
+ - test/fixtures/book_with_publisher.xml
147
+ - test/fixtures/book_with_wrapped_attr.xml
148
+ - test/fixtures/dictionary_of_attr_name_clashes.xml
149
+ - test/fixtures/dictionary_of_attrs.xml
150
+ - test/fixtures/dictionary_of_guarded_names.xml
151
+ - test/fixtures/dictionary_of_mixeds.xml
152
+ - test/fixtures/dictionary_of_name_clashes.xml
153
+ - test/fixtures/dictionary_of_names.xml
154
+ - test/fixtures/dictionary_of_texts.xml
155
+ - test/fixtures/library.xml
156
+ - test/fixtures/library_uppercase.xml
157
+ - test/fixtures/muffins.xml
158
+ - test/fixtures/nameless_ageless_youth.xml
159
+ - test/fixtures/node_with_attr_name_conflicts.xml
160
+ - test/fixtures/node_with_name_conflicts.xml
161
+ - test/fixtures/numerology.xml
162
+ - test/fixtures/person.xml
163
+ - test/fixtures/person_with_guarded_mothers.xml
164
+ - test/fixtures/person_with_mothers.xml
165
+ - test/mocks/dictionaries.rb
166
+ - test/mocks/mocks.rb
167
+ - test/support/fixtures.rb
168
+ - test/test_helper.rb
169
+ - test/unit/definition_test.rb
170
+ - test/unit/deprecations_test.rb
171
+ - test/unit/to_xml_test.rb
172
+ - test/unit/xml_attribute_test.rb
173
+ - test/unit/xml_block_test.rb
174
+ - test/unit/xml_bool_test.rb
175
+ - test/unit/xml_convention_test.rb
176
+ - test/unit/xml_hash_test.rb
177
+ - test/unit/xml_initialize_test.rb
178
+ - test/unit/xml_name_test.rb
179
+ - test/unit/xml_namespace_test.rb
180
+ - test/unit/xml_object_test.rb
181
+ - test/unit/xml_required_test.rb
182
+ - test/unit/xml_text_test.rb
183
+ - website/index.html
184
+ has_rdoc: true
185
+ homepage: http://roxml.rubyforge.org
186
+ licenses: []
187
+
188
+ post_install_message:
189
+ rdoc_options:
190
+ - --charset=UTF-8
191
+ require_paths:
192
+ - lib
193
+ required_ruby_version: !ruby/object:Gem::Requirement
194
+ requirements:
195
+ - - ">="
196
+ - !ruby/object:Gem::Version
197
+ version: "0"
198
+ version:
199
+ required_rubygems_version: !ruby/object:Gem::Requirement
200
+ requirements:
201
+ - - ">="
202
+ - !ruby/object:Gem::Version
203
+ version: "0"
204
+ version:
205
+ requirements: []
206
+
207
+ rubyforge_project: roxml
208
+ rubygems_version: 1.3.5
209
+ signing_key:
210
+ specification_version: 3
211
+ summary: Ruby Object to XML mapping library
212
+ test_files:
213
+ - spec/definition_spec.rb
214
+ - spec/examples/active_record_spec.rb
215
+ - spec/examples/amazon_spec.rb
216
+ - spec/examples/current_weather_spec.rb
217
+ - spec/examples/dashed_elements_spec.rb
218
+ - spec/examples/library_spec.rb
219
+ - spec/examples/post_spec.rb
220
+ - spec/examples/twitter_spec.rb
221
+ - spec/roxml_spec.rb
222
+ - spec/shared_specs.rb
223
+ - spec/spec_helper.rb
224
+ - spec/support/libxml.rb
225
+ - spec/support/nokogiri.rb
226
+ - spec/xml/attributes_spec.rb
227
+ - spec/xml/namespace_spec.rb
228
+ - spec/xml/namespaces_spec.rb
229
+ - spec/xml/parser_spec.rb
230
+ - test/mocks/dictionaries.rb
231
+ - test/mocks/mocks.rb
232
+ - test/support/fixtures.rb
233
+ - test/test_helper.rb
234
+ - test/unit/definition_test.rb
235
+ - test/unit/deprecations_test.rb
236
+ - test/unit/to_xml_test.rb
237
+ - test/unit/xml_attribute_test.rb
238
+ - test/unit/xml_block_test.rb
239
+ - test/unit/xml_bool_test.rb
240
+ - test/unit/xml_convention_test.rb
241
+ - test/unit/xml_hash_test.rb
242
+ - test/unit/xml_initialize_test.rb
243
+ - test/unit/xml_name_test.rb
244
+ - test/unit/xml_namespace_test.rb
245
+ - test/unit/xml_object_test.rb
246
+ - test/unit/xml_required_test.rb
247
+ - test/unit/xml_text_test.rb
248
+ - examples/amazon.rb
249
+ - examples/current_weather.rb
250
+ - examples/dashed_elements.rb
251
+ - examples/library.rb
252
+ - examples/posts.rb
253
+ - examples/rails.rb
254
+ - examples/twitter.rb