vagrant-save 0.3.2 → 0.3.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5540fc991600353117fac991a4377e267d9b772c
4
- data.tar.gz: 9f2c4d86870c8169864e111ec81d3bc9c4a17659
3
+ metadata.gz: 14a079e694d58e117388eadcd0b5dcb708cf271b
4
+ data.tar.gz: f8a787739aef38ee1c8fecc29353d170a35b0092
5
5
  SHA512:
6
- metadata.gz: 0d862bea58a04973a5a32d0ddf2d0d287c40f503f7cdfb876029ba3834dee2d42eeb7064e11e5615d6f4d77d69a6cd6d010cee9281d2c310b0418861e54d7a3c
7
- data.tar.gz: 2109dbe663cb5d30bae8e4f1cef47e7f326dd1adc5959ddd989b9c82d675a9e31d4bb699bdb03eda865952b970d6226231e3f233b9325d16d642c0528fd7b170
6
+ metadata.gz: 63dffb293b38d95434581e7b17a31c07b8a0e4a280d6387b3f472ec9e7fa1d639eeabb59c70de9f0340b44491442100dec7220990332209a92c461df4a21c6ba
7
+ data.tar.gz: b34c7deab158f0a1e8ba7605b722c6e59da051be1044dbaf01cf9b5da4f44385491552ab937f282fec24cc67ec5a53224c7b4d94912c12f896d0151049573c9a
@@ -68,6 +68,7 @@ module VagrantPlugins
68
68
  req.set_form({"box" => f}, 'multipart/form-data')
69
69
 
70
70
  previous_info = ""
71
+ previous_out = 0.0
71
72
 
72
73
  Net::HTTP::UploadProgress.new(req) do |progress|
73
74
  if progress.upload_size.to_f >= full_size.to_f
@@ -79,8 +80,12 @@ module VagrantPlugins
79
80
  info = "#{percent} (#{part} / #{full})"
80
81
  end
81
82
 
82
- if info != previous_info
83
+ t = Time.now.to_f
84
+
85
+ if info != previous_info && t - previous_out > 0.7
86
+ previous_out = t
83
87
  previous_info = info
88
+
84
89
  @env.ui.clear_line
85
90
  @env.ui.info(info, new_line: false)
86
91
  end
@@ -5,6 +5,6 @@
5
5
 
6
6
  module VagrantPlugins
7
7
  module Save
8
- VERSION = '0.3.2'
8
+ VERSION = '0.3.3'
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-save
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georg Grossberger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-01 00:00:00.000000000 Z
11
+ date: 2016-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: vagrant-export