e2phokz 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/e2phokz.gemspec +1 -1
- data/lib/e2phokz.rb +2 -2
- metadata +7 -7
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/e2phokz.gemspec
CHANGED
@@ -10,5 +10,5 @@ Gem::Specification.new do |gem|
|
|
10
10
|
gem.files = `git ls-files`.split("\n")
|
11
11
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
12
12
|
gem.version = File.open('VERSION').read.strip
|
13
|
-
gem.add_dependency "stomp", "~> 1.
|
13
|
+
gem.add_dependency "stomp", "~> 1.2.8"
|
14
14
|
end
|
data/lib/e2phokz.rb
CHANGED
@@ -69,7 +69,7 @@ module E2Phokz
|
|
69
69
|
eta = elapsed/progress*100 - elapsed
|
70
70
|
new_eta = (progress*eta + (100-progress)*@initial_eta)/100
|
71
71
|
#TODO support for non-gzipped ETA calculation
|
72
|
-
progress_stomp [progress
|
72
|
+
progress_stomp [sprintf("%.2f",progress)+'%',new_eta]
|
73
73
|
progress_bar [progress.to_s+'%',new_eta]
|
74
74
|
end
|
75
75
|
|
@@ -92,7 +92,7 @@ module E2Phokz
|
|
92
92
|
|
93
93
|
def progress_stomp progress
|
94
94
|
unless @stomp_client.nil?
|
95
|
-
@stomp_client.
|
95
|
+
@stomp_client.publish(@channel_name,progress.join(';'))
|
96
96
|
end
|
97
97
|
end
|
98
98
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: e2phokz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 4
|
10
|
+
version: 0.1.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Josef Liska
|
@@ -39,12 +39,12 @@ dependencies:
|
|
39
39
|
requirements:
|
40
40
|
- - ~>
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
hash:
|
42
|
+
hash: 15
|
43
43
|
segments:
|
44
44
|
- 1
|
45
|
-
-
|
46
|
-
-
|
47
|
-
version: 1.
|
45
|
+
- 2
|
46
|
+
- 8
|
47
|
+
version: 1.2.8
|
48
48
|
type: :runtime
|
49
49
|
version_requirements: *id002
|
50
50
|
description: dump ext2/ext3 filesystem with skipping unused blocks (output them as zeroes)
|