csgolytics 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/csgolytics/log_reader.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f2434f9ff05f83a8afa7b24dd8c6a1fdaf1a610
|
4
|
+
data.tar.gz: bf2d50e27143639aa79f24955de772318e055206
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b873048397904601f22ed3357c37c1f405d59e45623c7c0d1ea81c16019a92eda289707afae038863275f987d206dffcb41dc9a2b96368954eeeaab42f6e3059
|
7
|
+
data.tar.gz: 6b8118e920da08db389bd40708986c85256a604c3d6800a98a9c714885fb76719b6686bab421ae1f78f1679a00f6bd081c1895955104fe9c30d005ac89cdc661
|
@@ -52,8 +52,11 @@ class CSGOLytics::LogReader
|
|
52
52
|
f = File.open(fpath)
|
53
53
|
f.seek(offset)
|
54
54
|
while l = (f.readline rescue nil)
|
55
|
+
l.encode!('UTF-8', 'UTF-8', :invalid => :replace)
|
56
|
+
l.chomp!
|
57
|
+
|
55
58
|
@callbacks.each do |cb|
|
56
|
-
cb[l
|
59
|
+
cb[l]
|
57
60
|
end
|
58
61
|
|
59
62
|
File.write(offset_file_path + "~", f.tell)
|
@@ -66,6 +69,7 @@ class CSGOLytics::LogReader
|
|
66
69
|
end
|
67
70
|
rescue Exception => e
|
68
71
|
$stderr.puts "ERROR: #{e.to_s}"
|
72
|
+
$stderr.puts e.backtrace
|
69
73
|
end
|
70
74
|
|
71
75
|
sleep POLL_INTERVAL
|