gio2 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 +4 -4
- data/lib/gio2.rb +2 -0
- data/lib/gio2/application-command-line.rb +24 -0
- data/lib/gio2/loader.rb +1 -0
- data/test/gio2-test-utils/omissions.rb +4 -0
- data/test/gio2-test-utils/socket-client.rb +3 -3
- data/test/run-test.rb +2 -2
- data/test/test-application-command-line.rb +27 -0
- data/test/test-version.rb +47 -0
- metadata +9 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5708c203647dd52b8cef50a967dd46c79c7e1f07
|
4
|
+
data.tar.gz: bb71caf7dd60029d09dbca6c07d462848371457e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce5749e6f481b08dc2e8f79ff9229d9fb2cc0e289a9c85a09d35cdb50260ba71765d4045de8cbc58722e07948f8db0f258b49e7e85c6db0c2c724c5c3803f87e
|
7
|
+
data.tar.gz: 49dd13432c7724377b98f00de6f568297bb13fc9551a137513e6ef89d94bd111478c29914cd35964df8edd53415080a0032b39c6f4d42c1c8a97089157e76424
|
data/lib/gio2.rb
CHANGED
@@ -0,0 +1,24 @@
|
|
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 Gio
|
18
|
+
class ApplicationCommandLine
|
19
|
+
alias_method :arguments_raw, :arguments
|
20
|
+
def arguments
|
21
|
+
arguments_raw[0]
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
data/lib/gio2/loader.rb
CHANGED
data/test/run-test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
#
|
3
|
-
# Copyright (C) 2013-
|
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
|
@@ -50,4 +50,4 @@ require "gio2-test-utils"
|
|
50
50
|
|
51
51
|
require "gio2"
|
52
52
|
|
53
|
-
exit Test::Unit::AutoRunner.run(true)
|
53
|
+
exit Test::Unit::AutoRunner.run(true, File.join(gio2_base, "test"))
|
@@ -0,0 +1,27 @@
|
|
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 TestApplicationCommandLine < Test::Unit::TestCase
|
18
|
+
include GioTestUtils::Omissions
|
19
|
+
def setup
|
20
|
+
@command_line = Gio::ApplicationCommandLine.new
|
21
|
+
end
|
22
|
+
|
23
|
+
test "#arguments" do
|
24
|
+
omit_on_travis_ci
|
25
|
+
assert_equal([], @command_line.arguments)
|
26
|
+
end
|
27
|
+
end
|
@@ -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 TestGioVersion < Test::Unit::TestCase
|
18
|
+
include GioTestUtils
|
19
|
+
|
20
|
+
test "STRING" do
|
21
|
+
major = Gio::Version::MAJOR
|
22
|
+
minor = Gio::Version::MINOR
|
23
|
+
micro = Gio::Version::MICRO
|
24
|
+
assert_equal([major, minor, micro].join("."),
|
25
|
+
Gio::Version::STRING)
|
26
|
+
end
|
27
|
+
|
28
|
+
sub_test_case("#or_later?") do
|
29
|
+
test "same" do
|
30
|
+
assert_true(Gio::Version.or_later?(Gio::Version::MAJOR,
|
31
|
+
Gio::Version::MINOR,
|
32
|
+
Gio::Version::MICRO))
|
33
|
+
end
|
34
|
+
|
35
|
+
test "later" do
|
36
|
+
assert_true(Gio::Version.or_later?(Gio::Version::MAJOR,
|
37
|
+
Gio::Version::MINOR - 1,
|
38
|
+
Gio::Version::MICRO))
|
39
|
+
end
|
40
|
+
|
41
|
+
test "earlier" do
|
42
|
+
assert_false(Gio::Version.or_later?(Gio::Version::MAJOR,
|
43
|
+
Gio::Version::MINOR + 1,
|
44
|
+
Gio::Version::MICRO))
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gio2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
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-
|
11
|
+
date: 2015-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: glib2
|
@@ -16,28 +16,28 @@ 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: gobject-introspection
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 3.0.
|
33
|
+
version: 3.0.6
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 3.0.
|
40
|
+
version: 3.0.6
|
41
41
|
description: Ruby/GIO2 is a Ruby binding of gio-2.x.
|
42
42
|
email: ruby-gnome2-devel-en@lists.sourceforge.net
|
43
43
|
executables: []
|
@@ -56,6 +56,7 @@ files:
|
|
56
56
|
- lib/gio2.rb
|
57
57
|
- lib/gio2/action-map.rb
|
58
58
|
- lib/gio2/action.rb
|
59
|
+
- lib/gio2/application-command-line.rb
|
59
60
|
- lib/gio2/deprecated.rb
|
60
61
|
- lib/gio2/inet-address.rb
|
61
62
|
- lib/gio2/input-stream.rb
|
@@ -74,6 +75,7 @@ files:
|
|
74
75
|
- test/gio2-test-utils/socket-client.rb
|
75
76
|
- test/run-test.rb
|
76
77
|
- test/test-action-map.rb
|
78
|
+
- test/test-application-command-line.rb
|
77
79
|
- test/test-buffered-input-stream.rb
|
78
80
|
- test/test-charset-converter.rb
|
79
81
|
- test/test-content-type.rb
|
@@ -92,6 +94,7 @@ files:
|
|
92
94
|
- test/test-pollable-output-stream.rb
|
93
95
|
- test/test-resources.rb
|
94
96
|
- test/test-simple-action.rb
|
97
|
+
- test/test-version.rb
|
95
98
|
homepage: http://ruby-gnome2.sourceforge.jp/
|
96
99
|
licenses:
|
97
100
|
- LGPLv2.1 or later
|