Ruby mogilefs-client dev/users discussion/patches/bugs/help/...
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [ANN] mogilefs-client 3.11.0 - MogileFS client library for Ruby
@ 2017-01-31 18:38  4% Eric Wong
  0 siblings, 0 replies; 3+ results
From: Eric Wong @ 2017-01-31 18:38 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:

    This release provides compatibility with net-http-persistent 3.x
    while retaining support for the (API-incompatible) 2.x series.

    Users of mainline Ruby 2.2+ get a workaround for excessive
    garbage for uploading files.  This excessive garbage on IO#write
    should be fixed when Ruby 2.5 gets released on Dec 25, 2017:
    https://bugs.ruby-lang.org/issues/13085

    There's also a few minor garbage reductions of small strings,
    relying on the maintained cmogstored for Content-Range PUT
    testing, and some minor build system and documentation updates.

    12 changes since 3.10.0 (Aug 2016):

          avoid pointless capture in regexp
          use opt_str_freeze to avoid allocations in a few places
          new_file/common: simplify empty class declarations
          support net-http-persistent 3.x
          test: switch to cmogstored for testing Content-Range PUTs
          avoid excessive garbage on uploads with Ruby 2.2+
          socket_common: limit IO#write garbage workaround to <= 2.4
          freeze string literals in a few more places
          update URLS to HTTPS
          README: explain removal of NFS support
          doc: remove private email address linkage
          gemspec: remove olddoc development dependency

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 4%]

* [PATCH 1/3] avoid pointless capture in regexp
  2016-12-29  7:42  5% [PATCH 0/3] misc cleanups Eric Wong
@ 2016-12-29  7:42  7% ` Eric Wong
  0 siblings, 0 replies; 3+ results
From: Eric Wong @ 2016-12-29  7:42 UTC (permalink / raw)
  To: mogilefs-client-public

We do not emit any sort of message on successful 2XX responses,
so there's no need to save the actual response after writing.
---
 lib/mogilefs/new_file/common.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/mogilefs/new_file/common.rb b/lib/mogilefs/new_file/common.rb
index c102901..44eee69 100644
--- a/lib/mogilefs/new_file/common.rb
+++ b/lib/mogilefs/new_file/common.rb
@@ -23,7 +23,7 @@ def read_response(sock)
     start_time = @opts[:start_time] and tout -= MogileFS.now - start_time
     set_socket_options(sock)
     case line = sock.timed_read(23, "", tout > 0.0 ? tout : 0)
-    when %r{^HTTP/\d\.\d\s+(2\d\d)\s} # success!
+    when %r{^HTTP/\d\.\d\s+(?:2\d\d)\s} # success!
     when nil
       raise EmptyResponseError, 'Unable to read response line from server'
     when %r{^HTTP/\d\.\d\s+(\d+)}
-- 
EW


^ permalink raw reply related	[relevance 7%]

* [PATCH 0/3] misc cleanups
@ 2016-12-29  7:42  5% Eric Wong
  2016-12-29  7:42  7% ` [PATCH 1/3] avoid pointless capture in regexp Eric Wong
  0 siblings, 1 reply; 3+ results
From: Eric Wong @ 2016-12-29  7:42 UTC (permalink / raw)
  To: mogilefs-client-public

Nothing earth shattering, just 3 cleanups while I noticed
while working on other stuff...

3 changes:
      avoid pointless capture in regexp
      use opt_str_freeze to avoid allocations in a few places
      new_file/common: simplify empty class declarations

 lib/mogilefs/http_file.rb       |  2 +-
 lib/mogilefs/new_file/common.rb | 12 ++++++------
 lib/mogilefs/new_file/stream.rb |  8 ++++----
 lib/mogilefs/new_file/writer.rb |  2 +-
 4 files changed, 12 insertions(+), 12 deletions(-)

^ permalink raw reply	[relevance 5%]

Results 1-3 of 3 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-12-29  7:42  5% [PATCH 0/3] misc cleanups Eric Wong
2016-12-29  7:42  7% ` [PATCH 1/3] avoid pointless capture in regexp Eric Wong
2017-01-31 18:38  4% [ANN] mogilefs-client 3.11.0 - 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).