Skip to content

Commit

Permalink
merging from ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Nov 1, 2011
1 parent 524da34 commit 5a46605
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
1 change: 0 additions & 1 deletion ext/psych/parser.c
Expand Up @@ -61,7 +61,6 @@ static VALUE allocate(VALUE klass)

static VALUE make_exception(yaml_parser_t * parser, VALUE path)
{
VALUE exception;
size_t line, column;

line = parser->context_mark.line + 1;
Expand Down
14 changes: 9 additions & 5 deletions test/psych/test_yamldbm.rb
@@ -1,10 +1,14 @@
# -*- coding: UTF-8 -*-
require 'test/unit'
require 'yaml/dbm'
require 'tmpdir'
Psych::DBM = YAML::DBM unless defined?(Psych::DBM)
begin
require 'test/unit'
require 'yaml/dbm'
require 'tmpdir'
rescue LoadError
end

module Psych
::Psych::DBM = ::YAML::DBM unless defined?(::Psych::DBM)

class YAMLDBMTest < Test::Unit::TestCase
def setup
@engine, YAML::ENGINE.yamler = YAML::ENGINE.yamler, 'psych'
Expand Down Expand Up @@ -187,4 +191,4 @@ def test_selsct_with_block
assert_equal([], @yamldbm.select {false})
end
end
end
end if defined?(YAML::DBM)

0 comments on commit 5a46605

Please sign in to comment.