gobject-introspection 4.3.2 → 4.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc11fc537eaad855b6b974b5cb926fe12a2fc4b977cb36a830a71bd46703a1bb
4
- data.tar.gz: 37890cd9f896931633844dea1a98c32d77ac679b1300bfe5c3ea8701ac94a521
3
+ metadata.gz: 910c4fd8d65a150da609086d550e1476d628d64e34e5b2874f1944727ee9d500
4
+ data.tar.gz: 781aa916c1f1d68a8eb00218cf30d3089024bfb20e400af5537eaada9222a98c
5
5
  SHA512:
6
- metadata.gz: 29852a0635a58c9bb4dba0728292354943a07dde0f9f95533541dcdfff2fb85ae6b11349f7c6f38ccd2dff3cc697177694d56678d6812f6dbbc6e9e36057e4ce
7
- data.tar.gz: 32e7d4eb53268668c5648a81d3d28f738d7db9fdc787918e9d2395e9afa5a6d6fc383433cb59c858026cc28883f7b4388d7daba48984cdb862a86541bb1628dc
6
+ metadata.gz: 2393ec9a0a68be5144aa7650fa1d0f1a2cfdc9b250b5cceabd3f175991521480615ba981c6d0e812dbc95538abfd16b97b9f0499dd14e8c3ddc03d61cfd4146a
7
+ data.tar.gz: b9f38add02a025a1a7e6214fbaa34b9e2b9c0e92eabba6fcc515024bc629aa2818f3ca92aa6e956d6a136809644247a07d14da2664696e46553e89b4da9a0158
@@ -56,6 +56,7 @@ Gem::Specification.new do |s|
56
56
  ["debian", "libgirepository1.0-dev"],
57
57
  ["homebrew", "gobject-introspection"],
58
58
  ["macports", "gobject-introspection"],
59
+ ["msys2", "gobject-introspection"],
59
60
  ["rhel", "pkgconfig(gobject-introspection-1.0)"],
60
61
  ].each do |platform, package|
61
62
  s.requirements << "system: gobject-introspection-1.0: #{platform}: #{package}"
@@ -20,9 +20,16 @@ module GObjectIntrospection
20
20
  return nil if value.nil?
21
21
 
22
22
  type = gtype
23
- return value if type == GLib::Type::NONE
23
+ if type == GLib::Type::NONE
24
+ ns = namespace
25
+ return value unless Object.const_defined?(ns)
26
+ mod = Object.const_get(ns)
27
+ return value unless mod.const_defined?(name)
28
+ klass = mod.const_get(name)
29
+ else
30
+ klass = type.to_class
31
+ end
24
32
 
25
- klass = type.to_class
26
33
  case value
27
34
  when klass
28
35
  value
@@ -37,9 +37,9 @@ class TestTypeInfo < Test::Unit::TestCase
37
37
  end
38
38
 
39
39
  def test_interface
40
- function_info = @repository.find("GObject", "type_class_ref")
40
+ function_info = @repository.find("Gio", "app_info_create_from_commandline")
41
41
  info = function_info.return_type
42
- assert_kind_of(GObjectIntrospection::StructInfo,
42
+ assert_kind_of(GObjectIntrospection::InterfaceInfo,
43
43
  info.interface)
44
44
  end
45
45
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gobject-introspection
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.2
4
+ version: 4.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Ruby-GNOME Project Team
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 4.3.2
18
+ version: 4.3.4
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - '='
24
24
  - !ruby/object:Gem::Version
25
- version: 4.3.2
25
+ version: 4.3.4
26
26
  description: Ruby/GObjectIntrospection provides bindings of GObject Introspection
27
27
  and a loader module that can generate dynamically Ruby bindings of any GObject C
28
28
  libraries
@@ -155,6 +155,7 @@ requirements:
155
155
  - 'system: gobject-introspection-1.0: debian: libgirepository1.0-dev'
156
156
  - 'system: gobject-introspection-1.0: homebrew: gobject-introspection'
157
157
  - 'system: gobject-introspection-1.0: macports: gobject-introspection'
158
+ - 'system: gobject-introspection-1.0: msys2: gobject-introspection'
158
159
  - 'system: gobject-introspection-1.0: rhel: pkgconfig(gobject-introspection-1.0)'
159
160
  rubygems_version: 3.6.9
160
161
  specification_version: 4