gio2 3.5.1 → 4.0.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: 736a1c5275a435a8ba65b375c1e08124841c12d460f4457af0e5908bd6e011db
4
- data.tar.gz: dbc3c5a4442ca2ec6414a542dc57809bfbceefd4c735176f5690d209b56a278c
3
+ metadata.gz: 92089ae175f0fe3596b73deeecf2865914b089e5680dd975e1f8b56a1060fffc
4
+ data.tar.gz: dfaedc32754ea222c0f2aa0ecc39a3c6fd3326c37a929d36ab78e8ef9bafe27f
5
5
  SHA512:
6
- metadata.gz: 1a5be761ccfd5e11e98bc21834c4c689932c97202233ce756bb14e1dbff756aa387b3a7e2e90c95f8634bba210b2b68376d38be43deaa0f51cc42b4a395490ec
7
- data.tar.gz: 5236c7bcd2db1d1a14f746d27533985cc718e301ff232126fec8cbb4bdc5802bb7ea8dfa79547518e905dc2ec21ac466c6a110c9282ea2d1eb3bfdc8c0ad8f3c
6
+ metadata.gz: ad6dd29fcf7552aad5c8431eb261e0bc1325c81e885c19e17ad8c8dc43eb6ae290aa4f11d6e38e7620dd4a08b461071ff876307061b4c5a2960b85ba2b34125b
7
+ data.tar.gz: 81a37ab84b41b716508b720e0bb8166a72fe028d6a8f8b19406645c28501c80509afd957e6ad0afc4c26300f8e25bc3a1b24817b6a79ad6227bea496055eb27e
data/ext/gio2/rb-gio2.c CHANGED
@@ -22,21 +22,6 @@
22
22
 
23
23
  #define RG_TARGET_NAMESPACE rb_mGio
24
24
 
25
- #ifdef _WIN32
26
- /* Workaround: See glib2/ext/glib2/rbglib.c for details. */
27
- BOOL WINAPI
28
- DllMain(G_GNUC_UNUSED HINSTANCE hinstDLL,
29
- G_GNUC_UNUSED DWORD fdwReason,
30
- G_GNUC_UNUSED LPVOID lpvReserved);
31
- BOOL WINAPI
32
- DllMain(G_GNUC_UNUSED HINSTANCE hinstDLL,
33
- G_GNUC_UNUSED DWORD fdwReason,
34
- G_GNUC_UNUSED LPVOID lpvReserved)
35
- {
36
- return TRUE;
37
- }
38
- #endif
39
-
40
25
  void
41
26
  Init_gio2 (void)
42
27
  {
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2015 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2015-2022 Ruby-GNOME2 Project Team
2
2
  #
3
3
  # This library is free software; you can redistribute it and/or
4
4
  # modify it under the terms of the GNU Lesser General Public
@@ -48,4 +48,19 @@ class TestActionMap < Test::Unit::TestCase
48
48
  assert_equal([action, "X"], args)
49
49
  end
50
50
  end
51
+
52
+ def test_gc
53
+ GC.start
54
+ n_alive_actions_before = ObjectSpace.each_object(Gio::SimpleAction) {}
55
+ n_tries = 100
56
+ n_tries.times do |i|
57
+ action_name = "test#{i}"
58
+ action = Gio::SimpleAction.new(action_name)
59
+ @map.add_action(action)
60
+ end
61
+ GC.start
62
+ n_alive_actions_after = ObjectSpace.each_object(Gio::SimpleAction) {}
63
+ n_alive_actions = n_alive_actions_after - n_alive_actions_before
64
+ assert_equal(n_tries, n_alive_actions)
65
+ end
51
66
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gio2
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Ruby-GNOME Project Team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-17 00:00:00.000000000 Z
11
+ date: 2022-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fiddle
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.5.1
33
+ version: 4.0.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 3.5.1
40
+ version: 4.0.2
41
41
  description: Ruby/GIO2 provide Ruby binding to a VFS API and useful APIs for desktop
42
42
  applications (such as networking and D-Bus support).
43
43
  email: ruby-gnome2-devel-en@lists.sourceforge.net
@@ -124,7 +124,7 @@ licenses:
124
124
  - LGPL-2.1+
125
125
  metadata:
126
126
  msys2_mingw_dependencies: glib-networking
127
- post_install_message:
127
+ post_install_message:
128
128
  rdoc_options: []
129
129
  require_paths:
130
130
  - lib
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  version: '0'
141
141
  requirements: []
142
142
  rubygems_version: 3.4.0.dev
143
- signing_key:
143
+ signing_key:
144
144
  specification_version: 4
145
145
  summary: Ruby/GIO2 is a Ruby binding of gio-2.x.
146
146
  test_files: []