* [ANN] Ruby mogilefs-client 3.12.1 released
@ 2019-11-11 22:14 4% Eric Wong
0 siblings, 0 replies; 3+ results
From: Eric Wong @ 2019-11-11 22:14 UTC (permalink / raw)
To: mogile, mogilefs-client-public; +Cc: ruby-talk
A MogileFS client library for Ruby. MogileFS is an open source
distributed filesystem, see:
https://github.com/mogilefs/MogileFS-Server/wiki for more
details. This library allows any Ruby application to read,
write and delete files in a MogileFS instance.
Changes:
Minor cleanups, mainly to fix annoying warnings in Ruby 2.7.0dev.
4 changes since v3.12.0 (2019-01-02):
pkg.mk: use dark216 olddoc theme for Earth Day 2019
mogilefs: actually use kwarg for Net::HTTP::Persistent.new
fix more indentation warnings
test_client: quiet warnings about redefining accessors
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 https://bogomips.org/mogilefs-client.git
nntp://news.public-inbox.org/inbox.comp.file-systems.mogilefs.ruby
^ permalink raw reply [relevance 4%]
* [PATCH 1/3] mogilefs: actually use kwarg for Net::HTTP::Persistent.new
2019-10-30 9:23 4% [PATCH 0/3] updates for newer Rubies Eric Wong
@ 2019-10-30 9:23 7% ` Eric Wong
0 siblings, 0 replies; 3+ results
From: Eric Wong @ 2019-10-30 9:23 UTC (permalink / raw)
To: mogilefs-client-public
Ruby 2.7.0dev will warn about hashes uses as kwargs *sigh*
---
lib/mogilefs/mogilefs.rb | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/lib/mogilefs/mogilefs.rb b/lib/mogilefs/mogilefs.rb
index 724dfb6..990ae38 100644
--- a/lib/mogilefs/mogilefs.rb
+++ b/lib/mogilefs/mogilefs.rb
@@ -550,8 +550,11 @@ def file_debug(args)
end
def nhp_new(name) # :nodoc:
- Net::HTTP::Persistent::VERSION.to_f >= 3.0 and name = { :name => name }
- MogileFS::NHP.new(name)
+ if Net::HTTP::Persistent::VERSION.to_f >= 3.0
+ MogileFS::NHP.new(:name => name)
+ else
+ MogileFS::NHP.new(name)
+ end
rescue NameError
MogileFS::NHP.new(name)
end
^ permalink raw reply related [relevance 7%]
* [PATCH 0/3] updates for newer Rubies
@ 2019-10-30 9:23 4% Eric Wong
2019-10-30 9:23 7% ` [PATCH 1/3] mogilefs: actually use kwarg for Net::HTTP::Persistent.new Eric Wong
0 siblings, 1 reply; 3+ results
From: Eric Wong @ 2019-10-30 9:23 UTC (permalink / raw)
To: mogilefs-client-public
Newer Rubies warn about more things, which is annoying
to users who don't code *sigh*
Eric Wong (3):
mogilefs: actually use kwarg for Net::HTTP::Persistent.new
fix more indentation warnings
test_client: quiet warnings about redefining accessors
lib/mogilefs/mogilefs.rb | 7 +++++--
lib/mogilefs/new_file/stream.rb | 4 ++--
test/test_client.rb | 3 ++-
test/test_fresh.rb | 4 ++--
test/test_http_reader.rb | 4 ++--
test/test_mogilefs.rb | 16 ++++++++--------
test/test_mogilefs_integration.rb | 4 ++--
7 files changed, 23 insertions(+), 19 deletions(-)
^ permalink raw reply [relevance 4%]
Results 1-3 of 3 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2019-10-30 9:23 4% [PATCH 0/3] updates for newer Rubies Eric Wong
2019-10-30 9:23 7% ` [PATCH 1/3] mogilefs: actually use kwarg for Net::HTTP::Persistent.new Eric Wong
2019-11-11 22:14 4% [ANN] Ruby mogilefs-client 3.12.1 released 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).