gio2 3.4.3 → 3.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/test/gio2-test-utils.rb +4 -6
- data/test/gio2-test-utils/fixture.rb +2 -1
- data/test/run-test.rb +19 -45
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 138ddca477b5cf838c9ccdc71dbef66f6cc99b5e3ee01a7ccfc306b83f14e707
|
4
|
+
data.tar.gz: befdaf22fab6d09c8ecafea74b81f7e265c6635630676372e1df1b59b6745ebf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f96c352bb1a331bdc0ecb274191c366dcc78028922ca7db7c32319e0d9fb07cb148388e1aa00e25a6c21f4fe25192fdbd00315ac042bdb327d57131ddfe22db7
|
7
|
+
data.tar.gz: ff4cab5b4bcc05f11fe03f549e651a2af17800e7ec8b0a40f20ed415ed340cb68d744a353520e617af3fdbc497df5d844714f5c22645a8f5d93d2a67bc926f4a
|
data/test/gio2-test-utils.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2013-
|
1
|
+
# Copyright (C) 2013-2021 Ruby-GNOME 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
|
@@ -14,11 +14,9 @@
|
|
14
14
|
# License along with this library; if not, write to the Free Software
|
15
15
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
16
16
|
|
17
|
-
require "test-unit"
|
18
|
-
|
19
17
|
require "pathname"
|
20
18
|
require "tempfile"
|
21
19
|
|
22
|
-
|
23
|
-
|
24
|
-
|
20
|
+
require_relative "gio2-test-utils/fixture"
|
21
|
+
require_relative "gio2-test-utils/omissions"
|
22
|
+
require_relative "gio2-test-utils/socket-client"
|
@@ -17,7 +17,8 @@
|
|
17
17
|
module GioTestUtils
|
18
18
|
module Fixture
|
19
19
|
def fixture_path(*components)
|
20
|
-
File.expand_path(File.join(
|
20
|
+
File.expand_path(File.join(*components),
|
21
|
+
ENV["GIO2_FIXTURE_DIR"] || File.join("test", "fixture"))
|
21
22
|
end
|
22
23
|
end
|
23
24
|
end
|
data/test/run-test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
#
|
3
|
-
# Copyright (C) 2013-
|
3
|
+
# Copyright (C) 2013-2021 Ruby-GNOME Project Team
|
4
4
|
#
|
5
5
|
# This library is free software; you can redistribute it and/or
|
6
6
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -16,50 +16,24 @@
|
|
16
16
|
# License along with this library; if not, write to the Free Software
|
17
17
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
modules.each do |target, module_name|
|
37
|
-
makefile = File.join(target, "Makefile")
|
38
|
-
if File.exist?(makefile) and system("which make > /dev/null")
|
39
|
-
`make -C #{target.dump} > /dev/null` or exit(false)
|
19
|
+
require_relative "../../glib2/test/run-test"
|
20
|
+
|
21
|
+
run_test(__dir__,
|
22
|
+
[
|
23
|
+
"glib2",
|
24
|
+
"gobject-introspection",
|
25
|
+
"gio2",
|
26
|
+
]) do |context|
|
27
|
+
ENV["GSETTINGS_SCHEMA_DIR"] = File.join(context[:build_fixture_dir],
|
28
|
+
"schema",
|
29
|
+
"default")
|
30
|
+
ENV["GIO2_FIXTURE_DIR"] = context[:build_fixture_dir]
|
31
|
+
begin
|
32
|
+
require "gio2"
|
33
|
+
rescue GObjectIntrospection::RepositoryError
|
34
|
+
puts("Omit because typelib file doesn't exist: #{$!.message}")
|
35
|
+
exit(true)
|
40
36
|
end
|
41
|
-
$LOAD_PATH.unshift(File.join(target, "ext", module_name))
|
42
|
-
$LOAD_PATH.unshift(File.join(target, "lib"))
|
43
|
-
end
|
44
37
|
|
45
|
-
|
46
|
-
build_fixture_dir = File.join(build_dir, "test", "fixture")
|
47
|
-
unless source_fixture_dir == build_fixture_dir
|
48
|
-
FileUtils.rm_rf(build_fixture_dir)
|
49
|
-
FileUtils.mkdir_p(File.dirname(build_fixture_dir))
|
50
|
-
FileUtils.cp_r(source_fixture_dir, build_fixture_dir)
|
38
|
+
require_relative "gio2-test-utils"
|
51
39
|
end
|
52
|
-
Dir.chdir(build_fixture_dir) do
|
53
|
-
system("rake") or exit(false)
|
54
|
-
end
|
55
|
-
ENV["GSETTINGS_SCHEMA_DIR"] = File.join(build_fixture_dir, "schema", "default")
|
56
|
-
|
57
|
-
$LOAD_PATH.unshift(File.join(glib_base, "test"))
|
58
|
-
require "glib-test-init"
|
59
|
-
|
60
|
-
$LOAD_PATH.unshift(File.join(gio2_base, "test"))
|
61
|
-
require "gio2-test-utils"
|
62
|
-
|
63
|
-
require "gio2"
|
64
|
-
|
65
|
-
exit Test::Unit::AutoRunner.run(true, File.join(gio2_base, "test"))
|
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.4.
|
4
|
+
version: 3.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Ruby-GNOME Project Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gobject-introspection
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.4.
|
19
|
+
version: 3.4.4
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.4.
|
26
|
+
version: 3.4.4
|
27
27
|
description: Ruby/GIO2 provide Ruby binding to a VFS API and useful APIs for desktop
|
28
28
|
applications (such as networking and D-Bus support).
|
29
29
|
email: ruby-gnome2-devel-en@lists.sourceforge.net
|
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
118
|
- !ruby/object:Gem::Version
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
|
-
rubygems_version: 3.
|
121
|
+
rubygems_version: 3.3.0.dev
|
122
122
|
signing_key:
|
123
123
|
specification_version: 4
|
124
124
|
summary: Ruby/GIO2 is a Ruby binding of gio-2.x.
|