gobject-introspection 2.2.3-x86-mingw32 → 2.2.4-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +19 -11
  3. data/ext/gobject-introspection/extconf.rb +1 -1
  4. data/ext/gobject-introspection/rb-gi-argument.c +119 -3
  5. data/ext/gobject-introspection/rb-gi-function-info.c +4 -0
  6. data/ext/gobject-introspection/rb-gi-repository.c +82 -0
  7. data/lib/2.0/gobject_introspection.so +0 -0
  8. data/lib/2.1/gobject_introspection.so +0 -0
  9. data/lib/2.2/gobject_introspection.so +0 -0
  10. data/lib/gobject-introspection/loader.rb +11 -2
  11. data/vendor/local/bin/g-ir-compiler.exe +0 -0
  12. data/vendor/local/bin/g-ir-generate.exe +0 -0
  13. data/vendor/local/bin/libgirepository-1.0-1.dll +0 -0
  14. data/vendor/local/lib/girepository-1.0/GLib-2.0.typelib +0 -0
  15. data/vendor/local/lib/girepository-1.0/Gio-2.0.typelib +0 -0
  16. data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyc +0 -0
  17. data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyo +0 -0
  18. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyc +0 -0
  19. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyo +0 -0
  20. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyc +0 -0
  21. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyo +0 -0
  22. data/vendor/local/lib/gobject-introspection/giscanner/ast.pyc +0 -0
  23. data/vendor/local/lib/gobject-introspection/giscanner/ast.pyo +0 -0
  24. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyc +0 -0
  25. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyo +0 -0
  26. data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyc +0 -0
  27. data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyo +0 -0
  28. data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyc +0 -0
  29. data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyo +0 -0
  30. data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.pyc +0 -0
  31. data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.pyo +0 -0
  32. data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.pyc +0 -0
  33. data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.pyo +0 -0
  34. data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.pyc +0 -0
  35. data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.pyo +0 -0
  36. data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyc +0 -0
  37. data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyo +0 -0
  38. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyc +0 -0
  39. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyo +0 -0
  40. data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyc +0 -0
  41. data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyo +0 -0
  42. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyc +0 -0
  43. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyo +0 -0
  44. data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyc +0 -0
  45. data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyo +0 -0
  46. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyc +0 -0
  47. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyo +0 -0
  48. data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyc +0 -0
  49. data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyo +0 -0
  50. data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyc +0 -0
  51. data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyo +0 -0
  52. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyc +0 -0
  53. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyo +0 -0
  54. data/vendor/local/lib/gobject-introspection/giscanner/message.pyc +0 -0
  55. data/vendor/local/lib/gobject-introspection/giscanner/message.pyo +0 -0
  56. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyc +0 -0
  57. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyo +0 -0
  58. data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyc +0 -0
  59. data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyo +0 -0
  60. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyc +0 -0
  61. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyo +0 -0
  62. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyc +0 -0
  63. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyo +0 -0
  64. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyc +0 -0
  65. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyo +0 -0
  66. data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyc +0 -0
  67. data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyo +0 -0
  68. data/vendor/local/lib/gobject-introspection/giscanner/utils.pyc +0 -0
  69. data/vendor/local/lib/gobject-introspection/giscanner/utils.pyo +0 -0
  70. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyc +0 -0
  71. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyo +0 -0
  72. data/vendor/local/lib/libgirepository-1.0.a +0 -0
  73. data/vendor/local/lib/libgirepository-1.0.dll.a +0 -0
  74. data/vendor/local/lib/libgirepository-1.0.la +2 -2
  75. data/vendor/local/lib/pkgconfig/gobject-introspection-1.0.pc +2 -4
  76. data/vendor/local/lib/pkgconfig/gobject-introspection-no-export-1.0.pc +1 -1
  77. data/vendor/local/lib/pkgconfig/patched +0 -0
  78. data/vendor/local/share/gir-1.0/GLib-2.0.gir +1 -1
  79. data/vendor/local/share/gir-1.0/Gio-2.0.gir +8 -8
  80. metadata +6 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d657438409a13aaf6560949c1680267edd07eb03
4
- data.tar.gz: ae8cc3733d140f3e5867edac63395b0a2b235bb7
3
+ metadata.gz: 4e17393716b80047d695287a2c3b1fe99fec0b80
4
+ data.tar.gz: 90221a7ed2be8a750ccc8ab3555260412e1b7447
5
5
  SHA512:
6
- metadata.gz: 73bd4ea786d655b095d1799670077798bb6eeb55f5f04f95de4f5397ddb1446aa53023894a2da2cd74b1a88715ce6dbfc68119d5e6293ecc40bf4bfd5e0fc78f
7
- data.tar.gz: 4e9107001ac42056971f66225da0084e48d6cbf2476da3b0386656fc8b9b9e93c9dac84779317b591c17b9dfa6694733d5667f820c57569c57208780a6976f6f
6
+ metadata.gz: 4adc91adec64641200c8bd5450a1f4fc4edfbc44de0c7c3b26675ad0abc67f67076a6de403cbb10e22b64f60289c03adb7021e2d23d0e131c6d3c0c0458eb1f0
7
+ data.tar.gz: ab67e946f6c90f8fce65a9d7ac3608fe6339190014494b366d992cfa719ab30c8fc6373b5b11fb6834632ee85e2ddfd79669aa731606eaecfdacde4767196681
data/Rakefile CHANGED
@@ -32,7 +32,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
32
32
  :name => "glib",
33
33
  :download_site => :gnome,
34
34
  :label => "GLib",
35
- :version => "2.42.0",
35
+ :version => "2.42.1",
36
36
  :compression_method => "xz",
37
37
  :windows => {
38
38
  :build => false,
@@ -74,16 +74,20 @@ package_task.define
74
74
 
75
75
  namespace :native do
76
76
  namespace :"gobject-introspection" do
77
- desc "Make g-ir-scanner workable for Windows on non Windows"
78
- task :cross do
79
- g_ir_scanner_dir = package_task.native.absolute_binary_dir
80
- g_ir_scanner_dir += "lib/gobject-introspection/giscanner"
77
+ g_ir_scanner_dir = package_task.native.absolute_binary_dir
78
+ g_ir_scanner_dir += "lib/gobject-introspection/giscanner"
79
+ patched_path = g_ir_scanner_dir + "patched"
80
+ file patched_path.to_s do
81
81
  Dir.chdir(g_ir_scanner_dir.to_s) do
82
82
  patch = "#{package_task.package.patches_dir}/cross-g-ir-scanner.diff"
83
83
  sh("patch -p2 < #{patch}")
84
84
  rm_f(Dir.glob("*.{pyc,pyo}"))
85
85
  end
86
+ touch(patched_path)
86
87
  end
88
+
89
+ desc "Make g-ir-scanner workable for Windows on non Windows"
90
+ task :cross => patched_path
87
91
  end
88
92
 
89
93
  namespace :builder do
@@ -91,12 +95,12 @@ namespace :native do
91
95
  end
92
96
  end
93
97
 
94
- namespace :win32 do
98
+ namespace :windows do
95
99
  namespace :"gobject-introspection" do
96
- desc "Use native tools"
97
- task :cross do
98
- pkg_config_dir = package_task.windows.absolute_binary_dir + "lib/pkgconfig"
99
- pc_path = pkg_config_dir + "gobject-introspection-1.0.pc"
100
+ pkg_config_dir = package_task.windows.absolute_binary_dir + "lib/pkgconfig"
101
+ pc_path = pkg_config_dir + "gobject-introspection-1.0.pc"
102
+ patched_path = pkg_config_dir + "patched"
103
+ file patched_path.to_s do
100
104
  original_pc = pc_path.read
101
105
  new_pc = ""
102
106
  new_pc << "native_prefix=#{package_task.native.absolute_binary_dir}\n"
@@ -112,10 +116,14 @@ namespace :win32 do
112
116
  pc_path.open("w") do |pc_file|
113
117
  pc_file.write(new_pc)
114
118
  end
119
+ touch(patched_path)
115
120
  end
121
+
122
+ desc "Use native tools"
123
+ task :cross => patched_path.to_s
116
124
  end
117
125
 
118
126
  namespace :builder do
119
- task :after => "win32:gobject-introspection:cross"
127
+ task :after => "windows:gobject-introspection:cross"
120
128
  end
121
129
  end
@@ -54,7 +54,7 @@ end
54
54
  :target_build_dir => build_dir)
55
55
  end
56
56
 
57
- setup_win32(module_name, base_dir)
57
+ setup_windows(module_name, base_dir)
58
58
 
59
59
  unless required_pkg_config_package(package_id,
60
60
  :debian => "libgirepository1.0-dev",
@@ -274,6 +274,65 @@ interface_to_ruby(GIArgument *argument, GITypeInfo *type_info)
274
274
  return rb_interface;
275
275
  }
276
276
 
277
+ static VALUE
278
+ rb_gi_argument_to_ruby_glist(GIArgument *argument, GITypeInfo *type_info)
279
+ {
280
+ VALUE rb_argument;
281
+ GITypeInfo *element_type_info;
282
+ GITypeTag element_type_tag;
283
+
284
+ element_type_info = g_type_info_get_param_type(type_info, 0);
285
+ element_type_tag = g_type_info_get_tag(element_type_info);
286
+ g_base_info_unref(element_type_info);
287
+
288
+ switch (element_type_tag) {
289
+ case GI_TYPE_TAG_VOID:
290
+ case GI_TYPE_TAG_BOOLEAN:
291
+ case GI_TYPE_TAG_INT8:
292
+ case GI_TYPE_TAG_UINT8:
293
+ case GI_TYPE_TAG_INT16:
294
+ case GI_TYPE_TAG_UINT16:
295
+ case GI_TYPE_TAG_INT32:
296
+ case GI_TYPE_TAG_UINT32:
297
+ case GI_TYPE_TAG_INT64:
298
+ case GI_TYPE_TAG_UINT64:
299
+ case GI_TYPE_TAG_FLOAT:
300
+ case GI_TYPE_TAG_DOUBLE:
301
+ case GI_TYPE_TAG_GTYPE:
302
+ rb_raise(rb_eNotImpError,
303
+ "TODO: GIArgument(GList)[%s] -> Ruby",
304
+ g_type_tag_to_string(element_type_tag));
305
+ break;
306
+ case GI_TYPE_TAG_UTF8:
307
+ rb_argument = CSTRGLIST2RVAL(argument->v_pointer);
308
+ break;
309
+ case GI_TYPE_TAG_FILENAME:
310
+ case GI_TYPE_TAG_ARRAY:
311
+ rb_raise(rb_eNotImpError,
312
+ "TODO: GIArgument(GList)[%s] -> Ruby",
313
+ g_type_tag_to_string(element_type_tag));
314
+ break;
315
+ case GI_TYPE_TAG_INTERFACE:
316
+ GOBJGLIST2RVAL(argument->v_pointer);
317
+ break;
318
+ case GI_TYPE_TAG_GLIST:
319
+ case GI_TYPE_TAG_GSLIST:
320
+ case GI_TYPE_TAG_GHASH:
321
+ case GI_TYPE_TAG_ERROR:
322
+ case GI_TYPE_TAG_UNICHAR:
323
+ rb_raise(rb_eNotImpError,
324
+ "TODO: GIArgument(GList)[%s] -> Ruby",
325
+ g_type_tag_to_string(element_type_tag));
326
+ break;
327
+ default:
328
+ g_assert_not_reached();
329
+ break;
330
+ }
331
+
332
+ return rb_argument;
333
+ }
334
+
335
+
277
336
  VALUE
278
337
  rb_gi_argument_to_ruby(GIArgument *argument, GITypeInfo *type_info)
279
338
  {
@@ -340,7 +399,7 @@ rb_gi_argument_to_ruby(GIArgument *argument, GITypeInfo *type_info)
340
399
  rb_argument = interface_to_ruby(argument, type_info);
341
400
  break;
342
401
  case GI_TYPE_TAG_GLIST:
343
- rb_argument = GOBJGLIST2RVAL(argument->v_pointer);
402
+ rb_argument = rb_gi_argument_to_ruby_glist(argument, type_info);
344
403
  break;
345
404
  case GI_TYPE_TAG_GSLIST:
346
405
  case GI_TYPE_TAG_GHASH:
@@ -843,6 +902,64 @@ rb_gi_return_argument_free_everything_interface(GIArgument *argument,
843
902
  }
844
903
  }
845
904
 
905
+ static void
906
+ rb_gi_return_argument_free_everything_glist(GIArgument *argument,
907
+ GITypeInfo *type_info)
908
+ {
909
+ GITypeInfo *element_type_info;
910
+ GITypeTag element_type_tag;
911
+
912
+ element_type_info = g_type_info_get_param_type(type_info, 0);
913
+ element_type_tag = g_type_info_get_tag(element_type_info);
914
+ g_base_info_unref(element_type_info);
915
+
916
+ switch (element_type_tag) {
917
+ case GI_TYPE_TAG_VOID:
918
+ case GI_TYPE_TAG_BOOLEAN:
919
+ case GI_TYPE_TAG_INT8:
920
+ case GI_TYPE_TAG_UINT8:
921
+ case GI_TYPE_TAG_INT16:
922
+ case GI_TYPE_TAG_UINT16:
923
+ case GI_TYPE_TAG_INT32:
924
+ case GI_TYPE_TAG_UINT32:
925
+ case GI_TYPE_TAG_INT64:
926
+ case GI_TYPE_TAG_UINT64:
927
+ case GI_TYPE_TAG_FLOAT:
928
+ case GI_TYPE_TAG_DOUBLE:
929
+ case GI_TYPE_TAG_GTYPE:
930
+ rb_raise(rb_eNotImpError,
931
+ "TODO: free GIArgument(GList)[%s] everything",
932
+ g_type_tag_to_string(element_type_tag));
933
+ break;
934
+ case GI_TYPE_TAG_UTF8:
935
+ g_list_foreach(argument->v_pointer, (GFunc)g_free, NULL);
936
+ g_list_free(argument->v_pointer);
937
+ break;
938
+ case GI_TYPE_TAG_FILENAME:
939
+ case GI_TYPE_TAG_ARRAY:
940
+ rb_raise(rb_eNotImpError,
941
+ "TODO: free GIArgument(GList)[%s] everything",
942
+ g_type_tag_to_string(element_type_tag));
943
+ break;
944
+ case GI_TYPE_TAG_INTERFACE:
945
+ g_list_foreach(argument->v_pointer, (GFunc)g_object_unref, NULL);
946
+ g_list_free(argument->v_pointer);
947
+ break;
948
+ case GI_TYPE_TAG_GLIST:
949
+ case GI_TYPE_TAG_GSLIST:
950
+ case GI_TYPE_TAG_GHASH:
951
+ case GI_TYPE_TAG_ERROR:
952
+ case GI_TYPE_TAG_UNICHAR:
953
+ rb_raise(rb_eNotImpError,
954
+ "TODO: free GIArgument(GList)[%s] everything",
955
+ g_type_tag_to_string(element_type_tag));
956
+ break;
957
+ default:
958
+ g_assert_not_reached();
959
+ break;
960
+ }
961
+ }
962
+
846
963
  static void
847
964
  rb_gi_return_argument_free_everything(GIArgument *argument,
848
965
  GITypeInfo *type_info)
@@ -883,8 +1000,7 @@ rb_gi_return_argument_free_everything(GIArgument *argument,
883
1000
  rb_gi_return_argument_free_everything_interface(argument, type_info);
884
1001
  break;
885
1002
  case GI_TYPE_TAG_GLIST:
886
- g_list_foreach(argument->v_pointer, (GFunc)g_object_unref, NULL);
887
- g_list_free(argument->v_pointer);
1003
+ rb_gi_return_argument_free_everything_glist(argument, type_info);
888
1004
  break;
889
1005
  case GI_TYPE_TAG_GSLIST:
890
1006
  case GI_TYPE_TAG_GHASH:
@@ -232,6 +232,10 @@ fill_metadata_rb_arg_index(GPtrArray *args_metadata)
232
232
  continue;
233
233
  }
234
234
 
235
+ if (metadata->in_arg_index == -1) {
236
+ continue;
237
+ }
238
+
235
239
  metadata->rb_arg_index = rb_arg_index;
236
240
  rb_arg_index++;
237
241
  }
@@ -18,17 +18,43 @@
18
18
  * MA 02110-1301 USA
19
19
  */
20
20
 
21
+
22
+ /* GObjectIntrospection::Repository is used to manage repositories of
23
+ * namespaces. Namespaces are represented on disk by type libraries
24
+ * (.typelib files).
25
+ */
26
+
21
27
  #include "rb-gi-private.h"
22
28
 
23
29
  #define RG_TARGET_NAMESPACE rb_cGIRepository
24
30
  #define SELF(self) RVAL2GI_REPOSITORY(self)
25
31
 
32
+
33
+ /* Returns the singleton process-global default
34
+ * GObjectIntrospection::Repository. It is not currently supported to have
35
+ * multiple repositories in a particular process, but this function is provided
36
+ * in the unlikely eventuality that it would become possible, and as a
37
+ * convenience for higher level language bindings to conform to the GObject
38
+ * method call conventions.
39
+ *
40
+ * @return [GObjectIntrospection::Repository] The global singleton
41
+ * GObjectIntrospection::Repository.
42
+ */
26
43
  static VALUE
27
44
  rg_s_default(G_GNUC_UNUSED VALUE klass)
28
45
  {
29
46
  return GOBJ2RVAL(g_irepository_get_default());
30
47
  }
31
48
 
49
+
50
+ /* Force the namespace to be loaded if it isn't already. If namespace is not
51
+ * loaded, this function will search for a ".typelib" file using the repository
52
+ * search path. In addition, a version of namespace may be specified. If version
53
+ * is not specified, the latest will be used.
54
+ *
55
+ * @param [String] namespace The namespace to load
56
+ * @param [String, nil] version An optional version
57
+ */
32
58
  static VALUE
33
59
  rg_require(int argc, VALUE *argv, VALUE self)
34
60
  {
@@ -53,6 +79,16 @@ rg_require(int argc, VALUE *argv, VALUE self)
53
79
  return Qnil;
54
80
  }
55
81
 
82
+
83
+ /* Return an array of all (transitive) versioned dependencies for namespace.
84
+ * Returned strings are of the form "namespace-version".
85
+ * Note: namespace must have already been loaded using a function such as
86
+ * GObjectIntrospection::Repository.require() before calling this method.
87
+ *
88
+ * @param [String] namespace The namespace to get the dependencies for.
89
+ *
90
+ * @return [Array<String>] The dependencies.
91
+ */
56
92
  static VALUE
57
93
  rg_get_dependencies(VALUE self, VALUE rb_namespace)
58
94
  {
@@ -74,6 +110,11 @@ rg_get_dependencies(VALUE self, VALUE rb_namespace)
74
110
  return rb_dependencies;
75
111
  }
76
112
 
113
+
114
+ /* Return the list of currently loaded namespaces.
115
+ *
116
+ * @return [Array<String>] The loaded namespaces.
117
+ */
77
118
  static VALUE
78
119
  rg_loaded_namespaces(VALUE self)
79
120
  {
@@ -93,6 +134,14 @@ rg_loaded_namespaces(VALUE self)
93
134
  return rb_namespaces;
94
135
  }
95
136
 
137
+
138
+ /* This method returns the number of metadata entries in given namespace. The
139
+ * namespace must have already been loaded before calling this function.
140
+ *
141
+ * @param [String] namespace The namespace to fetch the entries from.
142
+ *
143
+ * @return [Integer] The number of metadata entries.
144
+ */
96
145
  static VALUE
97
146
  rg_get_n_infos(VALUE self, VALUE rb_namespace)
98
147
  {
@@ -105,6 +154,17 @@ rg_get_n_infos(VALUE self, VALUE rb_namespace)
105
154
  return INT2NUM(n_infos);
106
155
  }
107
156
 
157
+
158
+ /* This method returns a particular metadata entry in the given namespace. The
159
+ * namespace must have already been loaded before calling this function. See
160
+ * GObjectIntrospection::Repository#get_n_infos() to find the maximum number
161
+ * of entries.
162
+ *
163
+ * @param [String] namespace The namespace to fetch the metadata entry from.
164
+ * @param [Fixnum] index The index of the entry.
165
+ *
166
+ * @return [GObjectIntrospection::BaseInfo] The metadata entry.
167
+ */
108
168
  static VALUE
109
169
  rg_get_info(VALUE self, VALUE rb_namespace, VALUE rb_n)
110
170
  {
@@ -120,6 +180,28 @@ rg_get_info(VALUE self, VALUE rb_namespace, VALUE rb_n)
120
180
  return GI_BASE_INFO2RVAL_WITH_UNREF(info);
121
181
  }
122
182
 
183
+
184
+ /* This method searches for a particular type or name. If only one argument is
185
+ * given, it is interpreted as a gtype and all loaded namespaces are searched
186
+ * for it. If two arguments are given the first is a particular namespace and
187
+ * the second the name of an entry to search for.
188
+ *
189
+ * @overload find(type)
190
+ *
191
+ * @param [String] type The type to search for.
192
+ *
193
+ * @return [GObjectIntrospection::BaseInfo] The metadata entry.
194
+ *
195
+ *
196
+ * @overload find(namespace, type)
197
+ *
198
+ * @param [String] namespace The namespace to search in.
199
+ *
200
+ * @param [String] type The type to search for.
201
+ *
202
+ * @return [GObjectIntrospection::BaseInfo] The metadata entry.
203
+ */
204
+
123
205
  static VALUE
124
206
  rg_find(int argc, VALUE *argv, VALUE self)
125
207
  {
Binary file
Binary file
Binary file
@@ -349,13 +349,22 @@ module GObjectIntrospection
349
349
  end
350
350
  end
351
351
 
352
- def rubyish_method_name(function_info)
352
+ def rubyish_method_name(function_info, options={})
353
353
  name = function_info.name
354
+ if options[:prefix]
355
+ name = name.gsub(/\A#{Regexp.escape(options[:prefix])}/, "")
356
+ end
354
357
  return_type = function_info.return_type
355
358
  if return_type.tag == GObjectIntrospection::TypeTag::BOOLEAN
356
359
  case name
357
- when /\A(?:is|get_is|get)_/
360
+ when /\A(?:is|get_is)_/
358
361
  "#{$POSTMATCH}?"
362
+ when /\Aget_/
363
+ if function_info.n_in_args.zero?
364
+ "#{$POSTMATCH}?"
365
+ else
366
+ name
367
+ end
359
368
  when /\A(?:has|use)_/
360
369
  "#{name}?"
361
370
  else
Binary file
Binary file
Binary file
@@ -17,7 +17,7 @@ old_library='libgirepository-1.0.a'
17
17
  inherited_linker_flags=''
18
18
 
19
19
  # Libraries that this one depends upon.
20
- dependency_libs=' -R/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib -L/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib -L/home/kou/work/ruby/rcairo.win32/vendor/local/lib -L/home/kou/work/ruby/ruby-gnome2.win32/gobject-introspection/vendor/local/lib -L/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/../lib -L/home/kou/work/ruby/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/../lib /home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/libgio-2.0.la /home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/libgmodule-2.0.la -ldnsapi -liphlpapi -lz /home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/libgobject-2.0.la /home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/../lib/libffi.la /home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/libglib-2.0.la -lws2_32 -lole32 -lwinmm -lshlwapi /home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/libintl.la /home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/libiconv.la -lpthread /home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/../lib/libffi.la'
20
+ dependency_libs=' -R/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib -L/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib -L/home/vagrant/rcairo.win32/vendor/local/lib -L/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib -L/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/../lib /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libgio-2.0.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libgmodule-2.0.la -ldnsapi -liphlpapi -lz /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libgobject-2.0.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/../lib/libffi.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libglib-2.0.la -lws2_32 -lole32 -lwinmm -lshlwapi /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libintl.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libiconv.la -lpthread /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/../lib/libffi.la'
21
21
 
22
22
  # Names of additional weak libraries provided by this library
23
23
  weak_library_names=''
@@ -38,4 +38,4 @@ dlopen=''
38
38
  dlpreopen=''
39
39
 
40
40
  # Directory that this library needs to be installed in:
41
- libdir='/home/kou/work/ruby/ruby-gnome2.win32/gobject-introspection/vendor/local/lib'
41
+ libdir='/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib'
@@ -1,8 +1,6 @@
1
- native_prefix=/home/kou/work/ruby/ruby-gnome2.win32/gobject-introspection/tmp/native/local
1
+ native_prefix=/home/vagrant/ruby-gnome2.win32/gobject-introspection/tmp/native/local
2
2
  native_bindir=${native_prefix}/bin
3
- native_prefix=/home/kou/work/ruby/ruby-gnome2.win32/gobject-introspection/tmp/native/local
4
- native_bindir=${native_prefix}/bin
5
- prefix=/home/kou/work/ruby/ruby-gnome2.win32/gobject-introspection/vendor/local
3
+ prefix=/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local
6
4
  exec_prefix=${prefix}
7
5
  libdir=${exec_prefix}/lib
8
6
  bindir=${exec_prefix}/bin
@@ -1,4 +1,4 @@
1
- prefix=/home/kou/work/ruby/ruby-gnome2.win32/gobject-introspection/vendor/local
1
+ prefix=/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local
2
2
  exec_prefix=${prefix}
3
3
  libdir=${exec_prefix}/lib
4
4
  bindir=${exec_prefix}/bin
File without changes
@@ -12577,7 +12577,7 @@ linked against at application run time.</doc>
12577
12577
  <doc xml:space="preserve">The maximum value which can be held in a #guint8.</doc>
12578
12578
  <type name="guint8" c:type="guint8"/>
12579
12579
  </constant>
12580
- <constant name="MICRO_VERSION" value="0" c:type="GLIB_MICRO_VERSION">
12580
+ <constant name="MICRO_VERSION" value="1" c:type="GLIB_MICRO_VERSION">
12581
12581
  <doc xml:space="preserve">The micro version number of the GLib library.
12582
12582
 
12583
12583
  Like #gtk_micro_version, but from the headers used at
@@ -10048,24 +10048,24 @@ returned string may change in future GLib release.</doc>
10048
10048
  glib:nick="freebsd-cmsgcred">
10049
10049
  <doc xml:space="preserve">The native credentials type is a &lt;type&gt;struct cmsgcred&lt;/type&gt;.</doc>
10050
10050
  </member>
10051
- <member name="netbsd_unpcbid"
10052
- value="3"
10053
- c:identifier="G_CREDENTIALS_TYPE_NETBSD_UNPCBID"
10054
- glib:nick="netbsd-unpcbid">
10055
- <doc xml:space="preserve">The native credentials type is a &lt;type&gt;struct unpcbid&lt;/type&gt;.</doc>
10056
- </member>
10057
10051
  <member name="openbsd_sockpeercred"
10058
- value="4"
10052
+ value="3"
10059
10053
  c:identifier="G_CREDENTIALS_TYPE_OPENBSD_SOCKPEERCRED"
10060
10054
  glib:nick="openbsd-sockpeercred">
10061
10055
  <doc xml:space="preserve">The native credentials type is a &lt;type&gt;struct sockpeercred&lt;/type&gt;. Added in 2.30.</doc>
10062
10056
  </member>
10063
10057
  <member name="solaris_ucred"
10064
- value="5"
10058
+ value="4"
10065
10059
  c:identifier="G_CREDENTIALS_TYPE_SOLARIS_UCRED"
10066
10060
  glib:nick="solaris-ucred">
10067
10061
  <doc xml:space="preserve">The native credentials type is a &lt;type&gt;ucred_t&lt;/type&gt;. Added in 2.40.</doc>
10068
10062
  </member>
10063
+ <member name="netbsd_unpcbid"
10064
+ value="5"
10065
+ c:identifier="G_CREDENTIALS_TYPE_NETBSD_UNPCBID"
10066
+ glib:nick="netbsd-unpcbid">
10067
+ <doc xml:space="preserve">The native credentials type is a &lt;type&gt;struct unpcbid&lt;/type&gt;.</doc>
10068
+ </member>
10069
10069
  </enumeration>
10070
10070
  <class name="DBusActionGroup"
10071
10071
  c:symbol-prefix="dbus_action_group"
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: 2.2.3
4
+ version: 2.2.4
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: 2014-10-26 00:00:00.000000000 Z
11
+ date: 2014-12-23 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: 2.2.3
19
+ version: 2.2.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: 2.2.3
26
+ version: 2.2.4
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.0/gobject_introspection.so
85
85
  - lib/2.1/gobject_introspection.so
86
+ - lib/2.2/gobject_introspection.so
86
87
  - lib/gobject-introspection.rb
87
88
  - lib/gobject-introspection/boxed-info.rb
88
89
  - lib/gobject-introspection/callable-info.rb
@@ -293,6 +294,7 @@ files:
293
294
  - vendor/local/lib/libgirepository-1.0.la
294
295
  - vendor/local/lib/pkgconfig/gobject-introspection-1.0.pc
295
296
  - vendor/local/lib/pkgconfig/gobject-introspection-no-export-1.0.pc
297
+ - vendor/local/lib/pkgconfig/patched
296
298
  - vendor/local/share/aclocal/introspection.m4
297
299
  - vendor/local/share/gir-1.0/DBus-1.0.gir
298
300
  - vendor/local/share/gir-1.0/DBusGLib-1.0.gir