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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 82485e326a31dd90dfbe444bd5b14c5b5819c5c2
4
- data.tar.gz: abf91e3730feac3ff1d2c2f3e87f63fefa615cab
3
+ metadata.gz: 5708c203647dd52b8cef50a967dd46c79c7e1f07
4
+ data.tar.gz: bb71caf7dd60029d09dbca6c07d462848371457e
5
5
  SHA512:
6
- metadata.gz: 59125554a109dad830dcaf8d3bf6857a38cfc1c2e969f531c6ec2f2d5837f49acf9726773b2e92a4d70dcebea45f8c61ee468dc8569cd494807dd8ee1fa160eb
7
- data.tar.gz: 3426b8db3c82b3ebd1ab68803e16b63baba231dc4a78943d0415dbce63ed65a22cc9e7a4583c1a7aa6d1c914e80ead3639417e4c1f5e8aa3d9f8ed03039ad938
6
+ metadata.gz: ce5749e6f481b08dc2e8f79ff9229d9fb2cc0e289a9c85a09d35cdb50260ba71765d4045de8cbc58722e07948f8db0f258b49e7e85c6db0c2c724c5c3803f87e
7
+ data.tar.gz: 49dd13432c7724377b98f00de6f568297bb13fc9551a137513e6ef89d94bd111478c29914cd35964df8edd53415080a0032b39c6f4d42c1c8a97089157e76424
@@ -30,6 +30,8 @@ module Gio
30
30
  LOG_DOMAIN = "Gio"
31
31
  GLib::Log.set_log_domain(LOG_DOMAIN)
32
32
 
33
+ Version = GLib::Version
34
+
33
35
  class Error < StandardError
34
36
  end
35
37
 
@@ -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
@@ -52,6 +52,7 @@ module Gio
52
52
  def require_libraries
53
53
  require "gio2/action"
54
54
  require "gio2/action-map"
55
+ require "gio2/application-command-line"
55
56
  require "gio2/inet-address"
56
57
  require "gio2/input-stream"
57
58
  require "gio2/pollable-input-stream"
@@ -19,5 +19,9 @@ module GioTestUtils
19
19
  def omit_on_os_x
20
20
  omit("Skip this test on OS X") if RUBY_PLATFORM =~ /darwin/
21
21
  end
22
+
23
+ def omit_on_travis_ci
24
+ omit("Skip this test on Travis CI") if ENV["CI"]
25
+ end
22
26
  end
23
27
  end
@@ -25,9 +25,9 @@ module GioTestUtils
25
25
  end
26
26
 
27
27
  def teardown_socket_client
28
- teardown_loop
29
- teardown_client
30
- teardown_server
28
+ teardown_loop
29
+ teardown_client
30
+ teardown_server
31
31
  end
32
32
 
33
33
  def setup_server
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
- # Copyright (C) 2013-2014 Ruby-GNOME2 Project Team
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.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,28 +16,28 @@ 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: gobject-introspection
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.0.5
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.5
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