Skip to content
This repository
Browse code

Check YAML parser class name to match JRuby's Yecht parser

Should fix #328.
  • Loading branch information...
commit dcd69066144c760922ce2e3e5f538fe1ca6074c5 1 parent 8e5f3ec
Brian Ryckbost bryckbost authored

Showing 2 changed files with 10 additions and 1 deletion. Show diff stats Hide diff stats

  1. +9 0 Gemfile
  2. +1 1  lib/delayed/yaml_ext.rb
9 Gemfile
... ... @@ -1,2 +1,11 @@
1 1 source 'http://rubygems.org'
2 2 gemspec
  3 +
  4 +platforms :ruby do
  5 + gem 'sqlite3'
  6 +end
  7 +
  8 +platforms :jruby do
  9 + gem 'jruby-openssl'
  10 + gem 'activerecord-jdbcsqlite3-adapter'
  11 +end
2  lib/delayed/yaml_ext.rb
@@ -2,7 +2,7 @@
2 2 # Classes, Modules and Structs
3 3
4 4 require 'yaml'
5   -if YAML.parser.class.name =~ /syck/i
  5 +if YAML.parser.class.name =~ /syck|yecht/i
6 6 require File.expand_path('../syck_ext', __FILE__)
7 7 require File.expand_path('../serialization/active_record', __FILE__)
8 8 else

0 comments on commit dcd6906

Please sign in to comment.
Something went wrong with that request. Please try again.