glib2 3.0.5 → 3.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af7c984876c9ab213f57810192130aa03700aa10
4
- data.tar.gz: fc6e5ee0e539c95d73655394d4c5e1df417f93a0
3
+ metadata.gz: 712ecc801a066a3f3105f85bbd4fd1b5bbbe24f0
4
+ data.tar.gz: 2ec88bc3add97e049f1f03ecce517ac1c8aba47b
5
5
  SHA512:
6
- metadata.gz: 6cb12434d30f725f8ac9e44e784bffa7230036cffe8ccaf55c8cf48bc5409f78810b26909a1e2b08fe23c628899a91474bf03ef909d4a411dacd18802753ccce
7
- data.tar.gz: 82ee7a067b49ec41f2ecb317f880b4fda0ae189a742b3702425d9182dcc4fc6e8c05c0f7777b278ec6495fe108325a7192cf9781a179cc08d48c3058e38a6321
6
+ metadata.gz: 424cf285aa4e2e4d6e945591f5c82c999cfe26e630779f88d42ef2853f11a4b4d5167e4f11652c71c394dab2e8362f14f53ae521870ceaddf33e7244600ac188
7
+ data.tar.gz: 93053a44ab41381c51027ca86c1c459b9ca97bf51bd98dcc444e0ec84b8e39266f1961418d288bf83f7ed989499eb4a7603bc24db3c6b679b5216b789f227b97
@@ -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
@@ -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: ruby
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
@@ -123,6 +123,7 @@ files:
123
123
  - lib/glib-mkenums.rb
124
124
  - lib/glib2.rb
125
125
  - lib/glib2/deprecatable.rb
126
+ - lib/glib2/version.rb
126
127
  - lib/gnome2-raketask.rb
127
128
  - lib/gnome2/rake/external-package.rb
128
129
  - lib/gnome2/rake/native-binary-build-task.rb
@@ -149,6 +150,7 @@ files:
149
150
  - test/run-test.rb
150
151
  - test/test-binding.rb
151
152
  - test/test-variant-type.rb
153
+ - test/test-version.rb
152
154
  - test/test_enum.rb
153
155
  - test/test_file_utils.rb
154
156
  - test/test_flags.rb