lederhosen 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lederhosen.gemspec +1 -1
- data/lib/lederhosen/helpers.rb +10 -9
- data/lib/lederhosen/version.rb +1 -1
- metadata +3 -3
data/lederhosen.gemspec
CHANGED
data/lib/lederhosen/helpers.rb
CHANGED
@@ -111,15 +111,16 @@ module Lederhosen
|
|
111
111
|
targetlabel = line[9]
|
112
112
|
header = line[8]
|
113
113
|
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
114
|
+
sample =
|
115
|
+
begin
|
116
|
+
# get the sample id via regexp match
|
117
|
+
# this way more info can be stored in the header.
|
118
|
+
line[8].match(/sample=(.*)/)[1]
|
119
|
+
rescue NoMethodError # catch no method [] for NilClass
|
120
|
+
# Need to maintain some backwards compatibility here
|
121
|
+
# this is the old way of getting the same id.
|
122
|
+
sample = line[8].split(':')[2]
|
123
|
+
end
|
123
124
|
|
124
125
|
# keep track of samples
|
125
126
|
samples.add(sample)
|
data/lib/lederhosen/version.rb
CHANGED
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:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 1
|
10
|
+
version: 0.5.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Austin G. Davis-Richardson
|