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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df67ca0268814f324ab52a02700ead9303cb7ce1
4
- data.tar.gz: f593fa4c418f462993efe066cdd937012f23df9f
3
+ metadata.gz: 5e710c5ff6c1aed6f175940838ba96fa8b02e120
4
+ data.tar.gz: fea7121750f19434132ca4f8bf3e5c6622ab5b22
5
5
  SHA512:
6
- metadata.gz: c6da0266d991711aee0b33fd1e93e90cf501407f9d4d7559a00ea9fc3e83923ad345ea32f0c0982febfdd3d54a3a605d9d3b0be004704681e3fb2746740471ba
7
- data.tar.gz: 4f6d66be2a618be1831d6b83835452397cbce8c434bd26537ac5bf42901eeaf1f78835cccf07d35523819cf8c1e6fa16b3999b7ef85fe2ef09a6f2b157c1bbba
6
+ metadata.gz: ebe4ca7a1ea70527190eb0a42c018ecfe9a1369dd0c1ad34e1501abb3b1404fe4556eebcb8e1d43fdda75a727290998debd802f26ee891077436e43fde6364a8
7
+ data.tar.gz: 4f7fb96da46bcb144622eb9dd2a5682e07644345459f8b46b5786889fa9c3e748e964925193c45fdaf6f2e3d8e57cc96006ac50f68afbce10a6f9d4a321e6a1c
@@ -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
@@ -2,7 +2,7 @@
2
2
  CONSTANT = "MogileFS::VERSION"
3
3
  RVF = "lib/mogilefs/version.rb"
4
4
  GVF = "GIT-VERSION-FILE"
5
- DEF_VER = "v3.11.0"
5
+ DEF_VER = "v3.11.1"
6
6
  vn = DEF_VER
7
7
 
8
8
  # First see if there is a version file (included in release tarballs),
@@ -9,7 +9,7 @@ doc_ex := $(addprefix doc/, $(ex))
9
9
  $(doc_ex): $(ex)
10
10
  mkdir -p $(@D)
11
11
  install -m 644 $< $@
12
- -touch -r $< $@ # GNU
12
+ -touch -r $< $@
13
13
 
14
14
  include pkg.mk
15
15
  doc::
@@ -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)/o, "".freeze) and return $1
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 looks like it will be fixed in Ruby 2.5 final.
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
- RUBY_VERSION.to_f >= 2.2 && RUBY_VERSION.to_f <= 2.4
64
- def write(buf)
65
- # Blocking TCP writes would error out long before one day,
66
- # and MogileFS won't allow file creations which take over a day.
67
- timed_write(buf, 86400)
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.0
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-01-31 00:00:00.000000000 Z
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