unipept 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -35,14 +35,14 @@ module Unipept
35
35
  def test_help
36
36
  out, _err = capture_io_while do
37
37
  assert_raises SystemExit do
38
- Commands::Unipept.run(%w(pept2prot -h))
38
+ Commands::Unipept.run(%w[pept2prot -h])
39
39
  end
40
40
  end
41
41
  assert(out.include?('show help for this command'))
42
42
 
43
43
  out, _err = capture_io_while do
44
44
  assert_raises SystemExit do
45
- Commands::Unipept.run(%w(pept2prot --help))
45
+ Commands::Unipept.run(%w[pept2prot --help])
46
46
  end
47
47
  end
48
48
  assert(out.include?('show help for this command'))
@@ -50,7 +50,7 @@ module Unipept
50
50
 
51
51
  def test_run
52
52
  out, err = capture_io_while do
53
- Commands::Unipept.run(%w(pept2prot --host http://api.unipept.ugent.be ENFVYIAK))
53
+ Commands::Unipept.run(%w[pept2prot --host http://api.unipept.ugent.be ENFVYIAK])
54
54
  end
55
55
  lines = out.each_line
56
56
  assert_equal('', err)
@@ -60,7 +60,7 @@ module Unipept
60
60
 
61
61
  def test_run_with_fasta_multiple_batches
62
62
  out, err = capture_io_while do
63
- Commands::Unipept.run(%w(pept2prot --host http://api.unipept.ugent.be --batch 2 >test EGGAGSSTGQR ENFVYIAK >tost EGGAGSSTGQR))
63
+ Commands::Unipept.run(%w[pept2prot --host http://api.unipept.ugent.be --batch 2 >test EGGAGSSTGQR ENFVYIAK >tost EGGAGSSTGQR])
64
64
  end
65
65
  lines = out.each_line
66
66
  assert_equal('', err)
@@ -72,7 +72,7 @@ module Unipept
72
72
 
73
73
  def test_run_with_fasta_multiple_batches_and_select
74
74
  out, err = capture_io_while do
75
- Commands::Unipept.run(%w(pept2prot --host http://api.unipept.ugent.be --batch 2 --select uniprot_id >test EGGAGSSTGQR ENFVYIAK >tost EGGAGSSTGQR))
75
+ Commands::Unipept.run(%w[pept2prot --host http://api.unipept.ugent.be --batch 2 --select uniprot_id >test EGGAGSSTGQR ENFVYIAK >tost EGGAGSSTGQR])
76
76
  end
77
77
  lines = out.each_line
78
78
  assert_equal('', err)
@@ -84,7 +84,7 @@ module Unipept
84
84
 
85
85
  def test_run_with_fasta_multiple_batches_json
86
86
  out, err = capture_io_while do
87
- Commands::Unipept.run(%w(pept2prot --host http://api.unipept.ugent.be --batch 2 --format json >test EGGAGSSTGQR ENFVYIAK >tost EGGAGSSTGQR))
87
+ Commands::Unipept.run(%w[pept2prot --host http://api.unipept.ugent.be --batch 2 --format json >test EGGAGSSTGQR ENFVYIAK >tost EGGAGSSTGQR])
88
88
  end
89
89
  lines = out.each_line
90
90
  assert_equal('', err)
@@ -97,7 +97,7 @@ module Unipept
97
97
 
98
98
  def test_run_with_fasta_multiple_batches_xml
99
99
  out, err = capture_io_while do
100
- Commands::Unipept.run(%w(pept2prot --host http://api.unipept.ugent.be --batch 2 --format xml >test EGGAGSSTGQR ENFVYIAK >tost EGGAGSSTGQR))
100
+ Commands::Unipept.run(%w[pept2prot --host http://api.unipept.ugent.be --batch 2 --format xml >test EGGAGSSTGQR ENFVYIAK >tost EGGAGSSTGQR])
101
101
  end
102
102
  lines = out.each_line
103
103
  assert_equal('', err)
@@ -19,14 +19,14 @@ module Unipept
19
19
  def test_help
20
20
  out, _err = capture_io_while do
21
21
  assert_raises SystemExit do
22
- Commands::Unipept.run(%w(pept2taxa -h))
22
+ Commands::Unipept.run(%w[pept2taxa -h])
23
23
  end
24
24
  end
25
25
  assert(out.include?('show help for this command'))
26
26
 
27
27
  out, _err = capture_io_while do
28
28
  assert_raises SystemExit do
29
- Commands::Unipept.run(%w(pept2taxa --help))
29
+ Commands::Unipept.run(%w[pept2taxa --help])
30
30
  end
31
31
  end
32
32
  assert(out.include?('show help for this command'))
@@ -34,7 +34,7 @@ module Unipept
34
34
 
35
35
  def test_run
36
36
  out, err = capture_io_while do
37
- Commands::Unipept.run(%w(pept2taxa --host http://api.unipept.ugent.be ENFVYIAK))
37
+ Commands::Unipept.run(%w[pept2taxa --host http://api.unipept.ugent.be ENFVYIAK])
38
38
  end
39
39
  lines = out.each_line
40
40
  assert_equal('', err)
@@ -44,7 +44,7 @@ module Unipept
44
44
 
45
45
  def test_run_with_fasta_multiple_batches
46
46
  out, err = capture_io_while do
47
- Commands::Unipept.run(%w(pept2taxa --host http://api.unipept.ugent.be --batch 2 >test EGGAGSSTGQR ENFVYIAK >tost EGGAGSSTGQR))
47
+ Commands::Unipept.run(%w[pept2taxa --host http://api.unipept.ugent.be --batch 2 >test EGGAGSSTGQR ENFVYIAK >tost EGGAGSSTGQR])
48
48
  end
49
49
  lines = out.each_line
50
50
  assert_equal('', err)
@@ -56,7 +56,7 @@ module Unipept
56
56
 
57
57
  def test_run_with_fasta_multiple_batches_and_select
58
58
  out, err = capture_io_while do
59
- Commands::Unipept.run(%w(pept2taxa --host http://api.unipept.ugent.be --batch 2 --select taxon_id >test EGGAGSSTGQR ENFVYIAK >tost EGGAGSSTGQR))
59
+ Commands::Unipept.run(%w[pept2taxa --host http://api.unipept.ugent.be --batch 2 --select taxon_id >test EGGAGSSTGQR ENFVYIAK >tost EGGAGSSTGQR])
60
60
  end
61
61
  lines = out.each_line
62
62
  assert_equal('', err)
@@ -68,7 +68,7 @@ module Unipept
68
68
 
69
69
  def test_run_with_fasta_multiple_batches_json
70
70
  out, err = capture_io_while do
71
- Commands::Unipept.run(%w(pept2taxa --host http://api.unipept.ugent.be --batch 2 --format json >test EGGAGSSTGQR ENFVYIAK >tost EGGAGSSTGQR))
71
+ Commands::Unipept.run(%w[pept2taxa --host http://api.unipept.ugent.be --batch 2 --format json >test EGGAGSSTGQR ENFVYIAK >tost EGGAGSSTGQR])
72
72
  end
73
73
  lines = out.each_line
74
74
  assert_equal('', err)
@@ -81,7 +81,7 @@ module Unipept
81
81
 
82
82
  def test_run_with_fasta_multiple_batches_xml
83
83
  out, err = capture_io_while do
84
- Commands::Unipept.run(%w(pept2taxa --host http://api.unipept.ugent.be --batch 2 --format xml >test EGGAGSSTGQR ENFVYIAK >tost EGGAGSSTGQR))
84
+ Commands::Unipept.run(%w[pept2taxa --host http://api.unipept.ugent.be --batch 2 --format xml >test EGGAGSSTGQR ENFVYIAK >tost EGGAGSSTGQR])
85
85
  end
86
86
  lines = out.each_line
87
87
  assert_equal('', err)
@@ -19,14 +19,14 @@ module Unipept
19
19
  def test_help
20
20
  out, _err = capture_io_while do
21
21
  assert_raises SystemExit do
22
- Commands::Unipept.run(%w(taxa2lca -h))
22
+ Commands::Unipept.run(%w[taxa2lca -h])
23
23
  end
24
24
  end
25
25
  assert(out.include?('show help for this command'))
26
26
 
27
27
  out, _err = capture_io_while do
28
28
  assert_raises SystemExit do
29
- Commands::Unipept.run(%w(taxa2lca --help))
29
+ Commands::Unipept.run(%w[taxa2lca --help])
30
30
  end
31
31
  end
32
32
  assert(out.include?('show help for this command'))
@@ -34,7 +34,7 @@ module Unipept
34
34
 
35
35
  def test_run
36
36
  out, err = capture_io_while do
37
- Commands::Unipept.run(%w(taxa2lca --host http://api.unipept.ugent.be 216816 1680))
37
+ Commands::Unipept.run(%w[taxa2lca --host http://api.unipept.ugent.be 216816 1680])
38
38
  end
39
39
  lines = out.each_line
40
40
  assert_equal('', err)
@@ -44,7 +44,7 @@ module Unipept
44
44
 
45
45
  def test_run_xml
46
46
  out, err = capture_io_while do
47
- Commands::Unipept.run(%w(taxa2lca --host http://api.unipept.ugent.be --format xml 216816 1680))
47
+ Commands::Unipept.run(%w[taxa2lca --host http://api.unipept.ugent.be --format xml 216816 1680])
48
48
  end
49
49
  lines = out.each_line
50
50
  output = lines.to_a.join('').chomp
@@ -55,7 +55,7 @@ module Unipept
55
55
 
56
56
  def test_run_json
57
57
  out, err = capture_io_while do
58
- Commands::Unipept.run(%w(taxa2lca --host http://api.unipept.ugent.be --format json 216816 1680))
58
+ Commands::Unipept.run(%w[taxa2lca --host http://api.unipept.ugent.be --format json 216816 1680])
59
59
  end
60
60
  lines = out.each_line
61
61
  output = lines.to_a.join('').chomp
@@ -17,14 +17,14 @@ module Unipept
17
17
  def test_help
18
18
  out, _err = capture_io_while do
19
19
  assert_raises SystemExit do
20
- Commands::Unipept.run(%w(taxonomy -h))
20
+ Commands::Unipept.run(%w[taxonomy -h])
21
21
  end
22
22
  end
23
23
  assert(out.include?('show help for this command'))
24
24
 
25
25
  out, _err = capture_io_while do
26
26
  assert_raises SystemExit do
27
- Commands::Unipept.run(%w(taxonomy --help))
27
+ Commands::Unipept.run(%w[taxonomy --help])
28
28
  end
29
29
  end
30
30
  assert(out.include?('show help for this command'))
@@ -32,7 +32,7 @@ module Unipept
32
32
 
33
33
  def test_run
34
34
  out, err = capture_io_while do
35
- Commands::Unipept.run(%w(taxonomy --host http://api.unipept.ugent.be 1))
35
+ Commands::Unipept.run(%w[taxonomy --host http://api.unipept.ugent.be 1])
36
36
  end
37
37
  lines = out.each_line
38
38
  assert_equal('', err)
@@ -42,7 +42,7 @@ module Unipept
42
42
 
43
43
  def test_run_with_fasta_multiple_batches
44
44
  out, err = capture_io_while do
45
- Commands::Unipept.run(%w(taxonomy --host http://api.unipept.ugent.be --batch 2 >test 1 216816 >tost 1))
45
+ Commands::Unipept.run(%w[taxonomy --host http://api.unipept.ugent.be --batch 2 >test 1 216816 >tost 1])
46
46
  end
47
47
  lines = out.each_line
48
48
  assert_equal('', err)
@@ -54,7 +54,7 @@ module Unipept
54
54
 
55
55
  def test_run_with_fasta_multiple_batches_and_select
56
56
  out, err = capture_io_while do
57
- Commands::Unipept.run(%w(taxonomy --host http://api.unipept.ugent.be --batch 2 --select taxon_name >test 1 216816 >tost 1))
57
+ Commands::Unipept.run(%w[taxonomy --host http://api.unipept.ugent.be --batch 2 --select taxon_name >test 1 216816 >tost 1])
58
58
  end
59
59
  lines = out.each_line
60
60
  assert_equal('', err)
@@ -66,7 +66,7 @@ module Unipept
66
66
 
67
67
  def test_run_with_fasta_multiple_batches_json
68
68
  out, err = capture_io_while do
69
- Commands::Unipept.run(%w(taxonomy --host http://api.unipept.ugent.be --batch 2 --format json >test 1 216816 >tost 1))
69
+ Commands::Unipept.run(%w[taxonomy --host http://api.unipept.ugent.be --batch 2 --format json >test 1 216816 >tost 1])
70
70
  end
71
71
  lines = out.each_line
72
72
  assert_equal('', err)
@@ -79,7 +79,7 @@ module Unipept
79
79
 
80
80
  def test_run_with_fasta_multiple_batches_xml
81
81
  out, err = capture_io_while do
82
- Commands::Unipept.run(%w(taxonomy --host http://api.unipept.ugent.be --batch 2 --format xml >test 1 216816 >tost 1))
82
+ Commands::Unipept.run(%w[taxonomy --host http://api.unipept.ugent.be --batch 2 --format xml >test 1 216816 >tost 1])
83
83
  end
84
84
  lines = out.each_line
85
85
  assert_equal('', err)
data/test/helper.rb CHANGED
@@ -6,8 +6,8 @@ Coveralls.wear!
6
6
  begin
7
7
  Bundler.setup(:default, :development)
8
8
  rescue Bundler::BundlerError => e
9
- $stderr.puts e.message
10
- $stderr.puts 'Run `bundle install` to install missing gems'
9
+ warn e.message
10
+ warn 'Run `bundle install` to install missing gems'
11
11
  exit e.status_code
12
12
  end
13
13
 
@@ -16,7 +16,7 @@ module Unipept
16
16
 
17
17
  def test_normal_iterator
18
18
  iterator = BatchIterator.new(2)
19
- data = %w(a b c d e)
19
+ data = %w[a b c d e]
20
20
  out, _err = capture_io_while do
21
21
  iterator.iterate(data.each) do |batch, batch_id, fasta_mapper|
22
22
  assert_nil(fasta_mapper)
@@ -29,7 +29,7 @@ module Unipept
29
29
 
30
30
  def test_fasta_iterator_single_header
31
31
  iterator = BatchIterator.new(2)
32
- data = %w(>h1 a b c d e)
32
+ data = %w[>h1 a b c d e]
33
33
  mappings = []
34
34
  out, _err = capture_io_while do
35
35
  iterator.iterate(data.each) do |batch, batch_id, fasta_mapper|
@@ -47,7 +47,7 @@ module Unipept
47
47
 
48
48
  def test_fasta_iterator_double_header_single_batch
49
49
  iterator = BatchIterator.new(3)
50
- data = %w(>h1 a >h2 b c d e)
50
+ data = %w[>h1 a >h2 b c d e]
51
51
  mappings = []
52
52
  out, _err = capture_io_while do
53
53
  iterator.iterate(data.each) do |batch, batch_id, fasta_mapper|
@@ -68,7 +68,7 @@ module Unipept
68
68
 
69
69
  def test_fasta_iterator_multiple_values
70
70
  iterator = BatchIterator.new(4)
71
- data = %w(>h1 a >h2 a a)
71
+ data = %w[>h1 a >h2 a a]
72
72
  mappings = []
73
73
  out, _err = capture_io_while do
74
74
  iterator.iterate(data.each) do |batch, batch_id, fasta_mapper|
data/unipept.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: unipept 1.4.0 ruby lib
5
+ # stub: unipept 1.4.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "unipept".freeze
9
- s.version = "1.4.0"
9
+ s.version = "1.4.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Toon Willems".freeze, "Bart Mesuere".freeze, "Tom Naessens".freeze]
14
- s.date = "2019-01-18"
14
+ s.date = "2019-01-19"
15
15
  s.description = " Command line interface to the Unipept (http://unipept.ugent.be) web services\n (pept2lca, taxa2lca, pept2taxa, pept2prot and taxonomy) and some utility\n commands for handling proteins using the command line.\n".freeze
16
16
  s.email = "unipept@ugent.be".freeze
17
17
  s.executables = ["unipept".freeze, "prot2pept".freeze, "peptfilter".freeze, "uniprot".freeze]
@@ -85,27 +85,27 @@ Gem::Specification.new do |s|
85
85
  s.specification_version = 4
86
86
 
87
87
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
88
- s.add_runtime_dependency(%q<cri>.freeze, ["= 2.11"])
88
+ s.add_runtime_dependency(%q<cri>.freeze, ["~> 2.15.3"])
89
89
  s.add_runtime_dependency(%q<typhoeus>.freeze, ["~> 1.1"])
90
- s.add_development_dependency(%q<rake>.freeze, ["~> 10.4"])
90
+ s.add_development_dependency(%q<coveralls>.freeze, ["~> 0"])
91
91
  s.add_development_dependency(%q<minitest>.freeze, ["~> 5.7"])
92
+ s.add_development_dependency(%q<rake>.freeze, ["~> 10.4"])
92
93
  s.add_development_dependency(%q<rubocop>.freeze, ["~> 0.32"])
93
- s.add_development_dependency(%q<coveralls>.freeze, ["~> 0"])
94
94
  else
95
- s.add_dependency(%q<cri>.freeze, ["= 2.11"])
95
+ s.add_dependency(%q<cri>.freeze, ["~> 2.15.3"])
96
96
  s.add_dependency(%q<typhoeus>.freeze, ["~> 1.1"])
97
- s.add_dependency(%q<rake>.freeze, ["~> 10.4"])
97
+ s.add_dependency(%q<coveralls>.freeze, ["~> 0"])
98
98
  s.add_dependency(%q<minitest>.freeze, ["~> 5.7"])
99
+ s.add_dependency(%q<rake>.freeze, ["~> 10.4"])
99
100
  s.add_dependency(%q<rubocop>.freeze, ["~> 0.32"])
100
- s.add_dependency(%q<coveralls>.freeze, ["~> 0"])
101
101
  end
102
102
  else
103
- s.add_dependency(%q<cri>.freeze, ["= 2.11"])
103
+ s.add_dependency(%q<cri>.freeze, ["~> 2.15.3"])
104
104
  s.add_dependency(%q<typhoeus>.freeze, ["~> 1.1"])
105
- s.add_dependency(%q<rake>.freeze, ["~> 10.4"])
105
+ s.add_dependency(%q<coveralls>.freeze, ["~> 0"])
106
106
  s.add_dependency(%q<minitest>.freeze, ["~> 5.7"])
107
+ s.add_dependency(%q<rake>.freeze, ["~> 10.4"])
107
108
  s.add_dependency(%q<rubocop>.freeze, ["~> 0.32"])
108
- s.add_dependency(%q<coveralls>.freeze, ["~> 0"])
109
109
  end
110
110
  end
111
111
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unipept
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toon Willems
@@ -10,22 +10,22 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-01-18 00:00:00.000000000 Z
13
+ date: 2019-01-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: cri
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - '='
19
+ - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: '2.11'
21
+ version: 2.15.3
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - '='
26
+ - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: '2.11'
28
+ version: 2.15.3
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: typhoeus
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -41,19 +41,19 @@ dependencies:
41
41
  - !ruby/object:Gem::Version
42
42
  version: '1.1'
43
43
  - !ruby/object:Gem::Dependency
44
- name: rake
44
+ name: coveralls
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '10.4'
49
+ version: '0'
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - "~>"
55
55
  - !ruby/object:Gem::Version
56
- version: '10.4'
56
+ version: '0'
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: minitest
59
59
  requirement: !ruby/object:Gem::Requirement
@@ -69,33 +69,33 @@ dependencies:
69
69
  - !ruby/object:Gem::Version
70
70
  version: '5.7'
71
71
  - !ruby/object:Gem::Dependency
72
- name: rubocop
72
+ name: rake
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - "~>"
76
76
  - !ruby/object:Gem::Version
77
- version: '0.32'
77
+ version: '10.4'
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - "~>"
83
83
  - !ruby/object:Gem::Version
84
- version: '0.32'
84
+ version: '10.4'
85
85
  - !ruby/object:Gem::Dependency
86
- name: coveralls
86
+ name: rubocop
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - "~>"
90
90
  - !ruby/object:Gem::Version
91
- version: '0'
91
+ version: '0.32'
92
92
  type: :development
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - "~>"
97
97
  - !ruby/object:Gem::Version
98
- version: '0'
98
+ version: '0.32'
99
99
  description: |2
100
100
  Command line interface to the Unipept (http://unipept.ugent.be) web services
101
101
  (pept2lca, taxa2lca, pept2taxa, pept2prot and taxonomy) and some utility