Permalink
Browse files

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

Should fix #328.
  • Loading branch information...
1 parent 8e5f3ec commit dcd69066144c760922ce2e3e5f538fe1ca6074c5 @bryckbost bryckbost committed Jan 19, 2012
Showing with 10 additions and 1 deletion.
  1. +9 −0 Gemfile
  2. +1 −1 lib/delayed/yaml_ext.rb
View
9 Gemfile
@@ -1,2 +1,11 @@
source 'http://rubygems.org'
gemspec
+
+platforms :ruby do
+ gem 'sqlite3'
+end
+
+platforms :jruby do
+ gem 'jruby-openssl'
+ gem 'activerecord-jdbcsqlite3-adapter'
+end
View
2 lib/delayed/yaml_ext.rb
@@ -2,7 +2,7 @@
# Classes, Modules and Structs
require 'yaml'
-if YAML.parser.class.name =~ /syck/i
+if YAML.parser.class.name =~ /syck|yecht/i
require File.expand_path('../syck_ext', __FILE__)
require File.expand_path('../serialization/active_record', __FILE__)
else

0 comments on commit dcd6906

Please sign in to comment.