pango 3.4.3 → 3.4.4

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
  SHA256:
3
- metadata.gz: 60116c9c3dfa3b318b79ac0519aa2783ca877a335c71cc603636743765714d7a
4
- data.tar.gz: ce7837aeb03fa1ee92904e346f0f0aeb19c91be3ab870b2ea3c246b7059ff6c1
3
+ metadata.gz: 89a2f5485a25b1f51f74084d2cba8b9979a77d5ec0cf3817e674714499acb4a1
4
+ data.tar.gz: a88c6c65fb5b4024774cfbd7e86e4f72a5689307e660b159b6d81eccb5b57e9f
5
5
  SHA512:
6
- metadata.gz: 01dfbfee3e4024b91296f10ea425ecd1476aadea822950b1ff5b918c6d70a3905300a465d157b823209c7544a773f55f9b8f93f6f6aa7adc16f06d35eb442bfc
7
- data.tar.gz: 1d9e697eca82cd4c5bc74653ad9261598f9fea1cbecaa5170487f909c1bd78737fad152a3040d374d8a3ef340fed99964408ea43319243d6a54e5da154ce5928
6
+ metadata.gz: 615dd6a3049f5d60c4a0e58e042a1a49dd4a97a63e262fbf0b29475c0df30143d548e8341e277f8569e9ae2f132fcef1c3a9c0d8c5e225fdfc3446910e9c2988
7
+ data.tar.gz: 2d335a5d2d0ceb7c6f89ca47940bb7a743465553e905207af9d89c53fb5d00158bfce5ba48c2cafbdcaefbb4f0d4d9d6d71e37350a4b25d6811dc2079c8cb075
@@ -103,4 +103,10 @@ module Pango
103
103
  define_deprecated_method :lbearing, :left_bearing
104
104
  define_deprecated_method :rbearing, :right_bearing
105
105
  end
106
+
107
+ class Renderer
108
+ extend GLib::Deprecatable
109
+
110
+ define_deprecated_enums :RenderPart, "PART"
111
+ end
106
112
  end
@@ -1,3 +1,21 @@
1
+ # Copyright (C) 2008-2021 Ruby-GNOME 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
+ require "pango"
18
+
1
19
  module PangoTestUtils
2
20
  private
3
21
  def only_pango_version(major, minor, micro=nil)
@@ -6,4 +24,11 @@ module PangoTestUtils
6
24
  omit("Require Pango >= #{major}.#{minor}.#{micro}")
7
25
  end
8
26
  end
27
+
28
+ def only_gi_version(major, minor, micro=nil)
29
+ micro ||= 0
30
+ if (GObjectIntrospection::BUILD_VERSION <=> [major, minor, micro]) < 0
31
+ omit("Require GObject Introspection >= #{major}.#{minor}.#{micro}")
32
+ end
33
+ end
9
34
  end
data/test/run-test.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
- # Copyright (C) 2017-2020 Ruby-GNOME Project Team
3
+ # Copyright (C) 2017-2021 Ruby-GNOME Project Team
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
@@ -16,39 +16,14 @@
16
16
  # License along with this library; if not, write to the Free Software
17
17
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
18
 
19
- $VERBOSE = true
19
+ require_relative "../../glib2/test/run-test"
20
20
 
21
- ruby_gnome_base = File.join(File.dirname(__FILE__), "..", "..")
22
- ruby_gnome_base = File.expand_path(ruby_gnome_base)
23
-
24
- glib_base = File.join(ruby_gnome_base, "glib2")
25
- gobject_introspection_base = File.join(ruby_gnome_base, "gobject-introspection")
26
- cairo_gobject_base = File.join(ruby_gnome_base, "cairo-gobject")
27
- pango_base = File.join(ruby_gnome_base, "pango")
28
-
29
- $LOAD_PATH.unshift(File.join(glib_base, "test"))
30
-
31
- modules = [
32
- [glib_base, "glib2"],
33
- [gobject_introspection_base, "gobject-introspection"],
34
- [cairo_gobject_base, "cairo-gobject"],
35
- [pango_base, "pango"],
36
- ]
37
- modules.each do |target, module_name|
38
- makefile = File.join(target, "Makefile")
39
- if File.exist?(makefile) and system("which make > /dev/null")
40
- `make -C #{target.dump} > /dev/null` or exit(false)
41
- $LOAD_PATH.unshift(File.join(target, "ext", module_name))
42
- end
43
- $LOAD_PATH.unshift(File.join(target, "lib"))
21
+ run_test(__dir__,
22
+ [
23
+ "glib2",
24
+ "gobject-introspection",
25
+ "cairo-gobject",
26
+ "pango",
27
+ ]) do
28
+ require_relative "pango-test-utils"
44
29
  end
45
-
46
- $LOAD_PATH.unshift(File.join(glib_base, "test"))
47
- require "glib-test-init"
48
-
49
- $LOAD_PATH.unshift(File.join(pango_base, "test"))
50
- require "pango-test-utils"
51
-
52
- require "pango"
53
-
54
- exit Test::Unit::AutoRunner.run(true, File.join(pango_base, "test"))
@@ -30,4 +30,17 @@ class TestAttrList < Test::Unit::TestCase
30
30
  ],
31
31
  @attrs.collect {|iter| iter.attrs.collect {|a| a.value.to_s}})
32
32
  end
33
+
34
+ def test_change
35
+ only_gi_version(1, 60)
36
+ first_attribute = Pango::AttrLanguage.new(Pango::Language.new("ja-jp"))
37
+ @attrs.insert(first_attribute)
38
+ second_attribute = Pango::AttrLanguage.new(Pango::Language.new("en-us"))
39
+ @attrs.change(second_attribute)
40
+ assert_equal([
41
+ [second_attribute.value.to_s],
42
+ [],
43
+ ],
44
+ @attrs.collect {|iter| iter.attrs.collect {|a| a.value.to_s}})
45
+ end
33
46
  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.4.3
4
+ version: 3.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Ruby-GNOME Project Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-10 00:00:00.000000000 Z
11
+ date: 2021-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cairo-gobject
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.4.3
19
+ version: 3.4.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.4.3
26
+ version: 3.4.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: gobject-introspection
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.4.3
33
+ version: 3.4.4
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.4.3
40
+ version: 3.4.4
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: []
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  - !ruby/object:Gem::Version
115
115
  version: '0'
116
116
  requirements: []
117
- rubygems_version: 3.2.0.pre1
117
+ rubygems_version: 3.3.0.dev
118
118
  signing_key:
119
119
  specification_version: 4
120
120
  summary: Ruby/Pango is a Ruby binding of pango-1.x.