tailog 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 +8 -8
- data/README.md +2 -0
- data/app/views/ajax.erb +6 -1
- data/app/views/index.erb +19 -2
- data/lib/tailog/version.rb +1 -1
- data/lib/tailog.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGY5OGFkMjMyZTRiY2IzYjI0YTYxNmNkNTFkMmY0OWM1ZjYxNGZiMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzM5MTlhNzc0ZGZmZTljZTk1N2U5YWNjYWNmMTJiYzU5MTkxZTFhMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2U1YjAyNGY4ZjViMGNkNzBlOTY3NGFjMmZiMGExNDdjOWE1MTliNjZjZTlk
|
10
|
+
MThiYWU4ZTBiYjdjY2Y0ZmUzZmJjN2ZjNTgyNDI2NzZjYjQzYTkyODNmODA4
|
11
|
+
NjIyOWY3NmExYTE5ODkwNDVmNjRiYjdiMzgxY2FjMmFmOTYyYTA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Y2JiNDE2ZTRlMDc5YjM5NjQwMDdiMzI5MWY1NWMwMWJmMTVmOTEzOTIyYTYx
|
14
|
+
YWFjNzViNzAyYWFkMGVmNjg0ZTg3MzYxZGE1NzE2ODhkZjEzMjQ4Nzk5ZmQ1
|
15
|
+
MmI2MTg3NjRhZGRiMzkyNjJjMTU0ZDI4MDk1MTA5YmVmNDBhMmQ=
|
data/README.md
CHANGED
data/app/views/ajax.erb
CHANGED
@@ -11,5 +11,10 @@
|
|
11
11
|
</script>
|
12
12
|
<% end %>
|
13
13
|
<% rescue => error %>
|
14
|
-
<div class="alert alert-danger"
|
14
|
+
<div class="alert alert-danger">
|
15
|
+
<h4><%= h error.class %>: <%= h error.message %></h4>
|
16
|
+
<% error.backtrace.each do |backtrace| %>
|
17
|
+
<%= h backtrace %><br>
|
18
|
+
<% end %>
|
19
|
+
</div>
|
15
20
|
<% end %>
|
data/app/views/index.erb
CHANGED
@@ -22,6 +22,10 @@
|
|
22
22
|
p:hover {
|
23
23
|
background: #EEE;
|
24
24
|
}
|
25
|
+
|
26
|
+
a {
|
27
|
+
display: block;
|
28
|
+
}
|
25
29
|
</style>
|
26
30
|
</head>
|
27
31
|
<body>
|
@@ -90,14 +94,27 @@
|
|
90
94
|
$(data).appendTo($content);
|
91
95
|
}
|
92
96
|
});
|
93
|
-
},
|
97
|
+
}, 3000);
|
94
98
|
</script>
|
95
99
|
|
96
100
|
<% end %>
|
97
101
|
|
98
102
|
<% rescue => error %>
|
99
|
-
<div class="alert alert-danger"
|
103
|
+
<div class="alert alert-danger">
|
104
|
+
<h4><%= h error.class %>: <%= h error.message %></h4>
|
105
|
+
<% error.backtrace.each do |backtrace| %>
|
106
|
+
<%= h backtrace %><br>
|
107
|
+
<% end %>
|
108
|
+
</div>
|
100
109
|
<% end %>
|
110
|
+
|
111
|
+
<% else %>
|
112
|
+
<div id="content" class="monospace">
|
113
|
+
<% Dir[File.join Tailog.log_path, '**/*.log'].each do |file| %>
|
114
|
+
<% relative_file = Pathname.new(file).relative_path_from(Pathname.new(Tailog.log_path)) %>
|
115
|
+
<a href="?file=<%= relative_file %>"><%= file %></a>
|
116
|
+
<% end %>
|
117
|
+
</div>
|
101
118
|
<% end %>
|
102
119
|
|
103
120
|
</div> <!-- /container -->
|
data/lib/tailog/version.rb
CHANGED
data/lib/tailog.rb
CHANGED