readis 2.4.0 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/readis/monitor.rb +5 -4
  2. metadata +1 -1
@@ -46,11 +46,12 @@ Usage: readis monitor [options]
46
46
  optparser
47
47
  end
48
48
 
49
-
50
- # 1325296232.698537 "set" "monkey" "shines"
51
49
  def format(line)
52
- if timestamp = line.slice!(/^[\d.]+ "/)
53
- timestamp.chomp!(' "')
50
+ if timestamp = line.slice!(/^[\d.]+ /)
51
+ timestamp.strip!
52
+ end
53
+ if client = line.slice!(/\[\d+ [\d:\.]+\] "/)
54
+ client = client.slice(3..-4)
54
55
  end
55
56
  parts = line.split('" "').map {|p| p.chomp('"') }
56
57
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: readis
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.6.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: