lederhosen 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,9 +32,12 @@ module Lederhosen
32
32
 
33
33
  # print filtered uc file
34
34
  out = File.open(output, 'w')
35
- kept, total = 0, 0
35
+ kept, total = 1, 0
36
+ lines = `wc -l #{input}`.split.first.to_i
37
+ pbar = ProgressBar.new 'saving', lines
36
38
  File.open(input) do |handle|
37
39
  handle.each do |line|
40
+ pbar.inc
38
41
  if line =~ /^#/
39
42
  out.print line
40
43
  next
@@ -48,6 +51,7 @@ module Lederhosen
48
51
  end
49
52
  end
50
53
  end
54
+ pbar.finish
51
55
  out.close
52
56
  ohai "Survivors"
53
57
  ohai "clusters: #{surviving_clusters.length}/#{clstr_counts.keys.length} = #{100*surviving_clusters.length/clstr_counts.keys.length.to_f}%"
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lederhosen
2
- VERSION = '0.2.5'
2
+ VERSION = '0.2.6'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lederhosen
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 5
10
- version: 0.2.5
9
+ - 6
10
+ version: 0.2.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Austin G. Davis-Richardson