Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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 with 10 additions and 1 deletion.
  1. +9 −0 Gemfile
  2. +1 −1  lib/delayed/yaml_ext.rb
9 Gemfile
View
@@ -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  lib/delayed/yaml_ext.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.