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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 640a0d7ecb901542a4cef883d7c429037969ba95111b02abdc7a1e6a146e3355
4
- data.tar.gz: 3c63907821037ca7cefd5e32de58d577e6cafb3a73d395c566a8df52a3f52bd9
3
+ metadata.gz: 5aa6d736b832c2fffd642caffedae16143e93b42b5d001d0a0f0e5ce478d53a4
4
+ data.tar.gz: 9f5f937a839add5dbbab97b15f63d8d5dbd0cd258d67250f8ac5e2f901ef19a8
5
5
  SHA512:
6
- metadata.gz: a02a2f69e6a0f2f02d8998660920e5e01cff68697e2f51e8fa5af247b2a1e13be5ce77991fbcff80c7238136be309ffaef0de3d22c1e202c5ae505b59232f0f9
7
- data.tar.gz: 38d67c35e15195743c96b9553585bbc4e1674005e2fd084e5dc911b133d6e194b27ab808f2050c8d183640ac50292c3e0595881672851727599e58abc95bf24a
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 (g_arg_info_may_be_null(arg_info)) {
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 (g_arg_info_may_be_null(array_arg_info) && NIL_P(rb_argument)) {
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
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-04-09 00:00:00.000000000 Z
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.4
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.4
26
+ version: 3.2.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: test-unit
29
29
  requirement: !ruby/object:Gem::Requirement