gio2 3.5.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- 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: 3e4bd2f89ea07fd6aa5a724d7e93a2f8cf3af42034b3c031a55288989e725907
|
4
|
+
data.tar.gz: 750b0394b94ad7a8991cafd97b4b2c1ea65ce53549b0775ccd6a28c171734bea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68693ca8d76a492cf63dd501a8b0ecce844ea1644d08758fae2666a532aa349d879860f3d3571b98d9921f42f919e261f6d764a14e0fbea3fc60510787438a83
|
7
|
+
data.tar.gz: 2a102b2de3ba6ab4b87bf248a71a4bce9980020f84415eddc721e5f4682bb707d38f70b732d280030023219a68377295e65cde55c6016231eb2565f35fbe7ebf
|
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.1
|
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.1
|
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.1
|
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: []
|