[Ironruby-core] IronRuby r112 is out

John Lam (IRONRUBY) jflam at microsoft.com
Fri May 23 21:56:29 EDT 2008


This is the release that we used to run the Rails functional test this afternoon.

I had to modify two files in Rails to work around some missing functionality in IronRuby today. I've attached these files to this mail. They are:

activesupport\lib\active_support\inflector.rb
railties\lib\initializer.rb

There were three reasons to make these changes.


1)      In inflector.rb, we have a workaround around a missing feature in String#gsub (replacement via \1 and \2)

2)      In initializer.rb, we have a workaround around a missing feature in Dir#glob (we don't handle [_a-z] correctly)

3)      In initializer.rb, we're commenting out the call to initialize_database since we don't have our .NET ActiveRecord adapter working yet (it's in progress).

I've attached these two files to this mail if you want to try it out yourself. Note that when creating the Rails app, I've also frozen the copy of rails via:

rake rails:freeze:gems

Note that there is a new svn\trunk\libs directory in this build. You'll need to create an alias that uses the -I command line switch to IronRuby to correctly include this path *AHEAD* of other paths (such as the path to your MRI installations' lib\ruby\1.8 and lib\site_ruby\1.8\

Here's a sample ir.cmd file that we use internally.

%MERLIN_ROOT%\bin\debug\ir.exe -I %MERLIN_ROOT%\..\External\Languages\Ruby\ruby-1.8.6\lib\ruby\1.8;%MERLIN_ROOT%\..\External\Languages\Ruby\ruby-1.8.6\lib\ruby\site_ruby\1.8;%MERLIN_ROOT%\Languages\Ruby\Libs %*

Note that the new Ruby\Libs directory shows up at the end of the list (this is a bug in how we parse -I). The order is important.

Thanks,
-John

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080523/663f26cd/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: initializer.rb
Type: application/octet-stream
Size: 24934 bytes
Desc: initializer.rb
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080523/663f26cd/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: inflector.rb
Type: application/octet-stream
Size: 10577 bytes
Desc: inflector.rb
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080523/663f26cd/attachment-0003.obj>


More information about the Ironruby-core mailing list