rbbt-util 5.17.37 → 5.17.38

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 018ff5d75579a0f9063037ef20da554b396daa92
4
- data.tar.gz: fbaa875c7332df4f9a5da2511e85df9e2a3fc938
3
+ metadata.gz: 6f235c767bb00159faf5998be14d95a06eca6f83
4
+ data.tar.gz: e85bd4d844d2fd418daccddfc04631fcacff5c85
5
5
  SHA512:
6
- metadata.gz: e0b6ca146e9d06f87d73136afdbcc7f816e2ad333453310a633932f5f798ac810cbe97a1634949c8a3307c9acf35cab928f99830766c6c8cd9bcf67f8cf259e7
7
- data.tar.gz: 8a25f98e0b3d4ed21571fc438433a2374f8903d0363663ef6f71bb4afce88af19909419122b98507af90ba86330f6125ec88930c285fa7d2013f3ceb1bd73541
6
+ metadata.gz: e221ea4e84e2647acb9ac8c921aaaceeee158f05e2bf0317bc2aed544f3760cfe025b20faf16cfeafb8d4c51392f60401c6247dba31452e285b89f15d3592320
7
+ data.tar.gz: a7b46a23ad312f812884af9403a138db5be48f589817f7da8202a4c3e919b22bb3560db561fe287b8086a87050decd01ab5df28a5d9108eb446953319a66fdda
@@ -29,7 +29,7 @@ module TSV
29
29
  when Array, Hash
30
30
  obj.size
31
31
  when File
32
- return nil if Open.gzip?(file) or Open.bgzip?(file)
32
+ return nil if Open.gzip?(obj) or Open.bgzip?(obj)
33
33
  CMD.cmd("wc -l '#{obj.filename}'").read.to_i
34
34
  when Path, String
35
35
  obj = obj.find if Path === obj
@@ -45,7 +45,7 @@ module Log
45
45
 
46
46
  diff = time - @last_time
47
47
  report and return if diff > @frequency
48
- return unless max
48
+ return unless max and max > 0
49
49
 
50
50
  percent = self.percent
51
51
  if @last_percent.nil?
@@ -207,7 +207,6 @@ module Misc
207
207
  end
208
208
 
209
209
  def self.intersect_streams_cmp_chr(chr1, chr2)
210
- return chr1 <=> chr2
211
210
  if chr1 =~ /^\d+$/ and chr2 =~ /^\d+$/
212
211
  chr1 <=> chr2
213
212
  elsif chr1 =~ /^\d+$/
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.17.37
4
+ version: 5.17.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-28 00:00:00.000000000 Z
11
+ date: 2015-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake