sanelint 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c8fefbe650839c23ff8e0882bc9bd94b2163b85f
4
- data.tar.gz: 406a8a7f7f6d8480934e988688bf9c3f10970318
3
+ metadata.gz: cc85ea74de47b387775f34e827e9c11d25eb5594
4
+ data.tar.gz: 69b64a8ade3cef20fa47daf628edc332b62fd60f
5
5
  SHA512:
6
- metadata.gz: 76833df22508fa6604776e3bcac8ab08bf3dbc320427b728eb8c2b6b946eb0bc73ddd4140441f7f44a8dcfe96c447abcd4a78ac7dae48762b7d598d6a9b411a8
7
- data.tar.gz: 2526121d38891c5b57652d11f8e009ff4236ab45803db88fb90c25201d542ad3d72301815e3c7aa0ff69e120eaa60860632aa39f518708690f7f062a1ef6a2b7
6
+ metadata.gz: ffe36a81f8f2b13b89094776b2ee59377585ca3cbd8cc99cfabde9f2547f9f0b65547e9205785b3b8697d8200edfe377e79d2572a6b4fd9ba9cc40f4979f9da1
7
+ data.tar.gz: e24d1b9cf27160fa63059b03450590afe60d1842c135aac5b6cf981969b62b79355c85817714c2ba3637a986ba0afcac0e12363a2e05f934a76caf0d337791d3
@@ -1,64 +1,93 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
3
  <head>
4
+ <meta charset="utf-8">
4
5
  <title><%= File.basename(root) %> Sanelint Report</title>
5
- <style type="text/css">
6
+
7
+ <link href='http://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>
8
+
9
+ <style>
10
+ /* Eric Meyer's Reset CSS v2.0 - http://cssreset.com */
11
+ html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}
12
+
6
13
  body {
7
- font: 12px sans-serif;
14
+ font-size: 14px;
15
+ font-family: 'Inconsolata', monospace;
16
+
17
+ width:1200px;
18
+ margin: 20px auto;
8
19
  }
9
- .container { margin: 50px; }
20
+
10
21
  table {
11
22
  border-collapse: collapse;
23
+ border: 0px;
24
+ }
25
+
26
+ tr:nth-child(even) {background: #e4e4e4}
27
+ tr:nth-child(odd) {background: #f4f4f4}
28
+
29
+ td {
30
+ padding: 15px 10px;
31
+ }
32
+ tr.small > td {
33
+ color: #333;
34
+ padding: 15px 10px;
35
+ padding-bottom: 0px;
36
+ }
37
+ td.narrow {
38
+ width:20px;
39
+ }
40
+ td.wide {
41
+ max-width:570px;
12
42
  }
13
- th {
14
- font-weight: bold;
43
+
44
+ a {
45
+ text-decoration: none;
46
+ color: #f56200;
15
47
  }
16
- td,th { padding: 5px; border: 1px solid #eee;}
17
- pre {
18
- overflow: scroll;
19
- max-width: 300px
48
+ .code {
49
+ padding: 5px;
50
+ border-radius: 3px;
51
+ background-color: #556;
52
+ color: #ddd;
53
+ line-height: 1.5em;
20
54
  }
55
+
21
56
  </style>
57
+
22
58
  </head>
23
59
  <body>
24
60
  <div class="container">
25
- <table class="table table-striped">
26
- <tr>
27
- <th>#</th>
28
- <th>File</th>
29
- <th>Error</th>
30
- <th>Code</th>
31
- <th>Commit</th>
32
- </tr>
61
+
62
+ <table>
63
+
33
64
  <% @entries.each_with_index do |entry, index| %>
34
- <tr>
35
- <td><%= index + 1 %></td>
36
- <td><code><%= entry.file %>:<%= entry.line %></code></td>
37
65
 
38
- <td>
66
+ <tr class="small">
67
+ <td class="narrow">
68
+ <%= index + 1 %>
69
+ </td>
70
+
71
+ <td class="wide">
72
+ <%= entry.git_date %>, <%= entry.git_username %>
73
+ <br />
39
74
  <% if entry.link %>
40
75
  <a href="<%= entry.link %>"><%= entry.message %></a>
41
76
  <% else %>
42
77
  <%= entry.message %>
43
78
  <% end %>
44
- </td>
45
-
46
- <td>
47
- <pre><%= entry.code %></pre>
48
- </td>
49
-
50
- <td>
51
- <a href="http://github.com/<%= git_repo %>/commit/<%= entry.git_commit %>">
52
- <%= entry.git_commit %>
53
- </a>
54
- <br>
55
- <%= entry.git_username %>
56
- <br>
57
- <%= entry.git_date %>
58
- </td>
59
-
60
- </tr>
79
+ </td>
80
+
81
+ <td class="wide">
82
+ <%= entry.file %>:<%= entry.line %> →
83
+ <a href="http://github.com/<%= git_repo %>/commit/<%= entry.git_commit %>"><%= entry.git_commit %></a>
84
+ <br />
85
+ <div class="code"><%= entry.line %>: <%= entry.code %></div>
86
+ </td>
87
+ </tr>
88
+
61
89
  <% end %>
90
+
62
91
  </table>
63
92
  </div>
64
93
 
@@ -1,3 +1,3 @@
1
1
  module Sanelint
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sanelint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tymon Tobolski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-17 00:00:00.000000000 Z
11
+ date: 2014-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails_best_practices