mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* lib/yaml/rubytypes.rb: exceptions were using an older
YAML.object_maker. [ruby-core:03080] * ext/syck/token.c (sycklex_yaml_utf8): using newline_len to handline CR-LFs. "\000" was showing up on folded blocks which stopped at EOF. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4bcb334a5c
commit
45942bdbc6
3 changed files with 975 additions and 1154 deletions
|
@ -271,7 +271,7 @@ end
|
|||
|
||||
YAML.add_ruby_type( /^exception/ ) { |type, val|
|
||||
type, obj_class = YAML.read_type_class( type, Exception )
|
||||
o = YAML.object_maker( obj_class, { 'mesg' => val.delete( 'message' ) }, true )
|
||||
o = YAML.object_maker( obj_class, { 'mesg' => val.delete( 'message' ) } )
|
||||
val.each_pair { |k,v|
|
||||
o.instance_variable_set("@#{k}", v)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue