e2phokz 0.1.3 → 0.1.4

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/e2phokz.gemspec +1 -1
  3. data/lib/e2phokz.rb +2 -2
  4. metadata +7 -7
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
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.1.6"
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.to_s+'%',new_eta]
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.send(@channel_name,progress.join(';'))
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: 29
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
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: 31
42
+ hash: 15
43
43
  segments:
44
44
  - 1
45
- - 1
46
- - 6
47
- version: 1.1.6
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)