gobject-introspection 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 99dafebfdd77c1ef4695222c7583b18be4cd3a9a
4
- data.tar.gz: 2b472b4cf7de62acf7aea787b678c76bd85a50c3
3
+ metadata.gz: 51cf700108a0ff1248018c1ede7186205465d7e9
4
+ data.tar.gz: 6107d1ecfda7aafefbc4a8b5bef65335a3455b3f
5
5
  SHA512:
6
- metadata.gz: 1e6a3f27d43dc2b1fb52ab895b24f90e49b199dcdfe4b6ec74323d0b9a2a41c53b48365b7adb50e356034cd6d149d22c89fefaeec6a8a2783a9098f8d397ef1d
7
- data.tar.gz: 6491c0eb5ecff720c6ab3948502c2be3a165564f0f4b3bfd10f566739645c0af1178e93e39ea9ba0ec9de0fc366b824e9b80833b68da4287db950e2220c60e21
6
+ metadata.gz: 8fdeefd07b1a645ba6e8b35a0e8215b5ba80e09d964aaf4867def9741acf7676e8b4a8ddafdd7986d42358a5408b5b0c197c10759a18ff63f53c0b9169ea3ce0
7
+ data.tar.gz: 173415cddb76c01b0d2f38e65874c0b290101998d033f9dceffb17d9965905ff23fa0a2dcc6bce11cd08a837de4856350d63adb4feb0e1639090f41faa28f531
@@ -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",
Binary file
Binary file
Binary file
@@ -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: 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: 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
@@ -95,6 +95,7 @@ files:
95
95
  - lib/gobject-introspection/repository.rb
96
96
  - lib/gobject-introspection/struct-info.rb
97
97
  - lib/gobject-introspection/union-info.rb
98
+ - lib/gobject-introspection/version.rb
98
99
  - test/gobject-introspection-test-utils.rb
99
100
  - test/run-test.rb
100
101
  - test/test-arg-info.rb
@@ -119,6 +120,7 @@ files:
119
120
  - test/test-type-tag.rb
120
121
  - test/test-union-info.rb
121
122
  - test/test-value-info.rb
123
+ - test/test-version.rb
122
124
  - test/test-vfunc-info.rb
123
125
  - vendor/local/bin/g-ir-compiler.exe
124
126
  - vendor/local/bin/g-ir-generate.exe