1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
Daniel Niknam b41802421a [rubygems/rubygems] Introduce Gem::PrintableUri that would redact URIs to be used on outputs
We need to redact URI credential in several places and copy pasting the code into each part of it is not ideal. This class is responsible for parsing URI strings and redacting credential from it. Also, it will handle URI object in the same manner. We will be reusing this class whenever we need to print/display a URI to users.
URI with the following format will be redacted:
- Token: `http://my-secure-token@example.com` => `http://REDACTED@example.com`
- Username & Password: `http://my-username:my-secure-password@example.com` => `http://my-username:REDACTED@example.com`
- x-oauth-basic: `http://my-secure-token:x-oauth-basic@example.com` => `http://REDACTED:x-oauth-basic@example.com`

https://github.com/rubygems/rubygems/commit/f1e45d3a89
2021-08-31 19:06:14 +09:00
..
-ext- Renamed thraed_fd_close as thread_fd 2021-07-29 21:15:04 +09:00
base64
benchmark
bigdecimal
cgi
coverage Check type of instruction - can be INSN or ADJUST 2021-06-23 11:34:37 -07:00
csv
date [ruby/date] Fix comparison with Float::INFINITY 2021-07-11 20:28:21 +09:00
did_you_mean [ruby/did_you_mean] Prevent "warning: ambiguity between regexp and two divisions" 2021-07-19 10:34:38 +09:00
digest [ruby/digest] Use pend instead of skip 2021-07-28 11:48:36 +09:00
drb
dtrace
erb
error_highlight [ruby/error_highlight] Fixed the argument for DidYouMean.formatter= 2021-08-20 16:27:07 +09:00
etc
excludes
fiber Fix example fiber scheduler reg. writable events 2021-08-26 21:49:12 +12:00
fiddle [ruby/fiddle] Simplify libc and libm path logics (https://github.com/ruby/fiddle/pull/91) 2021-08-24 16:18:24 +09:00
fileutils
fixtures/fake_sorted_set_gem
io
irb [ruby/irb] Relax backtrace nest levels 2021-08-30 13:16:46 +09:00
json
lib Revert an accidentally commits at df86a13cc1 2021-05-17 15:28:47 +09:00
logger
mkmf mkmf.rb: try linking at try_var 2021-07-08 18:18:35 +09:00
monitor Distinguish signal and timeout [Bug #16608] 2021-07-25 13:09:03 -07:00
net Fix test failure of 60b02db516 with Windows 2021-07-29 20:54:54 +09:00
nkf
objspace test/objspace/test_objspace.rb: check stderr before stdout 2021-05-14 18:07:58 +09:00
open-uri Guard for the ftp protocol feature of OpenURI 2021-05-27 14:42:11 +09:00
openssl test/openssl/test_x509cert.rb: Prevent "unused variable" warning 2021-07-19 10:57:56 +09:00
optparse
ostruct Partly picked from 20d0b8c065 2021-07-29 15:52:32 +09:00
pathname [Feature #16972] Add mode: option to Pathname#mkpath 2021-08-31 11:53:41 +09:00
psych [ruby/psych] require 'delegate' explicitly 2021-07-29 15:54:34 +09:00
racc [ruby/racc] Stop compressing integer lists 2021-06-25 17:23:06 +09:00
rdoc [ruby/rdoc] Fix links without paths 2021-07-05 11:34:37 +09:00
readline [ruby/readline-ext] Give up Editline 2021-08-14 22:13:56 +09:00
reline Omit some tests until debugging is complete 2021-08-31 16:21:40 +09:00
resolv Removed minitest/mock 2021-05-19 14:24:01 +09:00
rinda
ripper Extract the wrapped value when yydebug [Bug #18075] 2021-08-15 11:40:06 +09:00
ruby Support tracing of attr_reader and attr_writer 2021-08-29 07:23:39 -07:00
rubygems [rubygems/rubygems] Introduce Gem::PrintableUri that would redact URIs to be used on outputs 2021-08-31 19:06:14 +09:00
socket test/socket/test_socket.rb: skip on Solaris 2021-07-29 13:51:43 +09:00
stringio
strscan
syslog
uri Update to latest uri 2021-07-28 12:26:31 +02:00
win32ole
yaml Prefer qualified names under Thread 2021-06-29 11:41:10 +09:00
zlib [ruby/zlib] Synchronize access to zstream to prevent segfault in multithreaded use 2021-07-28 13:40:03 +09:00
runner.rb Fix bundled gems locations 2021-07-30 12:21:38 +09:00
test_abbrev.rb
test_delegate.rb
test_extlibs.rb
test_find.rb
test_forwardable.rb
test_ipaddr.rb
test_mutex_m.rb
test_observer.rb
test_open3.rb
test_pp.rb
test_prettyprint.rb
test_pstore.rb Prefer qualified names under Thread 2021-06-29 11:41:10 +09:00
test_pty.rb
test_rbconfig.rb
test_securerandom.rb
test_set.rb [ruby/set] Allow Set#intersect? and #disjoint? to accept array argument 2021-07-29 14:18:10 +09:00
test_shellwords.rb
test_singleton.rb
test_sorted_set.rb
test_syslog.rb
test_tempfile.rb
test_time.rb
test_timeout.rb
test_tmpdir.rb
test_trick.rb
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb