lederhosen 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/lederhosen.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "lederhosen"
8
- s.version = "0.5.1"
8
+ s.version = "0.5.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Austin G. Davis-Richardson"]
@@ -95,11 +95,11 @@ module Lederhosen
95
95
 
96
96
  # clstrnr_to_seed[seed_sequence_id] = clstr_nr
97
97
  seed_to_clstrnr = Hash.new
98
- lines = `wc -l #{input}`.split.first.to_i
99
- pbar = ProgressBar.new 'loading uc file', lines
98
+ bytes = File.size(input)
99
+ pbar = ProgressBar.new 'loading uc file', bytes
100
100
  File.open(input) do |handle|
101
101
  handle.each do |line|
102
- pbar.inc
102
+ pbar.inc handle.pos
103
103
  next if line =~ /^#/ # skip comments
104
104
 
105
105
  line = line.strip.split
@@ -2,7 +2,7 @@ module Lederhosen
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 5
5
- PATCH = 1
5
+ PATCH = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].join('.')
8
8
  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: 9
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 1
10
- version: 0.5.1
9
+ - 2
10
+ version: 0.5.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Austin G. Davis-Richardson