gir_ffi-gtk 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88100a2341f51b96e708b1b0d47dd6367872266f
4
- data.tar.gz: d21407d8a6d371b868a3a13f50da70499586a4e5
3
+ metadata.gz: af9c23060c5f36407a7862b2abaa874a07534b1e
4
+ data.tar.gz: 7b650fc017065988a9a11f03c5e3233d8a189a8d
5
5
  SHA512:
6
- metadata.gz: 237673941e21d3c8397b3767af681d25ff741bfdc360b59d6c912d895ac1821217387fbb6c35efa315c3719e260f288c3307fdba37caf3ff4a6d2355507ab333
7
- data.tar.gz: b7481e2b68b30b28285e4a4afc2025ecae63ba6dd081990553c2b36fe08e8e1452e77102e1a96797d61c6311bbe20bbbf5ef7e09e6f2dbbf6cc0f2cda80cbe77
6
+ metadata.gz: 24c701020e7fffe55ea56105566844f25de1b3a7eb7881410810c1bd2b9c5bbe04a76c1d168bcb9b7af1c00a494c0c5591ffcfee0dad91788b64923b531dd190
7
+ data.tar.gz: 0977c1c3087cc292c50af481c783347dc86b3f8e49273c2cf123d70550f179a2f88ea00262c04e24a70d35171ad7007e25195c225d5448d7c45b6c11fd32019e
@@ -1,3 +1,16 @@
1
+ ## Change Log
2
+ All notable changes to this project will be documented in this file. See the
3
+ Git log for all changes.
4
+
5
+ ### 0.7.2 / 2014-09-22
6
+
7
+ * Require at least Ruby 1.9.3
8
+ * Add overrides for Gtk::TreePath
9
+ * Add overrides for Gtk::MessageDialog.new
10
+ * Make other Ruby threads run during Gtk.main loop
11
+ * Update dependencies
12
+ * Update examples
13
+
1
14
  ### 0.7.1 / 2014-03-25
2
15
 
3
16
  * Fix Gtk::Builder#connect_signals_full by updating dependency on GirFFI
@@ -25,4 +38,4 @@
25
38
 
26
39
  ### 0.4.0 / 2012-08-24
27
40
 
28
- * Inital release
41
+ * Initial release
data/README.md CHANGED
@@ -24,6 +24,22 @@ Gtk3:
24
24
 
25
25
  See the `examples/` directory for more examples.
26
26
 
27
+ ## Requirements
28
+
29
+ First, make sure the `ffi` gem is properly installed. See its documentation for
30
+ the necessary requirements.
31
+
32
+ GirFFI-Gtk itself depends on the GirFFI gem, and the gobject-introspection and
33
+ gtk+ libaries.
34
+
35
+ For debian-like systems, try the following for Gtk+ 3:
36
+
37
+ apt-get install libgirepository1.0-dev gobject-introspection gir1.2-gtk-3.0
38
+
39
+ and for Gtk+ 2:
40
+
41
+ apt-get install libgirepository1.0-dev gobject-introspection gir1.2-gtk-2.0
42
+
27
43
  ## Install
28
44
 
29
45
  gem install gir_ffi-gtk
@@ -1,12 +1,12 @@
1
+ #!/usr/bin/env ruby
1
2
  #
2
3
  # Based on the empty window Gtk+ tutorial example at
3
4
  # http://library.gnome.org/devel/gtk-tutorial/2.90/c39.html
4
5
  #
5
- $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
6
6
  require 'gir_ffi-gtk3'
7
7
 
8
8
  Gtk.init
9
9
  win = Gtk::Window.new :toplevel
10
10
  win.show
11
- GObject.signal_connect(win, "destroy") { Gtk.main_quit }
11
+ win.signal_connect("destroy") { Gtk.main_quit }
12
12
  Gtk.main
@@ -1,24 +1,23 @@
1
+ #!/usr/bin/env ruby
1
2
  #
2
3
  # Based on the 'Hello world' Gtk+ tutorial example at
3
4
  # http://library.gnome.org/devel/gtk-tutorial/2.90/c39.html#SEC-HELLOWORLD
4
5
  #
5
- $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
6
6
  require 'gir_ffi-gtk3'
7
7
 
8
8
  Gtk.init
9
9
 
10
10
  win = Gtk::Window.new(:toplevel)
11
- GObject.signal_connect win, "delete-event" do
11
+ win.signal_connect "delete-event" do
12
12
  puts "delete event occured"
13
13
  true
14
14
  end
15
15
 
16
- GObject.signal_connect(win, "destroy") { Gtk.main_quit }
17
- # FIXME: #border_width= should work
18
- win.set_border_width 10
16
+ win.signal_connect("destroy") { Gtk.main_quit }
17
+ win.border_width = 10
19
18
 
20
19
  but = Gtk::Button.new_with_label("Hello World")
21
- GObject.signal_connect(but, "clicked") { win.destroy }
20
+ but.signal_connect("clicked") { win.destroy }
22
21
 
23
22
  win.add but
24
23
 
@@ -1,8 +1,8 @@
1
+ #!/usr/bin/env ruby
1
2
  #
2
3
  # Based on the 'Upgraded Hello world' Gtk+ tutorial example at
3
4
  # http://library.gnome.org/devel/gtk-tutorial/2.90/x344.html
4
5
  #
5
- $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
6
6
  require 'gir_ffi-gtk3'
7
7
 
8
8
  callback = lambda { |widget, data|
@@ -14,24 +14,23 @@ Gtk.init
14
14
  win = Gtk::Window.new(:toplevel)
15
15
  win.title= "Hello Buttons!"
16
16
 
17
- GObject.signal_connect win, "delete-event" do
17
+ win.signal_connect "delete-event" do
18
18
  Gtk.main_quit
19
19
  false
20
20
  end
21
21
 
22
- # FIXME: #border_width= should work
23
- win.set_border_width 10
22
+ win.border_width = 10
24
23
 
25
24
  box = Gtk::HBox.new(false, 0)
26
25
  win.add box
27
26
 
28
27
  button = Gtk::Button.new_with_label("Button 1")
29
- GObject.signal_connect button, "clicked", "button 1", &callback
28
+ button.signal_connect "clicked", "button 1", &callback
30
29
  box.pack_start button, true, true, 0
31
30
  button.show
32
31
 
33
32
  button = Gtk::Button.new_with_label("Button 2")
34
- GObject.signal_connect button, "clicked", "button 2", &callback
33
+ button.signal_connect "clicked", "button 2", &callback
35
34
  box.pack_start button, true, true, 0
36
35
  button.show
37
36
 
@@ -39,4 +38,3 @@ box.show
39
38
  win.show
40
39
 
41
40
  Gtk.main
42
-
@@ -1,5 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ #
1
3
  # Based on http://www.idle-hacking.com/2010/02/webkit-ruby-and-gtk/
2
- $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
3
4
  require 'gir_ffi-gtk3'
4
5
 
5
6
  GirFFI.setup :WebKit, '3.0'
@@ -11,5 +12,5 @@ wv = WebKit::WebView.new
11
12
  win.add(wv)
12
13
  win.show_all
13
14
  wv.open('http://www.google.com/')
14
- GObject.signal_connect(win, "destroy") { Gtk.main_quit }
15
+ win.signal_connect("destroy") { Gtk.main_quit }
15
16
  Gtk.main
@@ -1,7 +1,6 @@
1
+ #!/usr/bin/env ruby
1
2
  #
2
3
  # Simple notification example.
3
- #
4
- $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
5
4
  require 'gir_ffi-gtk3'
6
5
 
7
6
  GirFFI.setup :Notify
@@ -22,7 +21,7 @@ nf.add_action "test", "Test", Proc.new { |obj, action, user_data|
22
21
 
23
22
  # In this case, we want the program to end once the notification is gone,
24
23
  # but not before.
25
- GObject.signal_connect(nf, "closed") {
24
+ nf.signal_connect("closed") {
26
25
  puts "Notification closed."
27
26
  Gtk.main_quit
28
27
  }
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+ #
1
3
  $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
2
4
  require 'gir_ffi-gtk3'
3
5
 
@@ -7,7 +9,7 @@ Gtk.init
7
9
  #Add window.
8
10
  win = Gtk::Window.new(:toplevel)
9
11
  win.resize(640, 480)
10
- GObject.signal_connect(win, "destroy"){ Gtk.main_quit }
12
+ win.signal_connect("destroy") { Gtk.main_quit }
11
13
 
12
14
 
13
15
  #Add treeview.
@@ -46,4 +48,4 @@ tv.show
46
48
 
47
49
  win.show
48
50
 
49
- Gtk.main
51
+ Gtk.main
@@ -1,14 +1,53 @@
1
- module Gtk
2
- setup_method "init"
1
+ module GirFFIGtk
2
+ # Override init to automatically use ARGV as its argument.
3
+ module AutoArgv
4
+ def self.included base
5
+ base.extend ClassMethods
6
+ class << base
7
+ alias_method :init_without_auto_argv, :init
8
+ alias_method :init, :init_with_auto_argv
9
+ end
10
+ end
3
11
 
4
- def self.init_with_auto_argv
5
- remaining = init_without_auto_argv([$0, *ARGV]).to_a
6
- remaining.shift
7
- ARGV.replace remaining
12
+ module ClassMethods
13
+ def init_with_auto_argv
14
+ remaining = init_without_auto_argv([$PROGRAM_NAME, *ARGV]).to_a
15
+ remaining.shift
16
+ ARGV.replace remaining
17
+ end
18
+ end
8
19
  end
9
20
 
10
- class << self
11
- alias init_without_auto_argv init
12
- alias init init_with_auto_argv
21
+ # Override main to start an idle thread to allow Ruby threads to run during
22
+ # the main loop.
23
+ module ThreadEnabler
24
+ def self.included base
25
+ base.extend ClassMethods
26
+ class << base
27
+ alias_method :main_without_thread_enabler, :main
28
+ alias_method :main, :main_with_thread_enabler
29
+ end
30
+ end
31
+
32
+ module ClassMethods
33
+ def main_with_thread_enabler
34
+ case RUBY_ENGINE
35
+ when 'jruby'
36
+ when 'rbx'
37
+ else # 'ruby' most likely
38
+ GLib::MainLoop::ThreadEnabler.instance.setup_idle_handler
39
+ end
40
+ main_without_thread_enabler
41
+ end
42
+ end
13
43
  end
14
44
  end
45
+
46
+ # Overrides for Gtk module functions
47
+ module Gtk
48
+ setup_method "init"
49
+ setup_method "main"
50
+
51
+ include GirFFIGtk::AutoArgv
52
+ include GirFFIGtk::ThreadEnabler
53
+ end
@@ -1,10 +1,9 @@
1
+ Gtk.load_class :Menu
1
2
  module Gtk
2
- load_class :Menu
3
-
4
3
  # Overrides for GtkMenu
5
4
  class Menu
6
5
  unless method_defined? :popup
7
- def popup(parent_menu_shell, parent_menu_item, func, data, button, activate_time)
6
+ def popup parent_menu_shell, parent_menu_item, func, data, button, activate_time
8
7
  popup_for_device(nil,
9
8
  parent_menu_shell, parent_menu_item, func, data,
10
9
  nil,
@@ -0,0 +1,22 @@
1
+ Gtk.load_class :MessageDialog
2
+
3
+ module Gtk
4
+ # Add non-introspected function to Gtk::Lib
5
+ module Lib
6
+ attach_function :gtk_message_dialog_new, [:pointer,
7
+ Gtk::DialogFlags,
8
+ Gtk::MessageType,
9
+ Gtk::ButtonsType,
10
+ :string,
11
+ :varargs], :pointer
12
+ end
13
+
14
+ class MessageDialog
15
+ def self.new parent, flags, type, buttons, message
16
+ ptr = Gtk::Lib.gtk_message_dialog_new(parent, flags, type, buttons,
17
+ '%s',
18
+ :string, message)
19
+ constructor_wrap ptr
20
+ end
21
+ end
22
+ end
@@ -1,6 +1,6 @@
1
+ Gtk.load_class :RadioButton
1
2
  module Gtk
2
- load_class :RadioButton
3
-
3
+ # Add non-introspected functions to Gtk::Lib
4
4
  module Lib
5
5
  attach_function :gtk_radio_button_new, [:pointer], :pointer
6
6
  attach_function :gtk_radio_button_new_from_widget, [:pointer], :pointer
@@ -8,19 +8,16 @@ module Gtk
8
8
 
9
9
  # Overrides for GtkRadioButton
10
10
  class RadioButton
11
- def self.new(group)
12
- _v1 = GLib::SList.from(Gtk::RadioButton, group)
13
- _v2 = Gtk::Lib.gtk_radio_button_new(_v1)
14
- _v3 = self.constructor_wrap(_v2)
15
- return _v3
11
+ def self.new group
12
+ v1 = GLib::SList.from(Gtk::RadioButton, group)
13
+ v2 = Gtk::Lib.gtk_radio_button_new(v1)
14
+ constructor_wrap(v2)
16
15
  end
17
16
 
18
- def self.new_from_widget(radio_group_member)
19
- _v1 = Gtk::RadioButton.from(radio_group_member)
20
- _v2 = Gtk::Lib.gtk_radio_button_new_from_widget(_v1)
21
- _v3 = self.constructor_wrap(_v2)
22
- return _v3
17
+ def self.new_from_widget radio_group_member
18
+ v1 = Gtk::RadioButton.from(radio_group_member)
19
+ v2 = Gtk::Lib.gtk_radio_button_new_from_widget(v1)
20
+ constructor_wrap(v2)
23
21
  end
24
22
  end
25
23
  end
26
-
@@ -0,0 +1,31 @@
1
+ Gtk.load_class :TreePath
2
+ module Gtk
3
+ # Add non-introspected function to Gtk::Lib
4
+ module Lib
5
+ if Gtk::MAJOR_VERSION == 2 || Gtk::MINOR_VERSION < 12
6
+ attach_function :gtk_tree_path_new_from_indices, [:varargs], :pointer
7
+ end
8
+ end
9
+
10
+ # Overrides for GtkTreePath
11
+ class TreePath
12
+ if Gtk::MAJOR_VERSION == 2 || Gtk::MINOR_VERSION < 12
13
+ def self.new_from_indices indices
14
+ args = indices.flat_map { |index| [:int, index] }
15
+ ptr = Gtk::Lib.gtk_tree_path_new_from_indices(*args, :int, -1)
16
+ constructor_wrap ptr
17
+ end
18
+ end
19
+
20
+ if Gtk::MAJOR_VERSION == 2
21
+ setup_instance_method 'get_indices'
22
+ remove_method :get_indices
23
+
24
+ def get_indices
25
+ depth = get_depth
26
+ ptr = Gtk::Lib.gtk_tree_path_get_indices self
27
+ GirFFI::SizedArray.wrap(:gint32, depth, ptr)
28
+ end
29
+ end
30
+ end
31
+ end
@@ -4,4 +4,6 @@ GirFFI.setup :Gtk, '2.0'
4
4
 
5
5
  require 'gir_ffi-gtk/base'
6
6
  require 'gir_ffi-gtk/menu'
7
+ require 'gir_ffi-gtk/message_dialog'
7
8
  require 'gir_ffi-gtk/radio_button'
9
+ require 'gir_ffi-gtk/tree_path'
@@ -4,3 +4,5 @@ GirFFI.setup :Gtk, '3.0'
4
4
 
5
5
  require 'gir_ffi-gtk/base'
6
6
  require 'gir_ffi-gtk/menu'
7
+ require 'gir_ffi-gtk/message_dialog'
8
+ require 'gir_ffi-gtk/tree_path'
@@ -3,32 +3,47 @@ require 'test_helper'
3
3
  describe Gtk do
4
4
  describe "::init" do
5
5
  before do
6
- save_module :Gtk
7
- ::Object.const_set :Gtk, Module.new
8
- Gtk.class_eval do
6
+ module DummyGtk
9
7
  def self.init arr
10
8
  ["baz", "qux", "zonk"]
11
9
  end
12
- end
13
- mock(Gtk).setup_method("init") { }
14
10
 
15
- load 'gir_ffi-gtk/base.rb'
11
+ include GirFFIGtk::AutoArgv
12
+ end
16
13
  end
17
14
 
18
15
  it "does not take any arguments" do
19
- assert_raises(ArgumentError) { Gtk.init 1, ["foo"] }
20
- assert_raises(ArgumentError) { Gtk.init ["foo"] }
21
- assert_nothing_raised { Gtk.init }
16
+ assert_raises(ArgumentError) { DummyGtk.init 1, ["foo"] }
17
+ assert_raises(ArgumentError) { DummyGtk.init ["foo"] }
18
+ assert_nothing_raised { DummyGtk.init }
22
19
  end
23
20
 
24
21
  it "replaces ARGV with the tail of the result of the original init function" do
25
22
  ARGV.replace ["foo", "bar"]
26
- Gtk.init
23
+ DummyGtk.init
27
24
  assert_equal ["qux", "zonk"], ARGV.to_a
28
25
  end
26
+ end
27
+
28
+ describe "::main" do
29
+ it "allows other threads to run" do
30
+ a = []
31
+ GLib.timeout_add(GLib::PRIORITY_DEFAULT, 100,
32
+ proc { Gtk.main_quit },
33
+ nil, nil)
34
+
35
+ slow_thread = Thread.new do
36
+ sleep 0.005
37
+ a << "During run"
38
+ end
39
+
40
+ a << "Before run"
41
+ Gtk.main
42
+ a << "After run"
43
+
44
+ slow_thread.join
29
45
 
30
- after do
31
- restore_module :Gtk
46
+ a.last.must_equal "After run"
32
47
  end
33
48
  end
34
49
  end
@@ -0,0 +1,16 @@
1
+ require 'test_helper'
2
+
3
+ describe Gtk::MessageDialog do
4
+ describe ".new" do
5
+ it "creates a Gtk::MessageDialog with the right text" do
6
+ dialog = Gtk::MessageDialog.new nil, :modal, :info, :close, 'Foo'
7
+ dialog.text.must_equal 'Foo'
8
+ end
9
+
10
+ it "handles all % characters in the message as literals" do
11
+ dialog = Gtk::MessageDialog.new nil, :modal, :info, :close, 'Foo %'
12
+ dialog.text.must_equal 'Foo %'
13
+ end
14
+ end
15
+ end
16
+
@@ -0,0 +1,17 @@
1
+ require 'test_helper'
2
+
3
+ describe Gtk::TreePath do
4
+ describe "#get_indices" do
5
+ it "returns an enumerable of the TreePath's indices" do
6
+ tree_path = Gtk::TreePath.new_from_string "1:2:3"
7
+ tree_path.get_indices.to_a.must_equal [1, 2, 3]
8
+ end
9
+ end
10
+
11
+ describe ".new_from_indices" do
12
+ it "creates a Gtk::TreePath with the right indices" do
13
+ tree_path = Gtk::TreePath.new_from_indices [1, 2, 3]
14
+ tree_path.get_indices.to_a.must_equal [1, 2, 3]
15
+ end
16
+ end
17
+ end
@@ -28,24 +28,4 @@ class Minitest::Test
28
28
  def ref_count object
29
29
  GObject::Object::Struct.new(object.to_ptr)[:ref_count]
30
30
  end
31
-
32
- SAVED_MODULES = {}
33
-
34
- def save_module name
35
- if Object.const_defined? name
36
- puts "Saving #{name} over existing" if SAVED_MODULES.has_key? name
37
- SAVED_MODULES[name] = Object.const_get name
38
- Object.send(:remove_const, name)
39
- end
40
- end
41
-
42
- def restore_module name
43
- if Object.const_defined? name
44
- Object.send(:remove_const, name)
45
- end
46
- if SAVED_MODULES.has_key? name
47
- Object.const_set name, SAVED_MODULES[name]
48
- SAVED_MODULES.delete name
49
- end
50
- end
51
31
  end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gir_ffi-gtk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matijs van Zuijlen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-25 00:00:00.000000000 Z
11
+ date: 2014-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gir_ffi
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.7.3
19
+ version: 0.7.6
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.7.3
26
+ version: 0.7.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '5.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '5.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rr
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.1.2
47
+ version: '1.1'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.1.2
54
+ version: '1.1'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '10.1'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '10.1'
69
69
  description: Bindings for Gtk+ 2 and 3, generated by GirFFI, with overrides.
@@ -73,27 +73,31 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - lib/gir_ffi-gtk2.rb
77
- - lib/gir_ffi-gtk/menu.rb
76
+ - COPYING.LIB
77
+ - Changelog.md
78
+ - README.md
79
+ - Rakefile
80
+ - examples/01_empty_window.rb
81
+ - examples/02_hello_world.rb
82
+ - examples/03_upgraded_hello_world.rb
83
+ - examples/04_webkit.rb
84
+ - examples/05_notification.rb
85
+ - examples/06_treeview.rb
78
86
  - lib/gir_ffi-gtk/base.rb
87
+ - lib/gir_ffi-gtk/menu.rb
88
+ - lib/gir_ffi-gtk/message_dialog.rb
79
89
  - lib/gir_ffi-gtk/radio_button.rb
90
+ - lib/gir_ffi-gtk/tree_path.rb
91
+ - lib/gir_ffi-gtk2.rb
80
92
  - lib/gir_ffi-gtk3.rb
81
- - test/test_helper.rb
93
+ - tasks/test.rake
82
94
  - test/gir_ffi-gtk/base_test.rb
83
- - test/gir_ffi-gtk/menu_test.rb
84
95
  - test/gir_ffi-gtk/generated_gtk_test.rb
96
+ - test/gir_ffi-gtk/menu_test.rb
97
+ - test/gir_ffi-gtk/message_dialog_test.rb
85
98
  - test/gir_ffi-gtk/radio_button_test.rb
86
- - tasks/test.rake
87
- - examples/04_webkit.rb
88
- - examples/01_empty_window.rb
89
- - examples/03_upgraded_hello_world.rb
90
- - examples/02_hello_world.rb
91
- - examples/06_treeview.rb
92
- - examples/05_notification.rb
93
- - Changelog.md
94
- - README.md
95
- - Rakefile
96
- - COPYING.LIB
99
+ - test/gir_ffi-gtk/tree_path_test.rb
100
+ - test/test_helper.rb
97
101
  homepage: http://www.github.com/mvz/gir_ffi-gtk
98
102
  licenses:
99
103
  - LGPL-2.1
@@ -104,17 +108,17 @@ require_paths:
104
108
  - lib
105
109
  required_ruby_version: !ruby/object:Gem::Requirement
106
110
  requirements:
107
- - - '>='
111
+ - - ">="
108
112
  - !ruby/object:Gem::Version
109
- version: '0'
113
+ version: 1.9.3
110
114
  required_rubygems_version: !ruby/object:Gem::Requirement
111
115
  requirements:
112
- - - '>='
116
+ - - ">="
113
117
  - !ruby/object:Gem::Version
114
118
  version: '0'
115
119
  requirements: []
116
120
  rubyforge_project:
117
- rubygems_version: 2.0.14
121
+ rubygems_version: 2.4.1
118
122
  signing_key:
119
123
  specification_version: 4
120
124
  summary: GirFFI-based Ruby bindings for Gtk+ 2 and 3
@@ -122,6 +126,8 @@ test_files:
122
126
  - test/gir_ffi-gtk/base_test.rb
123
127
  - test/gir_ffi-gtk/generated_gtk_test.rb
124
128
  - test/gir_ffi-gtk/menu_test.rb
129
+ - test/gir_ffi-gtk/message_dialog_test.rb
125
130
  - test/gir_ffi-gtk/radio_button_test.rb
131
+ - test/gir_ffi-gtk/tree_path_test.rb
126
132
  - test/test_helper.rb
127
133
  has_rdoc: