New version for the gems of the Ruby-GNOME2 project

The gems of the Ruby-GNOME2 project have been updated to the version
3.0.8.

Those new versions bring:

= About the Ruby-GNOME2 project

As a reminder, and for those that didn’t know, the Ruby-GNOME2 project
is a set of bindings for the GNOME 2.x and 3.x libraries to use from
Ruby 2.1, 2.2 and 2.3.

The Ruby-GNOME2 project provides the following gems:

atk cairo-gobject
clutter clutter-gstreamer
clutter-gtk gdk_pixbuf2
gdk3 gio2
glib2 gobject-introspection
gstreamer gtk2
gtk3 gtksourceview2
gtksourceview3 gvlc
pango poppler
rsvg2 vte
vte3 webkit-gtk
webkit2-gtk webkit-gtk2

Since the version 3.0.0, the Ruby-GNOME2 gems are based on the
gobject-instropection whenever it is possible. The platforms supported
are Linux, Windows and OS X.

In order to install a gem (gtk3 for example) just do :

  gem install gtk3

Sites for the project:

https://github.com/ruby-gnome2/ruby-gnome2
http://ruby-gnome2.sourceforge.jp/

= About GTK+

from http://www.gtk.org/

GTK+ is a highly usable, feature rich toolkit for creating
graphical user interfaces which boasts cross platform
compatibility and an easy to use API. GTK+ it is written
in C, but has bindings to many other popular programming
languages such as C++, Python and C# among others. GTK+ is
licensed under the GNU LGPL 2.1 allowing development of
both free and proprietary software with GTK+ without any
license fees or royalties.

= About GNOME

from About Us – GNOME

The GNOME project provides two things: The GNOME desktop
environment, an intuitive and attractive desktop for
users, and the GNOME development platform, an extensive
framework for building applications that integrate into
the rest of the desktop.

Cedlemo Cedlemo wrote in post #1182641:

The gems of the Ruby-GNOME2 project have been updated to the version
3.0.8.

Hello,
Thank you for this big work !

All work kind for my Ruiby tool, on linux
Installation on Windows 10 :

