lib/powertrack/streaming/data_buffer.rb in powertrack-1.1.1 vs lib/powertrack/streaming/data_buffer.rb in powertrack-1.2.0
- old
+ new
@@ -3,10 +3,10 @@
# chunk of bytes sent of the stream by GNIP and slice them into well-formatted
# messages.
class DataBuffer
# The pattern used by GNIP PowerTrack to delimitate a single message.
- MESSAGE_PATTERN = /^([^\r]*)\r\n/m
+ MESSAGE_PATTERN = /^([^\r]*)\r\n/m.freeze
# Builds a new data buffer.
def initialize
@buffer = ''
end