mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/base64.rb: Fix rdoc-formatting for padding argument.
[fix GH-905][ci skip] Patch by @davydovanton git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fdb957925f
commit
7fc7651fc6
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Wed May 20 23:19:05 2015 Yusuke Endoh <mame@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/base64.rb: Fix rdoc-formatting for padding argument.
|
||||||
|
[fix GH-905][ci skip] Patch by @davydovanton
|
||||||
|
|
||||||
Wed May 20 13:16:23 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Wed May 20 13:16:23 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* configure.in (DEPRECATED_BY): deprecate warning with preferable
|
* configure.in (DEPRECATED_BY): deprecate warning with preferable
|
||||||
|
|
|
@ -78,7 +78,7 @@ module Base64
|
||||||
# Alphabet'' in RFC 4648.
|
# Alphabet'' in RFC 4648.
|
||||||
# The alphabet uses '-' instead of '+' and '_' instead of '/'.
|
# The alphabet uses '-' instead of '+' and '_' instead of '/'.
|
||||||
# Note that the result can still contain '='.
|
# Note that the result can still contain '='.
|
||||||
# You can remove the padding by setting "padding" as false.
|
# You can remove the padding by setting +padding+ as false.
|
||||||
def urlsafe_encode64(bin, padding: true)
|
def urlsafe_encode64(bin, padding: true)
|
||||||
str = strict_encode64(bin).tr("+/", "-_")
|
str = strict_encode64(bin).tr("+/", "-_")
|
||||||
str = str.delete("=") unless padding
|
str = str.delete("=") unless padding
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue