gir_ffi 0.15.1 → 0.15.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7fe7307d0aeb897a34c52b3f39d9ad074ea90094e9f0d10efb1a0cc94275d433
4
- data.tar.gz: 3fe78f8c5332d10b9124ee1ab5a6f316e24f9e8b96e8f1450110e1e7e53feaa3
3
+ metadata.gz: e8d94670dbb092ece3c0225fe0c77a7457396df6e9c2fea40d11dabe5a4a2a55
4
+ data.tar.gz: f6e93738320b337279fbad487ea40996f4e99c40a90c892ae1c9d7836f89adff
5
5
  SHA512:
6
- metadata.gz: b98e88240766bff193e05eb33ad47d585968b7d1d1a276f9703ec18a264ef7db083dea3b98f5923284c8a48d196498daaef04c06e63840b225692329730b04d2
7
- data.tar.gz: 7a6818654b514e14dd7c8a7920446fdceb8471a271bf9184a975e4c6b80d6b6f56bf0596855d4eba0febaf2616eb2422ac43bd4456c1a9263f8cf42f22e25242
6
+ metadata.gz: 39265520b4755ffd62d8e065ff07793cc3dbb086d9062c12c06210cd85b2586b03838a931154175773aecb70cbae9e3a0c59ff08dfef63588d983c159688c5fb
7
+ data.tar.gz: 5e9e9cdd8c21b416279afea10bc7283497d5c52010497e45142a5aa40098d7680e430afacf6fecea61e7ac2720224fcb9fe34a2f74588dbe77af9aa6c0a4ae76
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.15.2 / 2019-11-29
4
+
5
+ * Load girepository-1.0 library in a way that does not require installing a
6
+ development package.
7
+
3
8
  ## 0.15.1 / 2019-10-20
4
9
 
5
10
  * Allow access to properties for unintrospectable classes.
data/README.md CHANGED
@@ -69,11 +69,12 @@ On Debian and Ubuntu, installing `libgirepository1.0-1` and `gir1.2-glib-2.0`
69
69
  should be enough to use GirFFI in your application.
70
70
 
71
71
  To run the tests, you should additionally install `libgirepository1.0-dev`,
72
- `libcairo2-dev`, `gobject-introspection`, `gir1.2-gtop-2.0`, `gir1.2-gtk-3.0`,
72
+ `gobject-introspection`, `gir1.2-gtop-2.0`, `gir1.2-gtk-3.0`,
73
73
  `gir1.2-gtksource-3.0`, `gir1.2-pango-1.0`, `gir1.2-secret-1` and
74
74
  `gir1.2-gstreamer-1.0`. This should be enough to get `rake test` working.
75
75
 
76
- GirFFI has not been tested on Mac OS X or Microsoft Windows. YMMV.
76
+ GirFFI has not been tested on Mac OS X or Microsoft Windows. YMMV. Pull
77
+ requests to support these platforms are welcome.
77
78
 
78
79
  ## Overrides
79
80
 
@@ -96,9 +97,9 @@ Please feel free to file bugs or send pull requests!
96
97
  If you just want to help out but don't know where to start, have a look at
97
98
  TODO.md, and check the notes in the code (e.g., using `dnote`).
98
99
 
99
- If you want to send pull requests or patches, please try to follow these
100
- instructions. If you get stuck, make a pull request anyway and I'll try to help
101
- out.
100
+ If you want to send pull requests or patches, try to follow the instructions
101
+ below. **If you get stuck, please make a pull request anyway and I'll try to
102
+ help out.**
102
103
 
103
104
  * Make sure `rake test` runs without reporting any failures.
104
105
  * Add tests for your feature. Otherwise, I can't see if it works or if I
@@ -119,7 +120,7 @@ The following people have contributed to GirFFI over the years:
119
120
 
120
121
  ## License
121
122
 
122
- Copyright © 2009–2018 [Matijs van Zuijlen](http://www.matijs.net)
123
+ Copyright © 2009–2019 [Matijs van Zuijlen](http://www.matijs.net)
123
124
 
124
125
  GirFFI is free software, distributed under the terms of the GNU Lesser
125
126
  General Public License, version 2.1 or later. See the file COPYING.LIB for
@@ -8,7 +8,7 @@ module GObjectIntrospection
8
8
  module Lib
9
9
  extend FFI::Library
10
10
  extend FFI::BitMasks
11
- ffi_lib "girepository-1.0"
11
+ ffi_lib "girepository-1.0.so.1"
12
12
 
13
13
  # IRepository
14
14
  enum :IRepositoryLoadFlags, [:LAZY, (1 << 0)]
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Current GirFFI version
4
4
  module GirFFI
5
- VERSION = "0.15.1"
5
+ VERSION = "0.15.2"
6
6
  end
@@ -941,7 +941,10 @@ describe Regress do
941
941
  instance = make_derived_instance do |info|
942
942
  # TODO: Do not pass callback again in user_data if destroy notifier is absent
943
943
  info.install_vfunc_implementation :do_baz,
944
- proc { |obj, callback, _user_data| callback.call; a = obj.get_name }
944
+ proc { |obj, callback, _user_data|
945
+ callback.call
946
+ a = obj.get_name
947
+ }
945
948
  end
946
949
  b = nil
947
950
  instance.do_baz { b = "hello" }
@@ -2314,7 +2317,10 @@ describe Regress do
2314
2317
  it "handles the 'test' signal" do
2315
2318
  a = b = nil
2316
2319
  o = Regress::TestSubObj.new
2317
- GObject.signal_connect(o, "test", 2) { |i, d| a = d; b = i }
2320
+ GObject.signal_connect(o, "test", 2) do |i, d|
2321
+ a = d
2322
+ b = i
2323
+ end
2318
2324
  GObject.signal_emit o, "test"
2319
2325
  assert_equal [2, o], [a, b]
2320
2326
  end
@@ -3347,7 +3353,10 @@ describe Regress do
3347
3353
  it "has a working function #test_callback_async" do
3348
3354
  a = 1
3349
3355
  stored_proc = nil
3350
- Regress.test_callback_async { |user_data| stored_proc = user_data; a = 2 }
3356
+ Regress.test_callback_async do |user_data|
3357
+ stored_proc = user_data
3358
+ a = 2
3359
+ end
3351
3360
  result = Regress.test_callback_thaw_async
3352
3361
  _(a).must_equal 2
3353
3362
  _(stored_proc).wont_be_nil
@@ -3360,7 +3369,10 @@ describe Regress do
3360
3369
  it "has a working function #test_callback_destroy_notify" do
3361
3370
  a = 1
3362
3371
  stored_proc = nil
3363
- r1 = Regress.test_callback_destroy_notify { |user_data| stored_proc = user_data; a = 2 }
3372
+ r1 = Regress.test_callback_destroy_notify do |user_data|
3373
+ stored_proc = user_data
3374
+ a = 2
3375
+ end
3364
3376
  _(a).must_equal 2
3365
3377
  stored_id = stored_proc.object_id
3366
3378
  _(GirFFI::CallbackBase::CALLBACKS[stored_id].object_id).must_equal stored_id
@@ -3401,9 +3413,18 @@ describe Regress do
3401
3413
 
3402
3414
  it "has a working function #test_callback_thaw_async" do
3403
3415
  invoked = []
3404
- Regress.test_callback_async { invoked << 1; 1 }
3405
- Regress.test_callback_async { invoked << 2; 2 }
3406
- Regress.test_callback_async { invoked << 3; 3 }
3416
+ Regress.test_callback_async do
3417
+ invoked << 1
3418
+ 1
3419
+ end
3420
+ Regress.test_callback_async do
3421
+ invoked << 2
3422
+ 2
3423
+ end
3424
+ Regress.test_callback_async do
3425
+ invoked << 3
3426
+ 3
3427
+ end
3407
3428
  result = Regress.test_callback_thaw_async
3408
3429
  _(invoked).must_equal [3, 2, 1]
3409
3430
  _(result).must_equal 1
@@ -3418,7 +3439,10 @@ describe Regress do
3418
3439
 
3419
3440
  it "has a working function #test_callback_user_data" do
3420
3441
  stored_id = nil
3421
- result = Regress.test_callback_user_data { |u| stored_id = u; 5 }
3442
+ result = Regress.test_callback_user_data do |u|
3443
+ stored_id = u
3444
+ 5
3445
+ end
3422
3446
  # TODO: Ensure that the key stored_id is no longer in the callback store
3423
3447
  _(stored_id).wont_be_nil
3424
3448
  _(result).must_equal 5
@@ -50,7 +50,7 @@ module IntrospectionTestExtensions
50
50
  get_introspection_data(namespace, klass).find_vfunc name
51
51
  end
52
52
 
53
- def skip_below(introduction_version);
53
+ def skip_below(introduction_version)
54
54
  unless LATEST_VERSION >= introduction_version
55
55
  raise "Version #{introduction_version} is too new and would always be skipped"
56
56
  end
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.15.1
4
+ version: 0.15.2
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: 2019-10-20 00:00:00.000000000 Z
11
+ date: 2019-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi