peephole 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66c47da85914a7ef81b2261760da44946c076b1c
|
4
|
+
data.tar.gz: 9b810c39f4a54659227ba7f22d49c83a0d509542
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 534da23fd70f3fc234dec13863e3c925b0f217c51cab40bbcdc6d202a1555826a12c7764209e6689eb8bc8e9869f3ee3f21371f823aba903a465398109f6f3f3
|
7
|
+
data.tar.gz: 9695bbc96f79cb4101f29ad2b888555dcaf162510da234d9f1bedacbb006f54478ccc44928abc4100307af43c9cb1189cbd0b7138c3dbe0ea5043a907f73d5f7
|
@@ -30,13 +30,13 @@ module Peephole
|
|
30
30
|
eof = false
|
31
31
|
break
|
32
32
|
end
|
33
|
-
parse(line, i, loglines, logmap)
|
33
|
+
parse(line, i + 1, loglines, logmap)
|
34
34
|
end
|
35
35
|
[loglines, eof]
|
36
36
|
end
|
37
37
|
|
38
|
-
def parse(line,
|
39
|
-
logline = new(line,
|
38
|
+
def parse(line, num, loglines, logmap)
|
39
|
+
logline = new(line, num)
|
40
40
|
case logline.type
|
41
41
|
when TYPE::STARTED
|
42
42
|
logmap[logline.uuid] = logline if logline.uuid.present?
|
@@ -1,7 +1,12 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html>
|
3
3
|
<head>
|
4
|
-
<title>
|
4
|
+
<title>
|
5
|
+
<% if @logfile.present? %>
|
6
|
+
<%= "#{@logfile.filename} ##{@page}" %> -
|
7
|
+
<% end %>
|
8
|
+
Peephole
|
9
|
+
</title>
|
5
10
|
<%= stylesheet_link_tag "peephole/application", media: "all" %>
|
6
11
|
<%= javascript_include_tag "peephole/application" %>
|
7
12
|
<%= csrf_meta_tags %>
|
@@ -10,18 +10,20 @@
|
|
10
10
|
|
11
11
|
<table class="table table-bordered">
|
12
12
|
<% if @loglines.present? %>
|
13
|
-
<
|
14
|
-
<
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
13
|
+
<thead>
|
14
|
+
<tr>
|
15
|
+
<td>#num</td>
|
16
|
+
<td>
|
17
|
+
started_at<br>
|
18
|
+
<span class="text-muted">uuid</span>
|
19
|
+
</td>
|
20
|
+
<td>
|
21
|
+
method <code>target</code>
|
22
|
+
</td>
|
23
|
+
<td>status</td>
|
24
|
+
<td colspan="2">params</td>
|
25
|
+
</tr>
|
26
|
+
</thead>
|
25
27
|
<% @loglines.each do |logline| %>
|
26
28
|
<% logline.params.each_with_index do |(key, value), i| %>
|
27
29
|
<tr>
|
data/lib/peephole/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: peephole
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tnantoka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|