mogilefs-client 3.11.0 → 3.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.olddoc.yml +1 -1
- data/GIT-VERSION-GEN +1 -1
- data/GNUmakefile +1 -1
- data/lib/mogilefs/socket_common.rb +16 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e710c5ff6c1aed6f175940838ba96fa8b02e120
|
4
|
+
data.tar.gz: fea7121750f19434132ca4f8bf3e5c6622ab5b22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebe4ca7a1ea70527190eb0a42c018ecfe9a1369dd0c1ad34e1501abb3b1404fe4556eebcb8e1d43fdda75a727290998debd802f26ee891077436e43fde6364a8
|
7
|
+
data.tar.gz: 4f7fb96da46bcb144622eb9dd2a5682e07644345459f8b46b5786889fa9c3e748e964925193c45fdaf6f2e3d8e57cc96006ac50f68afbce10a6f9d4a321e6a1c
|
data/.olddoc.yml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
cgit_url: https://bogomips.org/mogilefs-client.git
|
3
3
|
git_url: git://bogomips.org/mogilefs-client.git
|
4
|
-
rdoc_url: https://bogomips.org/mogilefs-client
|
4
|
+
rdoc_url: https://bogomips.org/mogilefs-client/
|
5
5
|
changelog_start: v1.2.1
|
6
6
|
public_email: mogilefs-client-public@bogomips.org
|
7
7
|
nntp_url: nntp://news.public-inbox.org/inbox.comp.file-systems.mogilefs.ruby
|
data/GIT-VERSION-GEN
CHANGED
data/GNUmakefile
CHANGED
@@ -28,7 +28,7 @@ def timed_gets(timeout = 5)
|
|
28
28
|
@rbuf = timed_read(1024, "", timeout) or return # EOF
|
29
29
|
end
|
30
30
|
begin
|
31
|
-
@rbuf.sub!(/\A(.*\n)
|
31
|
+
@rbuf.sub!(/\A(.*\n)/, "".freeze) and return $1
|
32
32
|
tmp ||= ""
|
33
33
|
if timed_read(1024, tmp, timeout)
|
34
34
|
@rbuf << tmp
|
@@ -58,13 +58,22 @@ def readpartial(size, buf = "", timeout = 5)
|
|
58
58
|
|
59
59
|
# Workaround for https://bugs.ruby-lang.org/issues/13085
|
60
60
|
# (excessive garbage from IO#write)
|
61
|
-
# This
|
61
|
+
# This regression was introduced in Ruby 2.0 (r34847)
|
62
|
+
# and it is fixed in Ruby 2.4.1+
|
63
|
+
# backport request: https://bugs.ruby-lang.org/issues/13299
|
62
64
|
if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'ruby' &&
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
65
|
+
case RUBY_VERSION
|
66
|
+
when '2.0.0',
|
67
|
+
'2.1.0'..'2.1.9',
|
68
|
+
# we expect 2.2.7 and 2.3.4 to not need this
|
69
|
+
'2.2.0'..'2.2.6',
|
70
|
+
'2.3.0'..'2.3.3',
|
71
|
+
'2.4.0' # 2.4.1 is good!
|
72
|
+
def write(buf)
|
73
|
+
# Blocking TCP writes would error out long before one day,
|
74
|
+
# and MogileFS won't allow file creations which take over a day.
|
75
|
+
timed_write(buf, 86400)
|
76
|
+
end
|
68
77
|
end
|
69
78
|
end
|
70
79
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mogilefs-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.11.
|
4
|
+
version: 3.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mogilefs-client hackers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |
|
14
14
|
A MogileFS client library for Ruby. MogileFS is an open source
|