Directory lib/rexml/encodings/

Directory Created:
2003-06-10 02:31
Total Files:
11
Deleted Files:
8
Lines of Code:
386

Browse with ViewVC

[root]/lib/rexml/encodings

Lines of Code

lib/rexml/encodings/ Lines of Code

Developers

Author Changes Lines of Code Lines per Change
Totals 93 (100.0%) 811 (100.0%) 8.7
ser 59 (63.4%) 679 (83.7%) 11.5
matz 15 (16.1%) 81 (10.0%) 5.4
nobu 4 (4.3%) 46 (5.7%) 11.5
ocean 1 (1.1%) 2 (0.2%) 2.0
usa 1 (1.1%) 1 (0.1%) 1.0
nahi 1 (1.1%) 1 (0.1%) 1.0
kou 1 (1.1%) 1 (0.1%) 1.0
shyouhei 11 (11.8%) 0 (0.0%) 0.0

Most Recent Commits

shyouhei 2007-02-13 00:01

set svn:eol-style

0 lines of code changed in:

ser 2007-01-20 04:56

Merged from REXML main repository:



Fixes ticket:68.

NOTE that this involves an API change! Entity declarations in the doctype

now generate events that carry two, not one, arguments.



Implements ticket:15, using gwrite's suggestion. This allows Element to be

subclassed.



Two unrelated changes, because subversion is retarded and doesn't do

block-level commits:



1) Fixed a typo bug in previous change for ticket:15

2) Fixed namespaces handling in XPath and element.



***** Note that this is an API change!!! *****



Element.namespaces() now returns a hash of namespace mappings which are

relevant for that node.



Fixes a bug in multiple decodings



The changeset 1230:1231 was bad. The default behavior is *not* to use the

native REXML encodings by default, but rather to use ICONV by default. I know

that this will piss some people off, but defaulting to the pure Ruby version

isn't the correct solution, and it breaks other encodings, so I've reverted it.



* Fixes ticket:61 (xpath_parser)

* Fixes ticket:63 (UTF-16; UNILE decoding was bad)

* Cleans up some tests, removing opportunities for test corruption

* Improves parsing error messages a little

* Adds the ability to override the encoding detection in Source construction

* Fixes an edge case in Functions::string, where document nodes weren't

correctly converted

* Fixes Functions::string() for Element and Document nodes

* Fixes some problems in entity handling



Addresses ticket:66



Fixes ticket:71



Addresses ticket:78

NOTE: that this also fixes what is technically another bug in REXML. REXML's

XPath parser used to allow exponential notation in numbers. The XPath spec

is specific about what a number is, and scientific notation is not included.

Therefore, this has been fixed.



Cross-ported a fix for ticket:88 from CVS.



Fixes ticket:80



Documentation cleanup. Ticket:84



Applied Kou's fix for an un-trac'ed bug.



------------------------------------------------------------------------

1 lines of code changed in:

  • lib/rexml/encodings: UNILE.rb (+1 -1)
matz 2006-09-13 09:10

* hash.c (rb_hash_compare_by_identity): rename Hash#identical to

Hash#compare_by_identity.

1 lines of code changed in:

matz 2006-09-11 03:48

* lib/rexml/source.rb (REXML::Source::encoding): should not

convert the body twice. [ruby-core:08828]



* lib/rexml/encoding.rb (REXML::Encoding::encoding):

Encoding#encoding= to return boolean value to tell if the body

is really converted or not.



* lib/rexml/encoding.rb (REXML::Encoding::encoding): Specific

conversion library (e.g. rexml/encodings/UTF-16.rb) to have

higher preceding.



* lib/rexml/encodings/UTF-16.rb (REXML::Encoding::decode_utf16):

UTF-16#decode_utf16 should work strings without BOM.

2 lines of code changed in:

nobu 2005-12-09 15:31

* lib/rexml/encoding.rb (encoding=): give priority to particular

conversion to iconv. [ruby-core:06520]

45 lines of code changed in:

ocean 2005-04-25 06:09

* lib/rexml/encodings/SHIFT-JIS.rb: encoding and decoding were

swapped. [ruby-core:4772] (patch from speakillof)



* lib/rexml/encoding.rb: fixed indentation.

2 lines of code changed in:

