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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93481db09b17c1316e746bc42f2b5d5d3ac68a5c
4
- data.tar.gz: c412238da872b246a0506a838126bc3b54c98a74
3
+ metadata.gz: 5ae968f41b69c5a08e5031228fb669f9e1562e1b
4
+ data.tar.gz: a5db50f873a1f8bb9ebd92f2c254d466013cd49b
5
5
  SHA512:
6
- metadata.gz: 281e8fdfd628c36e3eccdea2c759643641d9d11f26f42d664eef81382e3afd0293fec70035d68cb200762e7a3c481cfb4606cb8a104645fb0e44db967dd35974
7
- data.tar.gz: 74f55c1e650fd08c537c8add13cf3acea9402ecc0b03ea8e3fd83beff2c8ae512d89913c10be87027b0a744ff726ad4cf2e1804961b567111ffd08e1011e237d
6
+ metadata.gz: ec5f240daa46a439c932cd6dcaf1a596541fd3f0c172010bbad6871cc2f36d8daed61a62c8fcbad63788a4fd9c1edd9de671748fdd6f068444a5d203836028c8
7
+ data.tar.gz: 3cc3e3f60881c2c4330f419d5e6f1983af8e163afc0fbdb6db9b9b7237f00c4f5c4d98f61fac0598001068b4c3a9d364eb6e470df3294860ab207c3f1714df47
@@ -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| end %>
10
- <div id="content"></div>
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 = {};
@@ -1,3 +1,4 @@
1
+ <p class="text-info"><%= Tailog.server_uuid %></p>
1
2
  <% file.each_line do |line| %>
2
3
  <p><%= h line %></p>
3
4
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module Tailog
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tailog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - bbtfr