roxml 2.3.2 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +145 -0
- data/Manifest.txt +81 -0
- data/Rakefile +85 -95
- data/TODO +42 -0
- data/html/index.html +278 -0
- data/html/style.css +79 -0
- data/lib/roxml.rb +112 -49
- data/lib/roxml/extensions/active_support.rb +37 -12
- data/lib/roxml/extensions/array/conversions.rb +12 -2
- data/lib/roxml/extensions/deprecation.rb +4 -4
- data/lib/roxml/options.rb +39 -30
- data/lib/roxml/xml.rb +119 -54
- data/lib/roxml/xml/rexml.rb +2 -2
- data/roxml.gemspec +40 -101
- data/tasks/test.rake +42 -0
- data/test/bugs/rexml_bugs.rb +15 -0
- data/test/fixtures/book_with_octal_pages.xml +4 -0
- data/test/mocks/mocks.rb +0 -4
- data/test/test_helper.rb +1 -1
- data/test/unit/array_test.rb +16 -0
- data/test/unit/freeze_test.rb +71 -0
- data/test/unit/inheritance_test.rb +26 -3
- data/test/unit/options_test.rb +20 -19
- data/test/unit/overriden_output_test.rb +33 -0
- data/test/unit/roxml_test.rb +7 -0
- data/test/unit/xml_bool_test.rb +16 -11
- data/test/unit/xml_convention_test.rb +150 -0
- data/test/unit/xml_hash_test.rb +41 -0
- data/test/unit/xml_name_test.rb +29 -6
- data/test/unit/xml_object_test.rb +30 -0
- data/vendor/override_rake_task/README +30 -0
- data/vendor/override_rake_task/init.rb +1 -0
- data/vendor/override_rake_task/install.rb +46 -0
- data/vendor/override_rake_task/lib/override_rake_task.rb +16 -0
- metadata +77 -34
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# OverrideRakeTask
|
|
2
|
+
Rake::TaskManager.class_eval do
|
|
3
|
+
def remove_task(task_name)
|
|
4
|
+
@tasks.delete(task_name.to_s)
|
|
5
|
+
end
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
def remove_task(task_name)
|
|
9
|
+
Rake.application.remove_task(task_name)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def override_task(*args, &block)
|
|
13
|
+
name, params, deps = Rake.application.resolve_args(args)
|
|
14
|
+
remove_task Rake.application[name].name
|
|
15
|
+
Rake::Task.define_task({name => deps}, &block)
|
|
16
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: roxml
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ben Woosley
|
|
@@ -12,9 +12,19 @@ autorequire:
|
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
14
|
|
|
15
|
-
date:
|
|
15
|
+
date: 2009-01-16 00:00:00 -08:00
|
|
16
16
|
default_executable:
|
|
17
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:
|
|
18
28
|
- !ruby/object:Gem::Dependency
|
|
19
29
|
name: extensions
|
|
20
30
|
type: :runtime
|
|
@@ -26,14 +36,24 @@ dependencies:
|
|
|
26
36
|
version: 0.6.0
|
|
27
37
|
version:
|
|
28
38
|
- !ruby/object:Gem::Dependency
|
|
29
|
-
name:
|
|
30
|
-
type: :
|
|
39
|
+
name: newgem
|
|
40
|
+
type: :development
|
|
41
|
+
version_requirement:
|
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - ">="
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: 1.2.3
|
|
47
|
+
version:
|
|
48
|
+
- !ruby/object:Gem::Dependency
|
|
49
|
+
name: hoe
|
|
50
|
+
type: :development
|
|
31
51
|
version_requirement:
|
|
32
52
|
version_requirements: !ruby/object:Gem::Requirement
|
|
33
53
|
requirements:
|
|
34
54
|
- - ">="
|
|
35
55
|
- !ruby/object:Gem::Version
|
|
36
|
-
version:
|
|
56
|
+
version: 1.8.0
|
|
37
57
|
version:
|
|
38
58
|
description: ROXML is a Ruby library designed to make it easier for Ruby developers to work with XML. Using simple annotations, it enables Ruby classes to be mapped to XML. ROXML takes care of the marshalling and unmarshalling of mapped attributes so that developers can focus on building first-class Ruby classes. As a result, ROXML simplifies the development of RESTful applications, Web Services, and XML-RPC.
|
|
39
59
|
email: ben.woosley@gmail.com
|
|
@@ -41,60 +61,73 @@ executables: []
|
|
|
41
61
|
|
|
42
62
|
extensions: []
|
|
43
63
|
|
|
44
|
-
extra_rdoc_files:
|
|
45
|
-
|
|
46
|
-
|
|
64
|
+
extra_rdoc_files:
|
|
65
|
+
- History.txt
|
|
66
|
+
- Manifest.txt
|
|
47
67
|
- README.rdoc
|
|
68
|
+
files:
|
|
69
|
+
- History.txt
|
|
48
70
|
- MIT-LICENSE
|
|
71
|
+
- Manifest.txt
|
|
72
|
+
- README.rdoc
|
|
49
73
|
- Rakefile
|
|
50
|
-
-
|
|
74
|
+
- TODO
|
|
75
|
+
- html/index.html
|
|
76
|
+
- html/style.css
|
|
51
77
|
- lib/roxml.rb
|
|
52
78
|
- lib/roxml/extensions/active_support.rb
|
|
53
79
|
- lib/roxml/extensions/array.rb
|
|
54
80
|
- lib/roxml/extensions/array/conversions.rb
|
|
81
|
+
- lib/roxml/extensions/deprecation.rb
|
|
55
82
|
- lib/roxml/extensions/string.rb
|
|
56
83
|
- lib/roxml/extensions/string/conversions.rb
|
|
57
84
|
- lib/roxml/extensions/string/iterators.rb
|
|
58
|
-
- lib/roxml/extensions/deprecation.rb
|
|
59
85
|
- lib/roxml/options.rb
|
|
60
86
|
- lib/roxml/xml.rb
|
|
61
87
|
- lib/roxml/xml/libxml.rb
|
|
62
88
|
- lib/roxml/xml/rexml.rb
|
|
89
|
+
- roxml.gemspec
|
|
90
|
+
- tasks/test.rake
|
|
91
|
+
- test/bugs/rexml_bugs.rb
|
|
63
92
|
- test/fixtures/book_malformed.xml
|
|
64
93
|
- test/fixtures/book_pair.xml
|
|
65
94
|
- test/fixtures/book_text_with_attribute.xml
|
|
66
95
|
- test/fixtures/book_valid.xml
|
|
67
96
|
- test/fixtures/book_with_authors.xml
|
|
68
97
|
- test/fixtures/book_with_contributions.xml
|
|
69
|
-
- test/fixtures/book_with_contributors_attrs.xml
|
|
70
98
|
- test/fixtures/book_with_contributors.xml
|
|
99
|
+
- test/fixtures/book_with_contributors_attrs.xml
|
|
71
100
|
- test/fixtures/book_with_default_namespace.xml
|
|
72
101
|
- test/fixtures/book_with_depth.xml
|
|
102
|
+
- test/fixtures/book_with_octal_pages.xml
|
|
73
103
|
- test/fixtures/book_with_publisher.xml
|
|
74
104
|
- test/fixtures/book_with_wrapped_attr.xml
|
|
75
|
-
- test/fixtures/dictionary_of_attrs.xml
|
|
76
105
|
- test/fixtures/dictionary_of_attr_name_clashes.xml
|
|
106
|
+
- test/fixtures/dictionary_of_attrs.xml
|
|
77
107
|
- test/fixtures/dictionary_of_guarded_names.xml
|
|
78
108
|
- test/fixtures/dictionary_of_mixeds.xml
|
|
79
|
-
- test/fixtures/dictionary_of_names.xml
|
|
80
109
|
- test/fixtures/dictionary_of_name_clashes.xml
|
|
110
|
+
- test/fixtures/dictionary_of_names.xml
|
|
81
111
|
- test/fixtures/dictionary_of_texts.xml
|
|
82
|
-
- test/fixtures/library_uppercase.xml
|
|
83
112
|
- test/fixtures/library.xml
|
|
113
|
+
- test/fixtures/library_uppercase.xml
|
|
84
114
|
- test/fixtures/muffins.xml
|
|
115
|
+
- test/fixtures/nameless_ageless_youth.xml
|
|
85
116
|
- test/fixtures/node_with_attr_name_conflicts.xml
|
|
86
117
|
- test/fixtures/node_with_name_conflicts.xml
|
|
87
|
-
- test/fixtures/nameless_ageless_youth.xml
|
|
88
118
|
- test/fixtures/numerology.xml
|
|
119
|
+
- test/fixtures/person.xml
|
|
89
120
|
- test/fixtures/person_with_guarded_mothers.xml
|
|
90
121
|
- test/fixtures/person_with_mothers.xml
|
|
91
|
-
- test/fixtures/person.xml
|
|
92
|
-
- test/mocks/mocks.rb
|
|
93
122
|
- test/mocks/dictionaries.rb
|
|
123
|
+
- test/mocks/mocks.rb
|
|
94
124
|
- test/release/dependencies_test.rb
|
|
95
125
|
- test/test_helper.rb
|
|
126
|
+
- test/unit/array_test.rb
|
|
127
|
+
- test/unit/freeze_test.rb
|
|
96
128
|
- test/unit/inheritance_test.rb
|
|
97
129
|
- test/unit/options_test.rb
|
|
130
|
+
- test/unit/overriden_output_test.rb
|
|
98
131
|
- test/unit/roxml_test.rb
|
|
99
132
|
- test/unit/string_test.rb
|
|
100
133
|
- test/unit/to_xml_test.rb
|
|
@@ -102,6 +135,7 @@ files:
|
|
|
102
135
|
- test/unit/xml_block_test.rb
|
|
103
136
|
- test/unit/xml_bool_test.rb
|
|
104
137
|
- test/unit/xml_construct_test.rb
|
|
138
|
+
- test/unit/xml_convention_test.rb
|
|
105
139
|
- test/unit/xml_hash_test.rb
|
|
106
140
|
- test/unit/xml_initialize_test.rb
|
|
107
141
|
- test/unit/xml_name_test.rb
|
|
@@ -109,11 +143,16 @@ files:
|
|
|
109
143
|
- test/unit/xml_object_test.rb
|
|
110
144
|
- test/unit/xml_required_test.rb
|
|
111
145
|
- test/unit/xml_text_test.rb
|
|
146
|
+
- vendor/override_rake_task/README
|
|
147
|
+
- vendor/override_rake_task/init.rb
|
|
148
|
+
- vendor/override_rake_task/install.rb
|
|
149
|
+
- vendor/override_rake_task/lib/override_rake_task.rb
|
|
112
150
|
has_rdoc: true
|
|
113
151
|
homepage: http://roxml.rubyforge.org
|
|
114
152
|
post_install_message:
|
|
115
|
-
rdoc_options:
|
|
116
|
-
|
|
153
|
+
rdoc_options:
|
|
154
|
+
- --main
|
|
155
|
+
- README.rdoc
|
|
117
156
|
require_paths:
|
|
118
157
|
- lib
|
|
119
158
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
@@ -128,27 +167,31 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
128
167
|
- !ruby/object:Gem::Version
|
|
129
168
|
version: "0"
|
|
130
169
|
version:
|
|
131
|
-
requirements:
|
|
132
|
-
|
|
133
|
-
rubyforge_project:
|
|
170
|
+
requirements: []
|
|
171
|
+
|
|
172
|
+
rubyforge_project: ROXML
|
|
134
173
|
rubygems_version: 1.3.1.xported
|
|
135
174
|
signing_key:
|
|
136
175
|
specification_version: 2
|
|
137
176
|
summary: Ruby Object to XML mapping library
|
|
138
177
|
test_files:
|
|
139
|
-
- test/unit/
|
|
140
|
-
- test/unit/
|
|
141
|
-
- test/unit/
|
|
142
|
-
- test/unit/
|
|
143
|
-
- test/unit/
|
|
144
|
-
- test/unit/xml_attribute_test.rb
|
|
145
|
-
- test/unit/xml_block_test.rb
|
|
178
|
+
- test/unit/freeze_test.rb
|
|
179
|
+
- test/unit/array_test.rb
|
|
180
|
+
- test/unit/xml_convention_test.rb
|
|
181
|
+
- test/unit/xml_object_test.rb
|
|
182
|
+
- test/unit/xml_required_test.rb
|
|
146
183
|
- test/unit/xml_bool_test.rb
|
|
147
|
-
- test/unit/
|
|
148
|
-
- test/unit/xml_hash_test.rb
|
|
149
|
-
- test/unit/xml_initialize_test.rb
|
|
184
|
+
- test/unit/roxml_test.rb
|
|
150
185
|
- test/unit/xml_name_test.rb
|
|
186
|
+
- test/unit/xml_construct_test.rb
|
|
187
|
+
- test/unit/options_test.rb
|
|
188
|
+
- test/unit/string_test.rb
|
|
151
189
|
- test/unit/xml_namespace_test.rb
|
|
152
|
-
- test/unit/xml_object_test.rb
|
|
153
|
-
- test/unit/xml_required_test.rb
|
|
154
190
|
- test/unit/xml_text_test.rb
|
|
191
|
+
- test/unit/overriden_output_test.rb
|
|
192
|
+
- test/unit/xml_block_test.rb
|
|
193
|
+
- test/unit/xml_attribute_test.rb
|
|
194
|
+
- test/unit/inheritance_test.rb
|
|
195
|
+
- test/unit/xml_initialize_test.rb
|
|
196
|
+
- test/unit/xml_hash_test.rb
|
|
197
|
+
- test/unit/to_xml_test.rb
|