Removed dependency on Base64, which doesn't seem to appear on all Ruby versions.
This commit is contained in:
parent
e6d6a5261a
commit
c423ced9e2
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,6 @@
|
|||
#
|
||||
|
||||
|
||||
require 'base64'
|
||||
|
||||
|
||||
module Net
|
||||
|
@ -61,7 +60,8 @@ class Dataset < Hash
|
|||
# $1 is the attribute name
|
||||
# $2 is a colon iff the attr-value is base-64 encoded
|
||||
# $' is the attr-value
|
||||
attrvalue = ($2 == ":") ? Base64.decode64($') : $'
|
||||
#attrvalue = ($2 == ":") ? Base64.decode64($') : $'
|
||||
attrvalue = ($2 == ":") ? $'.unpack('m').shift : $'
|
||||
ds[dn][$1.downcase.intern] << attrvalue
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue