glib2 3.0.5-x64-mingw32 → 3.0.6-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/ext/glib2/rbglib.h +1 -1
  3. data/ext/glib2/rbglib_fileutils.c +3 -3
  4. data/ext/glib2/rbgobj_flags.c +4 -1
  5. data/ext/glib2/rbgobj_object.c +1 -1
  6. data/ext/glib2/rbgobj_signal.c +10 -5
  7. data/ext/glib2/rbgobject.c +4 -1
  8. data/ext/glib2/rbgutil.c +8 -4
  9. data/lib/2.0/glib2.so +0 -0
  10. data/lib/2.1/glib2.so +0 -0
  11. data/lib/2.2/glib2.so +0 -0
  12. data/lib/glib-mkenums.rb +1 -1
  13. data/lib/glib2.rb +14 -3
  14. data/lib/glib2/deprecatable.rb +16 -0
  15. data/lib/glib2/version.rb +37 -0
  16. data/lib/gnome2-raketask.rb +1 -1
  17. data/lib/gnome2/rake/external-package.rb +1 -1
  18. data/lib/gnome2/rake/native-binary-build-task.rb +1 -1
  19. data/lib/gnome2/rake/package-task.rb +1 -1
  20. data/lib/gnome2/rake/package.rb +1 -1
  21. data/lib/gnome2/rake/source-download-task.rb +1 -1
  22. data/lib/gnome2/rake/windows-binary-build-task.rb +1 -1
  23. data/lib/gnome2/rake/windows-binary-download-task.rb +1 -1
  24. data/lib/mkmf-gnome2.rb +1 -1
  25. data/test/glib-test-init.rb +16 -0
  26. data/test/glib-test-utils.rb +16 -0
  27. data/test/run-test.rb +16 -0
  28. data/test/test-version.rb +47 -0
  29. data/test/test_enum.rb +16 -1
  30. data/test/test_file_utils.rb +16 -2
  31. data/test/test_flags.rb +16 -2
  32. data/test/test_glib2.rb +17 -1
  33. data/test/test_iochannel.rb +16 -2
  34. data/test/test_key_file.rb +16 -2
  35. data/test/test_mkenums.rb +16 -2
  36. data/test/test_poll_fd.rb +1 -1
  37. data/test/test_signal.rb +16 -2
  38. data/test/test_source.rb +1 -1
  39. data/test/test_spawn.rb +16 -1
  40. data/test/test_timeout.rb +16 -2
  41. data/test/test_unicode.rb +16 -2
  42. data/test/test_utils.rb +16 -2
  43. data/test/test_value.rb +1 -1
  44. data/test/test_win32.rb +16 -2
  45. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c68107ea9975b817b02da19bb301bbb84fde328
4
- data.tar.gz: 06b5c9df5a1f4055e53651a1b896d44274bb35df
3
+ metadata.gz: 2c843cde378afeff4073f254f93d6a3616419c23
4
+ data.tar.gz: 7e3d38550ff892c5439e7401ed5f36b652dd77f0
5
5
  SHA512:
6
- metadata.gz: 187bb3f98e21460deda48fe16346ec89fd825612987e29a3b844782bf75086ffd83eaa1653e443f92da24530d3c97b4dc18fd92ff484627bf8aa3b7948cb7f77
7
- data.tar.gz: 9387ee914434de9bcc361977eb77bcd545e7d6b42aeb10f798cd1328562aedd39e39497ff0fe1111c70791dd248b6811072e2a6e843a600e5e013291cf583812
6
+ metadata.gz: f087b81bd8a4ef91d16a185737b1dbdb2e5f4f476948a08780493a8ac2bb72c0082580a5b2e6072c9146f5c77eea8b50b0323678136bcba5fed39e287db502cd
7
+ data.tar.gz: 47873d841297f350b96b4620edeb1f6152c744a092015a03aaf4ac42ee5e1cc1795310ea6dfefef929de14db2aabe5a99d5ad1b631cff4303513f2ba2c19b452
@@ -36,7 +36,7 @@ extern "C" {
36
36
 
37
37
  #define RBGLIB_MAJOR_VERSION 3
38
38
  #define RBGLIB_MINOR_VERSION 0
39
- #define RBGLIB_MICRO_VERSION 5
39
+ #define RBGLIB_MICRO_VERSION 6
40
40
 
41
41
  #ifndef RSTRING_PTR
42
42
  # define RSTRING_PTR(s) (RSTRING(s)->ptr)
@@ -53,7 +53,7 @@ void g_dir_close (GDir *dir);
53
53
  static VALUE
54
54
  rbglib_m_format_size_for_display(G_GNUC_UNUSED VALUE self, VALUE size)
55
55
  {
56
- return CSTR2RVAL_FREE(g_format_size_for_display(NUM2ULONG(size)));
56
+ return CSTR2RVAL_FREE(g_format_size_for_display(NUM2OFFT(size)));
57
57
  }
58
58
  #endif
59
59
 
@@ -65,14 +65,14 @@ rbglib_m_format_size(int argc, VALUE *argv, G_GNUC_UNUSED VALUE self)
65
65
 
66
66
  rb_scan_args(argc, argv, "11", &rb_size, &rb_options);
67
67
  if (NIL_P(rb_options)) {
68
- return CSTR2RVAL_FREE(g_format_size(NUM2ULONG(rb_size)));
68
+ return CSTR2RVAL_FREE(g_format_size(NUM2ULL(rb_size)));
69
69
  } else {
70
70
  VALUE rb_flags;
71
71
  rbg_scan_options(rb_options,
72
72
  "flags", &rb_flags,
73
73
  NULL);
74
74
 
75
- return CSTR2RVAL_FREE(g_format_size_full(NUM2ULONG(rb_size),
75
+ return CSTR2RVAL_FREE(g_format_size_full(NUM2ULL(rb_size),
76
76
  RVAL2GFORMATSIZEFLAGS(rb_flags)));
77
77
  }
78
78
  }
@@ -165,7 +165,10 @@ rbgobj_init_flags_class(VALUE klass)
165
165
  g_free(nick);
166
166
  }
167
167
 
168
- rb_funcall(klass, id_module_eval, 1, rb_str_new2(source->str));
168
+ rb_funcall(klass, id_module_eval, 3,
169
+ rb_str_new2(source->str),
170
+ rb_str_new2(__FILE__),
171
+ INT2NUM(__LINE__));
169
172
  g_string_free(source, TRUE);
170
173
 
171
174
  g_type_class_unref(gclass);
@@ -176,7 +176,6 @@ gobj_mark(gpointer ptr)
176
176
  GObject* gobj = ptr;
177
177
  guint n_properties;
178
178
  GParamSpec** properties;
179
- GValue gval = G_VALUE_INIT;
180
179
  guint i;
181
180
 
182
181
  properties = g_object_class_list_properties(G_OBJECT_GET_CLASS(gobj), &n_properties);
@@ -189,6 +188,7 @@ gobj_mark(gpointer ptr)
189
188
  /* FIXME: exclude types that doesn't have identity. */
190
189
 
191
190
  {
191
+ GValue gval = G_VALUE_INIT;
192
192
  g_value_init(&gval, value_type);
193
193
  g_object_get_property(gobj, pspec->name, &gval);
194
194
  rbgobj_gc_mark_gvalue(&gval);
@@ -174,12 +174,13 @@ gobj_s_signal_new(int argc, VALUE* argv, VALUE self)
174
174
 
175
175
  method_id = rb_to_id(rb_str_concat(rb_str_new2(default_handler_method_prefix), rbsignal_name));
176
176
 
177
- factory = rb_eval_string(
177
+ factory = ruby_eval_string_from_file(
178
178
  "lambda{|klass, id|\n"
179
179
  " lambda{|instance,*args|\n"
180
180
  " klass.instance_method(id).bind(instance).call(*args)\n"
181
181
  " }\n"
182
- "}\n");
182
+ "}\n",
183
+ __FILE__);
183
184
  proc = rb_funcall(factory, rb_intern("call"), 2, self, ID2SYM(method_id));
184
185
 
185
186
  class_closure = g_rclosure_new(proc, Qnil, NULL);
@@ -629,12 +630,13 @@ gobj_s_method_added(VALUE klass, VALUE id)
629
630
  }
630
631
 
631
632
  {
632
- VALUE f = rb_eval_string(
633
+ VALUE f = ruby_eval_string_from_file(
633
634
  "lambda{|klass, id|\n"
634
635
  " lambda{|instance,*args|\n"
635
636
  " klass.instance_method(id).bind(instance).call(*args)\n"
636
637
  " }\n"
637
- "}\n");
638
+ "}\n",
639
+ __FILE__);
638
640
  VALUE proc = rb_funcall(f, rb_intern("call"), 2, klass, id);
639
641
  GClosure* rclosure = g_rclosure_new(proc, Qnil,
640
642
  rbgobj_get_signal_func(signal_id));
@@ -887,7 +889,10 @@ rbgobj_define_action_methods(VALUE klass)
887
889
  }
888
890
 
889
891
  if (source->len > 0)
890
- rb_funcall(klass, rb_intern("module_eval"), 1, rb_str_new2(source->str));
892
+ rb_funcall(klass, rb_intern("module_eval"), 3,
893
+ rb_str_new2(source->str),
894
+ rb_str_new2(__FILE__),
895
+ INT2NUM(__LINE__));
891
896
  g_string_free(source, TRUE);
892
897
  }
893
898
 
@@ -335,7 +335,10 @@ rbgobj_define_property_accessors(VALUE klass)
335
335
  }
336
336
 
337
337
  if (source->len > 0)
338
- rb_funcall(klass, id_module_eval, 1, rb_str_new2(source->str));
338
+ rb_funcall(klass, id_module_eval, 3,
339
+ rb_str_new2(source->str),
340
+ rb_str_new2(__FILE__),
341
+ INT2NUM(__LINE__));
339
342
  g_string_free(source, TRUE);
340
343
  }
341
344
 
@@ -39,9 +39,11 @@ rbg_define_method(VALUE klass, const char *name, VALUE (*func)(ANYARGS), int arg
39
39
  return;
40
40
 
41
41
  name += 4;
42
- rb_funcall(klass, rbgutil_id_module_eval, 1,
42
+ rb_funcall(klass, rbgutil_id_module_eval, 3,
43
43
  CSTR2RVAL_FREE(g_strdup_printf("def %s=(val); set_%s(val); val; end\n",
44
- name, name)));
44
+ name, name)),
45
+ rb_str_new2(__FILE__),
46
+ INT2NUM(__LINE__));
45
47
  }
46
48
 
47
49
  void
@@ -52,9 +54,11 @@ rbg_define_singleton_method(VALUE obj, const char *name, VALUE (*func)(ANYARGS),
52
54
  return;
53
55
 
54
56
  name += 4;
55
- rb_funcall(obj, rbgutil_id_module_eval, 1,
57
+ rb_funcall(obj, rbgutil_id_module_eval, 3,
56
58
  CSTR2RVAL_FREE(g_strdup_printf("def self.%s=(val); set_%s(val); val; end\n",
57
- name, name)));
59
+ name, name)),
60
+ rb_str_new2(__FILE__),
61
+ INT2NUM(__LINE__));
58
62
  }
59
63
 
60
64
  void
Binary file
Binary file
Binary file
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # C language enum description generation library like as glib-mkenums tool.
5
5
  #
6
- # Copyright(C) 2006-2013 Ruby-GNOME2 Project.
6
+ # Copyright(C) 2006-2015 Ruby-GNOME2 Project.
7
7
  #
8
8
  # This program is licenced under the same license of Ruby-GNOME2.
9
9
  #
@@ -1,8 +1,18 @@
1
+ # Copyright (C) 2005-2015 Ruby-GNOME2 Project Team
1
2
  #
2
- # glib2.rb
3
- # Copyright(C) 2005-2010 Ruby-GNOME2 Project.
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.
4
7
  #
5
- # This program is licenced under the same license of Ruby-GNOME2.
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
6
16
 
7
17
  require 'pathname'
8
18
  require 'English'
@@ -221,6 +231,7 @@ GLib::Log.set_log_domain(GLib::Object::LOG_DOMAIN)
221
231
  GLib::Log.set_log_domain(GLib::Thread::LOG_DOMAIN)
222
232
  GLib::Log.set_log_domain(GLib::Module::LOG_DOMAIN)
223
233
 
234
+ require 'glib2/version'
224
235
  =begin
225
236
  Don't we need this?
226
237
  ObjectSpace.define_finalizer(GLib) {
@@ -1,3 +1,19 @@
1
+ # Copyright (C) 2015 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
+
1
17
  module GLib
2
18
  module Deprecatable
3
19
  unless respond_to?(:define_singleton_method)
@@ -0,0 +1,37 @@
1
+ # Copyright (C) 2015 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
+ module GLib
18
+ module Version
19
+ MAJOR = GLib::MAJOR_VERSION
20
+ MINOR = GLib::MINOR_VERSION
21
+ MICRO = GLib::MICRO_VERSION
22
+ STRING = "#{MAJOR}.#{MINOR}.#{MICRO}"
23
+
24
+ class << self
25
+ def or_later?(major, minor, micro=nil)
26
+ micro ||= 0
27
+ version = [
28
+ MAJOR,
29
+ MINOR,
30
+ MICRO,
31
+ ]
32
+ (version <=> [major, minor, micro]) >= 0
33
+ end
34
+ end
35
+
36
+ end
37
+ end
@@ -1,4 +1,4 @@
1
- # Copyright(C) 2013 Ruby-GNOME2 Project.
1
+ # Copyright(C) 2013-2015 Ruby-GNOME2 Project.
2
2
  #
3
3
  # This program is licenced under the same license of Ruby-GNOME2.
4
4
 
@@ -1,6 +1,6 @@
1
1
  # -*- ruby -*-
2
2
  #
3
- # Copyright (C) 2013 Ruby-GNOME2 Project Team
3
+ # Copyright (C) 2013-2015 Ruby-GNOME2 Project Team
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
@@ -1,6 +1,6 @@
1
1
  # -*- ruby -*-
2
2
  #
3
- # Copyright (C) 2013 Ruby-GNOME2 Project Team
3
+ # Copyright (C) 2013-2015 Ruby-GNOME2 Project Team
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
@@ -1,6 +1,6 @@
1
1
  # coding: utf-8
2
2
 
3
- # Copyright(C) 2011-2014 Ruby-GNOME2 Project.
3
+ # Copyright(C) 2011-2015 Ruby-GNOME2 Project.
4
4
  #
5
5
  # This program is licenced under the same license of Ruby-GNOME2.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # -*- ruby -*-
2
2
  #
3
- # Copyright (C) 2013-2014 Ruby-GNOME2 Project Team
3
+ # Copyright (C) 2013-2015 Ruby-GNOME2 Project Team
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
@@ -1,6 +1,6 @@
1
1
  # -*- ruby -*-
2
2
  #
3
- # Copyright (C) 2013 Ruby-GNOME2 Project Team
3
+ # Copyright (C) 2013-2015 Ruby-GNOME2 Project Team
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
@@ -1,4 +1,4 @@
1
- # Copyright(C) 2012 Ruby-GNOME2 Project.
1
+ # Copyright(C) 2012-2015 Ruby-GNOME2 Project.
2
2
  #
3
3
  # This program is licenced under the same license of Ruby-GNOME2.
4
4
 
@@ -1,4 +1,4 @@
1
- # Copyright(C) 2010-2012 Ruby-GNOME2 Project.
1
+ # Copyright(C) 2010-2015 Ruby-GNOME2 Project.
2
2
  #
3
3
  # This program is licenced under the same license of Ruby-GNOME2.
4
4
 
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # Extended mkmf for Ruby-GNOME2 and Ruby/GLib based libraries.
5
5
  #
6
- # Copyright(C) 2003-2013 Ruby-GNOME2 Project.
6
+ # Copyright(C) 2003-2015 Ruby-GNOME2 Project.
7
7
  #
8
8
  # This program is licenced under the same
9
9
  # license of Ruby-GNOME2.
@@ -1,3 +1,19 @@
1
+ # Copyright (C) 2015 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
+
1
17
  $VERBOSE = true
2
18
 
3
19
  require "rubygems"
@@ -1,3 +1,19 @@
1
+ # Copyright (C) 2015 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
+
1
17
  module GLibTestUtils
2
18
  private
3
19
  def only_glib_version(major, minor, micro)
@@ -1,4 +1,20 @@
1
1
  #!/usr/bin/env ruby
2
+ # Copyright (C) 2015 Ruby-GNOME2 Project Team
3
+ #
4
+ # This library is free software; you can redistribute it and/or
5
+ # modify it under the terms of the GNU Lesser General Public
6
+ # License as published by the Free Software Foundation; either
7
+ # version 2.1 of the License, or (at your option) any later version.
8
+ #
9
+ # This library is distributed in the hope that it will be useful,
10
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
+ # Lesser General Public License for more details.
13
+ #
14
+ # You should have received a copy of the GNU Lesser General Public
15
+ # License along with this library; if not, write to the Free Software
16
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
+
2
18
 
3
19
  base = File.expand_path(File.join(File.dirname(__FILE__)))
4
20
  top = File.expand_path(File.join(base, ".."))
@@ -0,0 +1,47 @@
1
+ # Copyright (C) 2015 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 TestGLibVersion < Test::Unit::TestCase
18
+ include GLibTestUtils
19
+
20
+ test "STRING" do
21
+ major = GLib::Version::MAJOR
22
+ minor = GLib::Version::MINOR
23
+ micro = GLib::Version::MICRO
24
+ assert_equal([major, minor, micro].join("."),
25
+ GLib::Version::STRING)
26
+ end
27
+
28
+ sub_test_case("#or_later?") do
29
+ test "same" do
30
+ assert_true(GLib::Version.or_later?(GLib::Version::MAJOR,
31
+ GLib::Version::MINOR,
32
+ GLib::Version::MICRO))
33
+ end
34
+
35
+ test "later" do
36
+ assert_true(GLib::Version.or_later?(GLib::Version::MAJOR,
37
+ GLib::Version::MINOR - 1,
38
+ GLib::Version::MICRO))
39
+ end
40
+
41
+ test "earlier" do
42
+ assert_false(GLib::Version.or_later?(GLib::Version::MAJOR,
43
+ GLib::Version::MINOR + 1,
44
+ GLib::Version::MICRO))
45
+ end
46
+ end
47
+ end
@@ -1,4 +1,19 @@
1
- # -*- coding: utf-8 -*-
1
+ # Copyright (C) 2015 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
+
2
17
  require 'test/unit'
3
18
  require 'glib2'
4
19
 
@@ -1,5 +1,19 @@
1
- # -*- coding: utf-8 -*-
2
-
1
+ # Copyright (C) 2015 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
+
3
17
  class TestGLibFileUtils < Test::Unit::TestCase
4
18
  include GLibTestUtils
5
19
 
@@ -1,5 +1,19 @@
1
- # -*- coding: utf-8 -*-
2
-
1
+ # Copyright (C) 2015 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
+
3
17
  require 'test/unit'
4
18
  require 'glib2'
5
19
 
@@ -1,4 +1,20 @@
1
- # coding: binary
1
+ # encoding: ascii-8bit
2
+ #
3
+ # Copyright (C) 2015 Ruby-GNOME2 Project Team
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2
18
 
3
19
  require 'test/unit'
4
20
  require 'glib2'
@@ -1,5 +1,19 @@
1
- # -*- coding: utf-8 -*-
2
-
1
+ # Copyright (C) 2015 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
+
3
17
  require 'test/unit'
4
18
  require 'glib2'
5
19
 
@@ -1,5 +1,19 @@
1
- # -*- coding: utf-8 -*-
2
-
1
+ # Copyright (C) 2015 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
+
3
17
  require 'tempfile'
4
18
 
5
19
  class TestGLibKeyFile < Test::Unit::TestCase
@@ -1,5 +1,19 @@
1
- # -*- coding: utf-8 -*-
2
-
1
+ # Copyright (C) 2015 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
+
3
17
  require 'glib-mkenums'
4
18
 
5
19
  class TestGLibMkEnums < Test::Unit::TestCase
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
- # Copyright (C) 2013 Ruby-GNOME2 Project Team
3
+ # Copyright (C) 2013-2015 Ruby-GNOME2 Project Team
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
@@ -1,5 +1,19 @@
1
- # -*- coding: utf-8 -*-
2
-
1
+ # Copyright (C) 2015 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
+
3
17
  class TestSignal < Test::Unit::TestCase
4
18
  def test_signal_flags
5
19
  assert_const_defined(GLib, :SignalFlags)
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
- # Copyright (C) 2013 Ruby-GNOME2 Project Team
3
+ # Copyright (C) 2013-2015 Ruby-GNOME2 Project Team
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
@@ -1,4 +1,19 @@
1
- # -*- coding: utf-8 -*-
1
+ # Copyright (C) 2015 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
+
2
17
  require 'rbconfig'
3
18
 
4
19
  class TestGLibSpawn < Test::Unit::TestCase
@@ -1,5 +1,19 @@
1
- # -*- coding: utf-8 -*-
2
-
1
+ # Copyright (C) 2015 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
+
3
17
  class TestGLibTimeout < Test::Unit::TestCase
4
18
  include GLibTestUtils
5
19
 
@@ -1,5 +1,19 @@
1
- # -*- coding: utf-8 -*-
2
-
1
+ # Copyright (C) 2015 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
+
3
17
  class TestGLibUnicode < Test::Unit::TestCase
4
18
  include GLibTestUtils
5
19
 
@@ -1,5 +1,19 @@
1
- # -*- coding: utf-8 -*-
2
-
1
+ # Copyright (C) 2015 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
+
3
17
  class TestGLibUtils < Test::Unit::TestCase
4
18
  include GLibTestUtils
5
19
 
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
- # Copyright (C) 2013 Ruby-GNOME2 Project Team
3
+ # Copyright (C) 2013-2015 Ruby-GNOME2 Project Team
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
@@ -1,5 +1,19 @@
1
- # -*- coding: utf-8 -*-
2
-
1
+ # Copyright (C) 2015 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
+
3
17
  class TestGLibWin32 < Test::Unit::TestCase
4
18
  include GLibTestUtils
5
19
 
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.5
4
+ version: 3.0.6
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: 2015-09-22 00:00:00.000000000 Z
11
+ date: 2015-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pkg-config
@@ -137,6 +137,7 @@ files:
137
137
  - lib/glib-mkenums.rb
138
138
  - lib/glib2.rb
139
139
  - lib/glib2/deprecatable.rb
140
+ - lib/glib2/version.rb
140
141
  - lib/gnome2-raketask.rb
141
142
  - lib/gnome2/rake/external-package.rb
142
143
  - lib/gnome2/rake/native-binary-build-task.rb
@@ -163,6 +164,7 @@ files:
163
164
  - test/run-test.rb
164
165
  - test/test-binding.rb
165
166
  - test/test-variant-type.rb
167
+ - test/test-version.rb
166
168
  - test/test_enum.rb
167
169
  - test/test_file_utils.rb
168
170
  - test/test_flags.rb