gem install gtk3
Fetching: glib2-3.0.8-x86-mingw32.gem (100%)
Successfully installed glib2-3.0.8-x86-mingw32
Fetching: atk-3.0.8-x86-mingw32.gem (100%)
Successfully installed atk-3.0.8-x86-mingw32
Fetching: cairo-gobject-3.0.8-x86-mingw32.gem (100%)
Successfully installed cairo-gobject-3.0.8-x86-mingw32
Fetching: gdk_pixbuf2-3.0.8-x86-mingw32.gem (100%)
Successfully installed gdk_pixbuf2-3.0.8-x86-mingw32
Fetching: gobject-introspection-3.0.8-x86-mingw32.gem (100%)
Successfully installed gobject-introspection-3.0.8-x86-mingw32
Fetching: pango-3.0.8-x86-mingw32.gem (100%)
Successfully installed pango-3.0.8-x86-mingw32
Fetching: gdk3-3.0.8-x86-mingw32.gem (100%)
Successfully installed gdk3-3.0.8-x86-mingw32
ERROR: While executing gem … (Gem::RemoteFetcher::UnknownHostError)
no such name
(http://api.rubygems.org/quick/Marshal.4.8/gio2-3.0.8-x86-mingw32.gemspec.rz)

Regis d’Aubarede wrote in post #1182812:

All work kind for my Ruiby tool, on linux
Installation on Windows 10 :

gem install gtk3
Fetching: glib2-3.0.8-x86-mingw32.gem (100%)
Successfully installed glib2-3.0.8-x86-mingw32
Fetching: atk-3.0.8-x86-mingw32.gem (100%)
Successfully installed atk-3.0.8-x86-mingw32
Fetching: cairo-gobject-3.0.8-x86-mingw32.gem (100%)
Successfully installed cairo-gobject-3.0.8-x86-mingw32
Fetching: gdk_pixbuf2-3.0.8-x86-mingw32.gem (100%)
Successfully installed gdk_pixbuf2-3.0.8-x86-mingw32
Fetching: gobject-introspection-3.0.8-x86-mingw32.gem (100%)
Successfully installed gobject-introspection-3.0.8-x86-mingw32
Fetching: pango-3.0.8-x86-mingw32.gem (100%)
Successfully installed pango-3.0.8-x86-mingw32
Fetching: gdk3-3.0.8-x86-mingw32.gem (100%)
Successfully installed gdk3-3.0.8-x86-mingw32
ERROR: While executing gem … (Gem::RemoteFetcher::UnknownHostError)
no such name
(http://api.rubygems.org/quick/Marshal.4.8/gio2-3.0.8-x86-mingw32.gemspec.rz)

Some say that this kind of error (Gem::RemoteFetcher::UnknownHostError)
are related to a problem of internet connection other say that they were
able to solve this kind of problem with the following command:

gem update --system

Could you try it?

Cedlemo Cedlemo wrote in post #1182822:

gem update --system

Could you try it?

ok, that’s work.

but then, when i run my tests scripts, some have this error:

d:/usr/ruby/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:120:in
require': cannot load such file -- glib2.so (LoadError) from d:/usr/ruby/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:120:inrequire’
from
d:/usr/ruby/Ruby200/lib/ruby/gems/2.0.0/gems/glib2-3.0.8-x86-mingw32/lib/glib2.rb:115:in
rescue in <top (required)>' from d:/usr/ruby/Ruby200/lib/ruby/gems/2.0.0/gems/glib2-3.0.8-x86-mingw32/lib/glib2.rb:111:in<top (required)>’
from
d:/usr/ruby/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:68:in
require' from d:/usr/ruby/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:68:inrequire’
from
d:/usr/ruby/Ruby200/lib/ruby/gems/2.0.0/gems/gobject-introspection-3.0.8-x86-mingw32/lib/gobject-introspection.rb:17:in
<top (required)>' from d:/usr/ruby/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:68:inrequire’
from
d:/usr/ruby/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:68:in
require' from d:/usr/ruby/Ruby200/lib/ruby/gems/2.0.0/gems/gtk3-3.0.8-x86-mingw32/lib/gtk3.rb:17:in<top (required)>’
from
d:/usr/ruby/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:133:in
require' from d:/usr/ruby/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:133:inrescue in require’
from
d:/usr/ruby/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:40:in
require' from d:/usr/Ruby/local/dsl-gtk/lib/Ruiby.rb:25:in<top
(required)>’
from test.rb:15:in require_relative' from test.rb:15:in

from d:/usr/Ruby/local/dsl-gtk/lib/Ruiby.rb:25
is :

require ‘gtk3’ if ! defined?(Gtk)

In gems directory, I have :

d:\usr\Ruby\Ruby200\lib\ruby\gems\2.0.0\gems>ls -ltd glib2*
drwxr-xr-x 7 rdaubare Administ 4096 Apr 12 20:55
glib2-3.0.8-x86-mingw32
drwxr-xr-x 7 rdaubare Administ 4096 Oct 7 2015
glib2-3.0.7-x86-mingw32
drwxr-xr-x 7 rdaubare Administ 4096 Sep 16 2015
glib2-3.0.3-x86-mingw32
drwxr-xr-x 6 rdaubare Administ 4096 Sep 16 2015 glib2-3.0.3
drwxr-xr-x 7 rdaubare Administ 4096 Sep 14 2015
glib2-3.0.2-x86-mingw32
drwxr-xr-x 7 rdaubare Administ 4096 Apr 27 2015
glib2-2.2.5-x86-mingw32
drwxr-xr-x 6 rdaubare Administ 4096 Apr 24 2015 glib2-2.2.5
drwxr-xr-x 7 rdaubare Administ 4096 Dec 23 2014
glib2-2.2.4-x86-mingw32
drwxr-xr-x 7 rdaubare Administ 4096 Mar 10 2014
glib2-2.2.0-x86-mingw32
drwxr-xr-x 7 rdaubare Administ 4096 May 27 2013
glib2-2.0.2-x86-mingw32

and
d:\usr\Ruby\Ruby200\lib\ruby\gems\2.0.0\gems>gfind glib2* -name *.so

glib2-3.0.3-x86-mingw32/lib/2.0/glib2.so
glib2-3.0.3-x86-mingw32/lib/2.1/glib2.so
glib2-3.0.3-x86-mingw32/lib/2.2/glib2.so
glib2-3.0.7-x86-mingw32/lib/2.0/glib2.so
glib2-3.0.7-x86-mingw32/lib/2.1/glib2.so
glib2-3.0.7-x86-mingw32/lib/2.2/glib2.so
glib2-3.0.8-x86-mingw32/lib/2.2/glib2.so
glib2-3.0.8-x86-mingw32/lib/2.3/glib2.so

Before going forward, are you using ruby v2.0.0?

We have dropped the support for this version. Could you update your ruby
version?

Cedlemo Cedlemo wrote in post #1182854:

Before going forward, are you using ruby v2.0.0?

We have dropped the support for this version. Could you update your ruby
version?

ruby -v
ruby 2.0.0p0 (2013-02-24) [i386-mingw32]

Oups.

==

installing ruby 2.3
All works find, except:

A)

In e simple application showing a analog clock in a Drawing widget,
(chrome(false) for windows), I got on mouse button press :

gadget_clock.rb
Assertion failed!

Program: D:\usr\Ruby\Ruby23\bin\ruby.exe
File: cairo-surface.c, Line 956

Expression: CAIRO_REFERENCE_COUNT_HAS_REFERENCE (&surface->ref_count)

This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application’s support team for more information.

I have many other application which use sames commands for drawing some
vector. All them works find, except those which modify chrome() on
button press in drawing widget (gadget* in Ruiby/samples).

B)
the bar title (windows 10) show strange icon for iconify/full-display
button.
(see attached png)

Thank you for all this work !!!