ROXML 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +6 -0
- data/.gitmodules +3 -0
- data/History.txt +299 -0
- data/MIT-LICENSE +18 -0
- data/README.rdoc +161 -0
- data/Rakefile +95 -0
- data/TODO +39 -0
- data/VERSION +1 -0
- data/config/website.yml +2 -0
- data/examples/amazon.rb +35 -0
- data/examples/current_weather.rb +27 -0
- data/examples/dashed_elements.rb +20 -0
- data/examples/library.rb +40 -0
- data/examples/posts.rb +27 -0
- data/examples/rails.rb +70 -0
- data/examples/twitter.rb +37 -0
- data/examples/xml/active_record.xml +70 -0
- data/examples/xml/amazon.xml +133 -0
- data/examples/xml/current_weather.xml +89 -0
- data/examples/xml/dashed_elements.xml +52 -0
- data/examples/xml/posts.xml +23 -0
- data/examples/xml/twitter.xml +422 -0
- data/lib/roxml.rb +547 -0
- data/lib/roxml/definition.rb +236 -0
- data/lib/roxml/hash_definition.rb +25 -0
- data/lib/roxml/xml.rb +43 -0
- data/lib/roxml/xml/parsers/libxml.rb +91 -0
- data/lib/roxml/xml/parsers/nokogiri.rb +77 -0
- data/lib/roxml/xml/references.rb +297 -0
- data/roxml.gemspec +201 -0
- data/spec/definition_spec.rb +486 -0
- data/spec/examples/active_record_spec.rb +40 -0
- data/spec/examples/amazon_spec.rb +54 -0
- data/spec/examples/current_weather_spec.rb +37 -0
- data/spec/examples/dashed_elements_spec.rb +20 -0
- data/spec/examples/library_spec.rb +46 -0
- data/spec/examples/post_spec.rb +24 -0
- data/spec/examples/twitter_spec.rb +32 -0
- data/spec/roxml_spec.rb +372 -0
- data/spec/shared_specs.rb +15 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +14 -0
- data/spec/support/libxml.rb +3 -0
- data/spec/support/nokogiri.rb +3 -0
- data/spec/xml/attributes_spec.rb +36 -0
- data/spec/xml/namespace_spec.rb +240 -0
- data/spec/xml/namespaces_spec.rb +32 -0
- data/spec/xml/parser_spec.rb +26 -0
- data/tasks/rdoc.rake +13 -0
- data/tasks/rspec.rake +25 -0
- data/tasks/test.rake +35 -0
- data/test/fixtures/book_malformed.xml +5 -0
- data/test/fixtures/book_pair.xml +8 -0
- data/test/fixtures/book_text_with_attribute.xml +5 -0
- data/test/fixtures/book_valid.xml +5 -0
- data/test/fixtures/book_with_authors.xml +7 -0
- data/test/fixtures/book_with_contributions.xml +9 -0
- data/test/fixtures/book_with_contributors.xml +7 -0
- data/test/fixtures/book_with_contributors_attrs.xml +7 -0
- data/test/fixtures/book_with_default_namespace.xml +9 -0
- data/test/fixtures/book_with_depth.xml +6 -0
- data/test/fixtures/book_with_octal_pages.xml +4 -0
- data/test/fixtures/book_with_publisher.xml +7 -0
- data/test/fixtures/book_with_wrapped_attr.xml +3 -0
- data/test/fixtures/dictionary_of_attr_name_clashes.xml +8 -0
- data/test/fixtures/dictionary_of_attrs.xml +6 -0
- data/test/fixtures/dictionary_of_guarded_names.xml +6 -0
- data/test/fixtures/dictionary_of_mixeds.xml +4 -0
- data/test/fixtures/dictionary_of_name_clashes.xml +10 -0
- data/test/fixtures/dictionary_of_names.xml +4 -0
- data/test/fixtures/dictionary_of_texts.xml +10 -0
- data/test/fixtures/library.xml +30 -0
- data/test/fixtures/library_uppercase.xml +30 -0
- data/test/fixtures/muffins.xml +3 -0
- data/test/fixtures/nameless_ageless_youth.xml +2 -0
- data/test/fixtures/node_with_attr_name_conflicts.xml +1 -0
- data/test/fixtures/node_with_name_conflicts.xml +4 -0
- data/test/fixtures/numerology.xml +4 -0
- data/test/fixtures/person.xml +1 -0
- data/test/fixtures/person_with_guarded_mothers.xml +13 -0
- data/test/fixtures/person_with_mothers.xml +10 -0
- data/test/mocks/dictionaries.rb +57 -0
- data/test/mocks/mocks.rb +279 -0
- data/test/support/fixtures.rb +11 -0
- data/test/test_helper.rb +34 -0
- data/test/unit/definition_test.rb +235 -0
- data/test/unit/deprecations_test.rb +24 -0
- data/test/unit/to_xml_test.rb +81 -0
- data/test/unit/xml_attribute_test.rb +39 -0
- data/test/unit/xml_block_test.rb +81 -0
- data/test/unit/xml_bool_test.rb +122 -0
- data/test/unit/xml_convention_test.rb +150 -0
- data/test/unit/xml_hash_test.rb +115 -0
- data/test/unit/xml_initialize_test.rb +49 -0
- data/test/unit/xml_name_test.rb +141 -0
- data/test/unit/xml_namespace_test.rb +31 -0
- data/test/unit/xml_object_test.rb +207 -0
- data/test/unit/xml_required_test.rb +94 -0
- data/test/unit/xml_text_test.rb +71 -0
- data/website/index.html +98 -0
- 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
|