gobject-introspection 3.2.4 → 3.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/gobject-introspection/rb-gi-argument.c +17 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5aa6d736b832c2fffd642caffedae16143e93b42b5d001d0a0f0e5ce478d53a4
|
4
|
+
data.tar.gz: 9f5f937a839add5dbbab97b15f63d8d5dbd0cd258d67250f8ac5e2f901ef19a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bce3bace0713af5b68600f40f7f13e9b6604cf487ca6d0bbedf9905c6c986c136ddb95ebe9fea9555c0c63905842f76f6eb1a8ae8059766ee556ffd4608959c
|
7
|
+
data.tar.gz: 68391bd819b87fedc5601dcd4889d2ba7679bdea07107041fc301a8a637ecfc14fcc1ca67841f1f7ec88be6d75bcbe7220da7e54dc5a65bc5bdbf299309ccf1b
|
@@ -23,6 +23,21 @@
|
|
23
23
|
static VALUE rb_cGLibValue = Qnil;
|
24
24
|
static VALUE rb_cGLibBytes = Qnil;
|
25
25
|
|
26
|
+
static gboolean
|
27
|
+
rb_gi_arg_info_may_be_null(GIArgInfo *arg_info)
|
28
|
+
{
|
29
|
+
#if GI_CHECK_VERSION(1, 42, 0)
|
30
|
+
return g_arg_info_may_be_null(arg_info);
|
31
|
+
#else
|
32
|
+
/*
|
33
|
+
GObject Introspection < 1.42 doesn't support "(nullable)" yet.
|
34
|
+
So, we assume that all argument may be NULL. It's danger but
|
35
|
+
convenient.
|
36
|
+
*/
|
37
|
+
return TRUE;
|
38
|
+
#endif
|
39
|
+
}
|
40
|
+
|
26
41
|
static const gchar *
|
27
42
|
rb_gi_transfer_to_string(GITransfer transfer)
|
28
43
|
{
|
@@ -3432,7 +3447,7 @@ rb_gi_in_argument_from_ruby(GICallableInfo *callable_info,
|
|
3432
3447
|
GITypeInfo type_info;
|
3433
3448
|
|
3434
3449
|
if (NIL_P(rb_argument)) {
|
3435
|
-
if (
|
3450
|
+
if (rb_gi_arg_info_may_be_null(arg_info)) {
|
3436
3451
|
memset(argument, 0, sizeof(GIArgument));
|
3437
3452
|
return argument;
|
3438
3453
|
} else {
|
@@ -4140,7 +4155,7 @@ rb_gi_in_array_argument_from_ruby(GIArgument *array_argument,
|
|
4140
4155
|
GITypeInfo length_type_info;
|
4141
4156
|
GITypeInfo *length_type_info_arg = NULL;
|
4142
4157
|
|
4143
|
-
if (
|
4158
|
+
if (NIL_P(rb_argument) && rb_gi_arg_info_may_be_null(array_arg_info)) {
|
4144
4159
|
memset(array_argument, 0, sizeof(GIArgument));
|
4145
4160
|
if (length_argument) {
|
4146
4161
|
memset(length_argument, 0, sizeof(GIArgument));
|
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.2.
|
4
|
+
version: 3.2.5
|
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-
|
11
|
+
date: 2018-05-02 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.2.
|
19
|
+
version: 3.2.5
|
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.2.
|
26
|
+
version: 3.2.5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: test-unit
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|