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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a9eda5f5e6d441b4a82827adaf4723a56f1f663b
4
- data.tar.gz: 7f6c105f7bbde462c64fcffbd96fdc5ee8ce7268
3
+ metadata.gz: eb62b1326f6a4b7584e5196086ed0fbd42e5b341
4
+ data.tar.gz: 3d8e79c466b21c58fe1c780633a312bf442281f2
5
5
  SHA512:
6
- metadata.gz: 5a445944ff78459c37f36e757df8d1a75eaf46e6e81a594dfd321057cb0bb2db3a8877a1ea13cecdf8846240e361004451d057502d3c7f69eec8cf51bfd574f5
7
- data.tar.gz: cbf1735c1b559f00ae44220eb530ba4a517fb3c641071c3be7d7ef6fc4da4ad8e7c6c4a074eed45d73d2b2cca1d0665d76efb6059962e3d7f23be9d0ca15a609
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
@@ -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: 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-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: []
@@ -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