atk 3.0.3-x64-mingw32 → 3.0.4-x64-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: 664452ee405bc9fc299159d32672a0d93cae7988
4
- data.tar.gz: 4949f8f0fdc5250f2ccf1ebc137162cd78e6780b
3
+ metadata.gz: f8fbbacbcaa4fba86964647cbddfae60f309ca76
4
+ data.tar.gz: 4f9cebac554d3f655cf57d4096e9a142432609eb
5
5
  SHA512:
6
- metadata.gz: 9abef3d403de8fbbd2b4b92a432378b8b7e7b66e3ccceb299fd17afc2a29b66bcaa281bce4866fe7bae9845b3cbf97848dc7d5f33f0a905f69d2708bc80f3583
7
- data.tar.gz: 4d617fd62e1ee81c60da1ac2edbe541b30c6c51efb7538553fc4f4f14554c5e279b472de6e15c173a2101f85f062a856a05bcd363c944f06fae82b7ecf29884d
6
+ metadata.gz: d87cb308622be8e229aa490b35b6e4e610ad1dc0766e15b7c83ff6fa1036585039e3051ce1a7367045ce4ae8e99c04107a5eb586def2dfb6429807fcb7141949
7
+ data.tar.gz: acdce2917645abdfc968d5289b80a9e70a72da937a0908ed2e441d401213b1a1fb631ea08cf53cdd43a8458d58eaf0ada45c158bf5dc83f4d7da32c3818bf1b5
data/ext/atk/extconf.rb CHANGED
@@ -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)
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
@@ -17,7 +17,7 @@ old_library=''
17
17
  inherited_linker_flags=' -pthread'
18
18
 
19
19
  # Libraries that this one depends upon.
20
- dependency_libs=' -R/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib -L/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib -L/home/vagrant/rcairo.win64/vendor/local/lib -L/home/vagrant/ruby-gnome2.win64/atk/vendor/local/lib /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libgobject-2.0.la /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libffi.la /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libglib-2.0.la -lws2_32 -lole32 -lwinmm -lshlwapi /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libintl.la /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libiconv.la'
20
+ dependency_libs=' -L/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib -L/home/vagrant/rcairo.win64/vendor/local/lib -L/home/vagrant/ruby-gnome2.win64/atk/vendor/local/lib /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libgobject-2.0.la /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libffi.la /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libglib-2.0.la -lws2_32 -lole32 -lwinmm -lshlwapi /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libintl.la'
21
21
 
22
22
  # Names of additional weak libraries provided by this library
23
23
  weak_library_names=''
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: 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-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