gio2 3.3.9 → 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: 1014bfa574a888933a08cc6602ce126df5253f30a7993505586cb139511fb193
4
- data.tar.gz: 4fc73396410f70ed1c5a9ef3ee78e49a5d0a51a505a49c84827b72fdcc174b83
3
+ metadata.gz: 138ddca477b5cf838c9ccdc71dbef66f6cc99b5e3ee01a7ccfc306b83f14e707
4
+ data.tar.gz: befdaf22fab6d09c8ecafea74b81f7e265c6635630676372e1df1b59b6745ebf
5
5
  SHA512:
6
- metadata.gz: e95f78e6f2e21e296ea06ceaacaa49396ce95d80b789d63e427b0ea8f788d8c115c832836ffd91b984c36f221f7791d2834b4f0479b5a161b176db42a8425527
7
- data.tar.gz: f5f82a625a9f9f56dedfdac36d759c6266a20290ae73ab28a409f5a60b666aa46b7e24cf312bfa34f1888c1f94439d372c889f6deab6ab89aad676a70998e0ad
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,8 +17,8 @@
17
17
  module GioTestUtils
18
18
  module Fixture
19
19
  def fixture_path(*components)
20
- base_dir = File.join(File.dirname(__FILE__), "..", "fixture")
21
- File.expand_path(File.join(base_dir, *components))
20
+ File.expand_path(File.join(*components),
21
+ ENV["GIO2_FIXTURE_DIR"] || File.join("test", "fixture"))
22
22
  end
23
23
  end
24
24
  end
data/test/run-test.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
- # Copyright (C) 2013-2016 Ruby-GNOME2 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,40 +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
- ruby_gnome2_base = File.join(File.dirname(__FILE__), "..", "..")
20
- ruby_gnome2_base = File.expand_path(ruby_gnome2_base)
21
-
22
- glib_base = File.join(ruby_gnome2_base, "glib2")
23
- gobject_introspection_base = File.join(ruby_gnome2_base, "gobject-introspection")
24
- gio2_base = File.join(ruby_gnome2_base, "gio2")
25
-
26
- modules = [
27
- [glib_base, "glib2"],
28
- [gobject_introspection_base, "gobject-introspection"],
29
- [gio2_base, "gio2"],
30
- ]
31
-
32
- modules.each do |target, module_name|
33
- makefile = File.join(target, "Makefile")
34
- if File.exist?(makefile) and system("which make > /dev/null")
35
- `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)
36
36
  end
37
- $LOAD_PATH.unshift(File.join(target, "ext", module_name))
38
- $LOAD_PATH.unshift(File.join(target, "lib"))
39
- end
40
37
 
41
- fixture_dir = File.join(gio2_base, "test", "fixture")
42
- Dir.chdir(fixture_dir) do
43
- system("rake") or exit(false)
38
+ require_relative "gio2-test-utils"
44
39
  end
45
- ENV["GSETTINGS_SCHEMA_DIR"] = File.join(fixture_dir, "schema", "default")
46
-
47
- $LOAD_PATH.unshift(File.join(glib_base, "test"))
48
- require "glib-test-init"
49
-
50
- $LOAD_PATH.unshift(File.join(gio2_base, "test"))
51
- require "gio2-test-utils"
52
-
53
- require "gio2"
54
-
55
- 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.3.9
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: 2019-10-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.3.9
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.3.9
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,8 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  - !ruby/object:Gem::Version
119
119
  version: '0'
120
120
  requirements: []
121
- rubyforge_project:
122
- rubygems_version: 2.7.6.2
121
+ rubygems_version: 3.3.0.dev
123
122
  signing_key:
124
123
  specification_version: 4
125
124
  summary: Ruby/GIO2 is a Ruby binding of gio-2.x.