lib/parsel.rb in parsel-0.1.0 vs lib/parsel.rb in parsel-0.1.1
- old
+ new
@@ -21,12 +21,12 @@
cipher.iv = "f89209ffcdd1a225"
cipher.update(data) + cipher.final
end
def self.encode(data)
- Base64.encode64(data).chomp
+ Base64.encode64(data).gsub(/\n/, "")
end
def self.decode(data)
- Base64.decode64(data).chomp
+ Base64.decode64(data)
end
end