pango 3.3.0 → 3.3.1

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: 72686d3bf2df71d89d264cc85bd2ab8d8e5a5f7b6675e444b9cc5ca7a648565c
4
- data.tar.gz: d5fed2fa52ad01c055ce612e209a9856dadd06d03ecc24f358656fe7c65a9b59
3
+ metadata.gz: 9c88e03c5116fbed46cd81b885de03b754ba44ebde9b319aa7b18f4c97645c78
4
+ data.tar.gz: 6ba7e4f2bbe89e69f815d78a79a298c5311f071778046a455276b52c56618169
5
5
  SHA512:
6
- metadata.gz: 185f00466761f6ee7cce6203f03558dfb5f8cb6bad4ef49b9117d66f4cac1de839120e5790440928fc2820db6a8b6e78824f98df67b05bfab9fdc521f7f85f71
7
- data.tar.gz: 497e9964daad83743ccdbb30886eb25138d52eea022e323424b1057279fb598a0f6636f1f028be7f38b2ad713bf4fea56d63b1e27806d3ceca77c9850a0e147c
6
+ metadata.gz: 83b9f6c742ed767857701dd0d7cba4185751a46813a2f21158da2e6f2e682a0b0fd8560734f4c72fc51df323fa36ad20c6126ad63e5c21322f10e4bfc6d80baf
7
+ data.tar.gz: 7c6a396eef88d46ca5392e5aa232013ad53fb02a4c7c92bf4701d0a74a3dba6719f2296010626c056a2c26c935d71b6b7749bba5b8bf1ab475d08da3ea1754c9
data/Rakefile CHANGED
@@ -23,97 +23,4 @@ package_name = File.basename(__dir__)
23
23
  spec = Gem::Specification.load("#{package_name}.gemspec")
24
24
 
25
25
  GNOME2::Rake::PackageTask.define(spec, __dir__) do |package|
26
- package.windows.packages = []
27
- package.windows.dependencies = []
28
- package.windows.build_dependencies = [
29
- "glib2",
30
- "gobject-introspection",
31
- "cairo-gobject",
32
- ]
33
- package.external_packages = [
34
- {
35
- :name => "icu",
36
- :download_site => :icu,
37
- :label => "ICU",
38
- :version => "63.1",
39
- :base_name => "icu",
40
- :archive_base_name => lambda do |package|
41
- archive_base_name_version = package.version.gsub(".", "_")
42
- "icu4c-#{archive_base_name_version}-src.tgz"
43
- end,
44
- :compression_method => "gz",
45
- :base_dir_in_package => "source",
46
- :windows => {
47
- :configure_args => [
48
- "--with-cross-build=#{package.package.tmp_dir}/native/icu/icu/source",
49
- "CPPFLAGS=-DU_USE_STRTOD_L=0",
50
- ],
51
- :built_file => "bin/icu-config",
52
- },
53
- :native => {
54
- :build => true,
55
- :configure_args => [
56
- "CPPFLAGS=-DU_USE_STRTOD_L=0",
57
- ],
58
- :built_file => "bin/icu-config",
59
- },
60
- },
61
- {
62
- :name => "harfbuzz",
63
- :download_site => :freedesktop,
64
- :label => "HarfBuzz",
65
- :version => "2.1.0",
66
- :compression_method => "bz2",
67
- :windows => {
68
- :configure_args => [
69
- ],
70
- :patches => [
71
- ],
72
- :built_file => "bin/libharfbuzz-0.dll",
73
- },
74
- },
75
- {
76
- :name => "graphene",
77
- :download_site => :gnome,
78
- :label => "Graphene",
79
- :version => "1.8.2",
80
- :compression_method => "xz",
81
- :windows => {
82
- :meson_args => [
83
- "-Dtests=false",
84
- "-Dbenchmarks=false",
85
- ],
86
- :patches => [
87
- "graphene-disable-werror-float-conversion.diff",
88
- ],
89
- :built_file => "bin/libgraphene-1.0-0.dll",
90
- },
91
- },
92
- {
93
- :name => "fribidi/fribidi",
94
- :download_site => :github,
95
- :label => "FriBidi",
96
- :version => "v1.0.5",
97
- :compression_method => "bz2",
98
- :windows => {
99
- :configure_args => [
100
- "--disable-docs",
101
- ],
102
- :built_file => "bin/libfribidi-0.dll",
103
- },
104
- },
105
- {
106
- :name => "pango",
107
- :download_site => :gnome,
108
- :label => "Pango",
109
- :version => "1.42.4",
110
- :compression_method => "xz",
111
- :windows => {
112
- :configure_args => [
113
- "--enable-introspection",
114
- ],
115
- :built_file => "bin/libpango-1.0-0.dll",
116
- },
117
- },
118
- ]
119
26
  end
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2017 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2017-2018 Ruby-GNOME2 Project Team
2
2
  #
3
3
  # This library is free software; you can redistribute it and/or
4
4
  # modify it under the terms of the GNU Lesser General Public
@@ -18,13 +18,6 @@ require "gobject-introspection"
18
18
  require "cairo"
19
19
  require "cairo-gobject"
20
20
 
21
- base_dir = Pathname.new(__FILE__).dirname.dirname.expand_path
22
- vendor_dir = base_dir + "vendor" + "local"
23
- vendor_bin_dir = vendor_dir + "bin"
24
- GLib.prepend_dll_path(vendor_bin_dir)
25
- vendor_girepository_dir = vendor_dir + "lib" + "girepository-1.0"
26
- GObjectIntrospection.prepend_typelib_path(vendor_girepository_dir)
27
-
28
21
  require "pango/loader"
29
22
  require "pango/cairo-loader"
30
23
 
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2017 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2017-2018 Ruby-GNOME2 Project Team
2
2
  #
3
3
  # This library is free software; you can redistribute it and/or
4
4
  # modify it under the terms of the GNU Lesser General Public
@@ -93,5 +93,14 @@ module Pango
93
93
  define_deprecated_const :WrapMode, "Pango::WrapMode"
94
94
  define_deprecated_enums :EllipsizeMode, "ELLIPSIZE"
95
95
  define_deprecated_const :EllipsizeMode, "Pango::EllipsizeMode"
96
+
97
+ define_deprecated_method :get_pixel_extents, :pixel_extents
98
+ end
99
+
100
+ class Rectangle
101
+ extend GLib::Deprecatable
102
+
103
+ define_deprecated_method :lbearing, :left_bearing
104
+ define_deprecated_method :rbearing, :right_bearing
96
105
  end
97
106
  end
@@ -77,12 +77,7 @@ module Pango
77
77
  end
78
78
 
79
79
  def require_extension
80
- begin
81
- major, minor, _ = RUBY_VERSION.split(/\./)
82
- require "#{major}.#{minor}/pango.so"
83
- rescue LoadError
84
- require "pango.so"
85
- end
80
+ require "pango.so"
86
81
  end
87
82
 
88
83
  def require_libraries
@@ -25,6 +25,22 @@ module Pango
25
25
  self.height = height
26
26
  end
27
27
 
28
+ def ascent
29
+ -y
30
+ end
31
+
32
+ def descent
33
+ y + height
34
+ end
35
+
36
+ def left_bearing
37
+ x
38
+ end
39
+
40
+ def right_bearing
41
+ x + width
42
+ end
43
+
28
44
  def to_a
29
45
  [x, y, width, height]
30
46
  end
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2013-2017 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2013-2018 Ruby-GNOME2 Project Team
2
2
  #
3
3
  # This library is free software; you can redistribute it and/or
4
4
  # modify it under the terms of the GNU Lesser General Public
@@ -36,4 +36,24 @@ class TestPangoRectangle < Test::Unit::TestCase
36
36
  rectangle = Pango::Rectangle.new(0, 10, 20, 30)
37
37
  assert_equal(30, rectangle.height)
38
38
  end
39
+
40
+ def test_ascent
41
+ rectangle = Pango::Rectangle.new(5, 10, 20, 30)
42
+ assert_equal(-10, rectangle.ascent)
43
+ end
44
+
45
+ def test_descent
46
+ rectangle = Pango::Rectangle.new(5, 10, 20, 30)
47
+ assert_equal(40, rectangle.descent)
48
+ end
49
+
50
+ def test_left_bearing
51
+ rectangle = Pango::Rectangle.new(5, 10, 20, 30)
52
+ assert_equal(5, rectangle.left_bearing)
53
+ end
54
+
55
+ def test_right_bearing
56
+ rectangle = Pango::Rectangle.new(5, 10, 20, 30)
57
+ assert_equal(25, rectangle.right_bearing)
58
+ end
39
59
  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.3.0
4
+ version: 3.3.1
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: 2018-10-31 00:00:00.000000000 Z
11
+ date: 2019-01-08 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.3.0
19
+ version: 3.3.1
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.3.0
26
+ version: 3.3.1
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.3.0
33
+ version: 3.3.1
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.3.0
40
+ version: 3.3.1
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: []
@@ -112,8 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  - !ruby/object:Gem::Version
113
113
  version: '0'
114
114
  requirements: []
115
- rubyforge_project:
116
- rubygems_version: 3.0.0.beta1
115
+ rubygems_version: 3.0.2
117
116
  signing_key:
118
117
  specification_version: 4
119
118
  summary: Ruby/Pango is a Ruby binding of pango-1.x.