gio2 3.5.1 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/gio2/rb-gio2.c +0 -15
- data/test/test-action-map.rb +16 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b5e34c082355845f0337e9cc9eb5d7920f4bdc6d3cb20b9d39816d32a9c83ef
|
4
|
+
data.tar.gz: 23826fc95c1e0dd04519f71e8a0f3f7666c37efde104cada4347f17b7442a5c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b897deaa5c4e925bad0a84ea627f1e103e3a96ffd2f0386fa591a200880704f30e9ee01f9aba2b5f63dc5bff96fcaa78815b88913ab8b5a4fbbed3f7ea38f886
|
7
|
+
data.tar.gz: 2b6425a6332534efa1368b43b4e55207a99901884be705b0fdf96b927f9c14dd0e22e5b3155ca7d594682bd35ff174c1055129fed736a026031143e1d9242372
|
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
|
{
|
data/test/test-action-map.rb
CHANGED
@@ -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:
|
4
|
+
version: 4.0.0
|
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
|
11
|
+
date: 2022-09-01 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:
|
33
|
+
version: 4.0.0
|
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:
|
40
|
+
version: 4.0.0
|
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: []
|