gobject-introspection 3.1.3 → 3.1.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
  SHA1:
3
- metadata.gz: e43e406158831356a52030b7b5b3d61f07a5a339
4
- data.tar.gz: 0a8d7c7ca0a229194e91679b9d6791d880770b96
3
+ metadata.gz: 4935fdce680b364089d2f0f81724da98f7cf4a30
4
+ data.tar.gz: 8afbce367cbe0cccccb99961df8f97066dfb1770
5
5
  SHA512:
6
- metadata.gz: 23fc5c13be330165b562cc4e16bd0ba78eb9cde9013aa1dbf970cc27cad7f08dfaca733c87fe066ded2ee2e3640de8ddd8a1f5ec9ae4dd648058520bffc2a16c
7
- data.tar.gz: 87857b500dcb50c80e69497315e2273715da89338dfcccdc6954d1de6f3320ada8518e90364ee242d509d2fae25858ee6cc9b393974fce95bcda7f662681b3bb
6
+ metadata.gz: ec2f7fea384fd2ec5732b625eca757cae12e15765abae5f884205b340bd7084f690af0379a58d90d9e5fc1c60a924187b75a1b742a0cb0c8f7bf43e66ef12f3f
7
+ data.tar.gz: d33b848ee3943c5907a1e7efbdba81d350e6e482239ec0dfe38cd66d3b52ab0090628c106840ed9fe2e18dd9eda5efa67ad1da789bb8454dbe7d21d4e098767f
@@ -62,7 +62,8 @@ unless required_pkg_config_package(package_id,
62
62
  :redhat => "gobject-introspection-devel",
63
63
  :homebrew => "gobject-introspection",
64
64
  :arch_linux => "gobject-introspection",
65
- :macports => "gobject-introspection")
65
+ :macports => "gobject-introspection",
66
+ :msys2 => "gobject-introspection")
66
67
  exit(false)
67
68
  end
68
69
 
@@ -2150,7 +2150,11 @@ rb_gi_return_argument_free_everything_interface(GIArgument *argument,
2150
2150
  break;
2151
2151
  case GI_INFO_TYPE_OBJECT:
2152
2152
  if (argument->v_pointer) {
2153
- g_object_unref(argument->v_pointer);
2153
+ GObject *object = argument->v_pointer;
2154
+ if (g_object_is_floating(object)) {
2155
+ g_object_ref_sink(object);
2156
+ }
2157
+ g_object_unref(object);
2154
2158
  }
2155
2159
  break;
2156
2160
  case GI_INFO_TYPE_INTERFACE:
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2012 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2012-2017 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,7 +18,14 @@ class TestConstantInfo < Test::Unit::TestCase
18
18
  def setup
19
19
  @repository = GObjectIntrospection::Repository.default
20
20
  @repository.require("GObject")
21
- # TODO: find ConstantInfo
22
- # @info = @repository.find("GObject", "Object")
21
+ @info = @repository.find("GObject", "SIGNAL_FLAGS_MASK")
22
+ end
23
+
24
+ def test_type
25
+ assert_equal(GObjectIntrospection::TypeTag::INT32, @info.type.tag)
26
+ end
27
+
28
+ def test_value
29
+ assert_equal(511, @info.value)
23
30
  end
24
31
  end
@@ -44,7 +44,7 @@ class TestUnionInfo < Test::Unit::TestCase
44
44
  end
45
45
 
46
46
  def test_alignment
47
- assert_operator(@info.alignment, :>=, 8)
47
+ assert_operator(@info.alignment, :>=, 4)
48
48
  end
49
49
 
50
50
  def test_discriminated
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gobject-introspection
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.3
4
+ version: 3.1.4
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: 2017-04-27 00:00:00.000000000 Z
11
+ date: 2017-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: glib2
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.1.3
19
+ version: 3.1.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.1.3
26
+ version: 3.1.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: test-unit
29
29
  requirement: !ruby/object:Gem::Requirement