diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-20 23:34:03 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-20 23:34:03 +0000 |
commit | 0055f09bcc84ef28c401fae056ac5afe87d0357e (patch) | |
tree | 6e612da2d8c3e2b4af13982da7b3b4577e4f7e87 /lib/net | |
parent | 93fe0ff2f1a2818523799d3da68cade115bec783 (diff) |
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/net')
-rw-r--r-- | lib/net/smtp.rb | 4 |
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 |