atk 3.0.3-x86-mingw32 → 3.0.4-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/atk/extconf.rb +1 -0
- data/lib/2.0/atk.so +0 -0
- data/lib/2.1/atk.so +0 -0
- data/lib/2.2/atk.so +0 -0
- data/lib/atk.rb +34 -0
- data/test/test-version.rb +47 -0
- data/vendor/local/bin/libatk-1.0-0.dll +0 -0
- data/vendor/local/lib/girepository-1.0/Atk-1.0.typelib +0 -0
- data/vendor/local/lib/libatk-1.0.dll.a +0 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 147aaf2e53c6e386419af3a3613c4449e1a6847d
|
4
|
+
data.tar.gz: cc8715d2159014d13af0b3543caf3e5d4edfe572
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4f272ac3751c6e488f97c03266ec23c659226d862cdd2e7140d09f0885370a3c9c0bb67ba31ffcd8fc656af4fcf9758f79802c9262d8f37f12a8f76e6e02fbb
|
7
|
+
data.tar.gz: 4e64383e7fcdca97222cc74170f529fde5572c2dde09f95ab09cd24adfbd1ec02a987d29ec9f4ef2d7936966a4482ae28d16f250a548de079a3b8dedc8ffbf4a
|
data/ext/atk/extconf.rb
CHANGED
data/lib/2.0/atk.so
CHANGED
Binary file
|
data/lib/2.1/atk.so
CHANGED
Binary file
|
data/lib/2.2/atk.so
CHANGED
Binary file
|
data/lib/atk.rb
CHANGED
@@ -1,3 +1,19 @@
|
|
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
|
+
|
1
17
|
require 'glib2'
|
2
18
|
|
3
19
|
base_dir = Pathname.new(__FILE__).dirname.dirname.expand_path
|
@@ -19,3 +35,21 @@ if vendor_dir.exist?
|
|
19
35
|
rescue LoadError
|
20
36
|
end
|
21
37
|
end
|
38
|
+
|
39
|
+
module Atk
|
40
|
+
module Version
|
41
|
+
MAJOR, MINOR, MICRO = Atk::BUILD_VERSION
|
42
|
+
STRING = Atk::BUILD_VERSION.join(".")
|
43
|
+
class << self
|
44
|
+
def or_later?(major, minor, micro=nil)
|
45
|
+
micro ||= 0
|
46
|
+
version = [
|
47
|
+
MAJOR,
|
48
|
+
MINOR,
|
49
|
+
MICRO,
|
50
|
+
]
|
51
|
+
(version <=> [major, minor, micro]) >= 0
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -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 TestAtkVersion < Test::Unit::TestCase
|
18
|
+
include AtkTestUtils
|
19
|
+
|
20
|
+
test "STRING" do
|
21
|
+
major = Atk::Version::MAJOR
|
22
|
+
minor = Atk::Version::MINOR
|
23
|
+
micro = Atk::Version::MICRO
|
24
|
+
assert_equal([major, minor, micro].join("."),
|
25
|
+
Atk::Version::STRING)
|
26
|
+
end
|
27
|
+
|
28
|
+
sub_test_case("#or_later?") do
|
29
|
+
test "same" do
|
30
|
+
assert_true(Atk::Version.or_later?(Atk::Version::MAJOR,
|
31
|
+
Atk::Version::MINOR,
|
32
|
+
Atk::Version::MICRO))
|
33
|
+
end
|
34
|
+
|
35
|
+
test "later" do
|
36
|
+
assert_true(Atk::Version.or_later?(Atk::Version::MAJOR,
|
37
|
+
Atk::Version::MINOR - 1,
|
38
|
+
Atk::Version::MICRO))
|
39
|
+
end
|
40
|
+
|
41
|
+
test "earlier" do
|
42
|
+
assert_false(Atk::Version.or_later?(Atk::Version::MAJOR,
|
43
|
+
Atk::Version::MINOR + 1,
|
44
|
+
Atk::Version::MICRO))
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: atk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.4
|
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-
|
11
|
+
date: 2015-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: glib2
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.0.
|
19
|
+
version: 3.0.4
|
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.4
|
27
27
|
description: Ruby/ATK is a Ruby binding of ATK-1.0.x.
|
28
28
|
email: ruby-gnome2-devel-en@lists.sourceforge.net
|
29
29
|
executables: []
|
@@ -76,6 +76,7 @@ files:
|
|
76
76
|
- test/atk-test-utils.rb
|
77
77
|
- test/run-test.rb
|
78
78
|
- test/test-text-rectangle.rb
|
79
|
+
- test/test-version.rb
|
79
80
|
- vendor/local/bin/libatk-1.0-0.dll
|
80
81
|
- vendor/local/include/atk-1.0/atk/atk-enum-types.h
|
81
82
|
- vendor/local/include/atk-1.0/atk/atk.h
|