зеркало из https://github.com/github/ruby.git
* 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:
Родитель
4bcb334a5c
Коммит
45942bdbc6
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,12 @@
|
|||
Sat Jul 31 05:35:37 2004 why the lucky stiff <why@ruby-lang.org>
|
||||
|
||||
* 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.
|
||||
|
||||
Sat Jul 31 01:25:11 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* eval.c (is_defined): call is_defined() before invoking
|
||||
|
@ -182,7 +191,7 @@ Thu Jul 15 20:44:46 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
|||
|
||||
* class.c: rdoc patch
|
||||
|
||||
Thu Jul 15 14:12:34 2004 why the lucky stiff <why@topi.cc>
|
||||
Thu Jul 15 14:12:34 2004 why the lucky stiff <why@ruby-lang.org>
|
||||
|
||||
* lib/yaml.rb (YAML::load_file, YAML::parse_file): added.
|
||||
|
||||
|
|
2116
ext/syck/token.c
2116
ext/syck/token.c
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -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)
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче