gir_ffi 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. data/History.txt +7 -0
  2. data/{README.rdoc → README.md} +31 -25
  3. data/Rakefile +1 -1
  4. data/TODO.rdoc +1 -1
  5. data/lib/ffi-glib.rb +5 -5
  6. data/lib/ffi-glib/container_class_methods.rb +1 -2
  7. data/lib/ffi-glib/list_methods.rb +16 -6
  8. data/lib/ffi-gobject.rb +4 -7
  9. data/lib/ffi-gobject/helper.rb +6 -6
  10. data/lib/ffi-gobject/object.rb +4 -4
  11. data/lib/ffi-gobject_introspection.rb +0 -1
  12. data/lib/ffi-gobject_introspection/g_error.rb +15 -5
  13. data/lib/ffi-gobject_introspection/i_base_info.rb +7 -4
  14. data/lib/ffi-gobject_introspection/i_function_info.rb +3 -1
  15. data/lib/ffi-gobject_introspection/i_repository.rb +8 -15
  16. data/lib/ffi-gobject_introspection/i_struct_info.rb +5 -10
  17. data/lib/gir_ffi-base.rb +2 -0
  18. data/lib/gir_ffi-base/glib/strv.rb +43 -0
  19. data/lib/{ffi-gobject_introspection/gobject_lib.rb → gir_ffi-base/gobject/lib.rb} +4 -2
  20. data/lib/gir_ffi/arg_helper.rb +4 -2
  21. data/lib/gir_ffi/builder.rb +1 -7
  22. data/lib/gir_ffi/builder/argument.rb +34 -108
  23. data/lib/gir_ffi/builder/argument/base.rb +26 -20
  24. data/lib/gir_ffi/builder/type/object.rb +14 -2
  25. data/lib/gir_ffi/builder/type/registered_type.rb +1 -11
  26. data/lib/gir_ffi/class_base.rb +21 -26
  27. data/lib/gir_ffi/in_pointer.rb +11 -5
  28. data/lib/gir_ffi/info_ext/i_type_info.rb +26 -0
  29. data/lib/gir_ffi/interface_base.rb +10 -0
  30. data/lib/gir_ffi/module_base.rb +14 -4
  31. data/lib/gir_ffi/object_base.rb +39 -0
  32. data/lib/gir_ffi/type_map.rb +1 -3
  33. data/lib/gir_ffi/version.rb +1 -1
  34. data/tasks/test.rake +33 -44
  35. data/test/{test_helper.rb → base_test_helper.rb} +2 -11
  36. data/test/ffi-glib/array_test.rb +1 -1
  37. data/test/ffi-glib/byte_array_test.rb +1 -1
  38. data/test/ffi-glib/hash_table_test.rb +30 -1
  39. data/test/ffi-glib/list_test.rb +1 -1
  40. data/test/ffi-glib/ptr_array_test.rb +1 -1
  41. data/test/ffi-glib/ruby_closure_test.rb +54 -0
  42. data/test/ffi-glib/s_list_test.rb +1 -1
  43. data/test/ffi-gobject/gobject_test.rb +1 -1
  44. data/test/ffi-gobject/helper_test.rb +103 -0
  45. data/test/ffi-gobject/object_class_test.rb +1 -1
  46. data/test/ffi-gobject/object_test.rb +1 -1
  47. data/test/ffi-gobject/ruby_style_test.rb +1 -1
  48. data/test/ffi-gobject/value_test.rb +1 -1
  49. data/test/ffi-gobject_introspection/i_base_info_test.rb +1 -1
  50. data/test/ffi-gobject_introspection/i_constant_info_test.rb +1 -1
  51. data/test/ffi-gobject_introspection/i_function_info_test.rb +1 -1
  52. data/test/ffi-gobject_introspection/i_object_info_test.rb +1 -1
  53. data/test/ffi-gobject_introspection/i_repository_test.rb +1 -1
  54. data/test/ffi-gobject_introspection/lib_test.rb +1 -1
  55. data/test/ffi-gobject_test.rb +120 -0
  56. data/test/{ffi-glib → gir_ffi-base/glib}/strv_test.rb +8 -5
  57. data/test/{unit → gir_ffi}/arg_helper_test.rb +2 -2
  58. data/test/{unit/argument_builder_test.rb → gir_ffi/builder/argument/base_test.rb} +1 -13
  59. data/test/{unit/function_builder_test.rb → gir_ffi/builder/function_test.rb} +2 -2
  60. data/test/{unit/module_builder_test.rb → gir_ffi/builder/module_test.rb} +1 -1
  61. data/test/{unit/callback_builder_test.rb → gir_ffi/builder/type/callback_test.rb} +1 -1
  62. data/test/{unit/constant_builder_test.rb → gir_ffi/builder/type/constant_test.rb} +1 -1
  63. data/test/{unit/enum_builder_test.rb → gir_ffi/builder/type/enum_test.rb} +1 -1
  64. data/test/{unit/interface_builder_test.rb → gir_ffi/builder/type/interface_test.rb} +1 -4
  65. data/test/{unit/object_type_builder_test.rb → gir_ffi/builder/type/object_test.rb} +21 -2
  66. data/test/{unit/struct_builder_test.rb → gir_ffi/builder/type/struct_test.rb} +1 -1
  67. data/test/{unit/unintrospectable_type_builder_test.rb → gir_ffi/builder/type/unintrospectable_test.rb} +1 -1
  68. data/test/{unit/union_builder_test.rb → gir_ffi/builder/type/union_test.rb} +9 -3
  69. data/test/{unit/user_defined_type_builder_test.rb → gir_ffi/builder/type/user_defined_test.rb} +4 -2
  70. data/test/gir_ffi/builder_test.rb +398 -0
  71. data/test/{unit → gir_ffi}/callback_helper_test.rb +1 -1
  72. data/test/{unit → gir_ffi}/class_base_test.rb +1 -1
  73. data/test/{unit → gir_ffi}/in_out_pointer_test.rb +1 -1
  74. data/test/{unit → gir_ffi}/in_pointer_test.rb +24 -3
  75. data/test/{unit → gir_ffi/info_ext}/i_field_info_test.rb +1 -1
  76. data/test/gir_ffi/info_ext/i_type_info_test.rb +71 -0
  77. data/test/{unit/user_defined_object_info_test.rb → gir_ffi/user_defined/i_object_info_test.rb} +1 -1
  78. data/test/{unit/user_defined_property_info_test.rb → gir_ffi/user_defined/i_property_info_test.rb} +1 -1
  79. data/test/{unit/user_defined_registered_type_info_test.rb → gir_ffi/user_defined/i_registered_type_info_test.rb} +1 -1
  80. data/test/{unit → gir_ffi}/variable_name_generator_test.rb +1 -1
  81. data/test/{unit/gir_ffi_test.rb → gir_ffi_test.rb} +24 -4
  82. data/test/gir_ffi_test_helper.rb +1 -1
  83. data/test/integration/derived_classes_test.rb +1 -1
  84. data/test/integration/generated_gimarshallingtests_test.rb +1 -1
  85. data/test/integration/generated_gio_test.rb +1 -1
  86. data/test/integration/generated_gobject_test.rb +1 -1
  87. data/test/integration/generated_regress_test.rb +2 -3
  88. data/test/integration/method_lookup_test.rb +1 -1
  89. data/test/integration/pretty_print_test.rb +1 -1
  90. data/test/introspection_test_helper.rb +11 -0
  91. metadata +71 -77
  92. data/lib/ffi-glib/strv.rb +0 -31
  93. data/test/builder_test.rb +0 -264
  94. data/test/ffi-glib/glib_overrides_test.rb +0 -38
  95. data/test/ffi-gobject/g_object_overrides_test.rb +0 -274
  96. data/test/girffi_test.rb +0 -27
  97. data/test/integration/generated_pango_test.rb +0 -20
  98. data/test/type_builder_test.rb +0 -36
  99. data/test/unit/builder_test.rb +0 -143
  100. data/test/unit/hash_table_element_type_provider_test.rb +0 -16
  101. data/test/unit/i_type_info_test.rb +0 -23
  102. data/test/unit/list_element_type_provider_test.rb +0 -13
@@ -1,4 +1,4 @@
1
- require File.expand_path('../gir_ffi_test_helper.rb', File.dirname(__FILE__))
1
+ require 'gir_ffi_test_helper'
2
2
 
3
3
  describe GirFFI::ClassBase do
4
4
  describe "a simple descendant" do
@@ -1,4 +1,4 @@
1
- require File.expand_path('../gir_ffi_test_helper.rb', File.dirname(__FILE__))
1
+ require 'gir_ffi_test_helper'
2
2
 
3
3
  require 'gir_ffi/in_out_pointer'
4
4
 
@@ -1,4 +1,4 @@
1
- require File.expand_path('../gir_ffi_test_helper.rb', File.dirname(__FILE__))
1
+ require 'gir_ffi_test_helper'
2
2
 
3
3
  require 'gir_ffi/in_pointer'
4
4
 
@@ -9,8 +9,8 @@ describe GirFFI::InPointer do
9
9
  assert_nil result
10
10
  end
11
11
 
12
- it "handles type tag :gtype" do
13
- GirFFI::InPointer.from_array :gtype, [2]
12
+ it "handles type tag :GType" do
13
+ GirFFI::InPointer.from_array :GType, [2]
14
14
  end
15
15
 
16
16
  it "handles type tag :interface_pointer" do
@@ -44,6 +44,17 @@ describe GirFFI::InPointer do
44
44
  end
45
45
  end
46
46
 
47
+ describe "an instance created with .from_array :filename" do
48
+ before do
49
+ @result = GirFFI::InPointer.from_array :filename, ["foo", "bar", "baz"]
50
+ end
51
+
52
+ it "returns an array of pointers to strings" do
53
+ ary = @result.read_array_of_pointer(3)
54
+ assert_equal ["foo", "bar", "baz"], ary.map {|p| p.read_string}
55
+ end
56
+ end
57
+
47
58
  describe "an instance created with .from :utf8" do
48
59
  before do
49
60
  @result = GirFFI::InPointer.from :utf8, "foo"
@@ -58,6 +69,16 @@ describe GirFFI::InPointer do
58
69
  end
59
70
  end
60
71
 
72
+ describe "an instance created with .from :filename" do
73
+ before do
74
+ @result = GirFFI::InPointer.from :filename, "foo"
75
+ end
76
+
77
+ it "returns a pointer to the given string" do
78
+ assert_equal "foo", @result.read_string
79
+ end
80
+ end
81
+
61
82
  describe ".from" do
62
83
  it "returns nil when passed nil" do
63
84
  result = GirFFI::InPointer.from :foo, nil
@@ -1,4 +1,4 @@
1
- require File.expand_path('../gir_ffi_test_helper.rb', File.dirname(__FILE__))
1
+ require 'gir_ffi_test_helper'
2
2
 
3
3
  describe GirFFI::InfoExt::IFieldInfo do
4
4
  describe "#layout_specification" do
@@ -0,0 +1,71 @@
1
+ require 'gir_ffi_test_helper'
2
+
3
+ describe GirFFI::InfoExt::ITypeInfo do
4
+ let(:testclass) { Class.new do
5
+ include GirFFI::InfoExt::ITypeInfo
6
+ end }
7
+
8
+ describe "#layout_specification_type" do
9
+ it "returns an array with elements subtype and size for type :array" do
10
+ mock(subtype = Object.new).layout_specification_type { :foo }
11
+
12
+ type = testclass.new
13
+ mock(type).array_fixed_size { 2 }
14
+ mock(type).param_type(0) { subtype }
15
+
16
+ mock(GirFFI::Builder).itypeinfo_to_ffitype(type) { :array }
17
+
18
+ result = type.layout_specification_type
19
+
20
+ assert_equal [:foo, 2], result
21
+ end
22
+ end
23
+
24
+ describe "#subtype_tag" do
25
+ it "returns :gpointer if the param_type is a pointer with tag :void" do
26
+ type_info = testclass.new
27
+
28
+ stub(subtype0 = Object.new).tag { :void }
29
+ stub(subtype0).pointer? { true }
30
+
31
+ mock(type_info).param_type(0) { subtype0 }
32
+
33
+ assert_equal :gpointer, type_info.subtype_tag(0)
34
+ end
35
+ end
36
+
37
+ describe "#element_type" do
38
+ it "returns the element type for lists" do
39
+ type_info = testclass.new
40
+ mock(elm_type = Object.new).tag { :foo }
41
+
42
+ mock(type_info).tag {:glist}
43
+ mock(type_info).param_type(0) { elm_type }
44
+
45
+ result = type_info.element_type
46
+ result.must_equal :foo
47
+ end
48
+
49
+ it "returns the key and value types for ghashes" do
50
+ type_info = testclass.new
51
+ mock(key_type = Object.new).tag { :foo }
52
+ mock(val_type = Object.new).tag { :bar }
53
+
54
+ mock(type_info).tag {:ghash}
55
+ mock(type_info).param_type(0) { key_type }
56
+ mock(type_info).param_type(1) { val_type }
57
+
58
+ result = type_info.element_type
59
+ result.must_equal [:foo, :bar]
60
+ end
61
+
62
+ it "returns nil for other types" do
63
+ type_info = testclass.new
64
+
65
+ mock(type_info).tag {:foo}
66
+
67
+ result = type_info.element_type
68
+ result.must_be_nil
69
+ end
70
+ end
71
+ end
@@ -1,4 +1,4 @@
1
- require File.expand_path('../gir_ffi_test_helper.rb', File.dirname(__FILE__))
1
+ require 'gir_ffi_test_helper'
2
2
 
