glib2 3.1.0-x64-mingw32 → 3.1.1-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +2 -2
- data/ext/glib2/rbglib.c +2 -0
- data/ext/glib2/rbglib.h +1 -1
- data/ext/glib2/rbglib2conversions.h +3 -0
- data/ext/glib2/rbglib_datetime.c +250 -0
- data/ext/glib2/rbglib_timezone.c +82 -0
- data/ext/glib2/rbgprivate.h +2 -0
- data/lib/2.2/glib2.so +0 -0
- data/lib/2.3/glib2.so +0 -0
- data/lib/2.4/glib2.so +0 -0
- data/lib/glib2.rb +15 -7
- data/lib/gnome2/rake/external-package.rb +35 -5
- data/lib/gnome2/rake/source-download-task.rb +25 -5
- data/lib/mkmf-gnome2.rb +1 -6
- data/test/test-date-time.rb +112 -0
- data/test/test-time-zone.rb +31 -0
- data/vendor/local/bin/asn1Coding.exe +0 -0
- data/vendor/local/bin/asn1Decoding.exe +0 -0
- data/vendor/local/bin/asn1Parser.exe +0 -0
- data/vendor/local/bin/envsubst.exe +0 -0
- data/vendor/local/bin/gdbus.exe +0 -0
- data/vendor/local/bin/gettext.exe +0 -0
- data/vendor/local/bin/gio-querymodules.exe +0 -0
- data/vendor/local/bin/gio.exe +0 -0
- data/vendor/local/bin/glib-compile-resources.exe +0 -0
- data/vendor/local/bin/glib-compile-schemas.exe +0 -0
- data/vendor/local/bin/glib-genmarshal.exe +0 -0
- data/vendor/local/bin/gobject-query.exe +0 -0
- data/vendor/local/bin/gresource.exe +0 -0
- data/vendor/local/bin/gsettings.exe +0 -0
- data/vendor/local/bin/gspawn-win64-helper-console.exe +0 -0
- data/vendor/local/bin/gspawn-win64-helper.exe +0 -0
- data/vendor/local/bin/iconv.exe +0 -0
- data/vendor/local/bin/idn.exe +0 -0
- data/vendor/local/bin/libasprintf-0.dll +0 -0
- data/vendor/local/bin/libcharset-1.dll +0 -0
- data/vendor/local/bin/libffi-6.dll +0 -0
- data/vendor/local/bin/libgio-2.0-0.dll +0 -0
- data/vendor/local/bin/libglib-2.0-0.dll +0 -0
- data/vendor/local/bin/libgmodule-2.0-0.dll +0 -0
- data/vendor/local/bin/libgmp-10.dll +0 -0
- data/vendor/local/bin/libgnutls-30.dll +0 -0
- data/vendor/local/bin/libgobject-2.0-0.dll +0 -0
- data/vendor/local/bin/libgthread-2.0-0.dll +0 -0
- data/vendor/local/bin/libhogweed-4-2.dll +0 -0
- data/vendor/local/bin/libiconv-2.dll +0 -0
- data/vendor/local/bin/libidn-11.dll +0 -0
- data/vendor/local/bin/libintl-8.dll +0 -0
- data/vendor/local/bin/libnettle-6-2.dll +0 -0
- data/vendor/local/bin/libp11-kit-0.dll +0 -0
- data/vendor/local/bin/libpcre-1.dll +0 -0
- data/vendor/local/bin/libpcrecpp-0.dll +0 -0
- data/vendor/local/bin/libpcreposix-0.dll +0 -0
- data/vendor/local/bin/libtasn1-6.dll +0 -0
- data/vendor/local/bin/nettle-hash.exe +0 -0
- data/vendor/local/bin/nettle-lfib-stream.exe +0 -0
- data/vendor/local/bin/nettle-pbkdf2.exe +0 -0
- data/vendor/local/bin/ngettext.exe +0 -0
- data/vendor/local/bin/p11-kit.exe +0 -0
- data/vendor/local/bin/pcre-config +1 -1
- data/vendor/local/bin/pcregrep.exe +0 -0
- data/vendor/local/bin/pcretest.exe +0 -0
- data/vendor/local/bin/pkcs1-conv.exe +0 -0
- data/vendor/local/bin/sexp-conv.exe +0 -0
- data/vendor/local/bin/trust.exe +0 -0
- data/vendor/local/include/pcre.h +2 -2
- data/vendor/local/lib/gio/modules/libgiognutls.dll +0 -0
- data/vendor/local/lib/gio/modules/libgiognutls.dll.a +0 -0
- data/vendor/local/lib/libasprintf.dll.a +0 -0
- data/vendor/local/lib/libcharset.dll.a +0 -0
- data/vendor/local/lib/libffi.dll.a +0 -0
- data/vendor/local/lib/libgio-2.0.dll.a +0 -0
- data/vendor/local/lib/libglib-2.0.dll.a +0 -0
- data/vendor/local/lib/libgmodule-2.0.dll.a +0 -0
- data/vendor/local/lib/libgmp.dll.a +0 -0
- data/vendor/local/lib/libgnutls.dll.a +0 -0
- data/vendor/local/lib/libgobject-2.0.dll.a +0 -0
- data/vendor/local/lib/libgthread-2.0.dll.a +0 -0
- data/vendor/local/lib/libhogweed.dll.a +0 -0
- data/vendor/local/lib/libiconv.dll.a +0 -0
- data/vendor/local/lib/libidn.dll.a +0 -0
- data/vendor/local/lib/libintl.dll.a +0 -0
- data/vendor/local/lib/libnettle.dll.a +0 -0
- data/vendor/local/lib/libp11-kit.dll.a +0 -0
- data/vendor/local/lib/libpcre.a +0 -0
- data/vendor/local/lib/libpcre.dll.a +0 -0
- data/vendor/local/lib/libpcre.la +1 -1
- data/vendor/local/lib/libpcrecpp.dll.a +0 -0
- data/vendor/local/lib/libpcreposix.a +0 -0
- data/vendor/local/lib/libpcreposix.dll.a +0 -0
- data/vendor/local/lib/libpcreposix.la +1 -1
- data/vendor/local/lib/libtasn1.dll.a +0 -0
- data/vendor/local/lib/p11-kit/p11-kit-remote.exe +0 -0
- data/vendor/local/lib/pkcs11/p11-kit-trust.dll +0 -0
- data/vendor/local/lib/pkcs11/p11-kit-trust.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/libpcre.pc +1 -1
- data/vendor/local/lib/pkgconfig/libpcrecpp.pc +1 -1
- data/vendor/local/lib/pkgconfig/libpcreposix.pc +1 -1
- data/vendor/local/share/doc/pcre/AUTHORS +3 -3
- data/vendor/local/share/doc/pcre/ChangeLog +140 -1
- data/vendor/local/share/doc/pcre/LICENCE +3 -3
- data/vendor/local/share/doc/pcre/NEWS +15 -0
- data/vendor/local/share/doc/pcre/html/pcreapi.html +4 -5
- data/vendor/local/share/doc/pcre/html/pcrecompat.html +1 -1
- data/vendor/local/share/doc/pcre/html/pcrepattern.html +20 -17
- data/vendor/local/share/doc/pcre/pcre.txt +2024 -2020
- data/vendor/local/share/glib-2.0/codegen/__init__.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/__init__.pyo +0 -0
- data/vendor/local/share/glib-2.0/codegen/codegen.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/codegen.pyo +0 -0
- data/vendor/local/share/glib-2.0/codegen/codegen_docbook.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/codegen_docbook.pyo +0 -0
- data/vendor/local/share/glib-2.0/codegen/codegen_main.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/codegen_main.pyo +0 -0
- data/vendor/local/share/glib-2.0/codegen/config.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/config.pyo +0 -0
- data/vendor/local/share/glib-2.0/codegen/dbustypes.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/dbustypes.pyo +0 -0
- data/vendor/local/share/glib-2.0/codegen/parser.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/parser.pyo +0 -0
- data/vendor/local/share/glib-2.0/codegen/utils.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/utils.pyo +0 -0
- data/vendor/local/share/license/pcre/AUTHORS +3 -3
- data/vendor/local/share/man/man3/pcreapi.3 +5 -6
- data/vendor/local/share/man/man3/pcrecompat.3 +1 -1
- data/vendor/local/share/man/man3/pcrepattern.3 +20 -17
- metadata +11 -3
@@ -51,6 +51,7 @@ module GNOME2
|
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
|
+
private
|
54
55
|
def define_download_tasks
|
55
56
|
namespace :download do
|
56
57
|
@package.external_packages.each do |package|
|
@@ -68,15 +69,34 @@ module GNOME2
|
|
68
69
|
file tar_full_path.to_s => directory_path.to_s do
|
69
70
|
archive_url = package.archive_url
|
70
71
|
rake_output_message "Downloading... #{archive_url}"
|
71
|
-
|
72
|
-
tar_full_path.open("wb") do |tar_file|
|
73
|
-
tar_file.print(downloaded_tar.read)
|
74
|
-
end
|
75
|
-
end
|
72
|
+
download(archive_url, tar_full_path)
|
76
73
|
end
|
77
74
|
end
|
78
75
|
end
|
79
76
|
end
|
77
|
+
|
78
|
+
def download(url, output_path)
|
79
|
+
OpenURI.singleton_class.class_eval do
|
80
|
+
alias_method :redirectable_original?, :redirectable?
|
81
|
+
def redirectable?(uri1, uri2)
|
82
|
+
redirectable_original?(uri1, uri2) or
|
83
|
+
(uri1.scheme.downcase == "http" and
|
84
|
+
uri2.scheme.downcase == "https")
|
85
|
+
end
|
86
|
+
end
|
87
|
+
begin
|
88
|
+
open(url) do |input|
|
89
|
+
output_path.open("wb") do |output_file|
|
90
|
+
output_file.print(input.read)
|
91
|
+
end
|
92
|
+
end
|
93
|
+
ensure
|
94
|
+
OpenURI.singleton_class.class_eval do
|
95
|
+
alias_method :redirectable?, :redirectable_original?
|
96
|
+
remove_method :redirectable_original?
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
80
100
|
end
|
81
101
|
end
|
82
102
|
end
|
data/lib/mkmf-gnome2.rb
CHANGED
@@ -140,12 +140,7 @@ end
|
|
140
140
|
|
141
141
|
def find_gem_spec(package)
|
142
142
|
begin
|
143
|
-
|
144
|
-
if Gem::Specification.respond_to?(:find_by_name)
|
145
|
-
Gem::Specification.find_by_name(package)
|
146
|
-
else
|
147
|
-
Gem.source_index.find_name(package).last
|
148
|
-
end
|
143
|
+
Gem::Specification.find_by_name(package)
|
149
144
|
rescue LoadError
|
150
145
|
nil
|
151
146
|
end
|
@@ -0,0 +1,112 @@
|
|
1
|
+
# Copyright (C) 2016 Ruby-GNOME2 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
|
+
class TestDateTime < Test::Unit::TestCase
|
18
|
+
def test_now_local
|
19
|
+
now = GLib::DateTime.now(:local)
|
20
|
+
format = "%Y-%m-%d-%H-%M"
|
21
|
+
assert_equal(Time.now.strftime(format), now.format(format))
|
22
|
+
end
|
23
|
+
|
24
|
+
sub_test_case "new" do
|
25
|
+
|
26
|
+
test "unix: :local" do
|
27
|
+
time = Time.now
|
28
|
+
format = "%Y-%m-%d-%H-%M"
|
29
|
+
datetime = GLib::DateTime.new(:unix => time.to_i,
|
30
|
+
:timezone => :local)
|
31
|
+
assert_equal(time.strftime(format), datetime.format(format))
|
32
|
+
end
|
33
|
+
|
34
|
+
test "unix: :utc" do
|
35
|
+
time = Time.now.utc
|
36
|
+
format = "%Y-%m-%d-%H-%M"
|
37
|
+
datetime = GLib::DateTime.new(:unix => time.to_i,
|
38
|
+
:timezone => :utc)
|
39
|
+
assert_equal(time.strftime(format), datetime.format(format))
|
40
|
+
end
|
41
|
+
|
42
|
+
test "timezone: :local" do
|
43
|
+
time = Time.now
|
44
|
+
datetime = GLib::DateTime.new(:timezone => :local,
|
45
|
+
:year => time.year,
|
46
|
+
:month => time.month,
|
47
|
+
:day => time.day,
|
48
|
+
:hour => time.hour,
|
49
|
+
:minute => time.min,
|
50
|
+
:second => time.sec)
|
51
|
+
assert_equal(time.year, datetime.year)
|
52
|
+
assert_equal(time.month, datetime.month)
|
53
|
+
assert_equal(time.day, datetime.day_of_month)
|
54
|
+
assert_equal(time.hour, datetime.hour)
|
55
|
+
assert_equal(time.min, datetime.minute)
|
56
|
+
assert_equal(time.sec, datetime.second)
|
57
|
+
end
|
58
|
+
|
59
|
+
test "timezone: :utc" do
|
60
|
+
time = Time.now.utc
|
61
|
+
datetime = GLib::DateTime.new(:timezone => :utc,
|
62
|
+
:year => time.year,
|
63
|
+
:month => time.month,
|
64
|
+
:day => time.day,
|
65
|
+
:hour => time.hour,
|
66
|
+
:minute => time.min,
|
67
|
+
:second => time.sec)
|
68
|
+
assert_equal(time.year, datetime.year)
|
69
|
+
assert_equal(time.month, datetime.month)
|
70
|
+
assert_equal(time.day, datetime.day_of_month)
|
71
|
+
assert_equal(time.hour, datetime.hour)
|
72
|
+
assert_equal(time.min, datetime.minute)
|
73
|
+
assert_equal(time.sec, datetime.second)
|
74
|
+
end
|
75
|
+
|
76
|
+
test "timezone: local time zone" do
|
77
|
+
time = Time.now
|
78
|
+
tz = GLib::TimeZone.local
|
79
|
+
datetime = GLib::DateTime.new(:timezone => tz,
|
80
|
+
:year => time.year,
|
81
|
+
:month => time.month,
|
82
|
+
:day => time.day,
|
83
|
+
:hour => time.hour,
|
84
|
+
:minute => time.min,
|
85
|
+
:second => time.sec)
|
86
|
+
assert_equal(time.year, datetime.year)
|
87
|
+
assert_equal(time.month, datetime.month)
|
88
|
+
assert_equal(time.day, datetime.day_of_month)
|
89
|
+
assert_equal(time.hour, datetime.hour)
|
90
|
+
assert_equal(time.min, datetime.minute)
|
91
|
+
assert_equal(time.sec, datetime.second)
|
92
|
+
end
|
93
|
+
|
94
|
+
test "timezone: UTC time zone" do
|
95
|
+
time = Time.now.utc
|
96
|
+
tz = GLib::TimeZone.utc
|
97
|
+
datetime = GLib::DateTime.new(:timezone => tz,
|
98
|
+
:year => time.year,
|
99
|
+
:month => time.month,
|
100
|
+
:day => time.day,
|
101
|
+
:hour => time.hour,
|
102
|
+
:minute => time.min,
|
103
|
+
:second => time.sec)
|
104
|
+
assert_equal(time.year, datetime.year)
|
105
|
+
assert_equal(time.month, datetime.month)
|
106
|
+
assert_equal(time.day, datetime.day_of_month)
|
107
|
+
assert_equal(time.hour, datetime.hour)
|
108
|
+
assert_equal(time.min, datetime.minute)
|
109
|
+
assert_equal(time.sec, datetime.second)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Copyright (C) 2016 Ruby-GNOME2 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
|
+
class TestTimeZone < Test::Unit::TestCase
|
18
|
+
sub_test_case "new" do
|
19
|
+
test "local" do
|
20
|
+
local_1 = GLib::TimeZone.local
|
21
|
+
local_2 = GLib::TimeZone.new
|
22
|
+
assert_equal(local_1.abbreviation(0), local_2.abbreviation(0))
|
23
|
+
end
|
24
|
+
|
25
|
+
test "UTC" do
|
26
|
+
utc_1 = GLib::TimeZone.utc
|
27
|
+
utc_2 = GLib::TimeZone.new("UTC")
|
28
|
+
assert_equal(utc_1.offset(0), utc_2.offset(0))
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/local/bin/gdbus.exe
CHANGED
Binary file
|
Binary file
|
Binary file
|
data/vendor/local/bin/gio.exe
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/local/bin/iconv.exe
CHANGED
Binary file
|
data/vendor/local/bin/idn.exe
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/local/bin/trust.exe
CHANGED
Binary file
|
data/vendor/local/include/pcre.h
CHANGED
@@ -42,9 +42,9 @@ POSSIBILITY OF SUCH DAMAGE.
|
|
42
42
|
/* The current PCRE version information. */
|
43
43
|
|
44
44
|
#define PCRE_MAJOR 8
|
45
|
-
#define PCRE_MINOR
|
45
|
+
#define PCRE_MINOR 40
|
46
46
|
#define PCRE_PRERELEASE
|
47
|
-
#define PCRE_DATE
|
47
|
+
#define PCRE_DATE 2017-01-11
|
48
48
|
|
49
49
|
/* When an application links to a PCRE DLL in Windows, the symbols that are
|
50
50
|
imported have to be identified as such. When building PCRE, the appropriate
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/local/lib/libpcre.a
CHANGED
Binary file
|
Binary file
|
data/vendor/local/lib/libpcre.la
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -8,7 +8,7 @@ Email domain: cam.ac.uk
|
|
8
8
|
University of Cambridge Computing Service,
|
9
9
|
Cambridge, England.
|
10
10
|
|
11
|
-
Copyright (c) 1997-
|
11
|
+
Copyright (c) 1997-2017 University of Cambridge
|
12
12
|
All rights reserved
|
13
13
|
|
14
14
|
|
@@ -19,7 +19,7 @@ Written by: Zoltan Herczeg
|
|
19
19
|
Email local part: hzmester
|
20
20
|
Emain domain: freemail.hu
|
21
21
|
|
22
|
-
Copyright(c) 2010-
|
22
|
+
Copyright(c) 2010-2017 Zoltan Herczeg
|
23
23
|
All rights reserved.
|
24
24
|
|
25
25
|
|
@@ -30,7 +30,7 @@ Written by: Zoltan Herczeg
|
|
30
30
|
Email local part: hzmester
|
31
31
|
Emain domain: freemail.hu
|
32
32
|
|
33
|
-
Copyright(c) 2009-
|
33
|
+
Copyright(c) 2009-2017 Zoltan Herczeg
|
34
34
|
All rights reserved.
|
35
35
|
|
36
36
|
|