lederhosen 0.5.0 → 0.5.1

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.
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.0"
8
+ s.version = "0.5.1"
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"]
@@ -111,15 +111,16 @@ module Lederhosen
111
111
  targetlabel = line[9]
112
112
  header = line[8]
113
113
 
114
- # get the sample id via regexp match
115
- # this way more info can be stored in the header.
116
- sample = line[8].match(/sample=(.*)/)[1]
117
-
118
- # Need to maintain some backwards compatibility here
119
- # this is the old way of getting the same id.
120
- if sample.nil?
121
- sample = line[8].split(':')[2]
122
- end
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)
@@ -2,7 +2,7 @@ module Lederhosen
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 5
5
- PATCH = 0
5
+ PATCH = 1
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: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 0
10
- version: 0.5.0
9
+ - 1
10
+ version: 0.5.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Austin G. Davis-Richardson