gobject-introspection 3.0.5-x86-mingw32 → 3.0.6-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/gobject-introspection/rb-gi-argument.c +3 -1
- data/lib/2.0/gobject_introspection.so +0 -0
- data/lib/2.1/gobject_introspection.so +0 -0
- data/lib/2.2/gobject_introspection.so +0 -0
- data/lib/gobject-introspection.rb +1 -0
- data/lib/gobject-introspection/version.rb +34 -0
- data/test/run-test.rb +3 -2
- data/test/test-version.rb +47 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fae874c60f202950ce3db3b1969f3015610f231
|
4
|
+
data.tar.gz: bb5152c2d72e6e56db810a51be624c07c86bc47c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 184d09c80115c9d4749676c63d5b914dac4ba91dda95da778ecc6981024d5073174bd71cda85a974f3b6cfab9c6c018ef555542a8c93bee427471909b5fe0935
|
7
|
+
data.tar.gz: 6910e0d0782b573c2531fbc00812f217b6e0f9e9d4677b6600f9f54d838b1caeb5a85a56b0304bf3973f0c0550f0052c02cbe316285e2d6ed5079b29cb90a0b0
|
@@ -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.
|
4
|
+
version: 3.0.6
|
5
5
|
platform: x86-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-
|
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.
|
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.
|
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
|