iroki 0.0.21 → 0.0.22

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: c06f93db8e46a7d0f22be2d97d822e221077de6b
4
- data.tar.gz: fdd189811979674c0a7ce3ff11fc3e16bec66609
3
+ metadata.gz: 05c9f3d7136eadbe2e16981d698cea0cf378feae
4
+ data.tar.gz: d97639c764a0d080922b02ba5e5712f88207852f
5
5
  SHA512:
6
- metadata.gz: b2fbca399dd1ce23d25fb0fbf43cd7b82ca6860eb3725cbde8f86df2ba6842bbbf21fa5db50f653a5bd6e21cf4f6c13143367e0883d82ea93f1ffc2315e6b08a
7
- data.tar.gz: 817d8a4015728800cf8cdce8399b2bfabf12dc2860d9848669868bd8c9eda4f59c24e47f679eb90fa0cc99100f64d7acab2d67e173a1ee7cd30bb2f001ba193e
6
+ metadata.gz: 46d4f81626bcf55db2022789f1afc167fa8f4b6ae6d4903361dcc2ead17b8072a82a16465d0e200b168eefe65b3e75c8ad11ccc767d75520441566f3921c2c73
7
+ data.tar.gz: b850c56f7353d2b3d1d7923cae8b28400d5614918f14d08e07a7a98d6c8b874d554b13783180326c8ef657d70660e65bc97063fbd600e85df0a0b46a8334b09a
data/README.md CHANGED
@@ -169,3 +169,7 @@ Add `reorder_nodes` script.
169
169
 
170
170
  - Fix empty branch tag bug (issue 6)
171
171
 
172
+ ### 0.0.22 ###
173
+
174
+ - Strip whitespace from beginning and end of entries in color map and name map
175
+
@@ -130,7 +130,7 @@ module Iroki
130
130
  patterns
131
131
  end
132
132
 
133
- def parse_color_map_iroki( fname,
133
+ def parse_color_map_iroki(fname,
134
134
  iroki_to_name,
135
135
  exact_matching: true,
136
136
  auto_color: false)
@@ -148,6 +148,10 @@ module Iroki
148
148
 
149
149
  pattern, label_color, branch_color = line.chomp.split "\t"
150
150
 
151
+ pattern.strip! if pattern
152
+ label_color.strip! if label_color
153
+ branch_color.strip! if branch_color
154
+
151
155
  # color = "black" if color.nil? || color.empty?
152
156
 
153
157
  assert pattern, "found no pattern"
@@ -234,6 +238,8 @@ module Iroki
234
238
 
235
239
  oldname, newname = line.chomp.split "\t"
236
240
 
241
+ oldname.strip! if oldname
242
+ newname.strip! if newname
237
243
 
238
244
  abort_if oldname.nil? || oldname.empty?,
239
245
  "Column 1 missing for line: #{line.inspect}"
@@ -18,7 +18,7 @@
18
18
 
19
19
  # Library metadata
20
20
  module Iroki
21
- VERSION = "0.0.21"
21
+ VERSION = "0.0.22"
22
22
  COPYRIGHT = "2015 - 2016 Ryan Moore"
23
23
  CONTACT = "moorer@udel.edu"
24
24
  WEBSITE = "https://github.com/mooreryan/iroki"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iroki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Moore
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-01 00:00:00.000000000 Z
11
+ date: 2016-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler