aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-20 23:34:03 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-20 23:34:03 +0000
commitf26ba053495de0074130af8edfdfb669321a95f5 (patch)
tree6e612da2d8c3e2b4af13982da7b3b4577e4f7e87 /lib
parent558099679f2ccaf2627776d1ac3e07d114402665 (diff)
downloadruby-f26ba053495de0074130af8edfdfb669321a95f5.tar.gz
Use `unpack1` instead of `unpack` and `[0]`
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/net/smtp.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb
index a485fff9b4..1777a7fa7e 100644
--- a/lib/net/smtp.rb
+++ b/lib/net/smtp.rb
@@ -1035,9 +1035,9 @@ module Net
end
# Creates a CRAM-MD5 challenge. You can view more information on CRAM-MD5
- # on Wikipedia: http://en.wikipedia.org/wiki/CRAM-MD5
+ # on Wikipedia: https://en.wikipedia.org/wiki/CRAM-MD5
def cram_md5_challenge
- @string.split(/ /)[1].unpack('m')[0]
+ @string.split(/ /)[1].unpack1('m')
end
# Returns a hash of the human readable reply text in the response if it