gobject-introspection 3.1.0-x64-mingw32 → 3.1.1-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/ext/gobject-introspection/rb-gi-argument.c +14 -0
  3. data/ext/gobject-introspection/rb-gi-constructor-info.c +28 -6
  4. data/lib/2.2/gobject_introspection.so +0 -0
  5. data/lib/2.3/gobject_introspection.so +0 -0
  6. data/lib/2.4/gobject_introspection.so +0 -0
  7. data/lib/gobject-introspection/loader.rb +14 -3
  8. data/vendor/local/bin/g-ir-compiler.exe +0 -0
  9. data/vendor/local/bin/g-ir-generate.exe +0 -0
  10. data/vendor/local/bin/g-ir-inspect.exe +0 -0
  11. data/vendor/local/bin/libgirepository-1.0-1.dll +0 -0
  12. data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyc +0 -0
  13. data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyo +0 -0
  14. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyc +0 -0
  15. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyo +0 -0
  16. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyc +0 -0
  17. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyo +0 -0
  18. data/vendor/local/lib/gobject-introspection/giscanner/ast.pyc +0 -0
  19. data/vendor/local/lib/gobject-introspection/giscanner/ast.pyo +0 -0
  20. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyc +0 -0
  21. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyo +0 -0
  22. data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyc +0 -0
  23. data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyo +0 -0
  24. data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyc +0 -0
  25. data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyo +0 -0
  26. data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.pyc +0 -0
  27. data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.pyo +0 -0
  28. data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.pyc +0 -0
  29. data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.pyo +0 -0
  30. data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.pyc +0 -0
  31. data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.pyo +0 -0
  32. data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyc +0 -0
  33. data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyo +0 -0
  34. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyc +0 -0
  35. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyo +0 -0
  36. data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyc +0 -0
  37. data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyo +0 -0
  38. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyc +0 -0
  39. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyo +0 -0
  40. data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyc +0 -0
  41. data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyo +0 -0
  42. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyc +0 -0
  43. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyo +0 -0
  44. data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyc +0 -0
  45. data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyo +0 -0
  46. data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyc +0 -0
  47. data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyo +0 -0
  48. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyc +0 -0
  49. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyo +0 -0
  50. data/vendor/local/lib/gobject-introspection/giscanner/message.pyc +0 -0
  51. data/vendor/local/lib/gobject-introspection/giscanner/message.pyo +0 -0
  52. data/vendor/local/lib/gobject-introspection/giscanner/msvccompiler.pyc +0 -0
  53. data/vendor/local/lib/gobject-introspection/giscanner/msvccompiler.pyo +0 -0
  54. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyc +0 -0
  55. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyo +0 -0
  56. data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyc +0 -0
  57. data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyo +0 -0
  58. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyc +0 -0
  59. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyo +0 -0
  60. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyc +0 -0
  61. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyo +0 -0
  62. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyc +0 -0
  63. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyo +0 -0
  64. data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyc +0 -0
  65. data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyo +0 -0
  66. data/vendor/local/lib/gobject-introspection/giscanner/utils.pyc +0 -0
  67. data/vendor/local/lib/gobject-introspection/giscanner/utils.pyo +0 -0
  68. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyc +0 -0
  69. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyo +0 -0
  70. data/vendor/local/lib/libgirepository-1.0.dll.a +0 -0
  71. metadata +9 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ee5d78c0de22a2e01e57020eec6c61dd66d9b95
4
- data.tar.gz: 1440200d25f98954ac84f066c83dd3303532ea2d
3
+ metadata.gz: 5c151955ffac63fdb935650c3d3e135e0f04a19e
4
+ data.tar.gz: f4a3ebba5c63a9304e9de4de45c1f6bbbcf3dda3
5
5
  SHA512:
6
- metadata.gz: a251544fd4f6839535dd4f7bc80b2d480d3bc7732f83c13f7934ee66798f1b0cc988338e2706812ec5f65bc5089185f253c22d2d4ad4f2dda52c3a5271fd9c52
7
- data.tar.gz: a3b1cad486eb121c8802b2721b0b75f06c58c5dcb8938f79d7d267deadc975a42372932fc65c736c5c7e6521cd7ea92a9b6d04aeb81520de1ba226de6efb01bd
6
+ metadata.gz: 34eacb95e2d1163524cbe0b99cf71e1d24bfc5860173cfea2e25abc87d22f26885d4f24c0dfe0d3b4a317bbfcff142bc53d514c8d47e4adc7246237944511b06
7
+ data.tar.gz: ff6af767fe2a77696c1fde0e731700b5b124bf9db46cd7a933cb378f1bc21926d1d18ad327528b5c863517afcf4eaf554502968ba9ae5a7c4cab6a6270d6d15e
@@ -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, GITypeInfo *info, GIArgument *value)
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
- if (g_type_info_get_tag(info) != GI_TYPE_TAG_INTERFACE) {
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(info);
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
- g_callable_info_load_return_type(callable_info, &return_value_info);
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
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.0
4
+ version: 3.1.1
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - The Ruby-GNOME2 Project Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-13 00:00:00.000000000 Z
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.0
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.0
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.0
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
  - - ">="