tailog 0.1.5 → 0.1.6

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: 8ebbb90d9b6b896c5d9c4090c4decb7ad7c3acee
4
- data.tar.gz: 7d95e448fd6c8c385e47cce7b6a3283f60203950
3
+ metadata.gz: 3a96a77ac5c624154a347d958d89ec3646b025c4
4
+ data.tar.gz: c1fe7e1ee366f1c633890c8de1c575f6146ef533
5
5
  SHA512:
6
- metadata.gz: 1ad18187d3b455ab7bec5dea5ceb3f55ddb374162f6b31b5643c4bcce23f591374b284a8ba2b3aaceebabe489bde2d90f81b3279e358debc01ecc300e8c0d2d9
7
- data.tar.gz: 288094d8d02695e9f016e66c33c6ec14bbc461e9d434a77470427a7164e08812dd76c4818cf38ee973daed5ae5170e40b583c3d91e60e2660d0d0bcadf54666a
6
+ metadata.gz: cdc93b392d1fa36f91c97ec62b4403e117bdf49c49ad0f86ac71953835aa65ee33bd7657a7c92b625643f26fee74fc0a926e7b9b9935221fe954199864e656ce
7
+ data.tar.gz: 146f2c87a92bd07da1fd1f228ed34279174c2fcd5681c1651ae9ecb8a732a3c1dc1893eb08a798b55e898b131ae0fc0d44b2b2c7db0bc8d13c97bf78099d21de
data/app/views/ajax.erb CHANGED
@@ -7,7 +7,8 @@
7
7
  <p><%= h line %></p>
8
8
  <% end %>
9
9
  <script type="text/javascript">
10
- window.fileSize = <%= file_size %>;
10
+ if (window.fileSize < <%= file_size %>)
11
+ window.fileSize = <%= file_size %>;
11
12
  </script>
12
13
  <% end %>
13
14
  <% rescue => error %>
data/app/views/index.erb CHANGED
@@ -58,6 +58,8 @@
58
58
 
59
59
  <% begin %>
60
60
 
61
+ <% raise RuntimeError, "Tailog.log_path is not present!" unless Tailog.log_path %>
62
+
61
63
  <% if params[:file] %>
62
64
  <% file_path = File.join Tailog.log_path, params[:file] %>
63
65
  <h3 class="page-header monospace"><%= file_path %></h3>
@@ -1,3 +1,3 @@
1
1
  module Tailog
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
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.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - bbtfr