glib2 3.0.8 → 3.0.9
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/extconf.rb +0 -1
- data/ext/glib2/rbglib-variant-type.c +5 -1
- data/ext/glib2/rbglib-variant.c +21 -7
- data/ext/glib2/rbglib.c +0 -38
- data/ext/glib2/rbglib.h +2 -2
- data/ext/glib2/rbglib_convert.c +3 -9
- data/ext/glib2/rbglib_matchinfo.c +4 -0
- data/ext/glib2/rbglib_regex.c +12 -1
- data/ext/glib2/rbgobj_object.c +112 -10
- data/ext/glib2/rbgobj_signal.c +12 -1
- data/ext/glib2/rbgobj_type.c +7 -1
- data/ext/glib2/rbgobject.c +0 -6
- data/ext/glib2/rbgprivate.h +0 -4
- data/ext/glib2/rbgutil.c +0 -2
- data/ext/glib2/rbgutil.h +1 -3
- data/lib/glib2.rb +7 -0
- data/lib/gnome2/rake/external-package.rb +118 -2
- data/lib/gnome2/rake/package-task.rb +63 -3
- data/lib/gnome2/rake/windows-binary-build-task.rb +343 -337
- data/lib/gnome2/rake/windows-binary-download-task.rb +151 -148
- data/lib/mkmf-gnome2.rb +11 -30
- data/test/test-binding.rb +157 -66
- data/test/test_glib2.rb +21 -6
- metadata +3 -3
data/test/test_glib2.rb
CHANGED
@@ -61,16 +61,31 @@ class TestGLib < Test::Unit::TestCase
|
|
61
61
|
assert_equal(GLib.convert(utf8, "UTF-8", "UTF-8"), utf8)
|
62
62
|
assert_equal(GLib.convert(utf8, "EUC-JP", "UTF-8"), euc)
|
63
63
|
assert_equal(GLib.convert(utf8, "SHIFT_JIS", "UTF-8"), sjis)
|
64
|
+
end
|
65
|
+
|
66
|
+
def tet_locale_to_utf8
|
67
|
+
assert_equal(Encoding::UTF8,
|
68
|
+
GLib.locale_to_utf8("ascii").encoding)
|
69
|
+
end
|
70
|
+
|
71
|
+
def tet_locale_from_utf8
|
72
|
+
assert_equal(Encoding::ASCII_8BIT,
|
73
|
+
GLib.locale_from_utf8("ascii").encoding)
|
74
|
+
end
|
75
|
+
|
76
|
+
def tet_filename_to_utf8
|
77
|
+
assert_equal(Encoding::UTF8,
|
78
|
+
GLib.filename_to_utf8("ascii.txt").encoding)
|
79
|
+
end
|
80
|
+
|
81
|
+
def tet_filename_from_utf8
|
82
|
+
assert_equal(Encoding::ASCII_8BIT,
|
83
|
+
GLib.filename_from_utf8("ascii.txt").encoding)
|
84
|
+
end
|
64
85
|
|
65
|
-
# rb_define_module_function(mGLib, "locale_to_utf8", rbglib_m_locale_to_utf8, 1);
|
66
|
-
# rb_define_module_function(mGLib, "locale_from_utf8", rbglib_m_locale_from_utf8, 1);
|
67
|
-
# rb_define_module_function(mGLib, "filename_to_utf8", rbglib_m_filename_to_utf8, 1);
|
68
|
-
# rb_define_module_function(mGLib, "filename_from_utf8", rbglib_m_filename_from_utf8, 1);
|
69
|
-
#
|
70
86
|
# rb_define_module_function(mGLib, "filename_to_uri", rbglib_m_filename_to_uri, -1);
|
71
87
|
# rb_define_module_function(mGLib, "filename_from_uri", rbglib_m_filename_from_uri, 1);
|
72
88
|
|
73
|
-
end
|
74
89
|
|
75
90
|
def test_messages
|
76
91
|
#rb_define_module_function(mGLog, "set_handler", rbglib_m_log_set_handler, 2);
|
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.0.
|
4
|
+
version: 3.0.9
|
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: 2016-
|
11
|
+
date: 2016-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pkg-config
|
@@ -184,7 +184,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
184
184
|
requirements:
|
185
185
|
- - ">="
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: 1.
|
187
|
+
version: 2.1.0
|
188
188
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
189
|
requirements:
|
190
190
|
- - ">="
|