Skip to content

Commit

Permalink
Check YAML parser class name to match JRuby's Yecht parser
Browse files Browse the repository at this point in the history
Should fix #328.
  • Loading branch information
bryckbost committed Jan 19, 2012
1 parent 8e5f3ec commit dcd6906
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion lib/delayed/yaml_ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dcd6906

Please sign in to comment.