gio2 3.4.2 → 3.4.6

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: 75fe99fb019058b4123b68e7e842775045cfef99abe481183159eec5358f647c
4
- data.tar.gz: 44df8cb622524ab801addebcb4326274358db3b7fb08f5aa8c71683591764598
3
+ metadata.gz: ef58987d07af5f06ea593eceab589a95dce5b35e990fd5dac714e98d1c8d0fe4
4
+ data.tar.gz: 23d8dcefbd46e830d3f29a740172f6dba4b9623124ce32e9dd554c0180ea457e
5
5
  SHA512:
6
- metadata.gz: 60a1d62c7aa9a6ccc11538fd10c276df8560abb8857ed18c31ac4587b6999a9915f2ea19a16f25aec7ee90fc53d641f34b1a33195f2577b8200a49bb03aee54c
7
- data.tar.gz: 31aeab7572e86ae2dd0345106c4717000c6bf29a3968437cb1ae4c4875c8374aca05874ae360fb89c40a9d97d31de8e0617d242e923031a0bc3cb3bad95a9ef3
6
+ metadata.gz: 77301aa8d469e99ff51022391bd074965bfb45e8d83973fd89f584fd44622368c6632c71c85d7b1c950ef70b0f61035e3a5b8fcca37075470244974b10c09f7e
7
+ data.tar.gz: 3f3b00fd4b7041c55dc8414a8477412394e1c5e7295054c5ca6b215b983371129abd4f972b2f94b82f8def7bdd0191c51263fcb0e53f7ec5d7436e8bc14bda1c
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2013-2019 Ruby-GNOME2 Project Team
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
- require "gio2-test-utils/fixture"
23
- require "gio2-test-utils/omissions"
24
- require "gio2-test-utils/socket-client"
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("test", "fixture", *components))
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-2020 Ruby-GNOME Project Team
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
- require "fileutils"
20
-
21
- build_dir = File.expand_path(".")
22
-
23
- ruby_gnome_base = File.join(__dir__, "..", "..")
24
- ruby_gnome_base = File.expand_path(ruby_gnome_base)
25
-
26
- glib_base = File.join(ruby_gnome_base, "glib2")
27
- gobject_introspection_base = File.join(ruby_gnome_base, "gobject-introspection")
28
- gio2_base = File.join(ruby_gnome_base, "gio2")
29
-
30
- modules = [
31
- [glib_base, "glib2"],
32
- [gobject_introspection_base, "gobject-introspection"],
33
- [gio2_base, "gio2"],
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
- source_fixture_dir = File.join(gio2_base, "test", "fixture")
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.2
4
+ version: 3.4.6
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: 2020-05-02 00:00:00.000000000 Z
11
+ date: 2021-07-16 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.2
19
+ version: 3.4.6
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.2
26
+ version: 3.4.6
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.2.0.pre1
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.