pango 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 43ee238105fe51cb74fc53b50cbfa3b00320991c
4
- data.tar.gz: 6ddcca3af3a60488745ee64cf109463eba212e49
3
+ metadata.gz: 1a9aebde671ca4e4c4390389e161f420a54a0d72
4
+ data.tar.gz: 1d7b3b85133cba4476a4c25322bcc50b536816d3
5
5
  SHA512:
6
- metadata.gz: 7f3309a228ef3866dcb6f03fb8d4b2ec9d32902c2cae4a8bff1002d79b2cfe41d887e70336764263e865f3b0c67f532a9451f0c471bb636dad02147b18420668
7
- data.tar.gz: 5b98b3b4a9d5e8eb08118b7feb95857ba567e44c8aeab050d86b6cd331d8c83aaa0ce6753d63ced2729072c49a1a24939c53aaf04d5b9d5dccc5c138d686b3a3
6
+ metadata.gz: 45082afe358212dcf358ec873e654880f6b712d1c515dcf865bcd57f786e6276f5cab5ffc14956a93bd6dd8e6314b9624e35c4959edbb6c5a4914453615c6a1d
7
+ data.tar.gz: d3d1b637ee5f200bad1977b95a4fa36429d869b78fad8fdaa7439dc5a084f76422edfcd4451d6dc770220bd12bc144a09695ec2f934b643fcaebd6695fdb69ea
Binary file
Binary file
Binary file
@@ -74,6 +74,19 @@ module Pango
74
74
  end
75
75
  end
76
76
  end
77
+
78
+ module Version
79
+ MAJOR, MINOR, MICRO = BUILD_VERSION
80
+ STRING = Pango.version_string
81
+
82
+ class << self
83
+ def or_later?(major, minor, micro = nil)
84
+ micro || 0
85
+ error_message = Pango.check_version(major, minor, micro)
86
+ error_message.nil?
87
+ end
88
+ end
89
+ end
77
90
  end
78
91
 
79
92
  GLib::Log.set_log_domain(Pango::LOG_DOMAIN)
@@ -25,4 +25,4 @@ require 'pango-test-utils'
25
25
 
26
26
  require 'pango'
27
27
 
28
- exit Test::Unit::AutoRunner.run(true)
28
+ exit Test::Unit::AutoRunner.run(true, File.join(pango_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 TestPangoVersion < Test::Unit::TestCase
18
+ include PangoTestUtils
19
+
20
+ test "STRING" do
21
+ major = Pango::Version::MAJOR
22
+ minor = Pango::Version::MINOR
23
+ micro = Pango::Version::MICRO
24
+ assert_equal([major, minor, micro].join("."),
25
+ Pango::Version::STRING)
26
+ end
27
+
28
+ sub_test_case("#or_later?") do
29
+ test "same" do
30
+ assert_true(Pango::Version.or_later?(Pango::Version::MAJOR,
31
+ Pango::Version::MINOR,
32
+ Pango::Version::MICRO))
33
+ end
34
+
35
+ test "later" do
36
+ assert_true(Pango::Version.or_later?(Pango::Version::MAJOR,
37
+ Pango::Version::MINOR,
38
+ Pango::Version::MICRO - 1))
39
+ end
40
+
41
+ test "earlier" do
42
+ assert_false(Pango::Version.or_later?(Pango::Version::MAJOR,
43
+ Pango::Version::MINOR,
44
+ Pango::Version::MICRO + 1))
45
+ end
46
+ end
47
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pango
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.5
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-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: cairo
@@ -30,14 +30,14 @@ dependencies:
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
  description: Ruby/Pango is a Ruby binding of pango-1.x.
42
42
  email: ruby-gnome2-devel-en@lists.sourceforge.net
43
43
  executables: []
@@ -113,6 +113,7 @@ files:
113
113
  - test/test-log-attr.rb
114
114
  - test/test-matrix.rb
115
115
  - test/test-rectangle.rb
116
+ - test/test-version.rb
116
117
  - vendor/local/bin/derb.exe
117
118
  - vendor/local/bin/genbrk.exe
118
119
  - vendor/local/bin/genccode.exe