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: 78cddca7600297343733b12cac8880dd29172ba8
4
- data.tar.gz: 66b37510f289bdf360beddcf338b0cbb3fdc6862
3
+ metadata.gz: 66c47da85914a7ef81b2261760da44946c076b1c
4
+ data.tar.gz: 9b810c39f4a54659227ba7f22d49c83a0d509542
5
5
  SHA512:
6
- metadata.gz: 17ff8e08ba2c0f865b8510b896cb674642256292c713d84678ce64d4b47c4401bb4defaa5829521aabe0ca467493f51c674ce74c7b07fdeafaee3279a9d4d594
7
- data.tar.gz: b86a309ea1a87a9bcfd95c8375f02f317a01776c23ecac99f8b60a5ac99dc34b1cb5b92db91798fca13519e6fa062f6a5b58310e506ef62e083488de61b664e6
6
+ metadata.gz: 534da23fd70f3fc234dec13863e3c925b0f217c51cab40bbcdc6d202a1555826a12c7764209e6689eb8bc8e9869f3ee3f21371f823aba903a465398109f6f3f3
7
+ data.tar.gz: 9695bbc96f79cb4101f29ad2b888555dcaf162510da234d9f1bedacbb006f54478ccc44928abc4100307af43c9cb1189cbd0b7138c3dbe0ea5043a907f73d5f7
@@ -10,6 +10,10 @@
10
10
  margin-bottom: 0;
11
11
  }
12
12
 
13
+ #peephole thead tr {
14
+ background: #f9f9f9;
15
+ }
16
+
13
17
  #peephole .navbar {
14
18
  border-left: 0;
15
19
  border-right: 0;
@@ -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, i, loglines, logmap)
39
- logline = new(line, i)
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>Peephole</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
- <tr>
14
- <td>#num</td>
15
- <td>
16
- started_at<br>
17
- <span class="text-muted">uuid</span>
18
- </td>
19
- <td>
20
- method <code>target</code>
21
- </td>
22
- <td>status</td>
23
- <td colspan="2">params</td>
24
- </tr>
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>
@@ -1,3 +1,3 @@
1
1
  module Peephole
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
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.7
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-16 00:00:00.000000000 Z
11
+ date: 2015-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails