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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f303cbe0f6a333e5e2010cab1bf7f354c6829180
4
- data.tar.gz: 45f649a52043aeb05d4200b42dd5357da2c3ddd7
3
+ metadata.gz: 01c63d539e5f607adb376390b85cb2a9a9a43b8f
4
+ data.tar.gz: 643d5714d2347e85de8d097dc10d17df9939b9fc
5
5
  SHA512:
6
- metadata.gz: 89baf03844b3cd88df85f7d5943a5c38d92f52e530a621fd95107e9b7fef72a37e3140022a723d7bdba3554feb644d07cea1a5fe96ee6eab62aa66225413f1cf
7
- data.tar.gz: dd8fd4d1f3c94e4ff78297db15fdad98727df6efb396c8b2e39475449924e31ce6cf5f4331fa772e202390be05409ca69bbf59554576e7f84b885ced3af4fbaa
6
+ metadata.gz: 19cf92b19a08f61c88a3d09bb8262dbc7506c609567cc1bcc9cff2908d28b97eb1c0f1e6299a8a713c099c127dd69d4fced5a7d82fdb5a0ded174838af8aeef4
7
+ data.tar.gz: a462495c65b96be3d3798734a7bb6bd4413f81a110868318e671b0531485964fd4231177bbbca3ac94f6524d007ad2077f3238bab2639015f50812d933c85d3d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rest-ftp-daemon (0.240.1)
4
+ rest-ftp-daemon (0.240.2)
5
5
  double-bag-ftps
6
6
  facter
7
7
  get_process_mem
@@ -1,7 +1,7 @@
1
1
  # Terrific constants
2
2
  APP_NAME = "rest-ftp-daemon"
3
3
  APP_NICK = "rftpd"
4
- APP_VER = "0.240.1"
4
+ APP_VER = "0.240.2"
5
5
 
6
6
  # Provide default config file information
7
7
  APP_LIB = File.expand_path File.dirname(__FILE__)
@@ -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(/(\[[^\[]+\])/, '<span class="token">\1</span>')
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
@@ -28,7 +28,7 @@ module RestFtpDaemon
28
28
  password: @url.password.to_s,
29
29
  verbose: verbosity,
30
30
  port: @url.port,
31
- non_interactive: true,
31
+ #non_interactive: true,
32
32
  timeout: DEFAULT_SFTP_TIMEOUT
33
33
  )
34
34
  end
@@ -15,8 +15,11 @@ body, table tr td, .fixed {
15
15
 
16
16
  .token {
17
17
  display: inline-block;
18
- background-color: #f8f8f8;
19
- padding: 0 2px;
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
- &copy; 2014
8
- &middot;
7
+ &copy;
8
+ = "2014-#{Time.now.year}"
9
9
  %a{href: "http://bmconseil.com"}Bruno Medici Consultant
10
+
11
+ &middot;
12
+ %a{href: "http://github.com/bmedici/rest-ftp-daemon"} GitHub
10
13
  &middot;
11
- %a{href: "http://github.com/bmedici/rest-ftp-daemon"} GitHub project page
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 size
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
- = "#{no_news_for} s"
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.1
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-08-27 00:00:00.000000000 Z
11
+ date: 2015-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler