* [ANN] mogilefs-client 3.11.1 - MogileFS client library for Ruby
@ 2017-03-23 2:10 6% Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2017-03-23 2:10 UTC (permalink / raw)
To: ruby-talk, mogile; +Cc: mogilefs-client-public
A MogileFS client library for Ruby. MogileFS is an open source
distributed filesystem, see: http://mogilefs.org/ for more details.
This library allows any Ruby application to read, write and delete
files in a MogileFS instance.
Changes:
mogilefs-client 3.11.1
This release updates the IO#write garbage workaround to be
enabled for Ruby 2.0 and 2.1 users; but avoids it on the
just-released Ruby 2.4.1; as that includes the backported bugfix
for https://bugs.ruby-lang.org/issues/13085
There's also some trivial doc and code aesthetics fixes.
6 changes since 3.11.0:
.olddoc.yml: add trailing slash on URL
socket_common: expand IO#write garbage workaround to 2.0 and 2.1
socket_common: limit garbage workaround to Ruby <= 2.4.1
socket_common: remove needless 'o' modifier for Regexp
socket_common: improve readability of case statement
GNUmakefile: fix incorrect comment
rdoc :: https://bogomips.org/mogilefs-client/
feed :: https://bogomips.org/mogilefs-client/NEWS.atom.xml
list :: mogilefs-client-public@bogomips.org
list-cc :: mogile@googlegroups.com
list-archive :: https://bogomips.org/mogilefs-client-public/
git clone git://bogomips.org/mogilefs-client.git
nntp://news.public-inbox.org/inbox.comp.file-systems.mogilefs.ruby
^ permalink raw reply [relevance 6%]
* [PATCH] socket_common: expand IO#write garbage workaround to 2.0 and 2.1
@ 2017-02-03 22:58 7% Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2017-02-03 22:58 UTC (permalink / raw)
To: mogilefs-client-public
On reading more carefully, it seems this change is from
r34847 which landed in Ruby 2.0. So we still need to support
Ruby 2.0 and 2.1 users.
---
lib/mogilefs/socket_common.rb | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/mogilefs/socket_common.rb b/lib/mogilefs/socket_common.rb
index 886c738..212f5da 100644
--- a/lib/mogilefs/socket_common.rb
+++ b/lib/mogilefs/socket_common.rb
@@ -58,9 +58,10 @@ def readpartial(size, buf = "", timeout = 5)
# Workaround for https://bugs.ruby-lang.org/issues/13085
# (excessive garbage from IO#write)
- # This looks like it will be fixed in Ruby 2.5 final.
+ # This regression was introduced in Ruby 2.0 (r34847)
+ # and looks like it will be fixed in Ruby 2.5 final.
if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'ruby' &&
- RUBY_VERSION.to_f >= 2.2 && RUBY_VERSION.to_f <= 2.4
+ RUBY_VERSION.to_f >= 2.0 && RUBY_VERSION.to_f <= 2.4
def write(buf)
# Blocking TCP writes would error out long before one day,
# and MogileFS won't allow file creations which take over a day.
--
EW
^ permalink raw reply related [relevance 7%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2017-02-03 22:58 7% [PATCH] socket_common: expand IO#write garbage workaround to 2.0 and 2.1 Eric Wong
2017-03-23 2:10 6% [ANN] mogilefs-client 3.11.1 - MogileFS client library for Ruby Eric Wong
Code repositories for project(s) associated with this public inbox
https://yhbt.net/mogilefs-client.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).