gio2 3.3.8 → 3.3.9

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
  SHA256:
3
- metadata.gz: 741721a2dcc24884a3725014dd3a535b3077d61447cf767397fcc2f6d4a4b618
4
- data.tar.gz: cd78753af48448bbd53f7bf989d17464e8811d6bb1b298bdfc584cef5a9ff8c9
3
+ metadata.gz: 1014bfa574a888933a08cc6602ce126df5253f30a7993505586cb139511fb193
4
+ data.tar.gz: 4fc73396410f70ed1c5a9ef3ee78e49a5d0a51a505a49c84827b72fdcc174b83
5
5
  SHA512:
6
- metadata.gz: e875d0b677d3431bac3ea260a64a8201bc273af30125d6c335fa09cf4252a76fe82fee50d1f7c4fc26bb220a2ef309ef287621a3da53a7042af7a911c8a7b196
7
- data.tar.gz: 817a30eba075643064204eb73da2cd14ce4c67932949eb010d9c279a3fc4459be01f6edadc900bcee4b5426c393976647bc4d2993d0bfccb84816587b9ed0512
6
+ metadata.gz: e95f78e6f2e21e296ea06ceaacaa49396ce95d80b789d63e427b0ea8f788d8c115c832836ffd91b984c36f221f7791d2834b4f0479b5a161b176db42a8425527
7
+ data.tar.gz: f5f82a625a9f9f56dedfdac36d759c6266a20290ae73ab28a409f5a60b666aa46b7e24cf312bfa34f1888c1f94439d372c889f6deab6ab89aad676a70998e0ad
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
- # Copyright (C) 2014 Ruby-GNOME2 Project Team
3
+ # Copyright (C) 2014-2019 Ruby-GNOME 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
@@ -36,7 +36,7 @@ $LOAD_PATH.unshift(mkmf_gnome2_dir.to_s)
36
36
  module_name = "gio2"
37
37
  package_id = "gio-2.0"
38
38
 
39
- require "mkmf-gnome2"
39
+ require "mkmf-gnome"
40
40
 
41
41
  ["glib2", "gobject-introspection"].each do |package|
42
42
  directory = "#{package}#{version_suffix}"
@@ -52,7 +52,7 @@ end
52
52
  unless required_pkg_config_package(package_id,
53
53
  :alt_linux => "libgio-devel",
54
54
  :debian => "libglib2.0-dev",
55
- :redhat => "glib2-devel",
55
+ :redhat => "pkgconfig(#{package_id})",
56
56
  :arch_linux => "glib2",
57
57
  :homebrew => "glib",
58
58
  :macports => "glib2")
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2014-2019 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2014-2019 Ruby-GNOME Project Team
2
2
  #
3
3
  # This library is free software; you can redistribute it and/or
4
4
  # modify it under the terms of the GNU Lesser General Public
@@ -36,7 +36,7 @@ module Gio
36
36
  buffer_size = 8192
37
37
  buffer = " ".force_encoding("ASCII-8BIT") * buffer_size
38
38
  loop do
39
- _, read_bytes = read_all_raw_compatible(buffer)
39
+ read_bytes = read_all_raw_compatible(buffer)
40
40
  all << buffer.byteslice(0, read_bytes)
41
41
  break if read_bytes != buffer_size
42
42
  end
@@ -52,25 +52,33 @@ module Gio
52
52
  alias_method :read_all_raw, :read_all
53
53
  def read_all(size)
54
54
  buffer = " " * size
55
- _, read_bytes = read_all_raw_compatible(buffer)
55
+ read_bytes = read_all_raw_compatible(buffer)
56
56
  buffer.replace(buffer.byteslice(0, read_bytes))
57
57
  buffer
58
58
  end
59
59
 
60
60
  private
61
61
  def read_raw_compatible(buffer)
62
- if (GLib::VERSION <=> [2, 36, 0]) >= 0
62
+ if (GLib::VERSION <=> [2, 62, 0]) >= 0
63
+ read_bytes, _buffer = read_raw(buffer)
64
+ read_bytes
65
+ elsif (GLib::VERSION <=> [2, 36, 0]) >= 0
63
66
  read_raw(buffer)
64
67
  else
65
- read_raw(buffer, buffer.bytesize)
68
+ read_bytes = read_raw(buffer, buffer.bytesize)
66
69
  end
67
70
  end
68
71
 
69
72
  def read_all_raw_compatible(buffer)
70
- if (GLib::VERSION <=> [2, 36, 0]) >= 0
71
- read_all_raw(buffer)
73
+ if (GLib::VERSION <=> [2, 62, 0]) >= 0
74
+ _success, _buffer, read_bytes = read_all_raw(buffer)
75
+ read_bytes
76
+ elsif (GLib::VERSION <=> [2, 36, 0]) >= 0
77
+ _success, read_bytes = read_all_raw(buffer)
78
+ read_bytes
72
79
  else
73
- read_all_raw(buffer, buffer.bytesize)
80
+ _success, read_bytes = read_all_raw(buffer, buffer.bytesize)
81
+ read_bytes
74
82
  end
75
83
  end
76
84
  end
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2014-2019 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2014-2019 Ruby-GNOME Project Team
2
2
  #
3
3
  # This library is free software; you can redistribute it and/or
4
4
  # modify it under the terms of the GNU Lesser General Public
@@ -56,9 +56,9 @@ class TestInputStream < Test::Unit::TestCase
56
56
  input = nil
57
57
  read_data = Gio::BufferedInputStream.open(@stream) do |i|
58
58
  input = i
59
- _data = input.read(4)
59
+ data = input.read(4)
60
60
  input.close
61
- _data
61
+ data
62
62
  end
63
63
  assert_equal([@data[0, 4], true],
64
64
  [read_data, input.closed?])
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.3.8
4
+ version: 3.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Ruby-GNOME Project Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-09 00:00:00.000000000 Z
11
+ date: 2019-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gobject-introspection
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.3.8
19
+ version: 3.3.9
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.3.8
26
+ version: 3.3.9
27
27
  description: Ruby/GIO2 provide Ruby binding to a VFS API and useful APIs for desktop
28
28
  applications (such as networking and D-Bus support).
29
29
  email: ruby-gnome2-devel-en@lists.sourceforge.net
@@ -118,7 +118,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  - !ruby/object:Gem::Version
119
119
  version: '0'
120
120
  requirements: []
121
- rubygems_version: 3.1.0.pre1
121
+ rubyforge_project:
122
+ rubygems_version: 2.7.6.2
122
123
  signing_key:
123
124
  specification_version: 4
124
125
  summary: Ruby/GIO2 is a Ruby binding of gio-2.x.