3
3
  describe GirFFI::UserDefined::IObjectInfo do
4
4
  it "has the attribute #properties" do
@@ -1,4 +1,4 @@
1
- require File.expand_path('../gir_ffi_test_helper.rb', File.dirname(__FILE__))
1
+ require 'gir_ffi_test_helper'
2
2
 
3
3
  describe GirFFI::UserDefined::IPropertyInfo do
4
4
  it "has the attribute #property_type" do
@@ -1,4 +1,4 @@
1
- require File.expand_path('../gir_ffi_test_helper.rb', File.dirname(__FILE__))
1
+ require 'gir_ffi_test_helper'
2
2
 
3
3
  describe GirFFI::UserDefined::IRegisteredTypeInfo do
4
4
  it "derives from GirFFI::UserDefined::IBaseInfo" do
@@ -1,4 +1,4 @@
1
- require File.expand_path('../gir_ffi_test_helper.rb', File.dirname(__FILE__))
1
+ require 'gir_ffi_test_helper'
2
2
 
3
3
  require 'gir_ffi/variable_name_generator'
4
4
 
@@ -1,13 +1,34 @@
1
- require File.expand_path('../gir_ffi_test_helper.rb', File.dirname(__FILE__))
1
+ require 'gir_ffi_test_helper'
2
2
 
3
3
  GirFFI.setup :GIMarshallingTests
4
4
 
5
5
  describe GirFFI do
6
+ it "sets up cairo as Cairo" do
7
+ GirFFI.setup :cairo
8
+ assert Object.const_defined?(:Cairo)
9
+ end
10
+
11
+ it "sets up xlib, which has no shared library" do
12
+ gir = GObjectIntrospection::IRepository.default
13
+ gir.require 'xlib'
14
+ assert_nil gir.shared_library('xlib'), "Precondition for test failed"
15
+ GirFFI.setup :xlib
16
+ end
17
+
18
+ it "sets up dependencies" do
19
+ save_module :GObject
20
+ save_module :Regress
21
+ GirFFI.setup :Regress
22
+ assert Object.const_defined?(:GObject)
23
+ restore_module :Regress
24
+ restore_module :GObject
25
+ end
26
+
6
27
  describe "::define_type" do
7
28
  describe "without a block" do
8
29
  before do
9
30
  @klass = Class.new GIMarshallingTests::OverridesObject
10
- Object.const_set "Derived#{Sequence.next}", @klass
31
+ Object.const_set "DerivedA#{Sequence.next}", @klass
11
32
  @gtype = GirFFI.define_type @klass
12
33
  end
13
34
 
@@ -40,7 +61,7 @@ describe GirFFI do
40
61
  describe "with a block with a call to #install_property" do
41
62
  before do
42
63
  @klass = Class.new GIMarshallingTests::OverridesObject
43
- Object.const_set "Derived#{Sequence.next}", @klass
64
+ Object.const_set "DerivedB#{Sequence.next}", @klass
44
65
  @gtype = GirFFI.define_type @klass do
45
66
  install_property GObject.param_spec_int("foo", "foo bar",
46
67
  "The Foo Bar Property",
@@ -66,4 +87,3 @@ describe GirFFI do
66
87
  end
67
88
  end
68
89
  end
69
-
@@ -1,4 +1,4 @@
1
- require File.expand_path('test_helper.rb', File.dirname(__FILE__))
1
+ require 'introspection_test_helper'
2
2
 
3
3
  require 'gir_ffi'
4
4
 
@@ -1,4 +1,4 @@
1
- require File.expand_path('../gir_ffi_test_helper.rb', File.dirname(__FILE__))
1
+ require 'gir_ffi_test_helper'
2
2
 
3
3
  GirFFI.setup :Regress
4
4
 
@@ -1,5 +1,5 @@
1
1
  # coding: utf-8
2
- require File.expand_path('../gir_ffi_test_helper.rb', File.dirname(__FILE__))
2
+ require 'gir_ffi_test_helper'
3
3
 
4
4
  require 'gir_ffi'
5
5
 
@@ -1,4 +1,4 @@
1
- require File.expand_path('../gir_ffi_test_helper.rb', File.dirname(__FILE__))
1
+ require 'gir_ffi_test_helper'
2
2
 
3
3
  # Tests generated methods and functions in the Gio namespace.
4
4
  describe "The generated Gio module" do
@@ -1,4 +1,4 @@
1
- require File.expand_path('../gir_ffi_test_helper.rb', File.dirname(__FILE__))
1
+ require 'gir_ffi_test_helper'
2
2
 
3
3
  describe "The generated GObject module" do
4
4
  before do
@@ -1,5 +1,5 @@
1
1
  # coding: utf-8
2
- require File.expand_path('../gir_ffi_test_helper.rb', File.dirname(__FILE__))
2
+ require 'gir_ffi_test_helper'
3
3
 
4
4
  GirFFI.setup :Regress
5
5
 
@@ -701,8 +701,7 @@ describe Regress, "The generated Regress module" do
701
701
  end
702
702
 
703
703
  it "has correct test_async_ready_callback" do
704
- # FIXME: Use GLib::MainLoop.new eventually.
705
- main_loop = GLib.main_loop_new nil, false
704
+ main_loop = GLib::MainLoop.new nil, false
706
705
 
707
706
  a = 1
708
707
  Regress.test_async_ready_callback Proc.new {
@@ -1,4 +1,4 @@
1
- require File.expand_path('../gir_ffi_test_helper.rb', File.dirname(__FILE__))
1
+ require 'gir_ffi_test_helper'
2
2
 
3
3
  # Tests how methods are looked up and generated on first use.
4
4
  describe "Looking up methods" do
@@ -1,4 +1,4 @@
1
- require File.expand_path('../gir_ffi_test_helper.rb', File.dirname(__FILE__))
1
+ require 'gir_ffi_test_helper'
2
2
 
3
3
  require 'tempfile'
4
4
 
@@ -0,0 +1,11 @@
1
+ require 'base_test_helper'
2
+
3
+ require 'ffi-gobject_introspection'
4
+
5
+ class MiniTest::Unit::TestCase
6
+ def get_introspection_data namespace, name
7
+ gir = GObjectIntrospection::IRepository.default
8
+ gir.require namespace, nil
9
+ gir.find_by_name namespace, name
10
+ end
11
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gir_ffi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-24 00:00:00.000000000 Z
12
+ date: 2012-09-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi
@@ -99,9 +99,10 @@ extensions: []
99
99
  extra_rdoc_files:
100
100
  - DESIGN.rdoc
101
101
  - History.txt
102
- - README.rdoc
102
+ - README.md
103
103
  - TODO.rdoc
104
104
  files:
105
+ - lib/gir_ffi-base.rb
105
106
  - lib/ffi-gobject_introspection.rb
106
107
  - lib/gir_ffi.rb
107
108
  - lib/gir_ffi/lib_c.rb
@@ -151,6 +152,9 @@ files:
151
152
  - lib/gir_ffi/info_ext/i_property_info.rb
152
153
  - lib/gir_ffi/module_base.rb
153
154
  - lib/gir_ffi/class_base.rb
155
+ - lib/gir_ffi/object_base.rb
156
+ - lib/gir_ffi-base/gobject/lib.rb
157
+ - lib/gir_ffi-base/glib/strv.rb
154
158
  - lib/ffi-gobject/ruby_style.rb
155
159
  - lib/ffi-gobject/ruby_closure.rb
156
160
  - lib/ffi-gobject/base.rb
@@ -165,7 +169,6 @@ files:
165
169
  - lib/ffi-glib/list.rb
166
170
  - lib/ffi-glib/hash_table.rb
167
171
  - lib/ffi-glib/list_methods.rb
168
- - lib/ffi-glib/strv.rb
169
172
  - lib/ffi-glib/byte_array.rb
170
173
  - lib/ffi-glib/ptr_array.rb
171
174
  - lib/ffi-glib/s_list.rb
@@ -176,7 +179,6 @@ files:
176
179
  - lib/ffi-gobject_introspection/i_function_info.rb
177
180
  - lib/ffi-gobject_introspection/i_callable_info.rb
178
181
  - lib/ffi-gobject_introspection/i_field_info.rb
179
- - lib/ffi-gobject_introspection/gobject_lib.rb
180
182
  - lib/ffi-gobject_introspection/i_vfunc_info.rb
181
183
  - lib/ffi-gobject_introspection/i_interface_info.rb
182
184
  - lib/ffi-gobject_introspection/i_property_info.rb
@@ -193,70 +195,66 @@ files:
193
195
  - lib/ffi-gobject_introspection/i_registered_type_info.rb
194
196
  - lib/ffi-gobject_introspection/g_error.rb
195
197
  - lib/ffi-gobject.rb
196
- - test/test_helper.rb
197
- - test/unit/user_defined_registered_type_info_test.rb
198
- - test/unit/unintrospectable_type_builder_test.rb
199
- - test/unit/user_defined_type_builder_test.rb
200
- - test/unit/object_type_builder_test.rb
201
- - test/unit/user_defined_property_info_test.rb
202
- - test/unit/i_type_info_test.rb
203
- - test/unit/enum_builder_test.rb
204
- - test/unit/constant_builder_test.rb
205
- - test/unit/builder_test.rb
206
- - test/unit/in_pointer_test.rb
207
- - test/unit/in_out_pointer_test.rb
208
- - test/unit/arg_helper_test.rb
209
- - test/unit/function_builder_test.rb
210
- - test/unit/variable_name_generator_test.rb
211
- - test/unit/callback_helper_test.rb
212
- - test/unit/struct_builder_test.rb
213
- - test/unit/class_base_test.rb
214
- - test/unit/union_builder_test.rb
215
- - test/unit/callback_builder_test.rb
216
- - test/unit/argument_builder_test.rb
217
- - test/unit/interface_builder_test.rb
218
- - test/unit/hash_table_element_type_provider_test.rb
219
- - test/unit/i_field_info_test.rb
220
- - test/unit/user_defined_object_info_test.rb
221
- - test/unit/list_element_type_provider_test.rb
222
- - test/unit/module_builder_test.rb
223
- - test/unit/gir_ffi_test.rb
224
198
  - test/lib/configure.ac
225
199
  - test/lib/Makefile.am
226
200
  - test/lib/m4/jhflags.m4
227
201
  - test/lib/autogen.sh
228
- - test/builder_test.rb
229
202
  - test/gir_ffi_test_helper.rb
203
+ - test/ffi-gobject_test.rb
230
204
  - test/integration/derived_classes_test.rb
231
205
  - test/integration/generated_regress_test.rb
232
206
  - test/integration/method_lookup_test.rb
233
207
  - test/integration/generated_gimarshallingtests_test.rb
234
208
  - test/integration/generated_gio_test.rb
235
209
  - test/integration/pretty_print_test.rb
236
- - test/integration/generated_pango_test.rb
237
210
  - test/integration/generated_gobject_test.rb
238
- - test/ffi-gobject/g_object_overrides_test.rb
211
+ - test/gir_ffi/builder/type/user_defined_test.rb
212
+ - test/gir_ffi/builder/type/enum_test.rb
213
+ - test/gir_ffi/builder/type/constant_test.rb
214
+ - test/gir_ffi/builder/type/object_test.rb
215
+ - test/gir_ffi/builder/type/struct_test.rb
216
+ - test/gir_ffi/builder/type/callback_test.rb
217
+ - test/gir_ffi/builder/type/union_test.rb
218
+ - test/gir_ffi/builder/type/unintrospectable_test.rb
219
+ - test/gir_ffi/builder/type/interface_test.rb
220
+ - test/gir_ffi/builder/module_test.rb
221
+ - test/gir_ffi/builder/function_test.rb
222
+ - test/gir_ffi/builder/argument/base_test.rb
223
+ - test/gir_ffi/user_defined/i_registered_type_info_test.rb
224
+ - test/gir_ffi/user_defined/i_object_info_test.rb
225
+ - test/gir_ffi/user_defined/i_property_info_test.rb
226
+ - test/gir_ffi/builder_test.rb
227
+ - test/gir_ffi/in_pointer_test.rb
228
+ - test/gir_ffi/in_out_pointer_test.rb
229
+ - test/gir_ffi/arg_helper_test.rb
230
+ - test/gir_ffi/variable_name_generator_test.rb
231
+ - test/gir_ffi/callback_helper_test.rb
232
+ - test/gir_ffi/class_base_test.rb
233
+ - test/gir_ffi/info_ext/i_type_info_test.rb
234
+ - test/gir_ffi/info_ext/i_field_info_test.rb
235
+ - test/gir_ffi-base/glib/strv_test.rb
239
236
  - test/ffi-gobject/object_class_test.rb
240
237
  - test/ffi-gobject/object_test.rb
241
238
  - test/ffi-gobject/gobject_test.rb
242
239
  - test/ffi-gobject/value_test.rb
240
+ - test/ffi-gobject/helper_test.rb
243
241
  - test/ffi-gobject/ruby_style_test.rb
242
+ - test/base_test_helper.rb
244
243
  - test/ffi-glib/s_list_test.rb
245
244
  - test/ffi-glib/hash_table_test.rb
246
245
  - test/ffi-glib/list_test.rb
247
246
  - test/ffi-glib/array_test.rb
248
247
  - test/ffi-glib/ptr_array_test.rb
249
248
  - test/ffi-glib/byte_array_test.rb
250
- - test/ffi-glib/glib_overrides_test.rb
251
- - test/ffi-glib/strv_test.rb
249
+ - test/ffi-glib/ruby_closure_test.rb
252
250
  - test/ffi-gobject_introspection/i_repository_test.rb
253
251
  - test/ffi-gobject_introspection/i_constant_info_test.rb
254
252
  - test/ffi-gobject_introspection/i_base_info_test.rb
255
253
  - test/ffi-gobject_introspection/i_object_info_test.rb
256
254
  - test/ffi-gobject_introspection/lib_test.rb
257
255
  - test/ffi-gobject_introspection/i_function_info_test.rb
258
- - test/type_builder_test.rb
259
- - test/girffi_test.rb
256
+ - test/gir_ffi_test.rb
257
+ - test/introspection_test_helper.rb
260
258
  - tasks/setup.rb
261
259
  - tasks/valgrind.rake
262
260
  - tasks/test.rake
@@ -266,7 +264,7 @@ files:
266
264
  - examples/demo_ffi_safe_inherited_layout.rb
267
265
  - examples/demo_ffi_inherited_layout.rb
268
266
  - examples/print_class.rb
269
- - README.rdoc
267
+ - README.md
270
268
  - DESIGN.rdoc
271
269
  - TODO.rdoc
272
270
  - History.txt
@@ -277,7 +275,7 @@ licenses: []
277
275
  post_install_message:
278
276
  rdoc_options:
279
277
  - --main
280
- - README.rdoc
278
+ - README.md
281
279
  require_paths:
282
280
  - lib
283
281
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -299,17 +297,16 @@ signing_key:
299
297
  specification_version: 3
300
298
  summary: FFI-based GObject binding using the GObject Introspection Repository
301
299
  test_files:
302
- - test/builder_test.rb
300
+ - test/base_test_helper.rb
303
301
  - test/ffi-glib/array_test.rb
304
302
  - test/ffi-glib/byte_array_test.rb
305
- - test/ffi-glib/glib_overrides_test.rb
306
303
  - test/ffi-glib/hash_table_test.rb
307
304
  - test/ffi-glib/list_test.rb
308
305
  - test/ffi-glib/ptr_array_test.rb
306
+ - test/ffi-glib/ruby_closure_test.rb
309
307
  - test/ffi-glib/s_list_test.rb
310
- - test/ffi-glib/strv_test.rb
311
- - test/ffi-gobject/g_object_overrides_test.rb
312
308
  - test/ffi-gobject/gobject_test.rb
309
+ - test/ffi-gobject/helper_test.rb
313
310
  - test/ffi-gobject/object_class_test.rb
314
311
  - test/ffi-gobject/object_test.rb
315
312
  - test/ffi-gobject/ruby_style_test.rb
@@ -320,47 +317,44 @@ test_files:
320
317
  - test/ffi-gobject_introspection/i_object_info_test.rb
321
318
  - test/ffi-gobject_introspection/i_repository_test.rb
322
319
  - test/ffi-gobject_introspection/lib_test.rb
320
+ - test/ffi-gobject_test.rb
321
+ - test/gir_ffi-base/glib/strv_test.rb
322
+ - test/gir_ffi/arg_helper_test.rb
323
+ - test/gir_ffi/builder/argument/base_test.rb
324
+ - test/gir_ffi/builder/function_test.rb
325
+ - test/gir_ffi/builder/module_test.rb
326
+ - test/gir_ffi/builder/type/callback_test.rb
327
+ - test/gir_ffi/builder/type/constant_test.rb
328
+ - test/gir_ffi/builder/type/enum_test.rb
329
+ - test/gir_ffi/builder/type/interface_test.rb
330
+ - test/gir_ffi/builder/type/object_test.rb
331
+ - test/gir_ffi/builder/type/struct_test.rb
332
+ - test/gir_ffi/builder/type/unintrospectable_test.rb
333
+ - test/gir_ffi/builder/type/union_test.rb
334
+ - test/gir_ffi/builder/type/user_defined_test.rb
335
+ - test/gir_ffi/builder_test.rb
336
+ - test/gir_ffi/callback_helper_test.rb
337
+ - test/gir_ffi/class_base_test.rb
338
+ - test/gir_ffi/in_out_pointer_test.rb
339
+ - test/gir_ffi/in_pointer_test.rb
340
+ - test/gir_ffi/info_ext/i_field_info_test.rb
341
+ - test/gir_ffi/info_ext/i_type_info_test.rb
342
+ - test/gir_ffi/user_defined/i_object_info_test.rb
343
+ - test/gir_ffi/user_defined/i_property_info_test.rb
344
+ - test/gir_ffi/user_defined/i_registered_type_info_test.rb
345
+ - test/gir_ffi/variable_name_generator_test.rb
346
+ - test/gir_ffi_test.rb
323
347
  - test/gir_ffi_test_helper.rb
324
- - test/girffi_test.rb
325
348
  - test/integration/derived_classes_test.rb
326
349
  - test/integration/generated_gimarshallingtests_test.rb
327
350
  - test/integration/generated_gio_test.rb
328
351
  - test/integration/generated_gobject_test.rb
329
- - test/integration/generated_pango_test.rb
330
352
  - test/integration/generated_regress_test.rb
331
353
  - test/integration/method_lookup_test.rb
332
354
  - test/integration/pretty_print_test.rb
355
+ - test/introspection_test_helper.rb
333
356
  - test/lib/Makefile.am
334
357
  - test/lib/autogen.sh
335
358
  - test/lib/configure.ac
336
359
  - test/lib/m4/jhflags.m4
337
- - test/test_helper.rb
338
- - test/type_builder_test.rb
339
- - test/unit/arg_helper_test.rb
340
- - test/unit/argument_builder_test.rb
341
- - test/unit/builder_test.rb
342
- - test/unit/callback_builder_test.rb
343
- - test/unit/callback_helper_test.rb
344
- - test/unit/class_base_test.rb
345
- - test/unit/constant_builder_test.rb
346
- - test/unit/enum_builder_test.rb
347
- - test/unit/function_builder_test.rb
348
- - test/unit/gir_ffi_test.rb
349
- - test/unit/hash_table_element_type_provider_test.rb
350
- - test/unit/i_field_info_test.rb
351
- - test/unit/i_type_info_test.rb
352
- - test/unit/in_out_pointer_test.rb
353
- - test/unit/in_pointer_test.rb
354
- - test/unit/interface_builder_test.rb
355
- - test/unit/list_element_type_provider_test.rb
356
- - test/unit/module_builder_test.rb
357
- - test/unit/object_type_builder_test.rb
358
- - test/unit/struct_builder_test.rb
359
- - test/unit/unintrospectable_type_builder_test.rb
360
- - test/unit/union_builder_test.rb
361
- - test/unit/user_defined_object_info_test.rb
362
- - test/unit/user_defined_property_info_test.rb
363
- - test/unit/user_defined_registered_type_info_test.rb
364
- - test/unit/user_defined_type_builder_test.rb
365
- - test/unit/variable_name_generator_test.rb
366
360
  has_rdoc: