summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2017-03-27Fixed gabage linesSHIBATA Hiroshi
2017-03-27Removed deprecated yaml_initialize methodSHIBATA Hiroshi
2017-03-27Removed Module#psych_yaml_asSHIBATA Hiroshi
2017-03-27Remove to_yaml_propatiesSHIBATA Hiroshi
2017-03-27Remove Psych.tagurizeSHIBATA Hiroshi
2017-03-27Remove Psych.object_makerSHIBATA Hiroshi
2017-03-27Remove Psych.read_type_classSHIBATA Hiroshi
2017-03-27Remove Psych.add_private_typeSHIBATA Hiroshi
2017-03-27Removed Psyych.add_ruby_type.SHIBATA Hiroshi
2017-03-27Removed Psyych.detect_implicit.SHIBATA Hiroshi
2017-03-27Removed Psyych.load_documents.SHIBATA Hiroshi
2017-03-10Merge pull request #304 from ruby/remove-syckSHIBATA Hiroshi
Remove deprecated code related syck
2017-03-07Make sexagesimal parsing more strictAaron Patterson
Fixes #265
2017-03-07To use yaml_as instead of psych_yaml_asSHIBATA Hiroshi
2017-03-03Removed aliases for Syck module.SHIBATA Hiroshi
* Removed alias for to_yaml. * Renamed pysch_to_yaml to to_yaml. * Removed Pysch.quick_emit. Because it caused infinite recuresion call used to_yaml.
2017-03-03styleSHIBATA Hiroshi
2017-03-03avoid to deprecated warnings with nil assertions.SHIBATA Hiroshi
2017-03-03avoid to shadowing outer local variables.SHIBATA Hiroshi
2017-03-03Added parentheses for regex assertionsSHIBATA Hiroshi
2017-03-03use assert_nil when nil assertionSHIBATA Hiroshi
2016-08-23Close TempfileNobuyoshi Nakada
Fix Tempfile leak.
2016-06-30Merge pull request #276 from ccutrer/invalid_floatAaron Patterson
fix serialization of a string that looks like a valid YAML float
2016-06-24cherry-picking assertion from ↵SHIBATA Hiroshi
https://github.com/ruby/ruby/commit/cc0313436160b735a3d41361cb5e3eeb10fcbdad
2016-06-24Merge pull request #264 from tuexss/load_file-defaultAaron Patterson
Add optional fallback return value parameter
2016-06-24Merge pull request #270 from tenderlove/issue-11988SHIBATA Hiroshi
Support YAML 1.2 Core Schema
2016-03-29fix serialization of a string that looks like a valid YAML floatCody Cutrer
refs gh-156 (but isn't a valid ruby float)
2016-02-23backport workaround for JRubySHIBATA Hiroshi
ref. https://github.com/ruby/ruby/commit/9386ecf9b6baf6fd37d97bfee025702cee411718
2016-02-23Temporary disabled to frozen literal string.SHIBATA Hiroshi
ref. https://github.com/ruby/ruby/commit/3e92b635fb5422207b7bbdc924e292e51e21f040
2016-02-23cherry-picked test from ↵SHIBATA Hiroshi
https://github.com/ruby/ruby/commit/db48c307944a9a18877236bdf9e9b778875f38ed
2016-02-09Support YAML 1.2 Core Schema. Addressed https://bugs.ruby-lang.org/issues/11988SHIBATA Hiroshi
2016-01-08Add optional fallback return value parametertuexss
2015-11-14Add a failing test for line width #254Gleb Mazovetskiy
2015-09-12Merge pull request #245 from hsbt/remove-19-supportSHIBATA Hiroshi
Drop Ruby 1.9 support
2015-09-12fix comments for Ruby 1.9SHIBATA Hiroshi
2015-08-27Fix Encoding::UndefinedConversionError when dumping non ascii string to a file.Yuji Yamano
2015-08-27removed Ruby 1.9 supportSHIBATA Hiroshi
2015-04-29Merge branch 'master' into jrubyAaron Patterson
* master: add test don't assume any tag starting with 'str' is a string
2015-03-30add testfilialpails
2015-03-03Merge branch 'master' into jrubyAaron Patterson
* master: Adding Rubinius as an Allowed Failure bump version Fix CVE-2014-9130 Adding RVM listing for Rubinius fix minitest warnings * ext/psych/lib/psych/visitors/yaml_tree.rb: register nodes when dumping objects with custom coders. [ruby-core:66215] [Bug #10496] * ext/psych/lib/psych/visitors/to_ruby.rb: fix support for regular expressions with newlines. tenderlove/psych#222 * ext/psych/lib/psych/visitors/to_ruby.rb: fix parsing hashes with instance variables when it is referenced multiple times. * ext/psych/lib/psych.rb: bump version * ext/psych/psych.gemspec: bump version * test/psych/test_hash.rb: test for fix bump version Fix anchor Fix assertion regexps bump version Only dump ivars for subclasses of String, not for String. With cf0dd2b93f1552a3c452a0bfa0e996f441d5e27e, fixes #217. Only dump ivars for subclasses of Hash, not for Hash. Fixes #216. Fixes part of #217. Fix block chomping and add more tests Preset @line_width in YAMLTree#initialize for better performance Use appropriate style for serialized strings Remove unnnecessary 'str' variable in YAMLTree#visit_String
2015-02-06fix minitest warningsAaron Patterson
2015-02-06* ext/psych/lib/psych/visitors/yaml_tree.rb: register nodes whenAaron Patterson
dumping objects with custom coders. [ruby-core:66215] [Bug #10496] * test/psych/test_coder.rb: test for fix
2015-02-06* ext/psych/lib/psych/visitors/to_ruby.rb: fix support for regularAaron Patterson
expressions with newlines. tenderlove/psych#222 * test/psych/test_yaml.rb: test for change. fixes #222
2015-01-28* ext/psych/lib/psych/visitors/to_ruby.rb: fix parsing hashes withAaron Patterson
instance variables when it is referenced multiple times. * ext/psych/lib/psych.rb: bump version * ext/psych/psych.gemspec: bump version * test/psych/test_hash.rb: test for fix
2015-01-17Fix anchorNobuyoshi Nakada
Anchors like `\Z` are not valid inside character class. Use negative-lookahead instead.
2015-01-17Fix assertion regexpsNobuyoshi Nakada
`|' is a meta character, so needs to be escaped.
2015-01-15Only dump ivars for subclasses of Hash, not for Hash.Joe Eli McIlvain
Fixes #216. Fixes part of #217.
2015-01-13Fix block chomping and add more testsJakub Jirutka
When no [chomping indicator][1] is specified for a folded or literal block, then YAML parser should preserve the final line break (i.e. the string should end with \n). This implies that when dumping a string *without* the trailing newline to YAML, we should specify the stripping indicator (-). [1]: http://yaml.org/spec/1.2/2009-07-21/spec.html#id2593651
2015-01-12Use appropriate style for serialized stringsJakub Jirutka
When psych parses YAML with string in the folded style as: a: > some inline content and serializes it back to YAML, then it renders the string in the literal style instead: a: | some inline content This patch fixes this behaviour. When a string doesn't contain newlines (blank line at the end is ignored) and it's not necessary to be quoted, then it will use plain style or folded style according to its length and the `line_width` option. # line_width = 100 a: some inline content # line_width = 11 a: > some inline content This change was originally proposed by @Iazel.
2015-01-09Merge remote-tracking branch 'origin/master' into jrubyCharles Oliver Nutter
Conflicts: .gitignore
2015-01-09Update to latest code from JRuby master.Charles Oliver Nutter