Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Fix for JRuby 1.7+ #3

merged 2 commits into from

2 participants


JRuby 1.7 uses the 'syck' YAML engine instead of 'yecht'. This breaks configatron because it depends on Yecht. That issue was reported months ago but the patch has not been applied so this patch represents pragmatic solution to the issue.


We have applied the same patch in our (rails) wistia initializer and it works fine. I couldn't get your specs to run though (even before I applied this change) so apologies if I have inadvertantly broken something.

@jbancroft jbancroft merged commit 1085665 into wistia:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 17 additions and 0 deletions.
  1. +17 −0 lib/config.rb
17 lib/config.rb
@@ -1,3 +1,20 @@
+# Workaround for a problem with configatron in JRuby 1.7+
+# Contributors have suggested a solution at
+# but the patch has not been applied for months
+def running_jruby_1_7_or_later
+ RUBY_PLATFORM == 'java' && !JRUBY_VERSION.match(/[0-1]\.[0-6]/)
+if running_jruby_1_7_or_later && !defined? Psych::Yecht
+ module Psych
+ module Yecht
+ MergeKey = Psych::Syck
+ end
+ end
require 'configatron'
configatron.wistia.api.key = ''
Something went wrong with that request. Please try again.