Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with ruby 1.9.2 and rails3 #6

Closed
mcculloughsean opened this issue Jul 7, 2010 · 4 comments
Closed

Problems with ruby 1.9.2 and rails3 #6

mcculloughsean opened this issue Jul 7, 2010 · 4 comments

Comments

@mcculloughsean
Copy link

I'm trying out the example script that comes with the code. It runs (with some appropriate modifications) in Ruby 1.8.7 and Rails2. However under Ruby 1.9.7 and rails 3 it fails. Here's the dump:
/Users/seanmccullough/.rvm/gems/ruby-1.9.2-preview3@rails3/gems/mms2r-3.0.1/lib/mms2r/media.rb:188:in domain': undefined methodany?' for "vzwpix.com":String (NoMethodError)
from /Users/seanmccullough/.rvm/gems/ruby-1.9.2-preview3@rails3/gems/mms2r-3.0.1/lib/mms2r/media.rb:153:in create' from /Users/seanmccullough/.rvm/gems/ruby-1.9.2-preview3@rails3/gems/mms2r-3.0.1/lib/mms2r/media.rb:111:innew'
from mmstest.rb:7:in `

'

The relevant code:

media.rb line 169
when mail.return_path
mail.return_path ? mail.return_path.split('@').last : ''
else
''
end
line 188
when return_path.any?

it seems that when the return path is nil, it tries to call
''.any?
which doesn't exist.

I'm not sure why this happens under one version of ruby and not another.

@monde
Copy link
Owner

monde commented Jul 7, 2010

coincidently I'm working on a 3.1.0 release today, I'll address this, thanks

@mcculloughsean
Copy link
Author

great, thanks

@monde
Copy link
Owner

monde commented Jul 8, 2010

I have a bunch of carrier updates that I'm going to put into 3.1.0, the character encoding issues for Ruby 1.9.2 is a pain in the ass. I see that Lawrence Curtis has been tackling this on this own, perhaps I can cherry pick his work http://github.com/slipstreamstudio/mms2r

I'll make 3.2.0 a Ruby 1.9.2 compatibility release, I'm hoping to get 3.1.0 out tonight, and 3.2.0 out next week.

@mcculloughsean
Copy link
Author

Thanks for the heads up.
I've run into some other compatibility issues with Ruby 1.9.2 and Rails3 so for the time being i'm just staying with Rails2

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants