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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99d51001fc87d4bc235f1b2f5df25a7ba1a0c069cab89e61f067a61a125d6777
4
- data.tar.gz: d5da86a4e2e1d93187386c85e45b4d18b2dc7d44445486ce49c908e4f55912a1
3
+ metadata.gz: 138ddca477b5cf838c9ccdc71dbef66f6cc99b5e3ee01a7ccfc306b83f14e707
4
+ data.tar.gz: befdaf22fab6d09c8ecafea74b81f7e265c6635630676372e1df1b59b6745ebf
5
5
  SHA512:
6
- metadata.gz: 6aa12b63db3f8f8bf8f8c498b0bb5aa766814104962795b2ccc27c04d58ca12dfa877a68ee012d26b247231960c17725b784b8b185af0d8c750e9a9b2b386430
7
- data.tar.gz: 7ab6e2c799557730cd051d0f0a2b8e893f3a98e84cd5c4c34af5f95d65d8f7ccdad612219a0f3fa0d3da3387849657850c9fa8313a4ba5beae1872bd557a2da1
6
+ metadata.gz: f96c352bb1a331bdc0ecb274191c366dcc78028922ca7db7c32319e0d9fb07cb148388e1aa00e25a6c21f4fe25192fdbd00315ac042bdb327d57131ddfe22db7
7
+ data.tar.gz: ff4cab5b4bcc05f11fe03f549e651a2af17800e7ec8b0a40f20ed415ed340cb68d744a353520e617af3fdbc497df5d844714f5c22645a8f5d93d2a67bc926f4a
@@ -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.3
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: 2020-05-10 00:00:00.000000000 Z
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.3
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.3
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.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.