Posted on Dec 30, 2009

To require or not require rubygems in your applications or libraries

NOTE Undusting this post as better response to a conversation in Tweeter, with tenderlove and nickseiger

Continue Reading

Posted on Dec 17, 2009

win32console upcoming changes and feedback

For the ones not aware of, win32console (originally here, gemified here) is a project that provides ANSI coloring for Windows.

Yeah, Windows doesn’t do ANSI coloring like any POSIX terminal, and it has it’s own API with extended control of the console functionality.

Continue Reading

Posted on Dec 16, 2009

rake-compiler: safe list of Ruby versions that can be cross-compiled

Seems that I’m going to suffer a series of bug reports in the upcoming weeks due continious changes between patchlevels of Ruby.

To give some background, for the fresh ones just arriving to the blog. rake-compiler provides, besides C/Java extension standardization structure, the ability to cross-compile versions of Ruby to allow developers on Linux/OSX build and release gems for users running Windows.

Seems that latest patchlevels of Ruby 1.8.7 (172) and 1.9.1 (376) cannot be cross compiled.

I’ve reported that to Ruby’s bug tracker under issues #2464 and #2484

From what you can read there, there is a clear change in the rules about what is the minimum Ruby version that can be used to cross compile (known as BASERUBY)

Now, being pointed to the Developer’s Howto page, and checking the history and time, it is clear the note about the limitation is really fresh

The funny thing is that I still can cross compile 1.9.2dev using 1.8.6! Which is contrary to what the recently edited howto states!

Don’t get me wrong, I have no personal issue besides being annoyed, and that will require put some lock in cross-ruby compilation to avoid bug reports about something that is beyond my control.

So, with the goal of making this public and have a link to include in my canned response to people reporting bugs about it, the following is the list of versions and patchlevels of Ruby that I know works and aim to support in relation to bug fixes of rake-compiler itself:

Version Patchlevel supported? Command
1.8.6 287 Yes rake-compiler cross-ruby
1.8.6 383 Yes rake-compiler cross-ruby VERSION=1.8.6-p383
1.8.6 398 Yes rake-compiler cross-ruby VERSION=1.8.6-p398
1.8.7 72 NO
1.8.7 173 NO
1.8.7 249 NO
1.8.7 299 NO
1.9.1 243 Yes rake-compiler cross-ruby VERSION=1.9.1-p243
1.9.1 376 NO
1.9.1 378 NO
1.9.2 trunk Yes (that is true up to revision 26108)

Tricky list, even switching the version of Ruby to match the one desired to be installed, it doesn’t work (reported as #2485, I’m very persistent).

So, apologies to anyone having issues with this: I’m having the same ones here.

Update: Added 1.8.7-p299 to the list of no compatible

Update 2: Added 1.8.6-p398 to the list of compatibles and 1.8.7 still is not cross-compilable, sorry. 1.9.1-p378 is not cross-compilable either.

Posted on Oct 6, 2009

Lot of small but rewarding news

For the ones that cares: I’m still alive.

I have so cool news to everybody:

MySQL/Ruby support

As I announced 2 months ago, new releases of MySQL gem are going to be build from my repository at GitHub

Please note: only report bugs related to the gem itself, more likely the binary issues. Other type of bugs will be rejected, since this gem is a wrapper around MySQL/Ruby code from Tomita Mashahiro (tmtm)

SQLite3/Ruby bindings

I took the role of maintainer of SQLite3/Ruby project, but I really lack the skills to dig into all the inner details of it.

So, I’m opening the door to anyone with new features, enhancements or bug fixes to fork my clone of the project (here), do your changes and send a pull request.

Both RubyForge Tracker and GitHub pull requests will be honored.

Pure-Ruby Readline (rb-readline)

Released version 0.2.0 a couple of weeks ago, but still is far from perfect.

We are still missing IO redirect and be able to run test_readline.rb test directly.

Roger Pack worked on that, but he also needs some help ;-)

Please, fork the project, do your changes and send your pull requests!

Windows Console (win32console) new release soon.

A few patches to improve 1.9 compatibility are under way.

rake-compiler get more audience!

That’s right folks!, rake-compiler now is being used to drive the compile and release process of native gems for DataMapper, FFI and even Thin !

Not too bad for 10 months old tool, ah?

Thanks to all the developers involved in these projects for caring about their products and adding the compatibility for Windows.

More projects listed here … Keep them coming!

Ruby Installer for Windows

Preview and DevKit releases has been moved to RubyForge

While our preview concept is quite stable, we are working on getting it better :-)

Got my certificates to deliver signed installers, how cool is that?

Still alive an kicking

If you think I’m quiet, please join us at RubyInstaller Google Group, will find out that I talk more there than here :-D