rbbt-util 5.19.19 → 5.19.20

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a1c106d7f3ec1535abec1883fd465cee9c60ce1f
4
- data.tar.gz: 31d9d1fc96bf50f6fa6c9f5b566d82fb10bc9f06
3
+ metadata.gz: 3cc27beb6c6dcec86da8a9864ceb2f2e29bb9fe0
4
+ data.tar.gz: 8e7ef407be5734415e5b37fb986a3c2b8727cdc8
5
5
  SHA512:
6
- metadata.gz: b7f0d24616ceed78fa2671f40ce3e0a9221b6739a0a65f09783dece72d74b661ca54f480b930059bda643c446f1a28e9c81b9deba534fe09ae23dd0a8f8955f8
7
- data.tar.gz: 0802e21fe07e9f3fedfe244c3456106edfb74733cfbad4e092faea47e1734faa212605169222e7bccadc68d05c7f9a3794912af4c294ff462d1a246bf8db8f7b
6
+ metadata.gz: 5df62f3fc2a24c1abbf7e17b85308b780157a01a18d0112c8cfdcb75d7c4904fb3c410190faf74981d585d7d15e1607f06408dbd178246cfe6439af12e6813f5
7
+ data.tar.gz: a5cf866869dc753912df0abc3f9c846c922617c9eaa674a05c20a90a42f774e6ff17d3fba5838889070bc7f62a0d87f4c4da955720afd0a42defdeb15e9b2d2d
@@ -13,7 +13,7 @@ module TSV
13
13
  if not tsv.fields.include? format
14
14
  new = {}
15
15
  tsv.each do |k,v|
16
- new[k] = v.dup
16
+ new[k] = v.dup if v === String or v === Array
17
17
  end
18
18
  orig_fields = tsv.fields
19
19
  tsv = tsv.annotate new
@@ -114,8 +114,8 @@ data = NULL
114
114
  end
115
115
 
116
116
  def self.plot(filename, data, script = nil, width = nil, height = nil, options = {})
117
- width ||= 3
118
- height ||= 3
117
+ width ||= 200
118
+ height ||= 200
119
119
  values = []
120
120
 
121
121
  sources = [:plot, options[:source]].flatten.compact
@@ -32,8 +32,9 @@ module Colorize
32
32
  times = num / 12
33
33
 
34
34
  all_colors = colors.dup
35
+ factor = 0.3 / times
35
36
  times.times do
36
- all_colors.concat colors.collect{|n| n.darken(0.2) }
37
+ all_colors.concat colors.collect{|n| n.darken(factor) }
37
38
  end
38
39
 
39
40
  value_color = Hash[*array.uniq.zip(all_colors).flatten]
@@ -242,7 +242,7 @@ class Step
242
242
  Step.log_progress(status, options, file(:progress), &block)
243
243
  end
244
244
 
245
- def progress_bar(msg, options = {})
245
+ def progress_bar(msg = "Progress", options = {})
246
246
  max = options[:max]
247
247
  Log::ProgressBar.new_bar(max, {:desc => msg, :file => file(:progress)}.merge(options))
248
248
  end
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.19.19
4
+ version: 5.19.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-14 00:00:00.000000000 Z
11
+ date: 2016-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake