Hey everyone, first of all, thank you for the tremendous work and effort on making Rails more awesome every day. I''ve brought up this "issue" on Github last Friday. [1] Steve Klabnik told me to bring the discussion here, as it''s more appropriate. The thing is, there is some amount of logic scattered around Rails (and its tests) that depends upon error/exception messages, instead of some attributes on the errors/exceptions themselves. As Brian Shirai pointed out [2] error/exception messages are for human consumption. This is a problem for other Ruby implementations such as JRuby and Rubinius, which implement error messages with different wording. If needed, I''m available to work on this with coaching/mentoring from someone interested on the core team. Thanks, Federico [1] https://github.com/rails/rails/pull/11494 [2] https://github.com/rubinius/rubinius/issues/2404#issuecomment-21256447 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscribe@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit this group at http://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/groups/opt_out.
Rafael Mendonça França
2013-Jul-22 19:35 UTC
Re: Dependency upon raised error/exception messages.
I don''t see any problem on stop to depending on the messages if we can. But I''m sure in some case we can''t. Rafael Mendonça França http://twitter.com/rafaelfranca https://github.com/rafaelfranca On Mon, Jul 22, 2013 at 5:51 AM, Federico Ravasio < ravasio.federico@gmail.com> wrote:> Hey everyone, > first of all, thank you for the tremendous work and effort on making Rails > more awesome every day. > > I''ve brought up this "issue" on Github last Friday. [1] Steve Klabnik told > me to bring the discussion here, as it''s more appropriate. > > The thing is, there is some amount of logic scattered around Rails (and > its tests) that depends upon error/exception messages, instead of some > attributes on the errors/exceptions themselves. > As Brian Shirai pointed out [2] error/exception messages are for human > consumption. > This is a problem for other Ruby implementations such as JRuby and > Rubinius, which implement error messages with different wording. > If needed, I''m available to work on this with coaching/mentoring from > someone interested on the core team. > > Thanks, > Federico > > [1] https://github.com/rails/rails/pull/11494 > [2] https://github.com/rubinius/rubinius/issues/2404#issuecomment-21256447 > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-core+unsubscribe@googlegroups.com. > To post to this group, send email to rubyonrails-core@googlegroups.com. > Visit this group at http://groups.google.com/group/rubyonrails-core. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscribe@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit this group at http://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/groups/opt_out.