glib2 3.1.3 → 3.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +8 -8
- data/ext/glib2/extconf.rb +2 -1
- data/ext/glib2/rbglib.h +1 -1
- data/ext/glib2/rbgobj_object.c +13 -0
- data/lib/glib2/deprecatable.rb +6 -2
- data/lib/gnome2/rake/external-package.rb +25 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4a0e809eb3966b864ba319af252ace4d8d0e0ec
|
4
|
+
data.tar.gz: 1421bc6c6c4bc59d90b1c34d0bb697fa7110dd68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7501d41d4435ad1a036be55210a03a44b9261d173fa24feb7c0f6838ac2a8a46bb86feb7d4ca41b43d9f8763d9f1753777f132bcdfe2a54e4eeb66d68c57feee
|
7
|
+
data.tar.gz: ccb5160f1b25a62f3813dd059b4328f6efb3dd1b37114eacbfc2cd26be3c53dc52cfe18ba32c89f1a06d61779e41a485c3d38771fd36f86c89522ee85e2d2cf3
|
data/Rakefile
CHANGED
@@ -37,8 +37,8 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
|
|
37
37
|
package.summary = "Ruby/GLib2 is a Ruby binding of GLib-2.x."
|
38
38
|
package.description = "Ruby/GLib2 is a Ruby binding of GLib-2.x."
|
39
39
|
package.dependency.gem.runtime = [
|
40
|
-
["pkg-config", ">=
|
41
|
-
["native-package-installer", ">= 0"],
|
40
|
+
["pkg-config", ">= 1.2.2"],
|
41
|
+
["native-package-installer", ">= 1.0.3"],
|
42
42
|
]
|
43
43
|
package.dependency.gem.development = [["test-unit", ">= 2"]]
|
44
44
|
package.windows.packages = []
|
@@ -48,7 +48,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
|
|
48
48
|
:name => "libiconv",
|
49
49
|
:download_site => :gnu,
|
50
50
|
:label => "libiconv",
|
51
|
-
:version => "1.
|
51
|
+
:version => "1.15",
|
52
52
|
:windows => {
|
53
53
|
:built_file => "bin/libiconv-2.dll",
|
54
54
|
},
|
@@ -57,7 +57,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
|
|
57
57
|
:name => "gettext",
|
58
58
|
:download_site => :gnu,
|
59
59
|
:label => "gettext-runtime",
|
60
|
-
:version => "0.19.
|
60
|
+
:version => "0.19.8.1",
|
61
61
|
:base_dir_in_package => "gettext-runtime",
|
62
62
|
:windows => {
|
63
63
|
:built_file => "bin/libintl-8.dll",
|
@@ -101,9 +101,9 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
|
|
101
101
|
},
|
102
102
|
{
|
103
103
|
:name => "gmp",
|
104
|
-
:
|
104
|
+
:download_site => :gnu,
|
105
105
|
:label => "GNU MP",
|
106
|
-
:version => "6.1.
|
106
|
+
:version => "6.1.2",
|
107
107
|
:compression_method => "xz",
|
108
108
|
:windows => {
|
109
109
|
:configure_args => [
|
@@ -127,7 +127,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
|
|
127
127
|
:name => "libtasn1",
|
128
128
|
:download_site => :gnu,
|
129
129
|
:label => "Libtasn1",
|
130
|
-
:version => "4.
|
130
|
+
:version => "4.10",
|
131
131
|
:windows => {
|
132
132
|
:built_file => "bin/libtasn1-6.dll",
|
133
133
|
},
|
@@ -136,7 +136,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
|
|
136
136
|
:name => "libidn",
|
137
137
|
:download_site => :gnu,
|
138
138
|
:label => "Libidn",
|
139
|
-
:version => "1.
|
139
|
+
:version => "1.33",
|
140
140
|
:windows => {
|
141
141
|
:built_file => "bin/libidn-11.dll",
|
142
142
|
},
|
data/ext/glib2/extconf.rb
CHANGED
@@ -22,7 +22,8 @@ unless required_pkg_config_package([package_id, 2, 12, 0],
|
|
22
22
|
:redhat => "glib2-devel",
|
23
23
|
:arch_linux => "glib2",
|
24
24
|
:homebrew => "glib",
|
25
|
-
:macports => "glib2"
|
25
|
+
:macports => "glib2",
|
26
|
+
:msys2 => "glib2")
|
26
27
|
exit(false)
|
27
28
|
end
|
28
29
|
PKGConfig.have_package('gthread-2.0')
|
data/ext/glib2/rbglib.h
CHANGED
data/ext/glib2/rbgobj_object.c
CHANGED
@@ -784,6 +784,18 @@ gobj_ref_count(VALUE self)
|
|
784
784
|
return INT2NUM(holder->gobj ? holder->gobj->ref_count : 0);
|
785
785
|
}
|
786
786
|
|
787
|
+
static VALUE
|
788
|
+
rg_floating_p(VALUE self)
|
789
|
+
{
|
790
|
+
gobj_holder* holder;
|
791
|
+
Data_Get_Struct(self, gobj_holder, holder);
|
792
|
+
if (holder->gobj) {
|
793
|
+
return CBOOL2RVAL(g_object_is_floating(holder->gobj));
|
794
|
+
} else {
|
795
|
+
return Qfalse;
|
796
|
+
}
|
797
|
+
}
|
798
|
+
|
787
799
|
/**********************************************************************/
|
788
800
|
|
789
801
|
static GQuark q_ruby_setter;
|
@@ -979,6 +991,7 @@ Init_gobject_gobject(void)
|
|
979
991
|
|
980
992
|
RG_DEF_METHOD(initialize, -1);
|
981
993
|
rbg_define_method(RG_TARGET_NAMESPACE, "ref_count", gobj_ref_count, 0); /* for debugging */
|
994
|
+
RG_DEF_METHOD_P(floating, 0); /* for debugging */
|
982
995
|
RG_DEF_METHOD(unref, 0);
|
983
996
|
RG_DEF_METHOD(inspect, 0);
|
984
997
|
RG_DEF_METHOD(type_name, 0);
|
data/lib/glib2/deprecatable.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2015 Ruby-GNOME2 Project Team
|
1
|
+
# Copyright (C) 2015-2017 Ruby-GNOME2 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
|
@@ -165,7 +165,11 @@ module GLib
|
|
165
165
|
case new_method
|
166
166
|
when String, Symbol
|
167
167
|
warn "#{msg} Use '#{klass}#{sep}#{new_method}'."
|
168
|
-
|
168
|
+
if block
|
169
|
+
block.call(self, *margs, &mblock)
|
170
|
+
else
|
171
|
+
__send__(new_method, *margs, &mblock)
|
172
|
+
end
|
169
173
|
when Hash
|
170
174
|
if new_method[:raise]
|
171
175
|
raise DeprecatedError.new("#{msg} #{new_method[:raise]}")
|
@@ -107,6 +107,8 @@ module GNOME2
|
|
107
107
|
latest_version_freedesktop
|
108
108
|
when :freedesktop_gstreamer
|
109
109
|
latest_version_freedesktop_gstreamer
|
110
|
+
when :gnu
|
111
|
+
latest_version_gnu
|
110
112
|
when :webkitgtk
|
111
113
|
latest_version_webkitgtk
|
112
114
|
when :icu
|
@@ -138,7 +140,8 @@ module GNOME2
|
|
138
140
|
base_url = freedesktop_gstreamer_base_url
|
139
141
|
base_url << "/#{name}"
|
140
142
|
when :gnu
|
141
|
-
base_url =
|
143
|
+
base_url = gnu_base_url
|
144
|
+
base_url << "/#{name}"
|
142
145
|
when :webkitgtk
|
143
146
|
base_url = webkitgtk_base_url
|
144
147
|
when :icu
|
@@ -161,6 +164,10 @@ module GNOME2
|
|
161
164
|
"https://gstreamer.freedesktop.org/src"
|
162
165
|
end
|
163
166
|
|
167
|
+
def gnu_base_url
|
168
|
+
"https://ftp.gnu.org/pub/gnu"
|
169
|
+
end
|
170
|
+
|
164
171
|
def webkitgtk_base_url
|
165
172
|
"https://webkitgtk.org/releases"
|
166
173
|
end
|
@@ -247,6 +254,23 @@ module GNOME2
|
|
247
254
|
version.split(".")[1].to_i.odd?
|
248
255
|
end
|
249
256
|
|
257
|
+
def latest_version_gnu
|
258
|
+
base_url = "#{gnu_base_url}/#{name}"
|
259
|
+
versions = []
|
260
|
+
open(base_url) do |index|
|
261
|
+
index.read.scan(/<a (.+?)>/) do |content,|
|
262
|
+
case content
|
263
|
+
when /href="#{Regexp.escape(name)}-
|
264
|
+
(\d+(?:\.\d+)*)
|
265
|
+
\.tar\.#{Regexp.escape(compression_method)}"/x
|
266
|
+
version = $1
|
267
|
+
versions << version
|
268
|
+
end
|
269
|
+
end
|
270
|
+
end
|
271
|
+
sort_versions(versions).last
|
272
|
+
end
|
273
|
+
|
250
274
|
def latest_version_webkitgtk
|
251
275
|
base_url = webkitgtk_base_url
|
252
276
|
versions = []
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glib2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Ruby-GNOME2 Project Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pkg-config
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.2.2
|
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:
|
26
|
+
version: 1.2.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: native-package-installer
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 1.0.3
|
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:
|
40
|
+
version: 1.0.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: test-unit
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|