gobject-introspection 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: 0ed1cbef8776ae64be5f360ba08804ddf704e80f
4
- data.tar.gz: aec2b8be13ae673fecff60a9ab2c0ce356ab31e9
3
+ metadata.gz: dfa831d592e17b8da9734c354cf2fd48e6259f48
4
+ data.tar.gz: 8b70cca195a10d34cafabbe8ea8e53c67c5023f5
5
5
  SHA512:
6
- metadata.gz: 51500b0fd4a23218ac59bd19ef5996dd09811020801f7790f382ee316b3708b3ad47fa5f59466344faa58b0de57944b08e4a40b8d37132301406696dec66b8ba
7
- data.tar.gz: c233eee345813a4b5494aabd52c55acde7bb7dbbe854b74e6831d2d054054510d070a1a2439b004990a7b67baba9a51e66e92f9a6386b87fa0af11f1c5190108
6
+ metadata.gz: 09542a275a36ccdee3bca80c82b92ad912560c4227e2691a4a8e2c8e10debc42fa57139e8b9a06e523dd3763c14a533c1ee7eb6ec627ca1a7e6c3421749b1087
7
+ data.tar.gz: a64c11c4cd72021176c9a6da4a5e5a4e35b2b4d833fceefc77b250d437d5a11b6fa6e916af21ce0921c52a78f1449ccf0cb123df6654ca769af41a6928b627b9
@@ -978,6 +978,8 @@ rb_gi_argument_to_ruby_gslist(GIArgument *argument, GITypeInfo *type_info)
978
978
  rb_argument = CSTRGSLIST2RVAL(argument->v_pointer);
979
979
  break;
980
980
  case GI_TYPE_TAG_FILENAME:
981
+ rb_argument = FILENAMEGSLIST2RVAL(argument->v_pointer);
982
+ break;
981
983
  case GI_TYPE_TAG_ARRAY:
982
984
  rb_raise(rb_eNotImpError,
983
985
  "TODO: GIArgument(GSList)[%s] -> Ruby",
@@ -2042,10 +2044,10 @@ rb_gi_return_argument_free_everything_gslist(GIArgument *argument,
2042
2044
  g_type_tag_to_string(element_type_tag));
2043
2045
  break;
2044
2046
  case GI_TYPE_TAG_UTF8:
2047
+ case GI_TYPE_TAG_FILENAME:
2045
2048
  g_slist_foreach(argument->v_pointer, (GFunc)g_free, NULL);
2046
2049
  g_slist_free(argument->v_pointer);
2047
2050
  break;
2048
- case GI_TYPE_TAG_FILENAME:
2049
2051
  case GI_TYPE_TAG_ARRAY:
2050
2052
  rb_raise(rb_eNotImpError,
2051
2053
  "TODO: free GIArgument(GSList)[%s] everything",
@@ -58,4 +58,5 @@ require "gobject-introspection/interface-info"
58
58
  require "gobject-introspection/struct-info"
59
59
  require "gobject-introspection/boxed-info"
60
60
  require "gobject-introspection/union-info"
61
+ require "gobject-introspection/version"
61
62
  require "gobject-introspection/loader"
@@ -0,0 +1,34 @@
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 GObjectIntrospection
18
+ module Version
19
+ MAJOR, MINOR, MICRO = BUILD_VERSION
20
+ STRING = BUILD_VERSION.join(".")
21
+
22
+ class << self
23
+ def or_later?(major, minor, micro=nil)
24
+ micro ||= 0
25
+ version = [
26
+ MAJOR,
27
+ MINOR,
28
+ MICRO,
29
+ ]
30
+ (version <=> [major, minor, micro]) >= 0
31
+ end
32
+ end
33
+ end
34
+ end
data/test/run-test.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
- # Copyright (C) 2012 Ruby-GNOME2 Project Team
3
+ # Copyright (C) 2012-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
@@ -42,4 +42,5 @@ require "gobject-introspection-test-utils"
42
42
 
43
43
  require "gobject-introspection"
44
44
 
45
- exit Test::Unit::AutoRunner.run(true)
45
+ exit Test::Unit::AutoRunner.run(true,
46
+ File.join(gobject_introspection_base, "test"))
@@ -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 TestGObjectIntrospectionVersion < Test::Unit::TestCase
18
+ include GObjectIntrospectionTestUtils
19
+
20
+ test "STRING" do
21
+ major = GObjectIntrospection::Version::MAJOR
22
+ minor = GObjectIntrospection::Version::MINOR
23
+ micro = GObjectIntrospection::Version::MICRO
24
+ assert_equal([major, minor, micro].join("."),
25
+ GObjectIntrospection::Version::STRING)
26
+ end
27
+
28
+ sub_test_case("#or_later?") do
29
+ test "same" do
30
+ assert_true(GObjectIntrospection::Version.or_later?(GObjectIntrospection::Version::MAJOR,
31
+ GObjectIntrospection::Version::MINOR,
32
+ GObjectIntrospection::Version::MICRO))
33
+ end
34
+
35
+ test "later" do
36
+ assert_true(GObjectIntrospection::Version.or_later?(GObjectIntrospection::Version::MAJOR,
37
+ GObjectIntrospection::Version::MINOR - 1,
38
+ GObjectIntrospection::Version::MICRO))
39
+ end
40
+
41
+ test "earlier" do
42
+ assert_false(GObjectIntrospection::Version.or_later?(GObjectIntrospection::Version::MAJOR,
43
+ GObjectIntrospection::Version::MINOR + 1,
44
+ GObjectIntrospection::Version::MICRO))
45
+ end
46
+ end
47
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gobject-introspection
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: glib2
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.5
19
+ version: 3.0.6
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 3.0.5
26
+ version: 3.0.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: test-unit
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -96,6 +96,7 @@ files:
96
96
  - lib/gobject-introspection/repository.rb
97
97
  - lib/gobject-introspection/struct-info.rb
98
98
  - lib/gobject-introspection/union-info.rb
99
+ - lib/gobject-introspection/version.rb
99
100
  - test/gobject-introspection-test-utils.rb
100
101
  - test/run-test.rb
101
102
  - test/test-arg-info.rb
@@ -120,6 +121,7 @@ files:
120
121
  - test/test-type-tag.rb
121
122
  - test/test-union-info.rb
122
123
  - test/test-value-info.rb
124
+ - test/test-version.rb
123
125
  - test/test-vfunc-info.rb
124
126
  homepage: http://ruby-gnome2.sourceforge.jp/
125
127
  licenses: