rest-ftp-daemon 1.0.14 → 1.0.15

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: 0270513c53cca28997c10af197adc824d7bb878b
4
- data.tar.gz: 33aad35cd6d4c9aabc6ad5db890f0b63d27a515d
3
+ metadata.gz: acc6af653bd1b83732551408b79c4911b6e41cf3
4
+ data.tar.gz: 4e6bd70a74cae3014051cefeb17f9651631d6e7b
5
5
  SHA512:
6
- metadata.gz: 2351bf8f6176e7932817cd94fb20cdd02913d9cbf39c43aee1e764ec61625afd4663c0bf216e26598dfbcc065ae35215cb6db417c4dbe85f67cfefb653099b99
7
- data.tar.gz: 2f696bb2a479e0f706d1d2121ddaeffbdd02ee03e7ac9cd4190f34fe42bbaa436266dcb78330dc7cda9bfc9cf8ca80075e4125aba7b8a1f57d990c63343b9df2
6
+ metadata.gz: 3d59baea2867363ff294b5dfebb495ba6fbcc7cbec6040138ddc27169b7db8424105f7a2deac622eed162cea5a69475b9226113d24c5b2bbe9c4e8dcfb3a66f0
7
+ data.tar.gz: 511b3b07f3fe03d79e0fd557130234ff0c48dafbf53d374e6204365282205d532b045d086a031bdf8450389785d5a9cbc64d5a0fefc649d6cb8e1e5c35b926c9
@@ -90,13 +90,13 @@ module RestFtpDaemon
90
90
  # set_info INFO_TRANFER_BITRATE, @current_bitrate.round(0)
91
91
 
92
92
  # Log progress
93
- stack = [
93
+ fields = [
94
94
  "#{percent0} %",
95
- format_bytes(@transfer_sent, "B"),
96
- format_bytes(@current_bitrate.round(0), "bps")
95
+ format_bytes(@transfer_sent.to_i, "B"),
96
+ format_bytes(@current_bitrate.to_f.round(0), "bps")
97
97
  ]
98
- stack2 = stack.map { |txt| ("%#{LOG_PIPE_LEN.to_i}s" % txt) }.join("\t")
99
- log_info "progress #{stack2} \t#{name}"
98
+ stack = fields.map { |txt| ("%#{LOG_PIPE_LEN.to_i}s" % txt) }.join("\t")
99
+ log_info "progress #{stack} \t#{name}"
100
100
 
101
101
  # Prepare and send notification
102
102
  client_notify :progress, status: {
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |spec|
3
3
 
4
4
  # Project version
5
- spec.version = "1.0.14"
5
+ spec.version = "1.0.15"
6
6
 
7
7
  # Project description
8
8
  spec.name = "rest-ftp-daemon"
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: 1.0.14
4
+ version: 1.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno MEDICI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-07 00:00:00.000000000 Z
11
+ date: 2017-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -562,7 +562,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
562
562
  version: '0'
563
563
  requirements: []
564
564
  rubyforge_project:
565
- rubygems_version: 2.5.1
565
+ rubygems_version: 2.6.8
566
566
  signing_key:
567
567
  specification_version: 4
568
568
  summary: RESTful transfer jobs daemon