gtk2 3.0.5-x86-mingw32 → 3.0.6-x86-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b0b5939933faf5970c363933d7342e74b72f50e7
4
- data.tar.gz: c5fed98289c0ae4fdd1adc3fa71d648f6c4f6fb0
3
+ metadata.gz: 641030c9b30a5f0d9c99a8e285b8fdede337a1b3
4
+ data.tar.gz: 02fa2d0fc7d84a7887b8d930aa10aaee36d27121
5
5
  SHA512:
6
- metadata.gz: 505e99e22e6fe1cdea176a64e41ea8ef154c8d00bb122df95ccf152803fd2b9ad6a822214ce8aa2c8dc0f8e863995349edf709e4f28ceaee82e1c016cba078fd
7
- data.tar.gz: b6d9d4b81a71663553cf0d5c277feb9b970b529f6336824cc70987a7df6a465f3fec38f343f6ffd9baf525b5594bdf3d0ad5581fe1d1b55400c241b875a57e30
6
+ metadata.gz: 6732ade3062d2ff659f702ff8d11d4a8f099d8d93ef69265c5003011ec21c3d3b16d9f49204abcb03700464b2573ae2acb84d0da04f34d2008d66e5ab9d06263
7
+ data.tar.gz: 02596ac35490a1d234fb3d6d3d41c45bea46eaa292fc56583fdfd68da10b8fc2e47349da250ca2bc82ce2e46f53a6ee0171f2df3508479172852ec9d52a8fa49
Binary file
Binary file
Binary file
@@ -99,6 +99,21 @@ module Gtk
99
99
  end
100
100
  end
101
101
  end
102
+
103
+ module Version
104
+ MAJOR = MAJOR_VERSION
105
+ MINOR = MINOR_VERSION
106
+ MICRO = MICRO_VERSION
107
+ STRING = "#{MAJOR}.#{MINOR}.#{MICRO}"
108
+
109
+ class << self
110
+ def or_later?(major, minor, micro=nil)
111
+ micro ||= 0
112
+ error_message = Gtk.check_version(major, minor, micro)
113
+ error_message.nil?
114
+ end
115
+ end
116
+ end
102
117
  end
103
118
 
104
119
  GLib::Log.set_log_domain(Gdk::LOG_DOMAIN)
@@ -29,4 +29,4 @@ require 'gtk-test-utils'
29
29
 
30
30
  require 'gtk2'
31
31
 
32
- exit Test::Unit::AutoRunner.run(true)
32
+ exit Test::Unit::AutoRunner.run(true, File.join(gtk_base, "test"))
@@ -0,0 +1,47 @@
1
+ # Copyright (C) 2015 Ruby-GNOME2 Project Team
2
+ #
3
+ # This library is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU Lesser General Public
5
+ # License as published by the Free Software Foundation; either
6
+ # version 2.1 of the License, or (at your option) any later version.
7
+ #
8
+ # This library is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
+ # Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public
14
+ # License along with this library; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
+
17
+ class TestGtkVersion < Test::Unit::TestCase
18
+ include GtkTestUtils
19
+
20
+ test "STRING" do
21
+ major = Gtk::Version::MAJOR
22
+ minor = Gtk::Version::MINOR
23
+ micro = Gtk::Version::MICRO
24
+ assert_equal([major, minor, micro].join("."),
25
+ Gtk::Version::STRING)
26
+ end
27
+
28
+ sub_test_case("#or_later?") do
29
+ test "same" do
30
+ assert_true(Gtk::Version.or_later?(Gtk::Version::MAJOR,
31
+ Gtk::Version::MINOR,
32
+ Gtk::Version::MICRO))
33
+ end
34
+
35
+ test "later" do
36
+ assert_true(Gtk::Version.or_later?(Gtk::Version::MAJOR,
37
+ Gtk::Version::MINOR,
38
+ Gtk::Version::MICRO - 1))
39
+ end
40
+
41
+ test "earlier" do
42
+ assert_false(Gtk::Version.or_later?(Gtk::Version::MAJOR,
43
+ Gtk::Version::MINOR,
44
+ Gtk::Version::MICRO + 1))
45
+ end
46
+ end
47
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gtk2
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.5
4
+ version: 3.0.6
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - The Ruby-GNOME2 Project Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-22 00:00:00.000000000 Z
11
+ date: 2015-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: atk
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.5
19
+ version: 3.0.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: 3.0.5
26
+ version: 3.0.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pango
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.0.5
33
+ version: 3.0.6
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 3.0.5
40
+ version: 3.0.6
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: gdk_pixbuf2
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 3.0.5
47
+ version: 3.0.6
48
48
  type: :runtime
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: 3.0.5
54
+ version: 3.0.6
55
55
  description: Ruby/GTK2 is a Ruby binding of GTK+-2.x.
56
56
  email: ruby-gnome2-devel-en@lists.sourceforge.net
57
57
  executables: []
@@ -534,6 +534,7 @@ files:
534
534
  - test/test_gtk_recent_filter_info.rb
535
535
  - test/test_gtk_tree_path.rb
536
536
  - test/test_gtk_unix_print.rb
537
+ - test/test_gtk_version.rb
537
538
  - test/test_gtk_widget.rb
538
539
  - vendor/local/bin/gtk-builder-convert
539
540
  - vendor/local/bin/gtk-demo.exe