nobu
ff3b2cb1ce
* properties.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-06-05 01:29:43 +00:00
nobu
63a164f32e
test: fix test conditions
...
* test/csv/test_features.rb (TestCSV#test_gzip_reader_bug_fix): test
only if zlib is available.
* test/csv/test_features.rb (TestCSV#test_gzip_writer_bug_fix): ditto.
* test/open-uri/test_open-uri.rb (TestOpenURI#test_content_encoding):
ditto.
* test/rexml/test_order.rb (OrderTester#test_more_ordering): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-08 06:50:03 +00:00
kou
92cecf79b4
* lib/rexml/parsers/baseparser.rb, test/rexml/test_namespace.rb:
...
fix the default xml namespace URI validation.
Reported by Miho Hiramatsu. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-02 12:42:27 +00:00
usa
0bfa4abd1b
* test/rexml/test_order.rb (OrderTester#test_more_ordering): use
...
GZip::GzReader.open instead of GZip::GzReader.new with File.new.
fixed a test error on Windows introduced at r33946.
* ChangeLog: mention the causes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-08 04:31:56 +00:00
ayumin
379d519f0b
* test/rexml/test_sax.rb: add require 'rexml/document.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-26 18:52:10 +00:00
ayumin
32b81702d7
fix test/rexml/test_encoding.rb failure
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-07 18:03:23 +00:00
kou
2bb6fcb6fd
* lib/rexml/parsers/baseparser.rb, test/rexml/test_comment.rb:
...
allow a single hyphen in comment. [Bug 5278]
Reported by Thomas Fritzsche. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-07 14:42:44 +00:00
kou
da672779e2
* lib/rexml/formatters/pretty.rb
...
(REXML::Formatters::Pretty#write_text),
test/rexml/test_core.rb
(Tester#test_pretty_format_long_text_finite): don't ignore
'width' parameter in pretty formatter. fixes #4498
Reported by Michael Frasca. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 07:29:48 +00:00
kou
962956e8a1
* test/rexml/test_core.rb
...
(Tester#test_pretty_format_long_text_finite): remove needless
assert_nothing_raised.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 07:12:12 +00:00
kou
80cb3351dd
* lib/rexml/parsers/xpathparser.rb
...
(REXML::Parsers::XPathParser#parse),
test/rexml/test_elements.rb
(ElementsTester::test_each_with_frozen_condition):
don't modify original XPath. fixes #4164
Reported by Pavel Shved. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 07:05:42 +00:00
kou
8aecece693
* test/rexml/test_elements.rb (ElementsTester): remove needless
...
prefix from test name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 06:53:59 +00:00
kou
40e7d79391
* test/rexml/test_core.rb (Tester::test_text_frozen): split frozen
...
string test. refs #4783
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-27 14:57:55 +00:00
shyouhei
42f704a8fa
prevent an error when passing a frozen string to REXML::Text.new
...
dup the string passed in instead of cloning so that it's frozen state is ignored
Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-27 02:34:23 +00:00
nobu
3a47cf3395
* remove trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-15 11:55:52 +00:00
naruse
f25ff846f6
* lib/rexml/encoding.rb (REXML::Encoding#encoding=): store @encoding
...
a String which means the name of the encoding.
this partially revert r29646.
* lib/rexml/document.rb: follow above.
* lib/rexml/output.rb: ditto.
* lib/rexml/parsers/baseparser.rb: ditto.
* lib/rexml/source.rb: ditto.
* lib/rexml/xmldecl.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-02 15:36:48 +00:00
naruse
84b96e1be4
Fix tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-19 12:43:27 +00:00
nobu
182b614869
* test/rexml/test_contrib.rb (ContribTester#test_pos): should not
...
use fixed path name for tests. [ruby-dev:42827]
* test/rexml/test_sax.rb (SAX2Tester#test_socket): should not use
fixed port for tests. [ruby-dev:42828]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-20 21:25:49 +00:00
kou
40a5012381
* test/rexml/test_light.rb: really suppress a warning.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07 12:57:35 +00:00
kou
d5e607eb52
* test/rexml/test_light.rb: suppress a warning.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07 12:55:12 +00:00
kou
9ce40aacef
* lib/rexml/doctype.rb, test/rexml/test_doctype.rb: suppress warnings.
...
[ruby-core:33305]
Reported by Aaron Patterson. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07 12:10:23 +00:00
kou
1f70a6ba67
* test/rexml/test_doctype.rb: add Accessor to test case name.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07 11:32:45 +00:00
kou
25a6a3fd99
* test/rexml/test_doctype.rb: Doctype -> DocType.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07 11:31:46 +00:00
kou
eb20de889c
* test/rexml/test_doctype_mixin.rb: rename to ...
...
* test/rexml/test_doctype.rb: ... this to remove needless name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07 11:30:19 +00:00
kou
54142064c4
* test/rexml/test_core.rb
...
(Tester#test_pretty_format_long_text_finite): skip a test that
uses long string on small memory system. [ruby-dev:42599]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-19 13:11:20 +00:00
kou
6fcd0b37b3
* lib/rexml/formatters/pretty.rb (REXML::Formatters::Pretty#wrap):
...
REXML::Formatters::Pretty#wrap used a recursive method call to
format text. This switches it to use an iterative approach.
[ruby-core:33245]
Patch by Jeremy Evans. Thanks!!!
* test/rexml/test_core.rb: add a test for it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-18 14:25:03 +00:00
kou
994f066f76
* lib/rexml/encoding.rb: use Ruby native encoding mechnism. [ruby-dev:42464]
...
* lib/rexml/encodings/: remove.
* lib/rexml/document.rb, lib/rexml/formatters/default.rb,
lib/rexml/output.rb, lib/rexml/parseexception.rb,
lib/rexml/parsers/baseparser.rb, lib/rexml/source.rb,
lib/rexml/xmldecl.rb: use Ruby's native Encoding object.
* test/rexml/, test/rss/: follow the above encoding chagnes.
* NEWS: add REXML's incompatible change about encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-30 12:10:56 +00:00
naruse
9da7920d6b
Refix to give the encoding of gzfile.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-24 00:43:44 +00:00
naruse
0433134947
Specify external encoding.
...
When external encoding is not specified, it uses default external
encoding. But it depends the environment. So specify as UTF-8 for
environments whose locale is not UTF-8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-19 17:28:30 +00:00
nobu
c095a38cad
* properties.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-18 08:34:37 +00:00
kou
d8c3fa1506
* lib/rexml/xpath_parser.rb, test/rexml/test_xpath.rb:
...
add missing method availability check. [ruby-core:32447]
Reported by Wiebe Cazemier. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-17 14:47:20 +00:00
kou
7bf12316a1
* test/rexml/test_sax.rb: don't use thread and sleep to avoid slow test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-17 14:23:56 +00:00
kou
ede915ce25
* test/rexml/test_core.rb: enable.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-17 14:11:10 +00:00
kou
2a15d25a59
* test/rexml/: untabify.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-17 13:46:56 +00:00
kou
146bf4fdaf
* test/rexml/: fix fixture data path. All REXML tests are worked.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-17 13:31:16 +00:00
kou
d357d7279a
* test/rexml/test_listener.rb: remove needless codes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-17 13:15:37 +00:00
kou
91ed484f92
* test/rexml/: import REXML tests from
...
http://www.germane-software.com/repos/rexml/trunk/test/ .
Many tests are failed temporary. I'll fix them quickly. Sorry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-17 13:14:14 +00:00
naruse
46ff009168
* lib/rexml/source.rb: force_encoding("UTF-8") when the input
...
is already UTF-8. patched by Kouhei Sutou [ruby-core:23404]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-14 13:11:11 +00:00
nobu
cff7d0c80e
* lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser::STANDALONE):
...
any number spaces can be placed between equal-sign and the value.
patch from Ed Howland in [ruby-core:27345].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-29 01:36:26 +00:00
tenderlove
197eea3404
* lib/rexml/formatters/default.rb (write_attribute): fix an
...
exception when printing a document when duplicate namespaced
attributes exist. Thanks, Alexey Froloff [ruby-core:2389]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-28 21:40:59 +00:00
shugo
a324863b99
* lib/rexml/entity.rb (unnormalized): do not call
...
document.record_entity_expansion if document is nil.
see <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502535 >.
Thanks, Naohisa Goto.
* test/rexml/test_document.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-06 17:03:40 +00:00
shugo
364b083425
* test/rexml/test_document.rb: removed garbage.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-13 01:43:51 +00:00
shugo
cb9478ae04
* text/rexml/test_document.rb (test_entity_expansion_limit): added tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-13 01:40:36 +00:00
shugo
bb1d005da6
* lib/rexml/document.rb: limit entity expansion.
...
* lib/rexml/entity.rb: ditto.
* test/rexml/test_document.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 13:41:38 +00:00