gio2 2.2.0-x86-mingw32 → 2.2.1-x86-mingw32

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: 0746c69a296006601f79942a1d468055e77bc38c
4
- data.tar.gz: d654b3f11305b94f94b1dc0346aa6b53f7c0ac72
3
+ metadata.gz: c5f4fa74522fa8a2d1d9cb66e4e6b96ff1cfcc8e
4
+ data.tar.gz: 864f78682541e5ff863ba5cd7f5524d248cb9123
5
5
  SHA512:
6
- metadata.gz: c7b9dfec88a8ec99d58c126f2482d142c54309a49de450ba07b040090c0abfbef0cab1026095b0bbcd349e6eb288e400e23f5e641308858a57f9ca854d7f3bd2
7
- data.tar.gz: 29bb5369887ed27bf38ab351f2ff8eac3f7756cb5cea95ee275325f65dfd0c1441aa9cd36b9fc6ce6078acc70034e6894e9c937e090bdb2e60e600b2d107c9ba
6
+ metadata.gz: 2319d05d568e55c3eb05bd0c504cfd0c8e771e67f8662c6dfced2b82e10cb1c82b76dfa4eb8e36cac59dc59c8dcb53b6f4069018abceb4835881fd23db3d3e41
7
+ data.tar.gz: e97ac54b60dfc3f947cbd79f4d1a1490af89ab1ef11b6d310f3ca515b7fbce501d835c184a18f31e6e52e97578e1b18fc1c32cf316168e5b91c9d20576c15a05
@@ -0,0 +1,6 @@
1
+ install: install-pc
2
+ install-pc:
3
+ if test -n "$(pkgconfigdir)"; then \
4
+ $(MAKEDIRS) $(pkgconfigdir); \
5
+ $(INSTALL_DATA) ruby-gio2.pc $(pkgconfigdir); \
6
+ fi
Binary file
@@ -23,17 +23,26 @@ module Gio
23
23
  buffer_size = 8192
24
24
  buffer = " ".force_encoding("ASCII-8BIT") * buffer_size
25
25
  loop do
26
- read_bytes = read_raw(buffer, buffer.bytesize)
26
+ read_bytes = read_raw_compatible(buffer)
27
27
  all << buffer.byteslice(0, read_bytes)
28
28
  break if read_bytes != buffer_size
29
29
  end
30
30
  all
31
31
  else
32
32
  buffer = " " * size
33
- read_bytes = read_raw(buffer, buffer.bytesize)
33
+ read_bytes = read_raw_compatible(buffer)
34
34
  buffer.replace(buffer.byteslice(0, read_bytes))
35
35
  buffer
36
36
  end
37
37
  end
38
+
39
+ private
40
+ def read_raw_compatible(buffer)
41
+ if (GLib::VERSION <=> [2, 36, 0]) >= 0
42
+ read_raw(buffer)
43
+ else
44
+ read_raw(buffer, buffer.bytesize)
45
+ end
46
+ end
38
47
  end
39
48
  end
@@ -52,7 +52,6 @@ module Gio
52
52
  require "gio2/resources"
53
53
  require "gio2/inet-address"
54
54
  require "gio2/input-stream"
55
- require "gio2/output-stream"
56
55
  require "gio2/pollable-input-stream"
57
56
  require "gio2/pollable-output-stream"
58
57
  end
@@ -32,7 +32,7 @@ module Gio
32
32
  buffer = " ".force_encoding("ASCII-8BIT") * buffer_size
33
33
  loop do
34
34
  begin
35
- read_bytes = read_nonblocking_raw(buffer, buffer.bytesize)
35
+ read_bytes = read_nonblocking_raw_compatible(buffer)
36
36
  rescue IOError::WouldBlock
37
37
  break
38
38
  end
@@ -42,10 +42,19 @@ module Gio
42
42
  all
43
43
  else
44
44
  buffer = " " * size
45
- read_bytes = read_nonblocking_raw(buffer, buffer.bytesize)
45
+ read_bytes = read_nonblocking_raw_compatible(buffer)
46
46
  buffer.replace(buffer.byteslice(0, read_bytes))
47
47
  buffer
48
48
  end
49
49
  end
50
+
51
+ private
52
+ def read_nonblocking_raw_compatible(buffer)
53
+ if (GLib::VERSION <=> [2, 42, 0]) >= 0
54
+ read_nonblocking_raw(buffer)
55
+ else
56
+ read_nonblocking_raw(buffer, buffer.bytesize)
57
+ end
58
+ end
50
59
  end
51
60
  end
@@ -23,10 +23,5 @@ module Gio
23
23
  source.set_callback(&block)
24
24
  source
25
25
  end
26
-
27
- alias_method :write_nonblocking_raw, :write_nonblocking
28
- def write_nonblocking(data)
29
- write_nonblocking_raw(data, data.bytesize)
30
- end
31
26
  end
32
27
  end
@@ -18,4 +18,5 @@ require "test-unit"
18
18
  require "test/unit/notify"
19
19
 
20
20
  require "gio2-test-utils/fixture"
21
+ require "gio2-test-utils/omissions"
21
22
  require "gio2-test-utils/socket-client"
@@ -14,11 +14,10 @@
14
14
  # License along with this library; if not, write to the Free Software
15
15
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
- module Gio
18
- class OutputStream
19
- alias_method :write_raw, :write
20
- def write(data)
21
- write_raw(data, data.bytesize)
17
+ module GioTestUtils
18
+ module Omissions
19
+ def omit_on_os_x
20
+ omit("Skip this test on OS X") if RUBY_PLATFORM =~ /darwin/
22
21
  end
23
22
  end
24
23
  end
@@ -15,6 +15,8 @@
15
15
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
  class TestContentType < Test::Unit::TestCase
18
+ include GioTestUtils::Omissions
19
+
18
20
  def setup
19
21
  @content_type = Gio::ContentType.new("image/jpeg")
20
22
  end
@@ -25,6 +27,7 @@ class TestContentType < Test::Unit::TestCase
25
27
  end
26
28
 
27
29
  def test_guess
30
+ omit_on_os_x
28
31
  assert_equal(["audio/mpeg", false],
29
32
  Gio::ContentType.guess("filename.mp3"))
30
33
  end
@@ -16,9 +16,11 @@
16
16
 
17
17
  class TestFile < Test::Unit::TestCase
18
18
  include GioTestUtils::Fixture
19
+ include GioTestUtils::Omissions
19
20
 
20
21
  class TestContentType < self
21
22
  def test_guess_content_type
23
+ omit_on_os_x
22
24
  path = fixture_path("content-type", "x-content", "unix-software")
23
25
  dir = Gio::File.path(path)
24
26
  assert_equal(["x-content/unix-software"],
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: 2.2.0
4
+ version: 2.2.1
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: 2014-03-09 00:00:00.000000000 Z
11
+ date: 2014-10-12 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: 2.2.0
19
+ version: 2.2.1
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: 2.2.0
26
+ version: 2.2.1
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: 2.2.0
33
+ version: 2.2.1
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: 2.2.0
40
+ version: 2.2.1
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: []
@@ -45,20 +45,21 @@ extensions: []
45
45
  extra_rdoc_files: []
46
46
  files:
47
47
  - Rakefile
48
+ - ext/gio2/depend
49
+ - ext/gio2/extconf.rb
50
+ - ext/gio2/rb-gio2-pollable-source.c
51
+ - ext/gio2/rb-gio2.c
52
+ - ext/gio2/rb-gio2.h
48
53
  - extconf.rb
54
+ - lib/2.0/gio2.so
49
55
  - lib/gio2.rb
50
56
  - lib/gio2/deprecated.rb
51
57
  - lib/gio2/inet-address.rb
52
58
  - lib/gio2/input-stream.rb
53
59
  - lib/gio2/loader.rb
54
- - lib/gio2/output-stream.rb
55
60
  - lib/gio2/pollable-input-stream.rb
56
61
  - lib/gio2/pollable-output-stream.rb
57
62
  - lib/gio2/resources.rb
58
- - ext/gio2/extconf.rb
59
- - ext/gio2/rb-gio2-pollable-source.c
60
- - ext/gio2/rb-gio2.c
61
- - ext/gio2/rb-gio2.h
62
63
  - test/fixture/content-type/x-content/unix-software/autorun.sh
63
64
  - test/fixture/resource/Rakefile
64
65
  - test/fixture/resource/logo.png
@@ -66,6 +67,7 @@ files:
66
67
  - test/fixture/resource/ruby-gio2.gresource.xml
67
68
  - test/gio2-test-utils.rb
68
69
  - test/gio2-test-utils/fixture.rb
70
+ - test/gio2-test-utils/omissions.rb
69
71
  - test/gio2-test-utils/socket-client.rb
70
72
  - test/run-test.rb
71
73
  - test/test-buffered-input-stream.rb
@@ -81,9 +83,6 @@ files:
81
83
  - test/test-pollable-input-stream.rb
82
84
  - test/test-pollable-output-stream.rb
83
85
  - test/test-resources.rb
84
- - lib/1.9/gio2.so
85
- - lib/2.0/gio2.so
86
- - lib/2.1/gio2.so
87
86
  homepage: http://ruby-gnome2.sourceforge.jp/
88
87
  licenses:
89
88
  - LGPLv2.1 or later
@@ -94,17 +93,17 @@ require_paths:
94
93
  - lib
95
94
  required_ruby_version: !ruby/object:Gem::Requirement
96
95
  requirements:
97
- - - '>='
96
+ - - ">="
98
97
  - !ruby/object:Gem::Version
99
98
  version: 1.9.3
100
99
  required_rubygems_version: !ruby/object:Gem::Requirement
101
100
  requirements:
102
- - - '>='
101
+ - - ">="
103
102
  - !ruby/object:Gem::Version
104
103
  version: '0'
105
104
  requirements: []
106
105
  rubyforge_project:
107
- rubygems_version: 2.0.14
106
+ rubygems_version: 2.2.2
108
107
  signing_key:
109
108
  specification_version: 4
110
109
  summary: Ruby/GIO2 is a Ruby binding of gio-2.x.
Binary file
Binary file