Some instructions to start rails project with jruby

Hi

I recently started a new project with jruby and rails and took some
notes in the process. They can be found from here if anyone finds them
usefull…

http://github.com/milep/Basics

  • Miika

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

That’s very handy thanks.

Dan


Daniel L.

twitter.com/danlucraft
danlucraft.com/blog

On 16 Jan 2010, at 09:34, Miika Leppänen wrote:

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

I just found this difference between jruby regexes and mri. The MRI
behaviour seems more correct to me:

$ jruby-irb

" " =~ /\s{2,}/
=> nil

" " =~ /[^\w]{2,}/
=> nil

" " =~ /(\s|[^\w]){2,}/
=> 0

$ mri-irb

" " =~ /\s{2,}/
=> nil

" " =~ /[^\w]{2,}/
=> nil

" " =~ /(\s|[^\w]){2,}/
=> nil

Is this a bug?

Dan


Daniel L.

twitter.com/danlucraft
danlucraft.com/blog

On 16 Jan 2010, at 09:34, Miika Leppänen wrote:

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi Daniel,

This looks like a JRuby bug to me. Please file it.

I’ve looked in previous JRuby releases to see whether this is a
regression or not. And indeed, this behavior was introduced in 1.1.4
timeframe, commit 86a86623daab2826cc8bd29547e06cbd9038ca2b:

“Update joni on trunk to match last released joni so 1.1.4 build
matches build made by maven”

So it does look like a joni-related problem.

Thanks,
–Vladimir

On Sat, Jan 16, 2010 at 10:42 AM, Daniel L. [email protected]
wrote:

$ mri-irb

To unsubscribe from this list, please visit:


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Some more info. The actual joni commit that causes this is:

929b9fd92377e630d47138b2b478c3b79bab0243
“Merge asmified branch into joni trunk.”

right before joni 1.0.3 release.

Unfortunately, the commit is rather big, so it is not immediately
obvious where’s the problem. Let’s ping Marcin over IRC to figure that
out :slight_smile:

Thanks,
–Vladimir

On Sat, Jan 16, 2010 at 11:20 AM, Vladimir S. [email protected]
wrote:

=> nil

" " =~ /(\s|[^\w]){2,}/
danlucraft.com/blog
http://github.com/milep/Basics


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Very nice Miika! Thanks for doing this!

On Sat, Jan 16, 2010 at 3:34 AM, Miika Leppänen [email protected]
wrote:


To unsubscribe from this list, please visit:

 http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi Miika,

Terrific info, and up-to-date! It would be great to post it onto JRuby’s
wiki:

http://kenai.com/projects/jruby/pages/JRubyOnRails

I had a post for 120 secs guide to JRuby on Rails, but it is not fully
up-to-date now, so having the latest info on Wiki would be great.

Thanks,
–Vladimir

On Sat, Jan 16, 2010 at 10:34 AM, Miika Leppänen [email protected]
wrote:


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs