Skip to content
A set of bindings for the GNOME libraries to use from Ruby.
C Ruby CSS Dockerfile C++ Shell
Branch: master
Clone or download
kou gi: accept nil as false value for boolean value
Fix GH-1305.

Reported by Matijs van Zuijlen. Thanks!!!
Latest commit e37fc3a Oct 20, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows ci: add CentOS 8 Oct 10, 2019
atk-no-gi Update project website domain May 8, 2018
atk atk: fix a typo Oct 10, 2019
cairo-gobject Use "pkgconfig(ID)" style for RedHat based package Oct 10, 2019
clutter-gdk fix links in READMEs ruby-gnome2 -> ruby-gnome (#1291) Aug 18, 2019
clutter-gstreamer Use "pkgconfig(ID)" style for RedHat based package Oct 10, 2019
clutter-gtk Use "pkgconfig(ID)" style for RedHat based package Oct 10, 2019
clutter Use "pkgconfig(ID)" style for RedHat based package Oct 10, 2019
doc Update project website domain May 8, 2018
dockerfiles ci: add CentOS 8 Oct 10, 2019
gdk3-no-gi Remove needless patches Dec 1, 2018
gdk3 gdk3: accept String and Symbol as Gdk::RGBA Oct 10, 2019
gdk4 Use "pkgconfig(ID)" style for RedHat based package Oct 10, 2019
gdk_pixbuf2-no-gi Update project website domain May 8, 2018
gdk_pixbuf2 Use "pkgconfig(ID)" style for RedHat based package Oct 10, 2019
gegl Use "pkgconfig(ID)" style for RedHat based package Oct 10, 2019
gio2 Use "pkgconfig(ID)" style for RedHat based package Oct 10, 2019
glib2 Bump version Oct 16, 2019
gnumeric fix links in READMEs ruby-gnome2 -> ruby-gnome (#1291) Aug 18, 2019
gobject-introspection gi: accept nil as false value for boolean value Oct 19, 2019
goffice Use "pkgconfig(ID)" style for RedHat based package Oct 10, 2019
gsf Use "pkgconfig(ID)" style for RedHat based package Oct 10, 2019
gstreamer Use "pkgconfig(ID)" style for RedHat based package Oct 10, 2019
gtk2 Use "pkgconfig(ID)" style for RedHat based package Oct 10, 2019
gtk3-no-gi fix typos Jan 5, 2019
gtk3 gi: accept nil as false value for boolean value Oct 19, 2019
gtk4 fix links in READMEs ruby-gnome2 -> ruby-gnome (#1291) Aug 18, 2019
gtksourceview2 Use "pkgconfig(ID)" style for RedHat based package Oct 10, 2019
gtksourceview3-no-gi Update project website domain May 8, 2018
gtksourceview3 Use "pkgconfig(ID)" style for RedHat based package Oct 10, 2019
gtksourceview4 Use "pkgconfig(ID)" style for RedHat based package Oct 10, 2019
gvlc glib2: rename to mkmf-gnome from mkmf-gnome Oct 10, 2019
libsecret Use "pkgconfig(ID)" style for RedHat based package Oct 10, 2019
pango-no-gi Update project website domain May 8, 2018
pango
poppler-no-gi Update project website domain May 8, 2018
poppler Use "pkgconfig(ID)" style for RedHat based package Oct 10, 2019
rsvg2-no-gi Update project website domain May 8, 2018
rsvg2 Use "pkgconfig(ID)" style for RedHat based package Oct 10, 2019
vte Use "pkgconfig(ID)" style for RedHat based package Oct 10, 2019
vte3-no-gi Remove needless patches Dec 1, 2018
vte3 Use "pkgconfig(ID)" style for RedHat based package Oct 10, 2019
webkit-gtk Use "pkgconfig(ID)" style for RedHat based package Oct 10, 2019
webkit-gtk2 Ruby-GNOME2 -> Ruby-GNOME Aug 17, 2019
webkit2-gtk Use "pkgconfig(ID)" style for RedHat based package Oct 10, 2019
wnck3 Use "pkgconfig(ID)" style for RedHat based package Oct 10, 2019
.dir-locals.el windows: use "windows" instead of "win32" Nov 22, 2014
.dockerignore travis: use .dockerfile extension Oct 8, 2019
.gitignore poppler test: stop to download to make test stable Aug 11, 2018
.travis.yml travis: use Xcode 11.2 Oct 16, 2019
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 Remove needless dependencies Feb 2, 2019
Gemfile.local.sample support Gemfile.local. Aug 6, 2014
NEWS Add 3.4.1 entry Oct 16, 2019
README.md
Rakefile Stop to release .tar.gz Sep 9, 2019
appveyor.yml appveyor: remove needless force_ruby_platform Mar 9, 2019
exec_make.rb * extconf.rb, exec_make.rb: Support MSVC++(nmake). Jan 31, 2005
extconf.rb Add missing cairo-gobject priority Aug 17, 2018
run-ruby.sh Add a run.sh convenient script to use unreleased Ruby-GNOME2 May 28, 2018
run-test.rb ci: add CentOS 8 Oct 10, 2019
run.sh

README.md

Build Status Gem Version

Ruby-GNOME

Ruby-GNOME Logo Ruby bindings for GNOME

This is a set of bindings for the GNOME 2.x and 3.x libraries to use from Ruby 2.4, 2.5 and 2.6.

Installation

Install the current releases.

The gems of the Ruby-GNOME projects can be easily installed with the gem command. For example in order to install the gtk3 gem and its dependencies:

gem install gtk3

Install from GitHub master branch

You can also install these gems from GitHub master branch.

Create Gemfile like the following:

source "https://rubygems.org/"

git "https://github.com/ruby-gnome/ruby-gnome.git" do
  gem "gtk3"
end

Install these gems by Bundler:

% bundle install

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-gnome-all

  • ruby-gtk2 + ruby-gtk3
  • Ruby/RSVG2: 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/GtkSourceView3: GtkSourceView 3.4.2 or later
  • Ruby/GtkSourceView4: GtkSourceView 4.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/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

Advanced Installation

% 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)

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-2019 Ruby-GNOME 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

https://ruby-gnome2.osdn.jp/

You can’t perform that action at this time.