tkellem 0.9.0.beta7 → 0.9.0.beta8

Sign up to get free protection for your applications and to get access to all the features.
@@ -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})
@@ -1,3 +1,3 @@
1
1
  module Tkellem
2
- VERSION = "0.9.0.beta7"
2
+ VERSION = "0.9.0.beta8"
3
3
  end
@@ -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.beta7
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: 3003758682723293778
182
+ hash: 377877143913440914
183
183
  required_rubygems_version: !ruby/object:Gem::Requirement
184
184
  none: false
185
185
  requirements: