glib2 3.0.8 → 3.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.8
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-04-03 00:00:00.000000000 Z
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.9.3
187
+ version: 2.1.0
188
188
  required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  requirements:
190
190
  - - ">="