rest-ftp-daemon 0.240.1 → 0.240.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rest-ftp-daemon/constants.rb +1 -1
- data/lib/rest-ftp-daemon/helpers.rb +15 -1
- data/lib/rest-ftp-daemon/remote_sftp.rb +1 -1
- data/lib/rest-ftp-daemon/static/css/main.css +5 -2
- data/lib/rest-ftp-daemon/views/dashboard_footer.haml +6 -3
- data/lib/rest-ftp-daemon/views/dashboard_jobs.haml +5 -5
- data/lib/rest-ftp-daemon/views/dashboard_workers.haml +6 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01c63d539e5f607adb376390b85cb2a9a9a43b8f
|
4
|
+
data.tar.gz: 643d5714d2347e85de8d097dc10d17df9939b9fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19cf92b19a08f61c88a3d09bb8262dbc7506c609567cc1bcc9cff2908d28b97eb1c0f1e6299a8a713c099c127dd69d4fced5a7d82fdb5a0ded174838af8aeef4
|
7
|
+
data.tar.gz: a462495c65b96be3d3798734a7bb6bd4413f81a110868318e671b0531485964fd4231177bbbca3ac94f6524d007ad2077f3238bab2639015f50812d933c85d3d
|
data/Gemfile.lock
CHANGED
@@ -37,7 +37,7 @@ module RestFtpDaemon
|
|
37
37
|
|
38
38
|
def self.highlight_tokens path
|
39
39
|
return unless path.is_a? String
|
40
|
-
path.gsub(
|
40
|
+
path.gsub(/\[([^\[]+)\]/, '<span class="token">\1</span>')
|
41
41
|
end
|
42
42
|
|
43
43
|
def self.extract_filename path
|
@@ -113,5 +113,19 @@ module RestFtpDaemon
|
|
113
113
|
path.sub(/([a-z]+:\/\/[^\/]+):[^\/]+\@/, '\1@' )
|
114
114
|
end
|
115
115
|
|
116
|
+
def self.formatted_duration duration
|
117
|
+
out = []
|
118
|
+
|
119
|
+
hours = duration / (60 * 60)
|
120
|
+
minutes = (duration / 60) % 60
|
121
|
+
seconds = duration % 60
|
122
|
+
|
123
|
+
out << "#{hours}h" if hours>0
|
124
|
+
out << "#{minutes}mn" if (minutes>0) || (hours>0)
|
125
|
+
out << "#{seconds}s"
|
126
|
+
|
127
|
+
out.join(' ')
|
128
|
+
end
|
129
|
+
|
116
130
|
end
|
117
131
|
end
|
@@ -15,8 +15,11 @@ body, table tr td, .fixed {
|
|
15
15
|
|
16
16
|
.token {
|
17
17
|
display: inline-block;
|
18
|
-
background-color: #
|
19
|
-
padding: 0
|
18
|
+
background-color: #fefefe;
|
19
|
+
padding: 0 3px;
|
20
|
+
margin: 0 2px;
|
21
|
+
border: 1px solid silver;
|
22
|
+
border-radius: 0.25em;
|
20
23
|
}
|
21
24
|
|
22
25
|
.label {
|
@@ -4,11 +4,14 @@
|
|
4
4
|
|
5
5
|
.footer-signature.pull-left
|
6
6
|
|
7
|
-
©
|
8
|
-
|
7
|
+
©
|
8
|
+
= "2014-#{Time.now.year}"
|
9
9
|
%a{href: "http://bmconseil.com"}Bruno Medici Consultant
|
10
|
+
|
11
|
+
·
|
12
|
+
%a{href: "http://github.com/bmedici/rest-ftp-daemon"} GitHub
|
10
13
|
·
|
11
|
-
%a{href: "http://
|
14
|
+
%a{href: "http://refactorcop.com/bmedici/rest-ftp-daemon"} RefactorCop
|
12
15
|
|
13
16
|
|
14
17
|
.footer-indicators.pull-right
|
@@ -31,16 +31,16 @@
|
|
31
31
|
%th ID
|
32
32
|
%th label
|
33
33
|
%th source
|
34
|
-
%th
|
34
|
+
%th mode
|
35
35
|
%th target
|
36
36
|
%th queued
|
37
37
|
%th.error status
|
38
38
|
%th{"min-width" => 120} error
|
39
|
-
%th.text-right
|
39
|
+
%th.text-right filesize
|
40
40
|
%th.text-right bitrate
|
41
|
-
%th W
|
42
|
-
%th P
|
43
|
-
%th R
|
41
|
+
%th{title: "Worker ID"} W
|
42
|
+
%th{title: "Priority"} P
|
43
|
+
%th{title: "Runs count"} R
|
44
44
|
|
45
45
|
- unless @queue.empty?
|
46
46
|
%tbody.jobs
|
@@ -18,14 +18,15 @@
|
|
18
18
|
- trclass = "danger"
|
19
19
|
- status = "DEAD"
|
20
20
|
|
21
|
-
- if vars[:updted_at].is_a? Time
|
22
|
-
- no_news_for = (Time.now - vars[:updted_at]).round(0)
|
23
|
-
- else
|
24
|
-
- no_news_for = "?"
|
25
21
|
|
26
22
|
%tr{class: trclass.to_s}
|
27
23
|
%td= wid
|
28
24
|
%td= status
|
29
25
|
%td= vars[:jid]
|
30
26
|
%td.text-right
|
31
|
-
|
27
|
+
|
28
|
+
- if vars[:updted_at].is_a? Time
|
29
|
+
- no_news_for = (Time.now - vars[:updted_at]).round(0)
|
30
|
+
= Helpers.formatted_duration no_news_for
|
31
|
+
- else
|
32
|
+
= "?"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rest-ftp-daemon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.240.
|
4
|
+
version: 0.240.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bruno MEDICI
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|