rubysl-rexml 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/README.MRI.md +21 -0
- data/README.md +3 -2
- data/lib/rexml/entity.rb +7 -1
- data/lib/rexml/parsers/streamparser.rb +2 -0
- data/lib/rexml/parsers/ultralightparser.rb +1 -1
- data/lib/rexml/rexml.rb +1 -1
- data/lib/rubysl/rexml/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91e30152285f87f44bc1907332626b4571ab509b
|
4
|
+
data.tar.gz: 7d4b4ad4d07dd9706c0784d1529d562881c60f9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e023ec5017bb01045b819ba9909543614e73182ec844143dc3d0c1506b8676f6d7fe0a5d9e00b1e3c3abe469569237beaaf332f80dee086933c45307df2af71
|
7
|
+
data.tar.gz: 52a2a21b20c89ff3c4d03ab195340030baeba8a8b22a40a315c2612f7dfd274abca21403200b439990399d0c5f822c34b7554cadbba0f60cd5bca68d31de9899
|
data/.travis.yml
CHANGED
data/README.MRI.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
REXML is an XML toolkit for Ruby[http://www.ruby-lang.org], in Ruby.
|
2
|
+
|
3
|
+
REXML is a _pure_ Ruby, XML 1.0 conforming,
|
4
|
+
non-validating[http://www.w3.org/TR/2004/REC-xml-20040204/#sec-conformance]
|
5
|
+
toolkit with an intuitive API. REXML passes 100% of the non-validating Oasis
|
6
|
+
tests[http://www.oasis-open.org/committees/xml-conformance/xml-test-suite.shtml],
|
7
|
+
and provides tree, stream, SAX2, pull, and lightweight APIs. REXML also
|
8
|
+
includes a full XPath[http://www.w3c.org/tr/xpath] 1.0 implementation. Since
|
9
|
+
Ruby 1.8, REXML is included in the standard Ruby distribution.
|
10
|
+
|
11
|
+
Main page:: http://www.germane-software.com/software/rexml
|
12
|
+
Author:: Sean Russell <serATgermaneHYPHENsoftwareDOTcom>
|
13
|
+
Date:: 2008/019
|
14
|
+
Version:: 3.1.7.3
|
15
|
+
|
16
|
+
This API documentation can be downloaded from the REXML home page, or can
|
17
|
+
be accessed online[http://www.germane-software.com/software/rexml_doc]
|
18
|
+
|
19
|
+
A tutorial is available in the REXML distribution in docs/tutorial.html,
|
20
|
+
or can be accessed
|
21
|
+
online[http://www.germane-software.com/software/rexml/docs/tutorial.html]
|
data/README.md
CHANGED
data/lib/rexml/entity.rb
CHANGED
@@ -63,7 +63,7 @@ module REXML
|
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
|
-
# Evaluates whether the given string
|
66
|
+
# Evaluates whether the given string matches an entity definition,
|
67
67
|
# returning true if so, and false otherwise.
|
68
68
|
def Entity::matches? string
|
69
69
|
(ENTITYDECL =~ string) == 0
|
@@ -138,8 +138,14 @@ module REXML
|
|
138
138
|
matches = @value.scan(PEREFERENCE_RE)
|
139
139
|
rv = @value.clone
|
140
140
|
if @parent
|
141
|
+
sum = 0
|
141
142
|
matches.each do |entity_reference|
|
142
143
|
entity_value = @parent.entity( entity_reference[0] )
|
144
|
+
if sum + entity_value.bytesize > Security.entity_expansion_text_limit
|
145
|
+
raise "entity expansion has grown too large"
|
146
|
+
else
|
147
|
+
sum += entity_value.bytesize
|
148
|
+
end
|
143
149
|
rv.gsub!( /%#{entity_reference.join};/um, entity_value )
|
144
150
|
end
|
145
151
|
end
|
data/lib/rexml/rexml.rb
CHANGED
@@ -24,7 +24,7 @@ module REXML
|
|
24
24
|
COPYRIGHT = "Copyright © 2001-2008 Sean Russell <ser@germane-software.com>"
|
25
25
|
DATE = "2008/019"
|
26
26
|
VERSION = "3.1.7.3"
|
27
|
-
REVISION = %w$Revision
|
27
|
+
REVISION = %w$Revision$[1] || ''
|
28
28
|
|
29
29
|
Copyright = COPYRIGHT
|
30
30
|
Version = VERSION
|
data/lib/rubysl/rexml/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubysl-rexml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Shirai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -77,6 +77,7 @@ files:
|
|
77
77
|
- ".travis.yml"
|
78
78
|
- Gemfile
|
79
79
|
- LICENSE
|
80
|
+
- README.MRI.md
|
80
81
|
- README.md
|
81
82
|
- Rakefile
|
82
83
|
- lib/rexml.rb
|
@@ -261,7 +262,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
261
262
|
version: '0'
|
262
263
|
requirements: []
|
263
264
|
rubyforge_project:
|
264
|
-
rubygems_version: 2.
|
265
|
+
rubygems_version: 2.2.2
|
265
266
|
signing_key:
|
266
267
|
specification_version: 4
|
267
268
|
summary: Ruby standard library rexml.
|
@@ -374,4 +375,3 @@ test_files:
|
|
374
375
|
- spec/text/value_spec.rb
|
375
376
|
- spec/text/wrap_spec.rb
|
376
377
|
- spec/text/write_with_substitution_spec.rb
|
377
|
-
has_rdoc:
|