tailog 0.6.6 → 0.6.7

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: d80f553a201e53ca0f79e92c0d19a8e2ea856cd7
4
- data.tar.gz: d6b53865fb32612771a23afe359b078496e61042
3
+ metadata.gz: 1c55e4322db5a7c2c4ccff3b87fb1eaf1af6aabc
4
+ data.tar.gz: 69d4ed2229b49a2185408ec520cb1f3d302aee69
5
5
  SHA512:
6
- metadata.gz: ef66c3e7ba6467a068591340e099341f0d91997b7ac78caf95ba34d1e6080bc994cd48f3eaf58112d8e245232dcb8e86488c58ec22f06dcb20b390ad992b89f0
7
- data.tar.gz: da5faafe1df5a06afe2b1b2bcec3b644497b38aaae88d659a9d54de42e4f1d29e7bf4153e87d81252216935eaf4da8b6162a4a429a6c9d26833a213cc3bedc25
6
+ metadata.gz: e64c9eae042da797b8ec3a422c914640a3074e6757bb228ef63f7b836a03d54d0c205253b1f078a4a611ffcedd1611c9cd878faa35a1e2d5f6af6e6af6b271f6
7
+ data.tar.gz: 378a1fc7b2194c631ca63abb4d7266ea7f81498c66cecd67290991cdca6499b470e1c5edaf875b4f969d6e162c396f492a49f7f4029029e638db2bc7f82f51fa
@@ -1,6 +1,12 @@
1
+ html {
2
+ position: relative;
3
+ min-height: 100%;
4
+ }
5
+
1
6
  body {
2
7
  font-family: "Lucida Console", Monaco, monospace;
3
8
  padding-top: 20px;
9
+ margin-bottom: 60px;
4
10
  padding-bottom: 20px;
5
11
  }
6
12
 
@@ -14,6 +20,18 @@ p {
14
20
  outline: 0 !important;
15
21
  }
16
22
 
23
+ .footer {
24
+ position: absolute;
25
+ bottom: 0;
26
+ width: 100%;
27
+ height: 60px;
28
+ background-color: #f5f5f5;
29
+ }
30
+
31
+ .footer p {
32
+ line-height: 60px;
33
+ }
34
+
17
35
  .fixed-top-right {
18
36
  position: fixed;
19
37
  top: 25px;
data/app/views/layout.erb CHANGED
@@ -38,11 +38,17 @@
38
38
 
39
39
  </div> <!-- /container -->
40
40
 
41
- <script type="text/javascript">
42
- $(".data-tables").DataTable({
43
- lengthMenu: [ [10, 25, 50, -1], [10, 25, 50, "All"] ],
44
- pageLength: -1
45
- });
46
- </script>
41
+ <footer class="footer">
42
+ <div class="container">
43
+ <p class="text-muted"><a href="https://github.com/bbtfr/tailog">TAILOG <%= Tailog::VERSION %></a>. Page generated by <%= Tailog.server_hostname %> - <%= Tailog.process_uuid %></p>
44
+ </div>
45
+ </footer>
46
+
47
+ <script type="text/javascript">
48
+ $(".data-tables").DataTable({
49
+ lengthMenu: [ [10, 25, 50, -1], [10, 25, 50, "All"] ],
50
+ pageLength: -1
51
+ });
52
+ </script>
47
53
  </body>
48
54
  </html>
@@ -1,3 +1,3 @@
1
1
  module Tailog
2
- VERSION = "0.6.6"
2
+ VERSION = "0.6.7"
3
3
  end
data/lib/tailog.rb CHANGED
@@ -50,7 +50,7 @@ module Tailog
50
50
  get '/logs/download' do
51
51
  begin
52
52
  file_path = File.join Tailog.log_path, params[:file]
53
- send_file file_path
53
+ send_file file_path, filename: "#{Tailog.server_hostname}-#{params[:file]}"
54
54
  rescue => error
55
55
  content = erb :error, locals: { error: error }, layout: false
56
56
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tailog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.6
4
+ version: 0.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - bbtfr
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-27 00:00:00.000000000 Z
11
+ date: 2016-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra