From: Charles Oliver Nutter Date: 2011-03-12T04:06:12+09:00 Subject: [ruby-core:35488] Re: Source for 1.8 syck gram.y and token.re? On Fri, Mar 11, 2011 at 11:39 AM, Aaron Patterson wrote: > Ya. I could do that. ��I need to do a little work to make sure it will > work on 1.8 and 1.9. > > Also, I'm not sure what to do about JRuby. ��I don't want to maintain the Java > code for the JRuby version of Psych, but I want to make sure gem > installs on JRuby work OK. ��Do you have any suggestions? There's two options. 1. The psych ext for JRuby is essentially five .java files that are free-standing, other than needing SnakeYAML and JRuby present to compile. They wouldn't be hard to dump into the gem, and we'd only need to rebuild them once in a great while if they change (I can maintain them for you). 2. We could just have psych available in JRuby's 1.8 mode (since it's already shipped) and just make a dummy -java gem for the psych gem that knows how to activate it through super-secret ways. That would avoid conflicts between the gem and JRuby's shipped psych version. I actually thought about doing the second option when this discussion first came up. We'll have to fiddle with how the gem replaces syck in 1.8 mode so that it works right for both MRI and JRuby, but that shouldn't be too tricky. And it would be trivial if users were required to require 'psych-yaml', so the stdlib files don't step on the gem files. - Charlie