lib/riemann/babbler/support/monkey_patches.rb in riemann-babbler-1.1.0pre2 vs lib/riemann/babbler/support/monkey_patches.rb in riemann-babbler-1.1.6
- old
+ new
@@ -1,19 +1,19 @@
module Beefcake
class Buffer
- def initialize(buf="")
+ def initialize(buf='')
if buf.respond_to?(:force_encoding)
- self.buf = buf.force_encoding("BINARY")
+ self.buf = buf.force_encoding('BINARY')
else
self.buf = buf
end
end
def append_string(s)
append_uint64(s.length)
if s.respond_to?(:force_encoding)
- self << s.force_encoding("BINARY")
+ self << s.force_encoding('BINARY')
else
self << s
end
end
alias :append_bytes :append_string