rubysl-rexml 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.travis.yml +8 -0
- data/Gemfile +4 -0
- data/LICENSE +25 -0
- data/README.md +29 -0
- data/Rakefile +1 -0
- data/lib/rexml/attlistdecl.rb +62 -0
- data/lib/rexml/attribute.rb +185 -0
- data/lib/rexml/cdata.rb +67 -0
- data/lib/rexml/child.rb +96 -0
- data/lib/rexml/comment.rb +80 -0
- data/lib/rexml/doctype.rb +271 -0
- data/lib/rexml/document.rb +230 -0
- data/lib/rexml/dtd/attlistdecl.rb +10 -0
- data/lib/rexml/dtd/dtd.rb +51 -0
- data/lib/rexml/dtd/elementdecl.rb +17 -0
- data/lib/rexml/dtd/entitydecl.rb +56 -0
- data/lib/rexml/dtd/notationdecl.rb +39 -0
- data/lib/rexml/element.rb +1227 -0
- data/lib/rexml/encoding.rb +71 -0
- data/lib/rexml/encodings/CP-1252.rb +103 -0
- data/lib/rexml/encodings/EUC-JP.rb +35 -0
- data/lib/rexml/encodings/ICONV.rb +22 -0
- data/lib/rexml/encodings/ISO-8859-1.rb +7 -0
- data/lib/rexml/encodings/ISO-8859-15.rb +72 -0
- data/lib/rexml/encodings/SHIFT-JIS.rb +37 -0
- data/lib/rexml/encodings/SHIFT_JIS.rb +1 -0
- data/lib/rexml/encodings/UNILE.rb +34 -0
- data/lib/rexml/encodings/US-ASCII.rb +30 -0
- data/lib/rexml/encodings/UTF-16.rb +35 -0
- data/lib/rexml/encodings/UTF-8.rb +18 -0
- data/lib/rexml/entity.rb +166 -0
- data/lib/rexml/formatters/default.rb +109 -0
- data/lib/rexml/formatters/pretty.rb +138 -0
- data/lib/rexml/formatters/transitive.rb +56 -0
- data/lib/rexml/functions.rb +382 -0
- data/lib/rexml/instruction.rb +70 -0
- data/lib/rexml/light/node.rb +196 -0
- data/lib/rexml/namespace.rb +47 -0
- data/lib/rexml/node.rb +75 -0
- data/lib/rexml/output.rb +24 -0
- data/lib/rexml/parent.rb +166 -0
- data/lib/rexml/parseexception.rb +51 -0
- data/lib/rexml/parsers/baseparser.rb +503 -0
- data/lib/rexml/parsers/lightparser.rb +60 -0
- data/lib/rexml/parsers/pullparser.rb +196 -0
- data/lib/rexml/parsers/sax2parser.rb +238 -0
- data/lib/rexml/parsers/streamparser.rb +46 -0
- data/lib/rexml/parsers/treeparser.rb +97 -0
- data/lib/rexml/parsers/ultralightparser.rb +56 -0
- data/lib/rexml/parsers/xpathparser.rb +698 -0
- data/lib/rexml/quickpath.rb +266 -0
- data/lib/rexml/rexml.rb +32 -0
- data/lib/rexml/sax2listener.rb +97 -0
- data/lib/rexml/source.rb +251 -0
- data/lib/rexml/streamlistener.rb +92 -0
- data/lib/rexml/syncenumerator.rb +33 -0
- data/lib/rexml/text.rb +344 -0
- data/lib/rexml/undefinednamespaceexception.rb +8 -0
- data/lib/rexml/validation/relaxng.rb +559 -0
- data/lib/rexml/validation/validation.rb +155 -0
- data/lib/rexml/validation/validationexception.rb +9 -0
- data/lib/rexml/xmldecl.rb +119 -0
- data/lib/rexml/xmltokens.rb +18 -0
- data/lib/rexml/xpath.rb +66 -0
- data/lib/rexml/xpath_parser.rb +792 -0
- data/lib/rubysl/rexml.rb +1 -0
- data/lib/rubysl/rexml/version.rb +5 -0
- data/rubysl-rexml.gemspec +23 -0
- data/spec/attribute/clone_spec.rb +10 -0
- data/spec/attribute/element_spec.rb +22 -0
- data/spec/attribute/equal_value_spec.rb +17 -0
- data/spec/attribute/hash_spec.rb +12 -0
- data/spec/attribute/initialize_spec.rb +28 -0
- data/spec/attribute/inspect_spec.rb +19 -0
- data/spec/attribute/namespace_spec.rb +23 -0
- data/spec/attribute/node_type_spec.rb +9 -0
- data/spec/attribute/prefix_spec.rb +17 -0
- data/spec/attribute/remove_spec.rb +19 -0
- data/spec/attribute/to_s_spec.rb +13 -0
- data/spec/attribute/to_string_spec.rb +14 -0
- data/spec/attribute/value_spec.rb +14 -0
- data/spec/attribute/write_spec.rb +22 -0
- data/spec/attribute/xpath_spec.rb +19 -0
- data/spec/attributes/add_spec.rb +6 -0
- data/spec/attributes/append_spec.rb +6 -0
- data/spec/attributes/delete_all_spec.rb +30 -0
- data/spec/attributes/delete_spec.rb +26 -0
- data/spec/attributes/each_attribute_spec.rb +24 -0
- data/spec/attributes/each_spec.rb +24 -0
- data/spec/attributes/element_reference_spec.rb +18 -0
- data/spec/attributes/element_set_spec.rb +25 -0
- data/spec/attributes/get_attribute_ns_spec.rb +13 -0
- data/spec/attributes/get_attribute_spec.rb +28 -0
- data/spec/attributes/initialize_spec.rb +18 -0
- data/spec/attributes/length_spec.rb +6 -0
- data/spec/attributes/namespaces_spec.rb +5 -0
- data/spec/attributes/prefixes_spec.rb +23 -0
- data/spec/attributes/shared/add.rb +17 -0
- data/spec/attributes/shared/length.rb +12 -0
- data/spec/attributes/size_spec.rb +6 -0
- data/spec/attributes/to_a_spec.rb +20 -0
- data/spec/cdata/clone_spec.rb +9 -0
- data/spec/cdata/initialize_spec.rb +24 -0
- data/spec/cdata/shared/to_s.rb +11 -0
- data/spec/cdata/to_s_spec.rb +6 -0
- data/spec/cdata/value_spec.rb +6 -0
- data/spec/document/add_element_spec.rb +30 -0
- data/spec/document/add_spec.rb +60 -0
- data/spec/document/clone_spec.rb +19 -0
- data/spec/document/doctype_spec.rb +14 -0
- data/spec/document/encoding_spec.rb +21 -0
- data/spec/document/expanded_name_spec.rb +15 -0
- data/spec/document/new_spec.rb +37 -0
- data/spec/document/node_type_spec.rb +7 -0
- data/spec/document/root_spec.rb +11 -0
- data/spec/document/stand_alone_spec.rb +18 -0
- data/spec/document/version_spec.rb +13 -0
- data/spec/document/write_spec.rb +38 -0
- data/spec/document/xml_decl_spec.rb +14 -0
- data/spec/element/add_attribute_spec.rb +40 -0
- data/spec/element/add_attributes_spec.rb +21 -0
- data/spec/element/add_element_spec.rb +38 -0
- data/spec/element/add_namespace_spec.rb +23 -0
- data/spec/element/add_text_spec.rb +23 -0
- data/spec/element/attribute_spec.rb +16 -0
- data/spec/element/attributes_spec.rb +18 -0
- data/spec/element/cdatas_spec.rb +23 -0
- data/spec/element/clone_spec.rb +28 -0
- data/spec/element/comments_spec.rb +20 -0
- data/spec/element/delete_attribute_spec.rb +38 -0
- data/spec/element/delete_element_spec.rb +50 -0
- data/spec/element/delete_namespace_spec.rb +24 -0
- data/spec/element/document_spec.rb +17 -0
- data/spec/element/each_element_with_attribute_spec.rb +34 -0
- data/spec/element/each_element_with_text_spec.rb +30 -0
- data/spec/element/get_text_spec.rb +17 -0
- data/spec/element/has_attributes_spec.rb +16 -0
- data/spec/element/has_elements_spec.rb +17 -0
- data/spec/element/has_text_spec.rb +15 -0
- data/spec/element/inspect_spec.rb +26 -0
- data/spec/element/instructions_spec.rb +20 -0
- data/spec/element/namespace_spec.rb +26 -0
- data/spec/element/namespaces_spec.rb +31 -0
- data/spec/element/new_spec.rb +34 -0
- data/spec/element/next_element_spec.rb +18 -0
- data/spec/element/node_type_spec.rb +7 -0
- data/spec/element/prefixes_spec.rb +22 -0
- data/spec/element/previous_element_spec.rb +19 -0
- data/spec/element/raw_spec.rb +23 -0
- data/spec/element/root_spec.rb +27 -0
- data/spec/element/text_spec.rb +45 -0
- data/spec/element/texts_spec.rb +15 -0
- data/spec/element/whitespace_spec.rb +22 -0
- data/spec/node/each_recursive_spec.rb +20 -0
- data/spec/node/find_first_recursive_spec.rb +24 -0
- data/spec/node/index_in_parent_spec.rb +14 -0
- data/spec/node/next_sibling_node_spec.rb +20 -0
- data/spec/node/parent_spec.rb +20 -0
- data/spec/node/previous_sibling_node_spec.rb +20 -0
- data/spec/shared/each_element.rb +35 -0
- data/spec/shared/elements_to_a.rb +35 -0
- data/spec/text/append_spec.rb +9 -0
- data/spec/text/clone_spec.rb +9 -0
- data/spec/text/comparison_spec.rb +24 -0
- data/spec/text/empty_spec.rb +11 -0
- data/spec/text/indent_text_spec.rb +23 -0
- data/spec/text/inspect_spec.rb +7 -0
- data/spec/text/new_spec.rb +48 -0
- data/spec/text/node_type_spec.rb +7 -0
- data/spec/text/normalize_spec.rb +7 -0
- data/spec/text/read_with_substitution_spec.rb +12 -0
- data/spec/text/to_s_spec.rb +17 -0
- data/spec/text/unnormalize_spec.rb +7 -0
- data/spec/text/value_spec.rb +36 -0
- data/spec/text/wrap_spec.rb +20 -0
- data/spec/text/write_with_substitution_spec.rb +32 -0
- metadata +385 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'rexml/document'
|
2
|
+
|
3
|
+
describe "REXML::Text.read_with_substitution" do
|
4
|
+
it "reads a text and escapes entities" do
|
5
|
+
REXML::Text.read_with_substitution("< > & " '").should == "< > & \" '"
|
6
|
+
end
|
7
|
+
|
8
|
+
it "accepts an regex for invalid expressions and raises an error if text matches" do
|
9
|
+
lambda {REXML::Text.read_with_substitution("this is illegal", /illegal/)}.should raise_error(Exception)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'rexml/document'
|
2
|
+
|
3
|
+
describe "REXML::Text#to_s" do
|
4
|
+
it "returns the string of this Text node" do
|
5
|
+
u = REXML::Text.new("sean russell", false, nil, true)
|
6
|
+
u.to_s.should == "sean russell"
|
7
|
+
|
8
|
+
t = REXML::Text.new("some test text")
|
9
|
+
t.to_s.should == "some test text"
|
10
|
+
end
|
11
|
+
|
12
|
+
it "escapes the text" do
|
13
|
+
t = REXML::Text.new("& < >")
|
14
|
+
t.to_s.should == "& < >"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'rexml/document'
|
2
|
+
|
3
|
+
describe "REXML::Text#value" do
|
4
|
+
it "returns the text value of this node" do
|
5
|
+
REXML::Text.new("test").value.should == "test"
|
6
|
+
end
|
7
|
+
|
8
|
+
it "does not escape entities" do
|
9
|
+
REXML::Text.new("& \"").value.should == "& \""
|
10
|
+
end
|
11
|
+
|
12
|
+
it "follows the respect_whitespace attribute" do
|
13
|
+
REXML::Text.new("test bar", false).value.should == "test bar"
|
14
|
+
REXML::Text.new("test bar", true).value.should == "test bar"
|
15
|
+
end
|
16
|
+
|
17
|
+
it "ignores the raw attribute" do
|
18
|
+
REXML::Text.new("sean russell", false, nil, true).value.should == "sean russell"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
describe "REXML::Text#value=" do
|
23
|
+
before :each do
|
24
|
+
@t = REXML::Text.new("new")
|
25
|
+
end
|
26
|
+
|
27
|
+
it "sets the text of the node" do
|
28
|
+
@t.value = "another text"
|
29
|
+
@t.to_s.should == "another text"
|
30
|
+
end
|
31
|
+
|
32
|
+
it "escapes entities" do
|
33
|
+
@t.value = "<a>"
|
34
|
+
@t.to_s.should == "<a>"
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'rexml/document'
|
2
|
+
|
3
|
+
describe "REXML::Text#wrap" do
|
4
|
+
before :each do
|
5
|
+
@t = REXML::Text.new("abc def")
|
6
|
+
end
|
7
|
+
|
8
|
+
it "wraps the text at width" do
|
9
|
+
@t.wrap("abc def", 3, false).should == "abc\ndef"
|
10
|
+
end
|
11
|
+
|
12
|
+
it "returns the string if width is greater than the size of the string" do
|
13
|
+
@t.wrap("abc def", 10, false).should == "abc def"
|
14
|
+
end
|
15
|
+
|
16
|
+
it "takes a newline at the beginning option as the third parameter"do
|
17
|
+
@t.wrap("abc def", 3, true).should == "\nabc\ndef"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'rexml/document'
|
2
|
+
|
3
|
+
describe "REXML::Text#write_with_substitution" do
|
4
|
+
before :each do
|
5
|
+
@t = REXML::Text.new("test")
|
6
|
+
@f = tmp("rexml_spec")
|
7
|
+
@file = File.open(@f, "w+")
|
8
|
+
end
|
9
|
+
|
10
|
+
after :each do
|
11
|
+
@file.close
|
12
|
+
rm_r @f
|
13
|
+
end
|
14
|
+
|
15
|
+
it "writes out the input to a String" do
|
16
|
+
s = ""
|
17
|
+
@t.write_with_substitution(s, "some text")
|
18
|
+
s.should == "some text"
|
19
|
+
end
|
20
|
+
|
21
|
+
it "writes out the input to an IO" do
|
22
|
+
@t.write_with_substitution(@file, "some text")
|
23
|
+
@file.rewind
|
24
|
+
@file.gets.should == "some text"
|
25
|
+
end
|
26
|
+
|
27
|
+
it "escapes characters" do
|
28
|
+
@t.write_with_substitution(@file, "& < >")
|
29
|
+
@file.rewind
|
30
|
+
@file.gets.should == "& < >"
|
31
|
+
end
|
32
|
+
end
|
metadata
ADDED
@@ -0,0 +1,385 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rubysl-rexml
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Brian Shirai
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-12-26 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: mspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.5'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.5'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubysl-prettyprint
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.0'
|
69
|
+
description: Ruby standard library rexml.
|
70
|
+
email:
|
71
|
+
- brixen@gmail.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- .gitignore
|
77
|
+
- .travis.yml
|
78
|
+
- Gemfile
|
79
|
+
- LICENSE
|
80
|
+
- README.md
|
81
|
+
- Rakefile
|
82
|
+
- lib/rexml/attlistdecl.rb
|
83
|
+
- lib/rexml/attribute.rb
|
84
|
+
- lib/rexml/cdata.rb
|
85
|
+
- lib/rexml/child.rb
|
86
|
+
- lib/rexml/comment.rb
|
87
|
+
- lib/rexml/doctype.rb
|
88
|
+
- lib/rexml/document.rb
|
89
|
+
- lib/rexml/dtd/attlistdecl.rb
|
90
|
+
- lib/rexml/dtd/dtd.rb
|
91
|
+
- lib/rexml/dtd/elementdecl.rb
|
92
|
+
- lib/rexml/dtd/entitydecl.rb
|
93
|
+
- lib/rexml/dtd/notationdecl.rb
|
94
|
+
- lib/rexml/element.rb
|
95
|
+
- lib/rexml/encoding.rb
|
96
|
+
- lib/rexml/encodings/CP-1252.rb
|
97
|
+
- lib/rexml/encodings/EUC-JP.rb
|
98
|
+
- lib/rexml/encodings/ICONV.rb
|
99
|
+
- lib/rexml/encodings/ISO-8859-1.rb
|
100
|
+
- lib/rexml/encodings/ISO-8859-15.rb
|
101
|
+
- lib/rexml/encodings/SHIFT-JIS.rb
|
102
|
+
- lib/rexml/encodings/SHIFT_JIS.rb
|
103
|
+
- lib/rexml/encodings/UNILE.rb
|
104
|
+
- lib/rexml/encodings/US-ASCII.rb
|
105
|
+
- lib/rexml/encodings/UTF-16.rb
|
106
|
+
- lib/rexml/encodings/UTF-8.rb
|
107
|
+
- lib/rexml/entity.rb
|
108
|
+
- lib/rexml/formatters/default.rb
|
109
|
+
- lib/rexml/formatters/pretty.rb
|
110
|
+
- lib/rexml/formatters/transitive.rb
|
111
|
+
- lib/rexml/functions.rb
|
112
|
+
- lib/rexml/instruction.rb
|
113
|
+
- lib/rexml/light/node.rb
|
114
|
+
- lib/rexml/namespace.rb
|
115
|
+
- lib/rexml/node.rb
|
116
|
+
- lib/rexml/output.rb
|
117
|
+
- lib/rexml/parent.rb
|
118
|
+
- lib/rexml/parseexception.rb
|
119
|
+
- lib/rexml/parsers/baseparser.rb
|
120
|
+
- lib/rexml/parsers/lightparser.rb
|
121
|
+
- lib/rexml/parsers/pullparser.rb
|
122
|
+
- lib/rexml/parsers/sax2parser.rb
|
123
|
+
- lib/rexml/parsers/streamparser.rb
|
124
|
+
- lib/rexml/parsers/treeparser.rb
|
125
|
+
- lib/rexml/parsers/ultralightparser.rb
|
126
|
+
- lib/rexml/parsers/xpathparser.rb
|
127
|
+
- lib/rexml/quickpath.rb
|
128
|
+
- lib/rexml/rexml.rb
|
129
|
+
- lib/rexml/sax2listener.rb
|
130
|
+
- lib/rexml/source.rb
|
131
|
+
- lib/rexml/streamlistener.rb
|
132
|
+
- lib/rexml/syncenumerator.rb
|
133
|
+
- lib/rexml/text.rb
|
134
|
+
- lib/rexml/undefinednamespaceexception.rb
|
135
|
+
- lib/rexml/validation/relaxng.rb
|
136
|
+
- lib/rexml/validation/validation.rb
|
137
|
+
- lib/rexml/validation/validationexception.rb
|
138
|
+
- lib/rexml/xmldecl.rb
|
139
|
+
- lib/rexml/xmltokens.rb
|
140
|
+
- lib/rexml/xpath.rb
|
141
|
+
- lib/rexml/xpath_parser.rb
|
142
|
+
- lib/rubysl/rexml.rb
|
143
|
+
- lib/rubysl/rexml/version.rb
|
144
|
+
- rubysl-rexml.gemspec
|
145
|
+
- spec/attribute/clone_spec.rb
|
146
|
+
- spec/attribute/element_spec.rb
|
147
|
+
- spec/attribute/equal_value_spec.rb
|
148
|
+
- spec/attribute/hash_spec.rb
|
149
|
+
- spec/attribute/initialize_spec.rb
|
150
|
+
- spec/attribute/inspect_spec.rb
|
151
|
+
- spec/attribute/namespace_spec.rb
|
152
|
+
- spec/attribute/node_type_spec.rb
|
153
|
+
- spec/attribute/prefix_spec.rb
|
154
|
+
- spec/attribute/remove_spec.rb
|
155
|
+
- spec/attribute/to_s_spec.rb
|
156
|
+
- spec/attribute/to_string_spec.rb
|
157
|
+
- spec/attribute/value_spec.rb
|
158
|
+
- spec/attribute/write_spec.rb
|
159
|
+
- spec/attribute/xpath_spec.rb
|
160
|
+
- spec/attributes/add_spec.rb
|
161
|
+
- spec/attributes/append_spec.rb
|
162
|
+
- spec/attributes/delete_all_spec.rb
|
163
|
+
- spec/attributes/delete_spec.rb
|
164
|
+
- spec/attributes/each_attribute_spec.rb
|
165
|
+
- spec/attributes/each_spec.rb
|
166
|
+
- spec/attributes/element_reference_spec.rb
|
167
|
+
- spec/attributes/element_set_spec.rb
|
168
|
+
- spec/attributes/get_attribute_ns_spec.rb
|
169
|
+
- spec/attributes/get_attribute_spec.rb
|
170
|
+
- spec/attributes/initialize_spec.rb
|
171
|
+
- spec/attributes/length_spec.rb
|
172
|
+
- spec/attributes/namespaces_spec.rb
|
173
|
+
- spec/attributes/prefixes_spec.rb
|
174
|
+
- spec/attributes/shared/add.rb
|
175
|
+
- spec/attributes/shared/length.rb
|
176
|
+
- spec/attributes/size_spec.rb
|
177
|
+
- spec/attributes/to_a_spec.rb
|
178
|
+
- spec/cdata/clone_spec.rb
|
179
|
+
- spec/cdata/initialize_spec.rb
|
180
|
+
- spec/cdata/shared/to_s.rb
|
181
|
+
- spec/cdata/to_s_spec.rb
|
182
|
+
- spec/cdata/value_spec.rb
|
183
|
+
- spec/document/add_element_spec.rb
|
184
|
+
- spec/document/add_spec.rb
|
185
|
+
- spec/document/clone_spec.rb
|
186
|
+
- spec/document/doctype_spec.rb
|
187
|
+
- spec/document/encoding_spec.rb
|
188
|
+
- spec/document/expanded_name_spec.rb
|
189
|
+
- spec/document/new_spec.rb
|
190
|
+
- spec/document/node_type_spec.rb
|
191
|
+
- spec/document/root_spec.rb
|
192
|
+
- spec/document/stand_alone_spec.rb
|
193
|
+
- spec/document/version_spec.rb
|
194
|
+
- spec/document/write_spec.rb
|
195
|
+
- spec/document/xml_decl_spec.rb
|
196
|
+
- spec/element/add_attribute_spec.rb
|
197
|
+
- spec/element/add_attributes_spec.rb
|
198
|
+
- spec/element/add_element_spec.rb
|
199
|
+
- spec/element/add_namespace_spec.rb
|
200
|
+
- spec/element/add_text_spec.rb
|
201
|
+
- spec/element/attribute_spec.rb
|
202
|
+
- spec/element/attributes_spec.rb
|
203
|
+
- spec/element/cdatas_spec.rb
|
204
|
+
- spec/element/clone_spec.rb
|
205
|
+
- spec/element/comments_spec.rb
|
206
|
+
- spec/element/delete_attribute_spec.rb
|
207
|
+
- spec/element/delete_element_spec.rb
|
208
|
+
- spec/element/delete_namespace_spec.rb
|
209
|
+
- spec/element/document_spec.rb
|
210
|
+
- spec/element/each_element_with_attribute_spec.rb
|
211
|
+
- spec/element/each_element_with_text_spec.rb
|
212
|
+
- spec/element/get_text_spec.rb
|
213
|
+
- spec/element/has_attributes_spec.rb
|
214
|
+
- spec/element/has_elements_spec.rb
|
215
|
+
- spec/element/has_text_spec.rb
|
216
|
+
- spec/element/inspect_spec.rb
|
217
|
+
- spec/element/instructions_spec.rb
|
218
|
+
- spec/element/namespace_spec.rb
|
219
|
+
- spec/element/namespaces_spec.rb
|
220
|
+
- spec/element/new_spec.rb
|
221
|
+
- spec/element/next_element_spec.rb
|
222
|
+
- spec/element/node_type_spec.rb
|
223
|
+
- spec/element/prefixes_spec.rb
|
224
|
+
- spec/element/previous_element_spec.rb
|
225
|
+
- spec/element/raw_spec.rb
|
226
|
+
- spec/element/root_spec.rb
|
227
|
+
- spec/element/text_spec.rb
|
228
|
+
- spec/element/texts_spec.rb
|
229
|
+
- spec/element/whitespace_spec.rb
|
230
|
+
- spec/node/each_recursive_spec.rb
|
231
|
+
- spec/node/find_first_recursive_spec.rb
|
232
|
+
- spec/node/index_in_parent_spec.rb
|
233
|
+
- spec/node/next_sibling_node_spec.rb
|
234
|
+
- spec/node/parent_spec.rb
|
235
|
+
- spec/node/previous_sibling_node_spec.rb
|
236
|
+
- spec/shared/each_element.rb
|
237
|
+
- spec/shared/elements_to_a.rb
|
238
|
+
- spec/text/append_spec.rb
|
239
|
+
- spec/text/clone_spec.rb
|
240
|
+
- spec/text/comparison_spec.rb
|
241
|
+
- spec/text/empty_spec.rb
|
242
|
+
- spec/text/indent_text_spec.rb
|
243
|
+
- spec/text/inspect_spec.rb
|
244
|
+
- spec/text/new_spec.rb
|
245
|
+
- spec/text/node_type_spec.rb
|
246
|
+
- spec/text/normalize_spec.rb
|
247
|
+
- spec/text/read_with_substitution_spec.rb
|
248
|
+
- spec/text/to_s_spec.rb
|
249
|
+
- spec/text/unnormalize_spec.rb
|
250
|
+
- spec/text/value_spec.rb
|
251
|
+
- spec/text/wrap_spec.rb
|
252
|
+
- spec/text/write_with_substitution_spec.rb
|
253
|
+
homepage: https://github.com/rubysl/rubysl-rexml
|
254
|
+
licenses:
|
255
|
+
- BSD
|
256
|
+
metadata: {}
|
257
|
+
post_install_message:
|
258
|
+
rdoc_options: []
|
259
|
+
require_paths:
|
260
|
+
- lib
|
261
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
262
|
+
requirements:
|
263
|
+
- - '>='
|
264
|
+
- !ruby/object:Gem::Version
|
265
|
+
version: '0'
|
266
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
267
|
+
requirements:
|
268
|
+
- - '>='
|
269
|
+
- !ruby/object:Gem::Version
|
270
|
+
version: '0'
|
271
|
+
requirements: []
|
272
|
+
rubyforge_project:
|
273
|
+
rubygems_version: 2.0.7
|
274
|
+
signing_key:
|
275
|
+
specification_version: 4
|
276
|
+
summary: Ruby standard library rexml.
|
277
|
+
test_files:
|
278
|
+
- spec/attribute/clone_spec.rb
|
279
|
+
- spec/attribute/element_spec.rb
|
280
|
+
- spec/attribute/equal_value_spec.rb
|
281
|
+
- spec/attribute/hash_spec.rb
|
282
|
+
- spec/attribute/initialize_spec.rb
|
283
|
+
- spec/attribute/inspect_spec.rb
|
284
|
+
- spec/attribute/namespace_spec.rb
|
285
|
+
- spec/attribute/node_type_spec.rb
|
286
|
+
- spec/attribute/prefix_spec.rb
|
287
|
+
- spec/attribute/remove_spec.rb
|
288
|
+
- spec/attribute/to_s_spec.rb
|
289
|
+
- spec/attribute/to_string_spec.rb
|
290
|
+
- spec/attribute/value_spec.rb
|
291
|
+
- spec/attribute/write_spec.rb
|
292
|
+
- spec/attribute/xpath_spec.rb
|
293
|
+
- spec/attributes/add_spec.rb
|
294
|
+
- spec/attributes/append_spec.rb
|
295
|
+
- spec/attributes/delete_all_spec.rb
|
296
|
+
- spec/attributes/delete_spec.rb
|
297
|
+
- spec/attributes/each_attribute_spec.rb
|
298
|
+
- spec/attributes/each_spec.rb
|
299
|
+
- spec/attributes/element_reference_spec.rb
|
300
|
+
- spec/attributes/element_set_spec.rb
|
301
|
+
- spec/attributes/get_attribute_ns_spec.rb
|
302
|
+
- spec/attributes/get_attribute_spec.rb
|
303
|
+
- spec/attributes/initialize_spec.rb
|
304
|
+
- spec/attributes/length_spec.rb
|
305
|
+
- spec/attributes/namespaces_spec.rb
|
306
|
+
- spec/attributes/prefixes_spec.rb
|
307
|
+
- spec/attributes/shared/add.rb
|
308
|
+
- spec/attributes/shared/length.rb
|
309
|
+
- spec/attributes/size_spec.rb
|
310
|
+
- spec/attributes/to_a_spec.rb
|
311
|
+
- spec/cdata/clone_spec.rb
|
312
|
+
- spec/cdata/initialize_spec.rb
|
313
|
+
- spec/cdata/shared/to_s.rb
|
314
|
+
- spec/cdata/to_s_spec.rb
|
315
|
+
- spec/cdata/value_spec.rb
|
316
|
+
- spec/document/add_element_spec.rb
|
317
|
+
- spec/document/add_spec.rb
|
318
|
+
- spec/document/clone_spec.rb
|
319
|
+
- spec/document/doctype_spec.rb
|
320
|
+
- spec/document/encoding_spec.rb
|
321
|
+
- spec/document/expanded_name_spec.rb
|
322
|
+
- spec/document/new_spec.rb
|
323
|
+
- spec/document/node_type_spec.rb
|
324
|
+
- spec/document/root_spec.rb
|
325
|
+
- spec/document/stand_alone_spec.rb
|
326
|
+
- spec/document/version_spec.rb
|
327
|
+
- spec/document/write_spec.rb
|
328
|
+
- spec/document/xml_decl_spec.rb
|
329
|
+
- spec/element/add_attribute_spec.rb
|
330
|
+
- spec/element/add_attributes_spec.rb
|
331
|
+
- spec/element/add_element_spec.rb
|
332
|
+
- spec/element/add_namespace_spec.rb
|
333
|
+
- spec/element/add_text_spec.rb
|
334
|
+
- spec/element/attribute_spec.rb
|
335
|
+
- spec/element/attributes_spec.rb
|
336
|
+
- spec/element/cdatas_spec.rb
|
337
|
+
- spec/element/clone_spec.rb
|
338
|
+
- spec/element/comments_spec.rb
|
339
|
+
- spec/element/delete_attribute_spec.rb
|
340
|
+
- spec/element/delete_element_spec.rb
|
341
|
+
- spec/element/delete_namespace_spec.rb
|
342
|
+
- spec/element/document_spec.rb
|
343
|
+
- spec/element/each_element_with_attribute_spec.rb
|
344
|
+
- spec/element/each_element_with_text_spec.rb
|
345
|
+
- spec/element/get_text_spec.rb
|
346
|
+
- spec/element/has_attributes_spec.rb
|
347
|
+
- spec/element/has_elements_spec.rb
|
348
|
+
- spec/element/has_text_spec.rb
|
349
|
+
- spec/element/inspect_spec.rb
|
350
|
+
- spec/element/instructions_spec.rb
|
351
|
+
- spec/element/namespace_spec.rb
|
352
|
+
- spec/element/namespaces_spec.rb
|
353
|
+
- spec/element/new_spec.rb
|
354
|
+
- spec/element/next_element_spec.rb
|
355
|
+
- spec/element/node_type_spec.rb
|
356
|
+
- spec/element/prefixes_spec.rb
|
357
|
+
- spec/element/previous_element_spec.rb
|
358
|
+
- spec/element/raw_spec.rb
|
359
|
+
- spec/element/root_spec.rb
|
360
|
+
- spec/element/text_spec.rb
|
361
|
+
- spec/element/texts_spec.rb
|
362
|
+
- spec/element/whitespace_spec.rb
|
363
|
+
- spec/node/each_recursive_spec.rb
|
364
|
+
- spec/node/find_first_recursive_spec.rb
|
365
|
+
- spec/node/index_in_parent_spec.rb
|
366
|
+
- spec/node/next_sibling_node_spec.rb
|
367
|
+
- spec/node/parent_spec.rb
|
368
|
+
- spec/node/previous_sibling_node_spec.rb
|
369
|
+
- spec/shared/each_element.rb
|
370
|
+
- spec/shared/elements_to_a.rb
|
371
|
+
- spec/text/append_spec.rb
|
372
|
+
- spec/text/clone_spec.rb
|
373
|
+
- spec/text/comparison_spec.rb
|
374
|
+
- spec/text/empty_spec.rb
|
375
|
+
- spec/text/indent_text_spec.rb
|
376
|
+
- spec/text/inspect_spec.rb
|
377
|
+
- spec/text/new_spec.rb
|
378
|
+
- spec/text/node_type_spec.rb
|
379
|
+
- spec/text/normalize_spec.rb
|
380
|
+
- spec/text/read_with_substitution_spec.rb
|
381
|
+
- spec/text/to_s_spec.rb
|
382
|
+
- spec/text/unnormalize_spec.rb
|
383
|
+
- spec/text/value_spec.rb
|
384
|
+
- spec/text/wrap_spec.rb
|
385
|
+
- spec/text/write_with_substitution_spec.rb
|