tailog 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/logs/index.erb +5 -2
- data/app/views/logs/list.erb +1 -0
- data/lib/tailog/version.rb +1 -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: 5ae968f41b69c5a08e5031228fb669f9e1562e1b
|
4
|
+
data.tar.gz: a5db50f873a1f8bb9ebd92f2c254d466013cd49b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec5f240daa46a439c932cd6dcaf1a596541fd3f0c172010bbad6871cc2f36d8daed61a62c8fcbad63788a4fd9c1edd9de671748fdd6f068444a5d203836028c8
|
7
|
+
data.tar.gz: 3cc3e3f60881c2c4330f419d5e6f1983af8e163afc0fbdb6db9b9b7237f00c4f5c4d98f61fac0598001068b4c3a9d364eb6e470df3294860ab207c3f1714df47
|
data/app/views/logs/index.erb
CHANGED
@@ -6,8 +6,11 @@
|
|
6
6
|
<% file_path = File.join Tailog.log_path, params[:file] %>
|
7
7
|
<h3 class="page-header"><%= file_path %></h3>
|
8
8
|
|
9
|
-
<% File.open file_path do |file|
|
10
|
-
|
9
|
+
<% File.open file_path do |file| %>
|
10
|
+
<div id="content">
|
11
|
+
<%= erb :'logs/list', locals: { file: file.tail(100).join("\n") } %>
|
12
|
+
</div>
|
13
|
+
<% end %>
|
11
14
|
|
12
15
|
<script type="text/javascript">
|
13
16
|
window.fileSize = {};
|
data/app/views/logs/list.erb
CHANGED
data/lib/tailog/version.rb
CHANGED