From f595568e475b225b2ee5cce9d4667ba551177ee6 Mon Sep 17 00:00:00 2001 From: tenderlove Date: Tue, 17 Feb 2015 18:17:46 +0000 Subject: * ext/psych/lib/psych.rb: bump psych version. * ext/psych/psych.gemspec: ditto * ext/psych/yaml/scanner.c: add latest libyaml change. * test/psych/helper.rb: support newer minitest * test/psych/test_to_yaml_properties.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/psych/lib/psych.rb | 2 +- ext/psych/psych.gemspec | 2 +- ext/psych/yaml/scanner.c | 7 ------- 3 files changed, 2 insertions(+), 9 deletions(-) (limited to 'ext') diff --git a/ext/psych/lib/psych.rb b/ext/psych/lib/psych.rb index 3e9b7aa1fb..085e828224 100644 --- a/ext/psych/lib/psych.rb +++ b/ext/psych/lib/psych.rb @@ -217,7 +217,7 @@ require 'psych/class_loader' module Psych # The version is Psych you're using - VERSION = '2.0.12' + VERSION = '2.0.13' # The version of libyaml Psych is using LIBYAML_VERSION = Psych.libyaml_version.join '.' diff --git a/ext/psych/psych.gemspec b/ext/psych/psych.gemspec index 40b0e2ed5d..a9cc547c43 100644 --- a/ext/psych/psych.gemspec +++ b/ext/psych/psych.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |s| s.name = "psych" - s.version = "2.0.12" + s.version = "2.0.13" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.require_paths = ["lib"] diff --git a/ext/psych/yaml/scanner.c b/ext/psych/yaml/scanner.c index 08ad8edb45..8d81590e59 100644 --- a/ext/psych/yaml/scanner.c +++ b/ext/psych/yaml/scanner.c @@ -1105,13 +1105,6 @@ yaml_parser_save_simple_key(yaml_parser_t *parser) int required = (!parser->flow_level && parser->indent == (ptrdiff_t)parser->mark.column); - /* - * A simple key is required only when it is the first token in the current - * line. Therefore it is always allowed. But we add a check anyway. - */ - - assert(parser->simple_key_allowed || !required); /* Impossible. */ - /* * If the current position may start a simple key, save it. */ -- cgit v1.2.3