Hey Dirk,
On Sun, Apr 6, 2008 at 10:18 AM, Dirk Traulsen <dirk.traulsen at lypso.de>
wrote:
> Hi!
>
> After updating to Ruby 1.8.6 Patchlevel 111 and WxRuby 1.9.5 on WinXP
> the minimal.rb sample stopped working.
You will find that more then just minimal.rb is broken, there are several
examples where this bug crops up. They will be fixed in time for the next
release.
As the one-click-installer on windows now also does no longer
require> rubygems automatically, why not simplify the beginning to:
>
> ===========================================> --- minimal.rb 2008-04-06
10:23:48.859375000 +0200
> +++ minimal_new.rb 2008-04-06 10:25:29.437500000 +0200
> @@ -2,16 +2,8 @@
> # wxRuby2 Sample Code. Copyright (c) 2004-2006 Kevin B. Smith
> # Freely reusable code: see SAMPLES-LICENSE.TXT for details
>
> -begin
> - require ''wx''
> -rescue LoadError => no_wx_err
> - begin
> - require ''rubygems''
> - load ''wx''
> - rescue
> - raise no_wx_err
> - end
> -end
> +require ''rubygems''
> +require ''wx''
This would not work, cause if a person doesn''t have rubygems installed,
it
will throw an LoadError just as it would if wx was not found. I prefer this
method of inclusion, simply cause you can have a newer version of wxRuby
installed to the site_ruby directory, then what is installed to the gems
directory (If your a compiler like us), and you may want to test the version
you just compiled, compared to the version that comes with ruby gems.
Unless someone else objects to this, I will opt to do something like:
begin
requier ''rubygems''
rescue LoadError
end
require ''wx''
Oh and by the way:> Thank you for your effort to support the use of MingW. This is really
> good news! Especially if the result is even faster than with VisualC.
It has been proven to be faster by about 20 to 30 percent. I''ve been
talking with Luis as well to help get wxRuby going. So far, we have
StyledTextCtrl, and GraphicsContext compiled in, we are pausing on getting
OpenGL and MediaCtrl at the moment, as a bug has cropped up, due to
Patchlevel 114 of Ruby and the GC Collection methods. We want to nail this
down before moving any further. Once we have that, then we''ll continue
adding the other two classes to wxRuby.
Thanks for your continued support, and hopefully soon, we''ll have a
MinGW
based release out for people to use.
--
Mario Steele
http://www.trilake.net
http://www.ruby-im.net
http://rubyforge.org/projects/wxruby/
http://rubyforge.org/projects/wxride/
http://rubyforge.org/projects/vwmc/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/wxruby-development/attachments/20080406/faf733fd/attachment.html