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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f7ae3070e492ac43161129008e8dffd41b9ba7a1
4
- data.tar.gz: 6bc3bf04bf2f73f6a4b793ee7e8de933e03eae13
3
+ metadata.gz: 147aaf2e53c6e386419af3a3613c4449e1a6847d
4
+ data.tar.gz: cc8715d2159014d13af0b3543caf3e5d4edfe572
5
5
  SHA512:
6
- metadata.gz: c17d632488a73544673466715160bb1143c5e7f708b6f4ba528cf778153815047b5d66f604be413c26d3348c8d8f26879852664d56b0100bbd0c74da37d68025
7
- data.tar.gz: 9638d5c1eef8ff9ff0344808917d772269cfde0f37bd2d1968fc867b928f25386b1d6a980c49f562d46a9905a49ea47b40e20b292090910c25e88f057a89e529
6
+ metadata.gz: f4f272ac3751c6e488f97c03266ec23c659226d862cdd2e7140d09f0885370a3c9c0bb67ba31ffcd8fc656af4fcf9758f79802c9262d8f37f12a8f76e6e02fbb
7
+ data.tar.gz: 4e64383e7fcdca97222cc74170f529fde5572c2dde09f95ab09cd24adfbd1ec02a987d29ec9f4ef2d7936966a4482ae28d16f250a548de079a3b8dedc8ffbf4a
@@ -47,6 +47,7 @@ setup_windows(module_name, base_dir)
47
47
  unless required_pkg_config_package([package_id, 1, 12, 0],
48
48
  :debian => "libatk1.0-dev",
49
49
  :redhat => "atk-devel",
50
+ :arch => "atk",
50
51
  :homebrew => "atk",
51
52
  :macports => "atk")
52
53
  exit(false)
Binary file
Binary file
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
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.3
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-16 00:00:00.000000000 Z
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.3
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.3
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