|Just FYI: Rails 2.3.14 is not Ruby 1.9.2 compatible.||Andrew Selder||12/23/11 11:20 AM|
Just a quick heads up for everyone.
Rails 2.3.14 is not completely Ruby 1.9.2 compatible.
Specifically the vendored version of TMail in ActionMailer calls String#is_binary_data?. This method was removed from Ruby in 1.9.2.
I realize that this probably won't be fixed as Rails 2.x is EOL, but I'm just putting it out there in case other people run into the problem. Personally I'd advocate a fix, Rails 2.3 promised Ruby 1.9 compatibility and this breaks that promise.
A simple workaround is to copy the definition of the method forward and add it to the String class in an initializer.
Here is it for reference (copied from apidock.com)
|Re: [Rails-core] Just FYI: Rails 2.3.14 is not Ruby 1.9.2 compatible.||Jeremy Kemper||12/23/11 11:50 AM|
Worth fixing. Please give 1.9.3 a shot too. Even if we don't do a gem release, folks can target the `2-3-stable` branch.
|Re: Just FYI: Rails 2.3.14 is not Ruby 1.9.2 compatible.||Andrew Selder||12/23/11 12:05 PM|
The method doesn't exist in 1.9.3 either, so that will blow up as
|Re: [Rails-core] Re: Just FYI: Rails 2.3.14 is not Ruby 1.9.2 compatible.||Aaron Patterson||12/23/11 4:17 PM|
On Fri, Dec 23, 2011 at 12:05:55PM -0800, Andrew Selder wrote:
Well, the method actually exists in both Ruby 1.9.2 and 1.9.3. Syck
If you load Psych before loading Syck, this method will not exist on
[aaron@higgins rails (master)]$ irb
I don't recommend this solution because it can impact YAML dumping and
I recommend this solution.
The third solution is to downgrade Rubygems. It's likely rubygems is