ms-sequest 0.0.14 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
data/History CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.0.15 / 2010-08-25
2
+
3
+ * Fixed another bug in the srf_to_sqt.rb commandline when called without an output file
4
+
1
5
  == 0.0.14 / 2010-08-24
2
6
 
3
7
  * Merged commandline programs into lib heirarchy for testing
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.14
1
+ 0.0.15
@@ -128,10 +128,12 @@ module Ms::Sequest::Srf::Search
128
128
 
129
129
  format = opt[:format]
130
130
 
131
- raise "if outfiles specified, needs the same number of files as input files" unless argv.size == opt[:outfiles].size
131
+ if opt[:outfiles] && (opt[:outfiles].size != argv.size)
132
+ raise "if outfiles specified, needs the same number of files as input files"
133
+ end
132
134
 
133
135
  argv.each_with_index do |srf_file,i|
134
- base = srf_file.sub(/\.srf$/i, '')
136
+ base = srf_file.chomp(File.extname(srf_file))
135
137
  newfile =
136
138
  if opt[:outfiles]
137
139
  opt[:outfiles][i]
@@ -11,12 +11,6 @@ module Ms
11
11
 
12
12
  module Sqt
13
13
 
14
- def self.commandline(argv)
15
- require 'optparse'
16
-
17
-
18
- end
19
-
20
14
  # the out_filename will be the base_name + .sqt unless 'out_filename' is
21
15
  # defined
22
16
  # :round => round floating point numbers
@@ -204,7 +198,9 @@ module Ms::Sequest::Srf::Sqt
204
198
  puts(opts) || exit
205
199
  end
206
200
 
207
- raise "if outfiles specified, outfiles must be same size as number of input files" unless opt[:outfiles].size == argv.size
201
+ if opt[:outfiles] && (opt[:outfiles].size != argv.size)
202
+ raise "if outfiles specified, outfiles must be same size as number of input files"
203
+ end
208
204
 
209
205
  argv.each_with_index do |srf_file,i|
210
206
  outfile =
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 14
9
- version: 0.0.14
8
+ - 15
9
+ version: 0.0.15
10
10
  platform: ruby
11
11
  authors:
12
12
  - John T. Prince
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-08-24 00:00:00 -06:00
17
+ date: 2010-08-25 00:00:00 -06:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency