gir_ffi 0.7.5 → 0.7.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +17 -1
- data/README.md +1 -1
- data/Rakefile +0 -7
- data/examples/main_loop.rb +12 -0
- data/lib/ffi-glib/array.rb +18 -5
- data/lib/ffi-glib/array_methods.rb +1 -1
- data/lib/ffi-glib/list.rb +1 -1
- data/lib/ffi-glib/list_methods.rb +1 -1
- data/lib/ffi-glib/main_loop.rb +51 -0
- data/lib/ffi-glib/ptr_array.rb +2 -2
- data/lib/ffi-glib/s_list.rb +1 -1
- data/lib/ffi-glib/variant.rb +3 -3
- data/lib/ffi-glib.rb +1 -0
- data/lib/ffi-gobject/initially_unowned.rb +1 -1
- data/lib/ffi-gobject/object.rb +14 -12
- data/lib/ffi-gobject/ruby_closure.rb +3 -2
- data/lib/ffi-gobject/value.rb +12 -16
- data/lib/ffi-gobject.rb +4 -21
- data/lib/ffi-gobject_introspection/i_base_info.rb +3 -3
- data/lib/ffi-gobject_introspection/i_interface_info.rb +1 -1
- data/lib/ffi-gobject_introspection/i_repository.rb +1 -1
- data/lib/ffi-gobject_introspection/lib.rb +1 -1
- data/lib/gir_ffi/arg_helper.rb +2 -2
- data/lib/gir_ffi/builder.rb +1 -1
- data/lib/gir_ffi/builders/argument_builder.rb +19 -17
- data/lib/gir_ffi/builders/argument_builder_collection.rb +51 -16
- data/lib/gir_ffi/builders/base_argument_builder.rb +20 -10
- data/lib/gir_ffi/builders/base_type_builder.rb +6 -5
- data/lib/gir_ffi/builders/callback_argument_builder.rb +5 -5
- data/lib/gir_ffi/builders/callback_builder.rb +0 -4
- data/lib/gir_ffi/builders/callback_return_value_builder.rb +11 -11
- data/lib/gir_ffi/builders/constant_builder.rb +2 -4
- data/lib/gir_ffi/builders/enum_builder.rb +7 -7
- data/lib/gir_ffi/builders/error_argument_builder.rb +16 -4
- data/lib/gir_ffi/builders/field_builder.rb +5 -17
- data/lib/gir_ffi/builders/function_builder.rb +36 -86
- data/lib/gir_ffi/builders/interface_builder.rb +2 -7
- data/lib/gir_ffi/builders/mapping_method_builder.rb +42 -33
- data/lib/gir_ffi/builders/marshalling_method_builder.rb +44 -33
- data/lib/gir_ffi/builders/method_template.rb +81 -0
- data/lib/gir_ffi/builders/module_builder.rb +5 -5
- data/lib/gir_ffi/builders/object_builder.rb +44 -25
- data/lib/gir_ffi/builders/property_builder.rb +6 -2
- data/lib/gir_ffi/builders/registered_type_builder.rb +1 -5
- data/lib/gir_ffi/builders/return_value_builder.rb +20 -15
- data/lib/gir_ffi/builders/signal_closure_builder.rb +3 -6
- data/lib/gir_ffi/builders/type_builder.rb +1 -1
- data/lib/gir_ffi/builders/unintrospectable_builder.rb +1 -5
- data/lib/gir_ffi/builders/user_defined_builder.rb +17 -21
- data/lib/gir_ffi/builders/vfunc_builder.rb +3 -6
- data/lib/gir_ffi/builders/with_layout.rb +2 -6
- data/lib/gir_ffi/callback_base.rb +10 -5
- data/lib/gir_ffi/class_base.rb +4 -7
- data/lib/gir_ffi/enum_base.rb +1 -1
- data/lib/gir_ffi/g_type.rb +21 -19
- data/lib/gir_ffi/in_out_pointer.rb +2 -4
- data/lib/gir_ffi/in_pointer.rb +9 -8
- data/lib/gir_ffi/info_ext/i_field_info.rb +1 -3
- data/lib/gir_ffi/info_ext/i_signal_info.rb +4 -4
- data/lib/gir_ffi/info_ext/i_type_info.rb +6 -6
- data/lib/gir_ffi/module_base.rb +3 -2
- data/lib/gir_ffi/object_base.rb +1 -1
- data/lib/gir_ffi/struct_base.rb +1 -1
- data/lib/gir_ffi/type_base.rb +2 -2
- data/lib/gir_ffi/unintrospectable_type_info.rb +2 -0
- data/lib/gir_ffi/version.rb +1 -1
- data/lib/gir_ffi/zero_terminated.rb +1 -1
- data/lib/gir_ffi-base/glib/strv.rb +2 -2
- data/lib/gir_ffi.rb +1 -1
- data/test/ffi-glib/array_test.rb +28 -0
- data/test/ffi-glib/byte_array_test.rb +1 -1
- data/test/ffi-glib/bytes_test.rb +1 -1
- data/test/ffi-gobject/object_test.rb +11 -1
- data/test/ffi-gobject/value_test.rb +12 -1
- data/test/ffi-gobject_introspection/i_base_info_test.rb +14 -0
- data/test/ffi-gobject_introspection/i_object_info_test.rb +8 -6
- data/test/ffi-gobject_introspection/i_registered_type_info_test.rb +24 -0
- data/test/ffi-gobject_introspection/i_type_info_test.rb +17 -0
- data/test/gir_ffi/builder_test.rb +3 -2
- data/test/gir_ffi/builders/argument_builder_test.rb +2 -2
- data/test/gir_ffi/builders/function_builder_test.rb +27 -27
- data/test/gir_ffi/builders/object_builder_test.rb +10 -0
- data/test/gir_ffi/builders/return_value_builder_test.rb +3 -3
- data/test/gir_ffi/builders/signal_closure_builder_test.rb +6 -6
- data/test/gir_ffi/in_out_pointer_test.rb +0 -2
- data/test/gir_ffi/info_ext/i_type_info_test.rb +1 -1
- data/test/gir_ffi_test_helper.rb +0 -4
- data/test/integration/generated_gimarshallingtests_test.rb +1 -1
- data/test/integration/generated_regress_test.rb +2 -2
- data/test/integration/idle_loop_test.rb +25 -0
- data/test/minitest/stats_plugin.rb +26 -0
- metadata +13 -62
- data/lib/gir_ffi/builders/null_argument_builder.rb +0 -12
- data/lib/gir_ffi/builders/null_builder.rb +0 -12
- data/tasks/yard.rake +0 -6
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gir_ffi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matijs van Zuijlen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -80,62 +80,6 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '10.1'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: simplecov
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: pry
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: repl_rake
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: yard
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
139
83
|
description: |2
|
140
84
|
GirFFI creates bindings for GObject-based libraries at runtime based on introspection
|
141
85
|
data provided by the GObject Introspection Repository (GIR) system. Bindings are created
|
@@ -162,6 +106,7 @@ files:
|
|
162
106
|
- examples/demo_ffi_safe_inherited_layout.rb
|
163
107
|
- examples/hard_coded.rb
|
164
108
|
- examples/leak_test.rb
|
109
|
+
- examples/main_loop.rb
|
165
110
|
- examples/print_class.rb
|
166
111
|
- lib/ffi-glib.rb
|
167
112
|
- lib/ffi-glib/array.rb
|
@@ -174,6 +119,7 @@ files:
|
|
174
119
|
- lib/ffi-glib/iconv.rb
|
175
120
|
- lib/ffi-glib/list.rb
|
176
121
|
- lib/ffi-glib/list_methods.rb
|
122
|
+
- lib/ffi-glib/main_loop.rb
|
177
123
|
- lib/ffi-glib/ptr_array.rb
|
178
124
|
- lib/ffi-glib/s_list.rb
|
179
125
|
- lib/ffi-glib/strv.rb
|
@@ -239,9 +185,8 @@ files:
|
|
239
185
|
- lib/gir_ffi/builders/interface_builder.rb
|
240
186
|
- lib/gir_ffi/builders/mapping_method_builder.rb
|
241
187
|
- lib/gir_ffi/builders/marshalling_method_builder.rb
|
188
|
+
- lib/gir_ffi/builders/method_template.rb
|
242
189
|
- lib/gir_ffi/builders/module_builder.rb
|
243
|
-
- lib/gir_ffi/builders/null_argument_builder.rb
|
244
|
-
- lib/gir_ffi/builders/null_builder.rb
|
245
190
|
- lib/gir_ffi/builders/null_convertor.rb
|
246
191
|
- lib/gir_ffi/builders/object_builder.rb
|
247
192
|
- lib/gir_ffi/builders/property_builder.rb
|
@@ -307,7 +252,6 @@ files:
|
|
307
252
|
- lib/gir_ffi/zero_terminated.rb
|
308
253
|
- tasks/test.rake
|
309
254
|
- tasks/valgrind.rake
|
310
|
-
- tasks/yard.rake
|
311
255
|
- test/base_test_helper.rb
|
312
256
|
- test/ffi-glib/array_test.rb
|
313
257
|
- test/ffi-glib/byte_array_test.rb
|
@@ -329,7 +273,9 @@ files:
|
|
329
273
|
- test/ffi-gobject_introspection/i_enum_info_test.rb
|
330
274
|
- test/ffi-gobject_introspection/i_function_info_test.rb
|
331
275
|
- test/ffi-gobject_introspection/i_object_info_test.rb
|
276
|
+
- test/ffi-gobject_introspection/i_registered_type_info_test.rb
|
332
277
|
- test/ffi-gobject_introspection/i_repository_test.rb
|
278
|
+
- test/ffi-gobject_introspection/i_type_info_test.rb
|
333
279
|
- test/ffi-gobject_introspection/lib_test.rb
|
334
280
|
- test/ffi-gobject_test.rb
|
335
281
|
- test/gir_ffi-base/glib/boolean_test.rb
|
@@ -394,12 +340,14 @@ files:
|
|
394
340
|
- test/integration/generated_pango_test.rb
|
395
341
|
- test/integration/generated_regress_test.rb
|
396
342
|
- test/integration/generated_secret_test.rb
|
343
|
+
- test/integration/idle_loop_test.rb
|
397
344
|
- test/integration/method_lookup_test.rb
|
398
345
|
- test/introspection_test_helper.rb
|
399
346
|
- test/lib/Makefile.am
|
400
347
|
- test/lib/autogen.sh
|
401
348
|
- test/lib/configure.ac
|
402
349
|
- test/lib/m4/jhflags.m4
|
350
|
+
- test/minitest/stats_plugin.rb
|
403
351
|
homepage: http://www.github.com/mvz/ruby-gir-ffi
|
404
352
|
licenses:
|
405
353
|
- LGPL-2.1
|
@@ -448,7 +396,9 @@ test_files:
|
|
448
396
|
- test/ffi-gobject_introspection/i_enum_info_test.rb
|
449
397
|
- test/ffi-gobject_introspection/i_function_info_test.rb
|
450
398
|
- test/ffi-gobject_introspection/i_object_info_test.rb
|
399
|
+
- test/ffi-gobject_introspection/i_registered_type_info_test.rb
|
451
400
|
- test/ffi-gobject_introspection/i_repository_test.rb
|
401
|
+
- test/ffi-gobject_introspection/i_type_info_test.rb
|
452
402
|
- test/ffi-gobject_introspection/lib_test.rb
|
453
403
|
- test/ffi-gobject_test.rb
|
454
404
|
- test/gir_ffi-base/glib/boolean_test.rb
|
@@ -513,10 +463,11 @@ test_files:
|
|
513
463
|
- test/integration/generated_pango_test.rb
|
514
464
|
- test/integration/generated_regress_test.rb
|
515
465
|
- test/integration/generated_secret_test.rb
|
466
|
+
- test/integration/idle_loop_test.rb
|
516
467
|
- test/integration/method_lookup_test.rb
|
517
468
|
- test/introspection_test_helper.rb
|
518
469
|
- test/lib/Makefile.am
|
519
470
|
- test/lib/autogen.sh
|
520
471
|
- test/lib/configure.ac
|
521
472
|
- test/lib/m4/jhflags.m4
|
522
|
-
|
473
|
+
- test/minitest/stats_plugin.rb
|