tenderlove
ee827e52a7
eliminate `shadowing outer local variable - name` warning.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-08 18:03:51 +00:00
kou
ca77bce66d
* lib/rexml/parsers/baseparser.rb: use meaningful name.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-02 12:48:45 +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
kou
bd895ab176
* lib/rexml/parsers/baseparser.rb: use private instead of _xxx
...
method name. This is Ruby code not Python code.
refs #5696
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-03 15:21:53 +00:00
ayumin
5eac56441c
* lib/rexml/parsers/baseparser.rb: rexml BaseParser uses
...
instance_eval unnecessarily on listener add.
patch from Charles Nutter. [Bug #5696 ] [ruby-core:41437]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-03 15:05:20 +00:00
ktsj
c3749b6a6d
* ext/pathname/lib/pathname.rb, ext/tk/lib/multi-tk.rb,
...
ext/tk/sample/demos-en/widget, lib/benchmark.rb, lib/irb/cmd/fork.rb,
lib/mkmf.rb, lib/net/ftp.rb, lib/net/smtp.rb, lib/open3.rb,
lib/pstore.rb, lib/rexml/element.rb, lib/rexml/light/node.rb,
lib/rinda/tuplespace.rb, lib/rss/maker/base.rb,
lib/rss/maker/entry.rb, lib/scanf.rb, lib/set.rb, lib/shell.rb,
lib/shell/command-processor.rb, lib/shell/process-controller.rb,
lib/shell/system-command.rb, lib/uri/common.rb: remove unused block
arguments to avoid creating Proc objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-05 07:37:47 +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
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
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
d371e3583e
* lib: revert r31635-r31638 and untabify with expand(1).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-19 00:07:25 +00:00
drbrain
7bbf2f3085
* lib: Convert tabs to spaces for ruby files per
...
http://redmine.ruby-lang.org/projects/ruby/wiki/DeveloperHowto#coding-style
Patch by Steve Klabnik [Ruby 1.9 - Bug #4730 ]
Patch by Jason Dew [Ruby 1.9 - Feature #4718 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-18 21:19:18 +00:00
drbrain
8dca379907
* lib/rexml/functions.rb: Add some documentation for REXML::Functions.
...
Patch by Sebastian Martinez. [Ruby 1.9 - Feature #4688 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-13 17:54:22 +00:00
drbrain
615e7987ca
* object.c (rb_obj_equal): Add documentation. Patch by Vincent Batts.
...
[Ruby 1.9 - Bug #4664 ]
* lib/rexml: ditto
* lib/mkmf.rb: ditto
* ext/socket/lib/socket.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-11 22:56:13 +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
kou
c207b0b727
* lib/rexml/light/node.rb: remove circular require.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07 13:01:36 +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
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
marcandre
f3e3547407
* lib/*.rb: Remove unused variable warnings.
...
Patch by Run Paint [ruby-core:30991]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-08 20:59:01 +00:00
kou
2b82e06aaf
* lib/rexml/encoding.rb: untabify.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-30 14:39:20 +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
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
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
naruse
66a425c65c
* lib/rexml/quickpath.rb (REXML::QuickPath::predicate): fix regexp.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-07 02:59:33 +00:00
naruse
b3ac1c3fb8
Refix previous commit.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-06 00:53:14 +00:00
naruse
75ba1d6ac4
Fix previous commit.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-06 00:22:04 +00:00
naruse
9ea41e083c
Remove warning.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-05 21:27:40 +00:00
naruse
8287d55340
* lib/rexml/text.rb (REXML::Text.check): comment out
...
broken logic.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-05 21:21:53 +00:00
naruse
40bc864003
* lib/rexml/parsers/baseparser.rb (LETTER, DIGIT):
...
always use POSIX charclass.
* lib/rexml/parsers/baseparser.rb (NAMECHAR):
remove duplicated range.
* lib/rexml/xmltokens.rb (NCNAME_STR, NAMECHAR): ditto.
* lib/rexml/parsers/xpathparser.rb (PathExpr): ditto.
* lib/rexml/text.rb (REXML::Text#initialize):
initialize @parent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-05 21:08:12 +00:00
nobu
c9dd4823d9
* lib: fixed typo. a patch by Sho Hashimoto in [ruby-dev:40716].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-20 03:30:59 +00:00
mame
f2bd994409
* lib/rexml/text.rb (REXML::Text#initialize): REXML::Text.new checks
...
raw text for illegal characters without entity check, for the sake
of 1.8 compatibility. This had caused rubyspec error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-09 12:30:31 +00:00
mame
323d23c44b
* lib/rexml/text.rb (REXML::Text#initialize): do Text.check only when
...
parent is specified, since Text.check may need doctype. partially
revert r26518.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-31 12:36:27 +00:00
mame
a9770c8058
* lib/rexml/text.rb (REXML::Text#initialize): fix typo and a bug that
...
seems to be caused by refactoring.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-31 06:55:17 +00:00
mame
8129a8dfbd
* lib/rexml/parent.rb (REXML::Parent#delete): return the deleted node
...
because the rdoc of REXML::Element#delete_element says it returns
"the element that was removed."
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-31 06:55:06 +00:00
mame
6425b4ba56
* lib/rexml/document.rb (REXML::Document#add): fix duplicate XMLDecls
...
and bad DocTypes in REXML::Document. (Bug #19058 ) [ruby-core:27979]
based on the patch by Federico Builes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-31 04:03:14 +00:00
yugui
0e8fae89ab
* lib/rexml/text.rb: String no longer has #each.
...
Patch by Mitsutaka Mimura (takkanm). [ruby-dev:39949].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-03 06:37:40 +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
marcandre
5498b5a4c7
* lib/rexml/element.rb (text=): false should be converted to string.
...
A patch by Teruo Oshida [ruby-dev:38351]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-18 20:54:29 +00:00
nobu
287a34ae0d
* {ext,lib,test}/**/*.rb: removed trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 03:56:38 +00:00
matz
85bae86cb6
* lib/optparse/version.rb: remove variable shadowing to stop
...
warning. [ruby-core:20612]
* lib/irb/completion.rb, lib/net/imap.rb, lib/prime.rb,
lib/rinda/ring.rb, lib/racc/parser.rb,
lib/shell/command-processor.rb, lib/yaml/yamlnode.rb: ditto.
* lib/racc/parser.rb: remove space before parentheses.
* lib/shell/command-processor.rb, lib/shell/process-controller.rb:
use parentheses around arguments.
* lib/irb/ext/change-ws.rb, lib/rexml/validation/relaxng.rb,
lib/yaml/baseemitter.rb: indentation fix.
* lib/matrix.rb: small cosmetic change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-18 07:54:50 +00:00
matz
bc53f80b37
* lib/rexml/document.rb (REXML::Document#write): require
...
rexml/formatters/transitive if transitive flag is on. a patch
from akira yamada in [ruby-dev:36230]. fix #553
* lib/rexml/element.rb (REXML::Element#write): ditto.
* lib/rexml/formatters/transitive.rb (REXML::Formatters::Transitive#write_element):
add hack for IE. [ruby-dev:36230]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 01:20:23 +00:00
matz
684f94c0ed
* lib/rexml/xpath.rb (REXML::XPath.first): apply documentation
...
patch from Ken Bloom in [ruby-core:20213].
* lib/rexml/xpath.rb (REXML::XPath.each): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-03 00:31:58 +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
mame
179b7eaa6b
* lib/rexml/parsers/lightparser.rb, lib/debug.rb: remove unused when
...
clauses.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-01 13:55:08 +00:00
mame
46321a9a31
* lib/xmlrpc, lib/rexml, test/ruby/test_array.rb,
...
test/ruby/test_unicode_escape.rb, test/scanf/test_scanf.rb,
test/rss/rss-assertions.rb: fix indentation to remove warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-01 13:46:53 +00:00
matz
83abcf5a2c
* lib/rexml/formatters/pretty.rb (REXML::Formatters::Pretty#wrap):
...
abandon wrapping if the line contains no space. [ruby-dev:36045]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23 11:09:39 +00:00
shugo
158284ac24
* lib/rexml/document.rb: fixed typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-13 02:16:05 +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
mame
7493685b3b
* lib/rexml/document.rb (REXML::Document:write): leaky modification
...
trans -> transitive. [ruby-dev:32040], r13686
* lib/rexml/text.rb (Text.check): fix check for illigal characher.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-05 11:22:32 +00:00