pango 3.0.5 → 3.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pango.rb +13 -0
- data/test/run-test.rb +1 -1
- data/test/test-version.rb +47 -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: eb62b1326f6a4b7584e5196086ed0fbd42e5b341
|
4
|
+
data.tar.gz: 3d8e79c466b21c58fe1c780633a312bf442281f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3954fffce580d0a66944af634daaff6bee1c0490acc718aa80aecd52454dfce740384fa9d33785c95122fa63764c0b003fbf836159ca8dfed6ac8f5fdb76e45e
|
7
|
+
data.tar.gz: a9854d5decddc2363cdda1e526baf635ae7bb3229b7aaa7ff27cfca1cf4d04fb9cf852662f2b933dd20bda07b17210219054dcfef4e13657531cec2b4379b13c
|
data/lib/pango.rb
CHANGED
@@ -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)
|
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 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.
|
4
|
+
version: 3.0.6
|
5
5
|
platform: ruby
|
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: cairo
|
@@ -30,14 +30,14 @@ dependencies:
|
|
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
|
description: Ruby/Pango is a Ruby binding of pango-1.x.
|
42
42
|
email: ruby-gnome2-devel-en@lists.sourceforge.net
|
43
43
|
executables: []
|
@@ -111,6 +111,7 @@ files:
|
|
111
111
|
- test/test-log-attr.rb
|
112
112
|
- test/test-matrix.rb
|
113
113
|
- test/test-rectangle.rb
|
114
|
+
- test/test-version.rb
|
114
115
|
homepage: http://ruby-gnome2.sourceforge.jp/
|
115
116
|
licenses:
|
116
117
|
- LGPLv2.1 or later
|