A set of bindings for the GNOME-2.x libraries to use from Ruby.
C Ruby CSS R Shell C++
Latest commit 4edcb7f Jul 18, 2016 @kou kou gi: add a missing new line
Failed to load latest commit information.
atk windows atk: use 2.20.0 Apr 1, 2016
build gdk3 windows: support symbolic icons Apr 16, 2016
cairo-gobject Added AltLinux to supported OSes. Mar 5, 2016
clutter-gstreamer clutter-gstreamer test: add missing gdk_pixbuf2 dependency Jun 14, 2016
clutter-gtk Fix issue with initialization of Gtk::IconView without hash argument Jun 26, 2016
clutter Use GdkPixbuf form in clutter sample image-content.rb Jun 25, 2016
gdk3-no-gi Added AltLinux to supported OSes. Mar 5, 2016
gdk3 Use GdkPixbuf form in gdk3 tests Jun 24, 2016
gdk_pixbuf2-no-gi Move C implementation of gdk_pixbuf2 to gdk_pixbuf2-no-gi Jun 2, 2016
gdk_pixbuf2 Remove TODO reference Jul 5, 2016
gio2 gio2: remove needless lazy initialization Jun 5, 2016
glib2 Remove conditionnal macro based on HAVE_RUBY_ENCODING_H Jul 5, 2016
gnumeric gnumeric: convert only the first character Jun 15, 2016
gobject-introspection gi: add a missing new line Jul 18, 2016
goffice Merge pull request #798 from cedlemo/goffice_avoid_reloading_objects Jun 15, 2016
gsf gsf: add a test May 22, 2016
gstreamer windows gstreamer: fix typo Apr 3, 2016
gtk2 Use GdkPixbuf form in gtk2 test files Jun 25, 2016
gtk3-no-gi Added AltLinux to supported OSes. Mar 5, 2016
gtk3 Update the gtk-demo TODO Jul 8, 2016
gtksourceview2 Added AltLinux to supported OSes. Mar 5, 2016
gtksourceview3-no-gi Added AltLinux to supported OSes. Mar 5, 2016
gtksourceview3 windows gtksourceview3: update to 3.20.1 Apr 1, 2016
gvlc Added AltLinux to supported OSes. Mar 5, 2016
pango pango: add Pango::AttrShape#data May 13, 2016
poppler Use GdkPixbuf form in poppler sample files Jun 25, 2016
rsvg2 Use GdkPixbuf form in rsvg2 sample svg2.rb Jun 26, 2016
vte Added AltLinux to supported OSes. Mar 5, 2016
vte3-no-gi Added AltLinux to supported OSes. Mar 5, 2016
vte3 vte3: remove needless lazy load Jun 19, 2016
webkit-gtk webkit-gtk: support Version.or_later? Sep 26, 2015
webkit-gtk2 test: support running test from other directory Sep 24, 2015
webkit2-gtk windows webkit2-gtk: update to 2.12.0 Apr 1, 2016
.dir-locals.el windows: use "windows" instead of "win32" Nov 22, 2014
.gitignore poppler test: ignore downloaded file Sep 25, 2015
.travis.yml travis: fix a typo Mar 4, 2016
AUTHORS Updated news for upcoming release, tagged binding version as 0.17.0 Mar 19, 2008
COPYING.GFDL gtk3: use GFDL for script that is based on PyGObject-Tutorial Jun 9, 2015
COPYING.LIB Update LGPL 2.1 files Oct 16, 2013
Gemfile test-unit is required Sep 21, 2015
Gemfile.local.sample support Gemfile.local. Aug 7, 2014
NEWS Doc fix markup Jul 5, 2016
README.md Follow module name change May 26, 2016
Rakefile Fix typo in Rakefile May 26, 2016
exec_make.rb * extconf.rb, exec_make.rb: Support MSVC++(nmake). Jan 31, 2005
extconf.rb Ignore no GI version of gdk_pixbuf2 Jun 14, 2016
release.rd Update how to release Apr 2, 2016
run-test.rb test: ignore no GI version of gdk_pixbuf2 Jun 14, 2016
travis-before-script.sh Add gnumeric as package to install instead of relying on dependancies Jun 14, 2016

README.md

README

