gobject-introspection 3.1.0-x86-mingw32 → 3.1.1-x86-mingw32
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 +14 -0
- data/ext/gobject-introspection/rb-gi-constructor-info.c +28 -6
- data/lib/2.2/gobject_introspection.so +0 -0
- data/lib/2.3/gobject_introspection.so +0 -0
- data/lib/2.4/gobject_introspection.so +0 -0
- data/lib/gobject-introspection/loader.rb +14 -3
- data/vendor/local/bin/g-ir-compiler.exe +0 -0
- data/vendor/local/bin/g-ir-generate.exe +0 -0
- data/vendor/local/bin/g-ir-inspect.exe +0 -0
- data/vendor/local/bin/libgirepository-1.0-1.dll +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/ast.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/ast.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/message.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/message.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/msvccompiler.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/msvccompiler.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/utils.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/utils.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyo +0 -0
- data/vendor/local/lib/libgirepository-1.0.dll.a +0 -0
- metadata +9 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4dde4e33a1134b3a3fe7791f9e7bb1d58860c63c
|
4
|
+
data.tar.gz: f1a04c1efa74ae5ea3af1e6adc97d0e1178d8332
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8caa208a528b2680ad2dd7a8941f3e087f75f39db461ae92810a5a63f28f90fed216fc4eda51692dcf626fdb32c685fd13b0a0c33fdc406e7ce9f7190ae609b
|
7
|
+
data.tar.gz: 40fe50407fe05aeaba84c09e45401253fc62608a86f801e0818f94802128b7144fb3ff0cd48cb713f53188804e11d1a5a6506dba72acb072bbfcc562cd17e2d7
|
@@ -1207,7 +1207,14 @@ rb_gi_out_argument_init_array_c(GIArgument *argument,
|
|
1207
1207
|
case GI_TYPE_TAG_VOID:
|
1208
1208
|
case GI_TYPE_TAG_BOOLEAN:
|
1209
1209
|
case GI_TYPE_TAG_INT8:
|
1210
|
+
g_base_info_unref(element_type_info);
|
1211
|
+
rb_raise(rb_eNotImpError,
|
1212
|
+
"TODO: allocates GIArgument(array)[c][%s] for output",
|
1213
|
+
g_type_tag_to_string(element_type_tag));
|
1214
|
+
break;
|
1210
1215
|
case GI_TYPE_TAG_UINT8:
|
1216
|
+
argument->v_pointer = xmalloc(sizeof(guint8 *));
|
1217
|
+
break;
|
1211
1218
|
case GI_TYPE_TAG_INT16:
|
1212
1219
|
case GI_TYPE_TAG_UINT16:
|
1213
1220
|
case GI_TYPE_TAG_INT32:
|
@@ -1757,7 +1764,14 @@ rb_gi_out_argument_fin_array_c(GIArgument *argument,
|
|
1757
1764
|
case GI_TYPE_TAG_VOID:
|
1758
1765
|
case GI_TYPE_TAG_BOOLEAN:
|
1759
1766
|
case GI_TYPE_TAG_INT8:
|
1767
|
+
g_base_info_unref(element_type_info);
|
1768
|
+
rb_raise(rb_eNotImpError,
|
1769
|
+
"TODO: free out GIArgument(array)[c][%s]",
|
1770
|
+
g_type_tag_to_string(element_type_tag));
|
1771
|
+
break;
|
1760
1772
|
case GI_TYPE_TAG_UINT8:
|
1773
|
+
xfree(argument->v_pointer);
|
1774
|
+
break;
|
1761
1775
|
case GI_TYPE_TAG_INT16:
|
1762
1776
|
case GI_TYPE_TAG_UINT16:
|
1763
1777
|
case GI_TYPE_TAG_INT32:
|
@@ -36,21 +36,45 @@ gi_constructor_info_get_type(void)
|
|
36
36
|
}
|
37
37
|
|
38
38
|
static void
|
39
|
-
initialize_receiver(VALUE receiver,
|
39
|
+
initialize_receiver(VALUE receiver,
|
40
|
+
GICallableInfo *callable_info,
|
41
|
+
GIArgument *value)
|
40
42
|
{
|
43
|
+
GITypeInfo return_value_info;
|
41
44
|
GIBaseInfo *interface_info;
|
42
45
|
GIInfoType interface_type;
|
43
46
|
|
44
|
-
|
47
|
+
g_callable_info_load_return_type(callable_info, &return_value_info);
|
48
|
+
|
49
|
+
if (g_type_info_get_tag(&return_value_info) != GI_TYPE_TAG_INTERFACE) {
|
45
50
|
rb_raise(rb_eRuntimeError, "TODO: returned value isn't interface");
|
46
51
|
}
|
47
52
|
|
48
|
-
interface_info = g_type_info_get_interface(
|
53
|
+
interface_info = g_type_info_get_interface(&return_value_info);
|
49
54
|
interface_type = g_base_info_get_type(interface_info);
|
50
55
|
g_base_info_unref(interface_info);
|
51
56
|
switch (interface_type) {
|
52
57
|
case GI_INFO_TYPE_OBJECT:
|
53
58
|
G_INITIALIZE(receiver, value->v_pointer);
|
59
|
+
{
|
60
|
+
gboolean was_floating;
|
61
|
+
was_floating = g_object_is_floating(value->v_pointer);
|
62
|
+
g_object_ref_sink(value->v_pointer);
|
63
|
+
switch (g_callable_info_get_caller_owns(callable_info)) {
|
64
|
+
case GI_TRANSFER_NOTHING:
|
65
|
+
break;
|
66
|
+
case GI_TRANSFER_CONTAINER:
|
67
|
+
break;
|
68
|
+
case GI_TRANSFER_EVERYTHING:
|
69
|
+
if (!was_floating) {
|
70
|
+
g_object_unref(value->v_pointer);
|
71
|
+
}
|
72
|
+
break;
|
73
|
+
default:
|
74
|
+
g_assert_not_reached();
|
75
|
+
break;
|
76
|
+
}
|
77
|
+
}
|
54
78
|
break;
|
55
79
|
case GI_INFO_TYPE_STRUCT:
|
56
80
|
G_INITIALIZE(receiver, value->v_pointer);
|
@@ -91,7 +115,6 @@ rg_invoke(VALUE self, VALUE rb_receiver, VALUE rb_arguments)
|
|
91
115
|
GIFunctionInfo *info;
|
92
116
|
GICallableInfo *callable_info;
|
93
117
|
GIArgument return_value;
|
94
|
-
GITypeInfo return_value_info;
|
95
118
|
|
96
119
|
info = SELF(self);
|
97
120
|
callable_info = (GICallableInfo *)info;
|
@@ -107,8 +130,7 @@ rg_invoke(VALUE self, VALUE rb_receiver, VALUE rb_arguments)
|
|
107
130
|
&return_value,
|
108
131
|
NULL);
|
109
132
|
|
110
|
-
|
111
|
-
initialize_receiver(rb_receiver, &return_value_info, &return_value);
|
133
|
+
initialize_receiver(rb_receiver, callable_info, &return_value);
|
112
134
|
|
113
135
|
return rb_receiver;
|
114
136
|
}
|
Binary file
|
Binary file
|
Binary file
|
@@ -37,7 +37,10 @@ module GObjectIntrospection
|
|
37
37
|
repository.require(namespace, @version)
|
38
38
|
pre_load(repository, namespace)
|
39
39
|
repository.each(namespace) do |info|
|
40
|
-
load_info(info)
|
40
|
+
load_info(info) if info.is_a?(InterfaceInfo)
|
41
|
+
end
|
42
|
+
repository.each(namespace) do |info|
|
43
|
+
load_info(info) unless info.is_a?(InterfaceInfo)
|
41
44
|
end
|
42
45
|
post_load(repository, namespace)
|
43
46
|
end
|
@@ -270,6 +273,10 @@ module GObjectIntrospection
|
|
270
273
|
raise "TODO: #{method_info_class}"
|
271
274
|
end
|
272
275
|
end
|
276
|
+
if klass.method_defined?(:each) and
|
277
|
+
klass.instance_method(:each).owner == klass
|
278
|
+
klass.include(Enumerable)
|
279
|
+
end
|
273
280
|
end
|
274
281
|
|
275
282
|
def load_constructor_infos(infos, klass)
|
@@ -302,8 +309,6 @@ module GObjectIntrospection
|
|
302
309
|
end
|
303
310
|
|
304
311
|
def initialize_post(object)
|
305
|
-
return unless object.is_a?(GLib::Object)
|
306
|
-
self.class.reference_gobject(object, :sink => true)
|
307
312
|
end
|
308
313
|
|
309
314
|
def find_suitable_callable_info(infos, arguments)
|
@@ -413,6 +418,12 @@ module GObjectIntrospection
|
|
413
418
|
case return_type_tag
|
414
419
|
when TypeTag::BOOLEAN
|
415
420
|
case name
|
421
|
+
when "equal"
|
422
|
+
if function_info.n_in_args == 1
|
423
|
+
"=="
|
424
|
+
else
|
425
|
+
name
|
426
|
+
end
|
416
427
|
when /\A(?:is|get_is|can_be)_/
|
417
428
|
"#{$POSTMATCH}?"
|
418
429
|
when /\Aget_/
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
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.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: x86-mingw32
|
6
6
|
authors:
|
7
7
|
- The Ruby-GNOME2 Project Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-26 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.
|
19
|
+
version: 3.1.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.1.
|
26
|
+
version: 3.1.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: test-unit
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -83,6 +83,7 @@ files:
|
|
83
83
|
- extconf.rb
|
84
84
|
- lib/2.2/gobject_introspection.so
|
85
85
|
- lib/2.3/gobject_introspection.so
|
86
|
+
- lib/2.4/gobject_introspection.so
|
86
87
|
- lib/gi.rb
|
87
88
|
- lib/gobject-introspection.rb
|
88
89
|
- lib/gobject-introspection/arg-info.rb
|
@@ -354,7 +355,10 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
354
355
|
requirements:
|
355
356
|
- - ">="
|
356
357
|
- !ruby/object:Gem::Version
|
357
|
-
version: 2.1
|
358
|
+
version: '2.1'
|
359
|
+
- - "<"
|
360
|
+
- !ruby/object:Gem::Version
|
361
|
+
version: '2.5'
|
358
362
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
359
363
|
requirements:
|
360
364
|
- - ">="
|