1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext
normal 778bbac8ac stdlib: avoid extra calls to eliminate "\n" from Base64
We may use the '0' (zero) to avoid adding the line feed.
Furthermore, the '*' (asterisk) modifier is not needed for
a single-element arrays.

* ext/psych/lib/psych/visitors/yaml_tree.rb (visit_String):
  eliminate chomp
* lib/net/http.rb (connect): eliminate delete
* lib/net/http/header.rb (basic_encode): ditto
* lib/net/imap.rb (authenticate): eliminate gsub
  (self.encode_utf7): shorten delete arg
* lib/net/smtp.rb (base64_encode): eliminate gsub
* lib/open-uri.rb (OpenURI.open_http): eliminate delete
* lib/rss/rss.rb: ditto
* lib/securerandom.rb (base64): ditto
  (urlsafe_base64): eliminate delete!
* lib/webrick/httpauth/digestauth.rb (split_param_value):
  eliminate chop
* lib/webrick/httpproxy.rb (do_CONNECT): eliminate delete
  (setup_upstream_proxy_authentication): ditto
  [ruby-core:72666] [Feature #11938]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-01-10 00:35:43 +00:00
..
-test- handle ext/ as r53141 2015-12-16 05:31:54 +00:00
bigdecimal * ext/bigdecimal/bigdecimal.gemspec: bump version to 1.2.8. 2015-12-22 12:20:28 +00:00
cgi/escape escape.c: should not freeze 2015-12-22 05:31:31 +00:00
continuation handle ext/ as r53141 2015-12-16 05:31:54 +00:00
coverage handle ext/ as r53141 2015-12-16 05:31:54 +00:00
date handle ext/ as r53141 2015-12-16 05:31:54 +00:00
dbm handle ext/ as r53141 2015-12-16 05:31:54 +00:00
digest handle ext/ as r53141 2015-12-16 05:31:54 +00:00
etc handle ext/ as r53141 2015-12-16 05:31:54 +00:00
fcntl handle ext/ as r53141 2015-12-16 05:31:54 +00:00
fiber handle ext/ as r53141 2015-12-16 05:31:54 +00:00
fiddle * ext/fiddle/handle.c: check tainted string arguments. 2015-12-16 12:08:49 +00:00
gdbm handle ext/ as r53141 2015-12-16 05:31:54 +00:00
io io/console: fix gem build failure on Windows 2015-12-23 15:26:08 +00:00
json handle ext/ as r53141 2015-12-16 05:31:54 +00:00
mathn handle ext/ as r53141 2015-12-16 05:31:54 +00:00
nkf * ext/nkf/nkf-utf8/utf8tbl.c: fix a typo. 2015-12-18 00:42:49 +00:00
objspace handle ext/ as r53141 2015-12-16 05:31:54 +00:00
openssl openssl: fix examples [ci skip] 2016-01-09 14:15:49 +00:00
pathname handle ext/ as r53141 2015-12-16 05:31:54 +00:00
psych stdlib: avoid extra calls to eliminate "\n" from Base64 2016-01-10 00:35:43 +00:00
pty * ext/pty/pty.c: fix double words typo. 2015-12-18 00:44:52 +00:00
racc/cparse handle ext/ as r53141 2015-12-16 05:31:54 +00:00
rbconfig/sizeof nmake VPATH 2016-01-09 08:49:56 +00:00
readline handle ext/ as r53141 2015-12-16 05:31:54 +00:00
ripper * ext/ripper/depend: Just like BSDmake, nmake also recognize the rule of 2016-01-07 12:28:32 +00:00
sdbm handle ext/ as r53141 2015-12-16 05:31:54 +00:00
socket rb_readwrite_syserr_fail 2015-12-23 14:58:47 +00:00
stringio stringio: binmode sets encoding to ASCII-8BIT 2016-01-04 20:45:14 +00:00
strscan handle ext/ as r53141 2015-12-16 05:31:54 +00:00
syslog handle ext/ as r53141 2015-12-16 05:31:54 +00:00
thread handle ext/ as r53141 2015-12-16 05:31:54 +00:00
tk ⚠️ key "accelerator" is duplicated and overwritten in Tk samples 2015-12-28 15:10:25 +00:00
win32 handle ext/ as r53141 2015-12-16 05:31:54 +00:00
win32ole * remove trailing spaces. 2015-12-27 14:34:16 +00:00
zlib zlib.c: Fix typo [ci skip] 2015-12-19 05:27:52 +00:00
.document * ext/win32ole/win32ole.c: separate WIN32OLE::VARIANT src file 2014-08-02 14:55:36 +00:00
extmk.rb mkmf.rb: library installation messages 2016-01-07 03:06:58 +00:00
Setup cgi/escape: Optimize CGI.escapeHTML 2015-12-20 11:54:54 +00:00
Setup.atheos cgi/escape: Optimize CGI.escapeHTML 2015-12-20 11:54:54 +00:00
Setup.nacl cgi/escape: Optimize CGI.escapeHTML 2015-12-20 11:54:54 +00:00
Setup.nt cgi/escape: Optimize CGI.escapeHTML 2015-12-20 11:54:54 +00:00