tkellem 0.9.0.beta7 → 0.9.0.beta8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/backwards_file_reader.rb +2 -1
- data/lib/tkellem/version.rb +1 -1
- data/spec/irc_message_spec.rb +1 -1
- metadata +2 -2
@@ -26,9 +26,10 @@ class BackwardsFileReader
|
|
26
26
|
return line
|
27
27
|
end
|
28
28
|
|
29
|
+
@read_size = [@read_size, @pos].min
|
29
30
|
@pos -= @read_size
|
30
31
|
@stream.seek(@pos, IO::SEEK_SET)
|
31
|
-
@offset = 0
|
32
|
+
@offset = -@line_buffer.reduce(0) { |n,l| n + l.length }
|
32
33
|
|
33
34
|
@line_buffer[0] = "#{@stream.read(@read_size)}#{@line_buffer[0]}"
|
34
35
|
@line_buffer[0] = @line_buffer[0].scan(%r{.*\n})
|
data/lib/tkellem/version.rb
CHANGED
data/spec/irc_message_spec.rb
CHANGED
@@ -45,7 +45,7 @@ describe IrcMessage, "#with_timestamp" do
|
|
45
45
|
timestamp = Time.parse("Thu Nov 29 14:33:20 2001")
|
46
46
|
ts_line = line.with_timestamp(timestamp)
|
47
47
|
ts_line.should be_a(IrcMessage)
|
48
|
-
ts_line.to_s.should == ":some_long_prefix COMMAND first second :14:33:20> long arg here"
|
48
|
+
ts_line.to_s.should == ":some_long_prefix COMMAND first second :2001-11-29 14:33:20> long arg here"
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tkellem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.0.
|
4
|
+
version: 0.9.0.beta8
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -179,7 +179,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
179
179
|
version: '0'
|
180
180
|
segments:
|
181
181
|
- 0
|
182
|
-
hash:
|
182
|
+
hash: 377877143913440914
|
183
183
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
184
|
none: false
|
185
185
|
requirements:
|