gio2 4.0.2 → 4.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/gio2/extconf.rb +16 -2
- data/ext/gio2/rb-gio2.h +1 -1
- data/lib/gio2/loader.rb +16 -1
- data/lib/gio2/volume.rb +28 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0dccbff18b8661efd653d6434e0576022697659a59cd3845067a6edd9dcd2600
|
4
|
+
data.tar.gz: 4a1733edcd774e9706488e703a409f9d305c79e6b3d2c85e53b3fbe18f91331f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2fcef3fc3e8b9359ae48a1e518e5c6848588975846466ff5ba2c5e60364cfb0cd708c87e68952bdab6d4a97f72bf7acc4b3d0faab66ce0a4d31fbc80b2c1224
|
7
|
+
data.tar.gz: b15381acb02fc0ea1c21cbd7ca63e03230780cdd448612b69126ca7fe3c2fd79e12845460e753efeba0bed1b3b5264e3b0bef7def53370107732388adbbf99d5
|
data/ext/gio2/extconf.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
#
|
3
|
-
# Copyright (C) 2014-
|
3
|
+
# Copyright (C) 2014-2022 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
|
@@ -38,7 +38,7 @@ package_id = "gio-2.0"
|
|
38
38
|
|
39
39
|
require "mkmf-gnome"
|
40
40
|
|
41
|
-
["glib2"
|
41
|
+
["glib2"].each do |package|
|
42
42
|
directory = "#{package}#{version_suffix}"
|
43
43
|
build_base_path = "#{directory}/tmp/#{RUBY_PLATFORM}"
|
44
44
|
package_library_name = package.gsub(/-/, "_")
|
@@ -66,6 +66,20 @@ end
|
|
66
66
|
create_pkg_config_file("Ruby/GIO2", package_id)
|
67
67
|
|
68
68
|
$defs << "-DRUBY_GIO2_COMPILATION"
|
69
|
+
case RUBY_PLATFORM
|
70
|
+
when /darwin/
|
71
|
+
symbols_in_external_bundles = [
|
72
|
+
"_rbg_define_method",
|
73
|
+
"_rbgobj_add_relative",
|
74
|
+
"_rbgobj_boxed_get",
|
75
|
+
"_rbgobj_gvalue_to_rvalue",
|
76
|
+
"_rbgobj_ruby_object_from_instance",
|
77
|
+
"_rbgobj_set_signal_func",
|
78
|
+
]
|
79
|
+
symbols_in_external_bundles.each do |symbol|
|
80
|
+
$DLDFLAGS << " -Wl,-U,#{symbol}"
|
81
|
+
end
|
82
|
+
end
|
69
83
|
create_makefile(module_name)
|
70
84
|
|
71
85
|
pkg_config_dir = with_config("pkg-config-dir")
|
data/ext/gio2/rb-gio2.h
CHANGED
data/lib/gio2/loader.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2013-
|
1
|
+
# Copyright (C) 2013-2022 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
|
@@ -76,6 +76,7 @@ module Gio
|
|
76
76
|
require "gio2/settings"
|
77
77
|
require "gio2/settings-schema-source"
|
78
78
|
require "gio2/simple-action"
|
79
|
+
require "gio2/volume"
|
79
80
|
|
80
81
|
require "gio2/deprecated"
|
81
82
|
end
|
@@ -210,6 +211,20 @@ module Gio
|
|
210
211
|
end
|
211
212
|
end
|
212
213
|
|
214
|
+
def rubyish_method_name(function_info, options={})
|
215
|
+
case function_info.name
|
216
|
+
when "get_mount"
|
217
|
+
case function_info.container&.name
|
218
|
+
when "Volume"
|
219
|
+
"get_mount"
|
220
|
+
else
|
221
|
+
super
|
222
|
+
end
|
223
|
+
else
|
224
|
+
super
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
213
228
|
def rubyish_class_name(info)
|
214
229
|
case info.name
|
215
230
|
when /Enum\z/
|
data/lib/gio2/volume.rb
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# Copyright (C) 2022 Ruby-GNOME Project Team
|
2
|
+
#
|
3
|
+
# This library is free software; you can redistribute it and/or
|
4
|
+
# modify it under the terms of the GNU Lesser General Public
|
5
|
+
# License as published by the Free Software Foundation; either
|
6
|
+
# version 2.1 of the License, or (at your option) any later version.
|
7
|
+
#
|
8
|
+
# This library is distributed in the hope that it will be useful,
|
9
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
11
|
+
# Lesser General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU Lesser General Public
|
14
|
+
# License along with this library; if not, write to the Free Software
|
15
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
16
|
+
|
17
|
+
module Gio
|
18
|
+
module Volume
|
19
|
+
alias_method :mount_raw, :mount
|
20
|
+
def mount(*args, &block)
|
21
|
+
if args.size.zero?
|
22
|
+
get_mount
|
23
|
+
else
|
24
|
+
mount_raw(*args, &block)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
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.0.
|
4
|
+
version: 4.0.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: 2022-09
|
11
|
+
date: 2022-12-09 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: 4.0.
|
33
|
+
version: 4.0.4
|
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: 4.0.
|
40
|
+
version: 4.0.4
|
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
|
@@ -79,6 +79,7 @@ files:
|
|
79
79
|
- lib/gio2/settings-schema-source.rb
|
80
80
|
- lib/gio2/settings.rb
|
81
81
|
- lib/gio2/simple-action.rb
|
82
|
+
- lib/gio2/volume.rb
|
82
83
|
- test/fixture/Rakefile
|
83
84
|
- test/fixture/content-type/x-content/unix-software/autorun.sh
|
84
85
|
- test/fixture/resource/Rakefile
|