aspera-cli 4.5.0 → 4.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/aspera/log.rb CHANGED
@@ -78,7 +78,7 @@ module Aspera
78
78
  # update formatter with password hiding
79
79
  @logger.formatter=proc do |severity, datetime, progname, msg|
80
80
  unless @log_passwords
81
- msg=msg.gsub(/("[^"]*(password|secret|private_key)[^"]*"=>")([^"]+)(")/){"#{$1}***#{$4}"}
81
+ msg=msg.gsub(/(["':][^"]*(password|secret|private_key)[^"]*["']?[=>: ]+")([^"]+)(")/){"#{$1}***#{$4}"}
82
82
  msg=msg.gsub(/("[^"]*(secret)[^"]*"=>{)([^}]+)(})/){"#{$1}***#{$4}"}
83
83
  msg=msg.gsub(/((secrets)={)([^}]+)(})/){"#{$1}***#{$4}"}
84
84
  end
data/lib/aspera/rest.rb CHANGED
@@ -93,6 +93,7 @@ module Aspera
93
93
  @http_session.use_ssl = uri.scheme.eql?('https')
94
94
  @http_session.verify_mode = OpenSSL::SSL::VERIFY_NONE if @@insecure
95
95
  @http_session.set_debug_output($stdout) if @@debug
96
+ # set http options in callback, such as timeout and cert. verification
96
97
  @@session_cb.call(@http_session) unless @@session_cb.nil?
97
98
  # manually start session for keep alive (if supported by server, else, session is closed every time)
98
99
  @http_session.start
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspera-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.5.0
4
+ version: 4.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laurent Martin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-27 00:00:00.000000000 Z
11
+ date: 2022-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs
@@ -251,7 +251,10 @@ dependencies:
251
251
  description: Command line interface for IBM Aspera products
252
252
  email:
253
253
  - laurent.martin.aspera@fr.ibm.com
254
- executables: []
254
+ executables:
255
+ - ascli
256
+ - asession
257
+ - dascli
255
258
  extensions: []
256
259
  extra_rdoc_files: []
257
260
  files: