glib2 3.2.5 → 3.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/COPYING.LIB +502 -0
- data/README.md +42 -0
- data/Rakefile +8 -7
- data/ext/glib2/glib2.def +5 -0
- data/ext/glib2/rbglib-gc.c +89 -0
- data/ext/glib2/rbglib-variant-type.c +17 -0
- data/ext/glib2/rbglib.c +3 -0
- data/ext/glib2/rbglib.h +6 -1
- data/ext/glib2/rbglib2conversions.h +1 -1
- data/ext/glib2/rbgobj_boxed.c +49 -30
- data/ext/glib2/rbgobj_closure.c +3 -2
- data/ext/glib2/rbgobj_convert.c +1 -2
- data/ext/glib2/rbgobj_enums.c +32 -14
- data/ext/glib2/rbgobj_flags.c +31 -14
- data/ext/glib2/rbgobj_param.c +43 -23
- data/ext/glib2/rbgobj_signal.c +78 -66
- data/ext/glib2/rbgobj_type.c +22 -10
- data/ext/glib2/rbgobject.h +2 -0
- data/ext/glib2/rbgprivate.h +11 -0
- data/glib2.gemspec +48 -0
- data/lib/gnome2/rake/package-task.rb +17 -5
- data/lib/gnome2/rake/package.rb +2 -2
- data/lib/gnome2/rake/windows-binary-build-task.rb +39 -6
- data/lib/mkmf-gnome2.rb +4 -3
- data/sample/bookmarkfile.rb +2 -2
- data/sample/type-register.rb +6 -6
- data/sample/type-register2.rb +6 -6
- data/test/{test_enum.rb → test-enum.rb} +0 -0
- data/test/{test_file_utils.rb → test-file-utils.rb} +0 -0
- data/test/{test_flags.rb → test-flags.rb} +0 -0
- data/test/{test_glib2.rb → test-glib2.rb} +0 -0
- data/test/{test_key_file.rb → test-key-file.rb} +0 -0
- data/test/{test_mkenums.rb → test-mkenums.rb} +0 -0
- data/test/{test_poll_fd.rb → test-poll-fd.rb} +0 -0
- data/test/{test_signal.rb → test-signal.rb} +34 -2
- data/test/{test_source.rb → test-source.rb} +0 -0
- data/test/{test_spawn.rb → test-spawn.rb} +0 -0
- data/test/{test_timeout.rb → test-timeout.rb} +0 -0
- data/test/{test_unicode.rb → test-unicode.rb} +0 -0
- data/test/{test_utils.rb → test-utils.rb} +0 -0
- data/test/{test_value.rb → test-value.rb} +0 -0
- data/test/test-variant.rb +27 -0
- data/test/{test_win32.rb → test-win32.rb} +0 -0
- data/version.rb +30 -0
- metadata +29 -64
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Copyright (C) 2018 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 TestGLibVariant < Test::Unit::TestCase
|
18
|
+
include GLibTestUtils
|
19
|
+
|
20
|
+
sub_test_case "#initialize" do
|
21
|
+
test "type: string" do
|
22
|
+
variant = GLib::Variant.new("hello", "s")
|
23
|
+
assert_equal([GLib::VariantType::STRING, "hello"],
|
24
|
+
[variant.type, variant.value])
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
File without changes
|
data/version.rb
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# Copyright (C) 2018 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
|
+
def ruby_glib2_version
|
18
|
+
env_version = ENV["RUBY_GLIB2_VERSION"]
|
19
|
+
return env_version if env_version
|
20
|
+
|
21
|
+
versions = {}
|
22
|
+
File.open("#{__dir__}/ext/glib2/rbglib.h") do |rbglib_h|
|
23
|
+
rbglib_h.each_line do |line|
|
24
|
+
if /#define\s+RBGLIB_([A-Z]+)_VERSION\s+(\d+)/ =~ line
|
25
|
+
versions[$1.downcase] = $2.to_i
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
["major", "minor", "micro"].collect {|type| versions[type]}.compact.join(".")
|
30
|
+
end
|
metadata
CHANGED
@@ -1,64 +1,25 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glib2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.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: 2018-
|
12
|
-
dependencies:
|
13
|
-
|
14
|
-
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 1.2.2
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 1.2.2
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: native-package-installer
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 1.0.3
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 1.0.3
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: test-unit
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '2'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '2'
|
55
|
-
description: Ruby/GLib2 is a Ruby binding of GLib-2.x.
|
11
|
+
date: 2018-06-06 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Ruby/GLib2 provides base features for GLib2 based bindings and many useful
|
14
|
+
utility features.
|
56
15
|
email: ruby-gnome2-devel-en@lists.sourceforge.net
|
57
16
|
executables: []
|
58
17
|
extensions:
|
59
18
|
- ext/glib2/extconf.rb
|
60
19
|
extra_rdoc_files: []
|
61
20
|
files:
|
21
|
+
- COPYING.LIB
|
22
|
+
- README.md
|
62
23
|
- Rakefile
|
63
24
|
- ext/glib2/depend
|
64
25
|
- ext/glib2/extconf.rb
|
@@ -67,6 +28,7 @@ files:
|
|
67
28
|
- ext/glib2/glib2.def
|
68
29
|
- ext/glib2/rbgcompat.h
|
69
30
|
- ext/glib2/rbglib-bytes.c
|
31
|
+
- ext/glib2/rbglib-gc.c
|
70
32
|
- ext/glib2/rbglib-variant-type.c
|
71
33
|
- ext/glib2/rbglib-variant.c
|
72
34
|
- ext/glib2/rbglib.c
|
@@ -139,6 +101,7 @@ files:
|
|
139
101
|
- ext/glib2/rbgutildeprecated.c
|
140
102
|
- ext/glib2/rbgutildeprecated.h
|
141
103
|
- extconf.rb
|
104
|
+
- glib2.gemspec
|
142
105
|
- lib/glib-mkenums.rb
|
143
106
|
- lib/glib2.rb
|
144
107
|
- lib/glib2/deprecatable.rb
|
@@ -171,29 +134,31 @@ files:
|
|
171
134
|
- test/test-binding.rb
|
172
135
|
- test/test-bytes.rb
|
173
136
|
- test/test-date-time.rb
|
137
|
+
- test/test-enum.rb
|
138
|
+
- test/test-file-utils.rb
|
139
|
+
- test/test-flags.rb
|
140
|
+
- test/test-glib2.rb
|
174
141
|
- test/test-iochannel.rb
|
142
|
+
- test/test-key-file.rb
|
175
143
|
- test/test-match-info.rb
|
144
|
+
- test/test-mkenums.rb
|
145
|
+
- test/test-poll-fd.rb
|
176
146
|
- test/test-regex.rb
|
147
|
+
- test/test-signal.rb
|
148
|
+
- test/test-source.rb
|
149
|
+
- test/test-spawn.rb
|
177
150
|
- test/test-time-zone.rb
|
151
|
+
- test/test-timeout.rb
|
178
152
|
- test/test-type-interface.rb
|
153
|
+
- test/test-unicode.rb
|
154
|
+
- test/test-utils.rb
|
155
|
+
- test/test-value.rb
|
179
156
|
- test/test-variant-type.rb
|
157
|
+
- test/test-variant.rb
|
180
158
|
- test/test-version.rb
|
181
|
-
- test/
|
182
|
-
-
|
183
|
-
-
|
184
|
-
- test/test_glib2.rb
|
185
|
-
- test/test_key_file.rb
|
186
|
-
- test/test_mkenums.rb
|
187
|
-
- test/test_poll_fd.rb
|
188
|
-
- test/test_signal.rb
|
189
|
-
- test/test_source.rb
|
190
|
-
- test/test_spawn.rb
|
191
|
-
- test/test_timeout.rb
|
192
|
-
- test/test_unicode.rb
|
193
|
-
- test/test_utils.rb
|
194
|
-
- test/test_value.rb
|
195
|
-
- test/test_win32.rb
|
196
|
-
homepage: http://ruby-gnome2.sourceforge.jp/
|
159
|
+
- test/test-win32.rb
|
160
|
+
- version.rb
|
161
|
+
homepage: https://ruby-gnome2.osdn.jp/
|
197
162
|
licenses:
|
198
163
|
- LGPL-2.1+
|
199
164
|
metadata: {}
|
@@ -205,7 +170,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
205
170
|
requirements:
|
206
171
|
- - ">="
|
207
172
|
- !ruby/object:Gem::Version
|
208
|
-
version:
|
173
|
+
version: '0'
|
209
174
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
210
175
|
requirements:
|
211
176
|
- - ">="
|
@@ -213,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
213
178
|
version: '0'
|
214
179
|
requirements: []
|
215
180
|
rubyforge_project:
|
216
|
-
rubygems_version:
|
181
|
+
rubygems_version: 3.0.0.beta1
|
217
182
|
signing_key:
|
218
183
|
specification_version: 4
|
219
184
|
summary: Ruby/GLib2 is a Ruby binding of GLib-2.x.
|