gtk2 3.0.5-x64-mingw32 → 3.0.6-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2.0/gtk2.so +0 -0
- data/lib/2.1/gtk2.so +0 -0
- data/lib/2.2/gtk2.so +0 -0
- data/lib/gtk2/base.rb +15 -0
- data/test/run-test.rb +1 -1
- data/test/test_gtk_version.rb +47 -0
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23332cc35369b500fd18ba546f94129123a20369
|
4
|
+
data.tar.gz: a4662284a00b8b86422f8327526eca7793f59787
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91c48a6db506de72b5246abba211bba48d81f3350da346968a0dd0f8977502d675a76ee53fd000bf4cbfea322208e97524e98a5566c9e84544b622ce7b8ab2fb
|
7
|
+
data.tar.gz: 8138f74619c766b7c86317443631c27e14a3315c3ac6f8049f3358cf1d63dd6b65d288ecacdaef79eb3129c2857a3f6989c528396ea4b3490b91fe66b6e4c5e4
|
data/lib/2.0/gtk2.so
CHANGED
Binary file
|
data/lib/2.1/gtk2.so
CHANGED
Binary file
|
data/lib/2.2/gtk2.so
CHANGED
Binary file
|
data/lib/gtk2/base.rb
CHANGED
@@ -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)
|
data/test/run-test.rb
CHANGED
@@ -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.
|
4
|
+
version: 3.0.6
|
5
5
|
platform: x64-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-
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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
|