ser 2005-04-09 18:03

Applied Nobu's patch to the XML document encoding structure in REXML. It

passes all of REXML's native tests as well as a couple of others, and should

fix potential threading issues.

77 lines of code changed in:

kou 2004-12-19 16:19

* lib/rexml/encodings/SHIFT_JIS.rb: fixed LoadError bug. [ruby-core:3958]

1 lines of code changed in:

ser 2004-12-13 12:50

Merged in the changes from BSD bug report. shift-jis is now shift_jis, in

accordance with IANA

5 lines of code changed in:

ser 2004-05-16 16:19

Added support for CP-1252 and ISO-8859-15 encodings for non-iconv systems.

167 lines of code changed in:

ser 2004-05-16 16:17

------------------------------------------------------------------------

1 lines of code changed in:

ser 2004-04-02 04:53

REXML changes

* The main purpose for this change is to get a fix in for nasty bug in XPath.

In the new code for the descendant-or-self axis, the document order code

was calling the wrong method to do node comparisons, causing a terrible

overhead that slowed the axis down to the point where it was unusable.

This is a common axis, also known as '//', so this fix is critical.

* Using Element#text= on a non-Text, non-String argument caused an error.

This has been changed so that the behavior is like puts() -- to_s() is

called on the object first.

* Refactored the pretty-printing code a little.

1 lines of code changed in:

nobu 2004-02-16 23:48

* lib/rexml/encodings/SHIFT_JIS: wrong library name.

1 lines of code changed in:

ser 2004-02-16 22:42

Fixed Issue7: DocType with external IDs was not being quoted.

SHIFT_JIS now merely includes Shift-JIS

1 lines of code changed in:

ser 2004-02-13 23:40

@@ Fix for the XPath descendant* result set ordering bug @@

@@ SAX2 listener bug fixes @@

@@ Undid a code change that caused a 10x speed regression @@

@@ Indentation fixes, and a new word wrapping feature for text nodes

was contributed by Devin Bayer (documentation forthcoming; see the

change logs for now) @@



The XPath bug fix is really ugly and inefficient, but I spent two days hacking

at it and this was the best I could come up with.



The SAX2 listener fixes had to do with crashes in certain conditions, like when

there was a carriage return at the end of a document



Several people submitted patches for the speed regression; it is embarrassing

how long it took me to get around to looking at this. To this day, I don't

know where the offending code came from.



Encoding fixes



Added a contributed word wrapping option for text formatting. Devin Bayer

contributed this. Here's his comment:

"Setting :wordwrapping to :all, wordwraps all text nodes longer than 60

characters.

Setting :indentstyle to aString, make aString used as indentation,

instead of the default ' '.

And as long as :respect_whitespace isn't set for the element,

multiline text nodes will be indented."

4 lines of code changed in:

matz 2004-01-27 07:05

* misc/ruby-mode.el: better support for general delimited

strings. [ruby-dev:22695]



* lib/weakref.rb (WeakRef::initialize): set up @__id before

calling "super".



* lib/delegate.rb (Delegator::initialize): preserve

singleton_method_added method [ruby-dev:22685]



* lib/delegate.rb (Delegator::initialize): use Kernel::raise

instead of mere raise. [ruby-dev:22681]

1 lines of code changed in:

usa 2003-12-23 11:07

Commit miss?

1 lines of code changed in:

matz 2003-12-23 11:02

* pack.c (pack_pack): remove unnecessary negative value check.

[ruby-dev:22329]



* io.c (rb_io_ungetc): need fflush before ungetc if write buffer

is filled. [ruby-dev:22330]

1 lines of code changed in:

nahi 2003-12-23 08:13

* lib/rexml/encodings/US-ASCII.rb: typo. [ruby-talk:88650]



* test/ruby/test_system.rb: num of asserts depended on running dir.



* test/xsd/test_noencoding.rb: rexml + without iconv/uconv cannot

handle euc-jp. install iconv, uconv or xmlscan.

1 lines of code changed in:

ser 2003-12-12 22:17

REXML changes:

* Took out the duplicate Shift-JIS entries, for OSes that don't understand

case sensitive file names.

* Fixed some bugs in the encodings

40 lines of code changed in:

(8 more)

Generated by StatSVN 0.3.2-SNAPSHOT