From: Guillaume C. <gco...@gm...> - 2008-07-02 12:14:42
|
On Wed, Jul 2, 2008 at 12:47 PM, Joachim Glauche <rub...@an...> wrote: > Of course, you may encounter some "random" crashes in 0.16 too because > of some GC-bugs, which are solved in 0.17. In my experience 0.16 is almost stable as long as ruby <= 1.8.6 is used. But no way when using ruby 1.8.7. > For Ruby version you can read the constant RUBY_VERSION . Yes. Here's what I've actually added (too bad RUBY_VERSION is a string, though there's probably a more elegant way to use it). binding_version = Gtk::BINDING_VERSION if binding_version == [ 0, 15, 0 ] puts "It seems that we're running ruby-gtk2 0.15.0; this version is known to crash; please upgrade or downgrade." puts str exit end ruby_version = RUBY_VERSION.split('.').collect { |v| v.to_i } if binding_version[0] <= 0 && binding_version[1] <= 16 && ruby_version[0] >= 1 && ruby_version[1] >= 8 && ruby_version[2] >= 7 puts "It seems that we're running ruby-gtk2 <= 0.16.0 with ruby >= 1.8.7; this combination is known to crash; please upgrade or downgrade some." puts str exit end -- Guillaume Cottenceau - http://zarb.org/~gc/ |