summaryrefslogtreecommitdiff
path: root/test/yaml
AgeCommit message (Collapse)Author
2017-01-17lib/pstore.rb: Specify frozen_string_literal: true.kazu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-29fix YAML::Storekazu
* lib/yaml/store.rb (YAML::Store#initialize): Fix arguments. [ruby-dev:49821] [Bug #12800] * test/yaml/test_store.rb: Add tests from test/test_pstore.rb. * test/yaml/test_store.rb (YAMLStoreTest#test_with_options): Add options test. * lib/yaml/store.rb (YAML::Store#dump): Revert to to_yaml. * lib/yaml/store.rb (YAML::Store#empty_marshal_data): Use to_yaml with options. * lib/yaml/store.rb (YAML::Store#empty_marshal_checksum): Use CHECKSUM_ALGO. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11* test/syck/*: Moved test/yaml to test/syck since it's actuallytenderlove
testing the syck YAML engine. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-03* lib/yaml: Moved to ext/syck/lib, Syck only uses Syck constant.tenderlove
* lib/yaml.rb: Added an engine manager for choosing YAML engine. * ext/syck/lib/syck/rubytypes.rb: squashed warnings when using Psych git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-26* lib/yaml/basenode.rb: deprecating YPath methodstenderlove
* lib/yaml/stream.rb: deprecating YAML::Stream#edit * test/yaml/test_yaml.rb: requiring yaml/ypath for tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-22* test/yaml/test_hash.rb (test_ref_append): adding a test for idreftenderlove
append nodes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-04* lib/yaml/rubytypes.rb: Struct members are emitted without a leadingtenderlove
colon. Thanks Yusuke Endoh! [ruby-core:28052] * test/yaml/test_struct.rb: fixed tests to go with Struct changes * test/yaml/test_yaml.rb: fixed tests to go with Struct changes git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-09* test/yaml/test_struct.rb Test for dealing with structs that havetenderlove
instance variables git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-17* test/yaml/test_boolean.rb (test_n): fixing test nametenderlove
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-16* test/yaml/test_set.rb (**) Adding test coverage for YAML::Settenderlove
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-30Adding tests for YAML typestenderlove
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-16Adding yaml tests [ruby-core:26732]tenderlove
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-21* time.c: remove time_t restriction from Time class.akr
* timev.h: new file to define struct vtm. * strftime.c: format struct vtm instead of struct tm. * ext/syck/rubyext.c (mktime_do): don't use time_t; [ruby-dev:38191] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06* {ext,lib,test}/**/*.rb: removed trailing spaces.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-19* ext/syck/rubyext.c (rb_syck_mktime): return DateTime for a valuematz
out of range of Time. [ruby-core:19919] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-06* lib/yaml/rubytypes.rb: support Rational and Complex as 1.8matz
does. a patch from Hiroshi Moriyama in [ruby-dev:36899]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-11* lib/yaml/store.rb (YAML::load): modified to support emptymatz
database. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-01(test_time_now_cycle): cut off under micro second.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-01* bootstraptest/test_knownbug.rb: move fixed bugs.ko1
* test/ruby/test_sprintf.rb: ditto. * test/yaml/test_yaml.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-19* configure.in: check struct timespec, clock_gettime, utimensat,akr
struct stat.st_atim, struct stat.st_atimespec, struct stat.st_atimensec, struct stat.st_mtim, struct stat.st_mtimespec, struct stat.st_mtimensec, struct stat.st_ctim, struct stat.st_ctimespec, struct stat.st_ctimensec. * include/ruby/missing.h: provide struct timespec if not available. * time.c: support nanosecond-resolution using struct timespec. * include/ruby/intern.h: provide rb_time_nano_new. * file.c (utime_internal): use utimensat if available. (rb_file_s_utime): refactored. (rb_f_test): use stat_atime, stat_mtime, stat_ctime. (rb_stat_cmp): check tv_nsec. (stat_atimespec): new function. (stat_atime): ditto. (stat_mtimespec): ditto. (stat_mtime): ditto. (stat_ctimespec): ditto. (stat_ctime): ditto. (rb_stat_atime): use stat_atime. (rb_file_s_atime): ditto. (rb_file_atime): ditto. (rb_stat_mtime): use stat_mtime. (rb_file_s_mtime): ditto. (rb_file_mtime): ditto. (rb_file_ctime): use stat_ctime. (rb_file_s_ctime): ditto. (rb_stat_ctime): ditto. * variable.c (rb_copy_generic_ivar): clear clone's instance variables if obj has no instance variable. * marshal.c (w_object): dump instance variables of generated string for TYPE_USERDEF, even if original object has instance variables. * lib/time.rb (Time#xmlschema): use nsec instead of usec. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-15* lib/yaml.rb (quick_emit): use combination of object_id and hash towhy
identify repeated object references, since GC will reuse memory of objects during output of YAML. [ruby-Bugs-8548] [ruby-Bugs-3698] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-13* test/yaml/test_yaml.rb: fixed the failing YAML Struct testwhy
at ko1's request. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-16* ext/syck/emitter.c (syck_emit_seq, syck_emit_map, syck_emit_item):ocean
should output complex key mark even if map's key is empty seq/map. [ruby-core:7129] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-10* lib/yaml/rubytypes.rb (Fixnum): Bignum could not be loaded inocean
ruby 1.8.3/1.8.4. [ruby-core:6115] * lib/yaml/rubytypes.rb (Numeric): Subclass of Numeric could not be dumped properly. [ruby-core:7047] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-10* lib/yaml/rubytypes.rb (Symbol#yaml_new): YAML loading of quotedocean
Symbols broken. [ruby-Bugs:2535] (written by Aaron Schrab) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-17* lib/yaml/rubytypes.rb: remove comments that are bungling upwhy
the rdoc and ri output. output symbols as plain scalars. * ext/syck/rubyext.c (syck_emitter_reset): emit headless documents always. * ext/syck/emitter.c (syck_scan_scalar): quote scalars with any kind of surrounding line space, tabs or spaces alike. * ext/syck/token.c: accept tabs as whitespace, not for indentation, but strip from plain scalars. * test/yaml/test_yaml.rb: remove outdated tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-15* ext/syck/MANIFEST, ext/syck/depend: new file.nobu
* lib/yaml/rubytypes.rb: range of exponential floats. [ruby-core:02824] * test/yaml/test_yaml.rb: tests for strings start with colon and some round trip. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-15* lib/yaml.rb: removed fallback to pure Ruby parser.why
* lib/yaml/baseemitter.rb (node_text): rewriting folded scalars. * ext/syck/syck.h: reports style of scalars now, be they plain, block single-, or double-quoted. * ext/syck/syck.c: ditto. * ext/syck/gram.c: ditto. * ext/syck/node.c: ditto. * ext/syck/token.c: ditto. * ext/syck/rubyext.c (yaml_org_handler): symbols loaded only if scalar style is plain. * test/yaml/test_yaml.rb (test_perl_regexp): updated test to match new regexp serialization. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-16 * lib/csv.rb: document reduction. [ruby-core:02429]nahi
* test/yaml/test_yaml.rb: added 0..1 test with "0".."1" on display. it should be defined that the specification about what kind of Range is supported in ruby's custom type in YAML. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-08* test/yaml/test_yaml.rb (YAML_Unit_Tests::test_range_cycle):akira
added tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-08* test/yaml/test_yaml.rb (YAML_Unit_Tests::test_range_cycle):akira
added tests. [ruby-core:02306] [ruby-core:02311] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-29 * test/rss/test_*: do $: trick while searching a module in the currentnahi
directory. * test/xsd/test_xmlschemaparser.rb, test/wsdl/test_emptycomplextype.rb, test/soap/helloworld/test_helloworld.rb, test/soap/calc/{test_calc.rb,test_calc2.rb}: do File.expand_path before using __FILE__. * test/yaml/test_yaml.rb: assert_equals -> assert_equal. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-28* ext/syck/rubyext.c: usec round-tripping skew. [ruby-core:2305]why
* lib/yaml/rubytypes.rb: character Range now round-trips. [ruby-core:2306] * test/yaml/test_yaml.rb: add Time and Range tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-13* test/yaml/test_yaml.rb (YAML_Unit_Tests::test_spec_type_{int,float}):nobu
fix syntax error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-12* ext/syck/bytecode.c: turn off default implicit typing.why
* ext/syck/implicit.c: detect base60 integers. * ext/syck/rubyext.c: handle base60, as well as hex and octal with commas. implicit typing of ruby symbols. * test/yaml/test_yaml.rb: add test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-15* lib/yaml/rubytypes.rb: comments in strings. [ruby-talk:88012]why
* test/yaml/test_yaml.rb: add test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-13* test/yaml/test_yaml.rb (test_ruby_struct): struct name din not match.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-12* lib/yaml/rubytypes.rb: anonymous struct fix. [ruby-core:01946]why
* test/yaml/test_yaml.rb: add test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-22* gc.c (Init_stack): stack region is far smaller than usual ifmatz
pthread is used. * marshal.c (w_extended): singleton methods should not be checked when dumping via marshal_dump() or _dump(). [ruby-talk:85909] * file.c (getcwdofdrv): avoid using getcwd() directly, use my_getcwd() instead. * merged NeXT, OpenStep, Rhapsody ports patch from Eric Sunshine <sunshine@sunshineco.com>. [ruby-core:01596] * marshal.c (w_object): LINK check earlier than anything else, i.e. do not dump TYPE_IVAR for already dumped objects. (ruby-bugs PR#1220) * eval.c (rb_eval): call "inherited" only when a new class is generated; not on reopening. * eval.c (eval): prepend error position in evaluating string to * configure.in: revived NextStep, OpenStep, and Rhapsody ports which had become unbuildable; enhanced --enable-fat-binary option so that it accepts a list of desired architectures (rather than assuming a fixed list), or defaults to a platform-appropriate list if user does not provide an explicit list; made the default list of architectures for MAB (fat binary) more comprehensive; now uses -fno-common even when building the interpreter (in addition to using it for extensions), thus allowing the interpreter to be embedded into a plugin module of an external project (in addition to allowing embedding directly into an application); added checks for <netinet/in_systm.h> (needed by `socket' extension) and getcwd(); now ensures that -I/usr/local/include is employed when extensions' extconf.rb scripts invoke have_header() since extension checks on NextStep and OpenStep will fail without it if the desired resource resides in the /usr/local tree; fixed formatting of --help message. * Makefile.in: $(LIBRUBY_A) rule now deletes the archive before invoking $(AR) since `ar' on Apple/NeXT can not "update" MAB archives (see configure's --enable-fat-binary option); added rule for new missing/getcwd.c. * defines.h: fixed endian handling during MAB build (see configure's --enable-fat-binary option) to ensure that all portions of the project see the correct WORDS_BIGENDIAN value (some extension modules were getting the wrong endian setting); added missing constants GETPGRP_VOID, WNOHANG, WUNTRACED, X_OK, and type pid_t for NextStep and OpenStep; removed unnecessary and problematic HAVE_SYS_WAIT_H define in NeXT section. * dir.c: do not allow NAMLEN() macro to trust dirent::d_namlen on NextStep since, on some installations, this value always resolves uselessly to zero. * dln.c: added error reporting to NextStep extension loader since the previous behavior of failing silently was not useful; now ensures that NSLINKMODULE_OPTION_BINDNOW compatibility constant is defined for OpenStep and Rhapsody; no longer includes <mach-o/dyld.h> twice on Rhapsody since this header lacks multiple-include protection, which resulted in "redefinition" compilation errors. * main.c: also create hard reference to objc_msgSend() on NeXT platforms (in addition to Apple platforms). * lib/mkmf.rb: now exports XCFLAGS from configure script to extension makefiles so that extensions can be built MAB (see configure's --enable-fat-binary option); also utilize XCFLAGS in cc_command() (but not cpp_command() because MAB flags are incompatible with direct invocation of `cpp'). * ext/curses/extconf.rb: now additionally checks for presence of these curses functions which are not present on NextStep or Openstep: bkgd(), bkgdset(), color(), curs(), getbkgd(), init(), scrl(), set(), setscrreg(), wattroff(), wattron(), wattrset(), wbkgd(), wbkgdset(), wscrl(), wsetscrreg() * ext/curses/curses.c: added appropriate #ifdef's for additional set of curses functions now checked by extconf.rb; fixed curses_bkgd() and window_bkgd() to correctly return boolean result rather than numeric result; fixed window_getbkgd() to correctly signal an error by returning nil rather than -1. * ext/etc/etc.c: setup_passwd() and setup_group() now check for null pointers before invoking rb_tainted_str_new2() upon fields extracted from `struct passwd' and `struct group' since null pointers in some fields are common on NextStep/OpenStep (especially so for the `pw_comment' field) and rb_tainted_str_new2() throws an exception when it receives a null pointer. * ext/pty/pty.c: include "util.h" for strdup()/ruby_strdup() for platforms such as NextStep and OpenStep which lack strdup(). * ext/socket/getaddrinfo.c: cast first argument of getservbyname(), gethostbyaddr(), and gethostbyname() from (const char*) to non-const (char*) for older platforms such as NextStep and OpenStep. * ext/socket/socket.c: include "util.h" for strdup()/ruby_strdup() for platforms such as NextStep and OpenStep which lack strdup(); include <netinet/in_systm.h> if present for NextStep and OpenStep; cast first argument of gethostbyaddr() and getservbyname() from (const char*) to non-const (char*) for older platforms. * ext/syslog/syslog.c: include "util.h" for strdup()/ruby_strdup() for platforms such as NextStep and OpenStep which lack strdup(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-03* ext/syck/rubyext.c: default keys handled.why
* ext/syck/syck.h: lowered default buffer size to 16k for increased performance. * test/yaml: checkin of basic unit tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e