glib2 3.1.9-x64-mingw32 → 3.2.0-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/glib2/rbglib.h +2 -2
- data/ext/glib2/rbglib_iochannel.c +34 -3
- data/ext/glib2/rbglib_source.c +4 -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/test/{test_iochannel.rb → test-iochannel.rb} +54 -11
- 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/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/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/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.dll.a +0 -0
- data/vendor/local/lib/libpcrecpp.dll.a +0 -0
- data/vendor/local/lib/libpcreposix.dll.a +0 -0
- 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/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
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d3feb5b387a0896c521eaf676801d17cbd7ad12
|
4
|
+
data.tar.gz: e7958bcdfd0211c4986b3811171c355da608536f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d451a5b5edbf0de9f2592039f7cdfc0a5bc19ee39b068f0b3ce78772ebbc664e163d4feb3f12a75d9613519f3c189907dd71ff7c8919afeaac12769282a84186
|
7
|
+
data.tar.gz: 307aa8d84494b268aca1fe6c082c96c78acae4a59bd3dbd25db63662f3ad92fa4bfdd434f4e04d4854475efc62a8fa70b9b1b2fb8b2515ff7868681e129b5356
|
data/ext/glib2/rbglib.h
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
2
|
/*
|
3
|
-
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
3
|
+
* Copyright (C) 2011-2017 Ruby-GNOME2 Project Team
|
4
4
|
* Copyright (C) 2005 Masao Mutoh
|
5
5
|
*
|
6
6
|
* This library is free software; you can redistribute it and/or
|
@@ -27,6 +27,8 @@ static ID id_unpack;
|
|
27
27
|
|
28
28
|
static VALUE default_rs;
|
29
29
|
|
30
|
+
static VALUE rb_mIOChannelSource;
|
31
|
+
|
30
32
|
#define RG_TARGET_NAMESPACE cIOChannel
|
31
33
|
#define _SELF(s) ((GIOChannel*)RVAL2BOXED(s, G_TYPE_IO_CHANNEL))
|
32
34
|
|
@@ -499,8 +501,17 @@ rg_close(gint argc, VALUE *argv, VALUE self)
|
|
499
501
|
static VALUE
|
500
502
|
rg_create_watch(VALUE self, VALUE condition)
|
501
503
|
{
|
502
|
-
|
503
|
-
|
504
|
+
VALUE rb_source;
|
505
|
+
|
506
|
+
rb_source = BOXED2RVAL(g_io_create_watch(_SELF(self), NUM2INT(condition)),
|
507
|
+
G_TYPE_SOURCE);
|
508
|
+
rb_extend_object(rb_source, rb_mIOChannelSource);
|
509
|
+
if (rb_block_given_p()) {
|
510
|
+
ID id_set_callback;
|
511
|
+
CONST_ID(id_set_callback, "set_callback");
|
512
|
+
rb_funcall(rb_source, id_set_callback, 0);
|
513
|
+
}
|
514
|
+
return rb_source;
|
504
515
|
}
|
505
516
|
|
506
517
|
static gboolean
|
@@ -529,6 +540,20 @@ guint g_io_add_watch_full (GIOChannel *channel,
|
|
529
540
|
GDestroyNotify notify);
|
530
541
|
*/
|
531
542
|
|
543
|
+
static VALUE
|
544
|
+
rg_io_channel_source_set_callback(VALUE self)
|
545
|
+
{
|
546
|
+
VALUE callback;
|
547
|
+
|
548
|
+
callback = rb_block_proc();
|
549
|
+
G_RELATIVE(self, callback);
|
550
|
+
g_source_set_callback(RVAL2BOXED(self, G_TYPE_SOURCE),
|
551
|
+
(GSourceFunc)io_func,
|
552
|
+
(gpointer)callback,
|
553
|
+
(GDestroyNotify)NULL);
|
554
|
+
return self;
|
555
|
+
}
|
556
|
+
|
532
557
|
static VALUE
|
533
558
|
rg_buffer_size(VALUE self)
|
534
559
|
{
|
@@ -818,4 +843,10 @@ Init_glib_io_channel(void)
|
|
818
843
|
rb_define_const(RG_TARGET_NAMESPACE, "FLAG_MASK", INT2NUM(G_IO_FLAG_MASK));
|
819
844
|
rb_define_const(RG_TARGET_NAMESPACE, "FLAG_GET_MASK", INT2NUM(G_IO_FLAG_GET_MASK));
|
820
845
|
rb_define_const(RG_TARGET_NAMESPACE, "FLAG_SET_MASK", INT2NUM(G_IO_FLAG_SET_MASK));
|
846
|
+
|
847
|
+
rb_mIOChannelSource = rb_define_module_under(mGLib, "IOChannelSource");
|
848
|
+
rb_define_method(rb_mIOChannelSource,
|
849
|
+
"set_callback",
|
850
|
+
rg_io_channel_source_set_callback,
|
851
|
+
0);
|
821
852
|
}
|
data/ext/glib2/rbglib_source.c
CHANGED
data/lib/2.2/glib2.so
CHANGED
Binary file
|
data/lib/2.3/glib2.so
CHANGED
Binary file
|
data/lib/2.4/glib2.so
CHANGED
Binary file
|
@@ -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
|
@@ -13,19 +13,16 @@
|
|
13
13
|
# You should have received a copy of the GNU Lesser General Public
|
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
17
|
require 'test/unit'
|
18
18
|
require 'glib2'
|
19
19
|
|
20
20
|
require 'tempfile'
|
21
|
-
require 'nkf'
|
22
|
-
|
23
|
-
$KCODE = "U" unless defined?(:Encoding)
|
24
21
|
|
25
22
|
class TestGIOChannel < Test::Unit::TestCase
|
26
23
|
def setup
|
27
24
|
@content = "aaa\nbbb\nccc\nあああ\n"
|
28
|
-
@sjis_content =
|
25
|
+
@sjis_content = @content.encode("CP932")
|
29
26
|
|
30
27
|
@file = Tempfile.new("glib2-content")
|
31
28
|
@file.open
|
@@ -65,7 +62,7 @@ class TestGIOChannel < Test::Unit::TestCase
|
|
65
62
|
GLib::IOChannel.open(write_test_file.path, "w") do |_io|
|
66
63
|
io = _io
|
67
64
|
assert_raises(RuntimeError) do
|
68
|
-
|
65
|
+
assert_equal(@content, io.read)
|
69
66
|
end
|
70
67
|
end
|
71
68
|
|
@@ -81,8 +78,8 @@ class TestGIOChannel < Test::Unit::TestCase
|
|
81
78
|
def test_getc
|
82
79
|
io = GLib::IOChannel.new(@file.path)
|
83
80
|
["a", "b", "c", "あ"].each do |v|
|
84
|
-
3.times do
|
85
|
-
|
81
|
+
3.times do
|
82
|
+
assert_equal(v.unpack("U")[0], io.getc)
|
86
83
|
end
|
87
84
|
assert_equal("\n".unpack("U")[0], io.getc)
|
88
85
|
end
|
@@ -162,7 +159,7 @@ class TestGIOChannel < Test::Unit::TestCase
|
|
162
159
|
io = GLib::IOChannel.new(@file.path)
|
163
160
|
assert_raises(RuntimeError) {
|
164
161
|
io.each {|line|
|
165
|
-
|
162
|
+
raise "test"
|
166
163
|
}
|
167
164
|
}
|
168
165
|
io.close
|
@@ -179,7 +176,7 @@ class TestGIOChannel < Test::Unit::TestCase
|
|
179
176
|
GLib::IOChannel.open(@file.path) do |_io|
|
180
177
|
io = _io
|
181
178
|
io.each_with_index do |line, _i|
|
182
|
-
|
179
|
+
assert_equal(lines[_i], line)
|
183
180
|
end
|
184
181
|
end
|
185
182
|
|
@@ -286,4 +283,50 @@ class TestGIOChannel < Test::Unit::TestCase
|
|
286
283
|
GLib::IOChannel.new("foo")
|
287
284
|
}
|
288
285
|
end
|
286
|
+
|
287
|
+
sub_test_case("#create_watch") do
|
288
|
+
def setup
|
289
|
+
super
|
290
|
+
@context = GLib::MainContext.new
|
291
|
+
end
|
292
|
+
|
293
|
+
def test_with_block
|
294
|
+
GLib::IOChannel.open(@file.path) do |channel|
|
295
|
+
received_condition = nil
|
296
|
+
source = channel.create_watch(GLib::IOChannel::IN) do |_, condition|
|
297
|
+
received_condition = condition
|
298
|
+
GLib::Source::CONTINUE
|
299
|
+
end
|
300
|
+
begin
|
301
|
+
source.attach(@context)
|
302
|
+
10.times do
|
303
|
+
@context.iteration(false)
|
304
|
+
end
|
305
|
+
assert_equal(GLib::IOCondition::IN, received_condition)
|
306
|
+
ensure
|
307
|
+
source.destroy
|
308
|
+
end
|
309
|
+
end
|
310
|
+
end
|
311
|
+
|
312
|
+
def test_set_callback
|
313
|
+
GLib::IOChannel.open(@file.path) do |channel|
|
314
|
+
received_condition = nil
|
315
|
+
source = channel.create_watch(GLib::IOChannel::IN)
|
316
|
+
source.set_callback do |_, condition|
|
317
|
+
received_condition = condition
|
318
|
+
GLib::Source::CONTINUE
|
319
|
+
end
|
320
|
+
begin
|
321
|
+
source.attach(@context)
|
322
|
+
10.times do
|
323
|
+
@context.iteration(false)
|
324
|
+
end
|
325
|
+
assert_equal(GLib::IOCondition::IN, received_condition)
|
326
|
+
ensure
|
327
|
+
source.destroy
|
328
|
+
end
|
329
|
+
end
|
330
|
+
end
|
331
|
+
end
|
289
332
|
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
|
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
|
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
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
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.
|
4
|
+
version: 3.2.0
|
5
5
|
platform: x64-mingw32
|
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-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pkg-config
|
@@ -185,6 +185,7 @@ files:
|
|
185
185
|
- test/test-binding.rb
|
186
186
|
- test/test-bytes.rb
|
187
187
|
- test/test-date-time.rb
|
188
|
+
- test/test-iochannel.rb
|
188
189
|
- test/test-match-info.rb
|
189
190
|
- test/test-regex.rb
|
190
191
|
- test/test-time-zone.rb
|
@@ -195,7 +196,6 @@ files:
|
|
195
196
|
- test/test_file_utils.rb
|
196
197
|
- test/test_flags.rb
|
197
198
|
- test/test_glib2.rb
|
198
|
-
- test/test_iochannel.rb
|
199
199
|
- test/test_key_file.rb
|
200
200
|
- test/test_mkenums.rb
|
201
201
|
- test/test_poll_fd.rb
|