Build Status

Ruby-GNOME2 -- Ruby bindings for GNOME

This 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.

Release packages

ruby-gtk2

  • Ruby/GLib2: GLib 2.12.x or later
  • Ruby/ATK: ATK 1.12.x or later
  • Ruby/Pango: Pango 1.14.x or later
  • Ruby/GdkPixbuf2: GTK+ 2.0.x or later
  • Ruby/GTK2: GTK+ 2.10.x or later
  • Ruby/GObjectIntrospection: GObject Introspection 1.32.1 or later

ruby-gtk3

  • Ruby/GLib2: GLib 2.12.x or later
  • Ruby/GIO2: GIO 2.16.x or later
  • Ruby/ATK: ATK 1.12.x or later
  • Ruby/Pango: Pango 1.14.x or later
  • Ruby/GdkPixbuf2: GTK+ 2.0.x or later
  • Ruby/GObjectIntrospection: GObject Introspection 1.32.1 or later
  • Ruby/CairoGObject: cairo-gobject 1.12.10 or later
  • Ruby/GDK3: GTK+ 3.4.2 or later
  • Ruby/GTK3: GTK+ 3.4.2 or later

ruby-gnome2-all

  • ruby-gtk2 + ruby-gtk3
  • Ruby/RSVG: librsvg 2.8.0 or later
  • Ruby/Poppler: poppler-glib 0.8.0 or later
  • Ruby/VTE VTE 0.12.1 or later
  • Ruby/VTE3 VTE 0.37.0 or later
  • Ruby/GStreamer: GStreamer 1.0.0 or later
  • Ruby/GtkSourceView2: GtkSourceView 2.0.0 or later
  • Ruby/Clutter: Clutter 1.12.0 or later
  • Ruby/ClutterGTK: Clutter-GTK 1.2.0 or later
  • Ruby/ClutterGStreamer:Clutter-GStreamer 2.0.0 or later
  • Ruby/GtkSourceView3: GtkSourceView 3.4.2 or later
  • Ruby/VTE3: VTE 0.32.2 or later
  • Ruby/WebKitGTK: WebKitGTK+ 1.8.1 or later (for GTK+ 3)
  • Ruby/WebKitGTK2: WebKitGTK+ 1.8.1 or later (for GTK+ 2)
  • Ruby/WebKit2GTK: WebKitGTK+ 2.0.0 or later (for GTK+ 3)

Experimental / Incomplete:

  • Ruby/GSF: GSF 1.14.0 or later
  • Ruby/GOffice: GOffice 0.10 or later
  • Ruby/Gnumeric: Gnumeric 1.12 or later

Install

% ruby extconf.rb
% make
% sudo make install

To compile and install a particular sub-binding, you can add arguments:

% ruby extconf.rb [subdir]...
e.g.) ruby extconf.rb glib2 pango atk gdk_pixbuf2 gtk2

Or you can compile each sub-binding:

% cd <each sub-directory>
% ruby extconf.rb
% make
% sudo make install

extconf.rb options

  • --ruby

    • ruby directory
  • --topsrcdir

    • top source directory
  • --topdir

    • top directory
  • --strict

    • if some libraries fail to compile/install, "make" command returns 1(exit 1)

Environment Variables

  • CAIRO_PATH
    • rcairo path (for Win32).

Install from GitHub master branch

You can also install these gems from GitHub master branch.

% git clone https://github.com/ruby-gnome2/ruby-gnome2.git
% cd ruby-gnome2
% gem install rake rake-compiler mechanize pkg-config cairo
% rake gem:build
% rake gem:install

Experimental

  • ...

Bugs

Please report bugs either in our bug tracker

or on the ruby-gnome2-devel-en / ruby-gnome2-devel-ja mailing list

Copying

Copyright (c) 2002-2015 Ruby-GNOME2 Project Team

This program is free software. You can distribute/modify this program under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.

Exceptions

Some GTK+ 3 examples are licensed under GNU Free Documentation License 1.3 or any later version later; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.

Because they are based on scripts in PyGObject-Tutorial. PyGObject-Tutorial is licensed under GFDL 1.3.

See gtk3/examples/ directory for details.

Project Website

http://ruby-gnome2.sourceforge.jp/