unipept 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +1 -1
- data/README.md +5 -5
- data/Rakefile +3 -3
- data/VERSION +1 -1
- data/lib/commands/peptfilter.rb +2 -3
- data/test/commands/test_peptfilter.rb +10 -0
- data/unipept.gemspec +8 -8
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1709761b341ebd499d5e631b2f3bd5538533408f
|
4
|
+
data.tar.gz: 35551d52792f8af5cbbf5174a9073f64ba4310c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3e93b0fc0997a12418e8d4e0e024766ab464992fbbad7920ec490e83786fae26b462ae43f959047c51976264d0ca61576cffbd55d1d0e58b8dfdc6502070650
|
7
|
+
data.tar.gz: bf92c339ab872bd4cc9faf526b08ffed8eb800554b6d7b7141f6332247bb0df3312b02ec0e7ee5c69c45db818831164d429c7609ce4b9e7414c87bfb9769f26e
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
[![Code Climate](https://codeclimate.com/github/unipept/unipept-cli/badges/gpa.svg)](https://codeclimate.com/github/unipept/unipept-cli)
|
7
7
|
|
8
8
|
Unipept-cli offers a command line interface to the [Unipept](http://unipept.ugent.be) web service.
|
9
|
-
Documentation about the web service can be found at [http://unipept.ugent.be/apidocs](http://unipept.ugent.be/apidocs).
|
9
|
+
Documentation about the web service can be found at [http://unipept.ugent.be/apidocs](http://unipept.ugent.be/apidocs), documentation about the command line tools at [http://unipept.ugent.be/clidocs](http://unipept.ugent.be/clidocs).
|
10
10
|
|
11
11
|
## Installation
|
12
12
|
|
@@ -14,7 +14,7 @@ To use the Unipept CLI, Ruby version 1.9.3 or higher needs to be installed. You
|
|
14
14
|
|
15
15
|
```
|
16
16
|
$ ruby -v
|
17
|
-
ruby 2.
|
17
|
+
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]
|
18
18
|
```
|
19
19
|
|
20
20
|
More information on installing Ruby can be found at https://www.ruby-lang.org/en/installation/
|
@@ -23,8 +23,8 @@ The Unipept CLI is available as a *gem*. This means it can easily be installed w
|
|
23
23
|
|
24
24
|
```bash
|
25
25
|
$ gem install unipept
|
26
|
-
Successfully installed unipept-0.
|
27
|
-
Parsing documentation for unipept-0.
|
26
|
+
Successfully installed unipept-1.0.1
|
27
|
+
Parsing documentation for unipept-1.0.1
|
28
28
|
Done installing documentation for unipept after 0 seconds
|
29
29
|
1 gem installed
|
30
30
|
```
|
@@ -33,7 +33,7 @@ After successful installation, the unipept command should be available:
|
|
33
33
|
|
34
34
|
```bash
|
35
35
|
$ unipept -v
|
36
|
-
0.
|
36
|
+
1.0.1
|
37
37
|
```
|
38
38
|
|
39
39
|
The help can be accessed by running `unipept -h`.
|
data/Rakefile
CHANGED
@@ -18,13 +18,13 @@ Jeweler::Tasks.new do |gem|
|
|
18
18
|
# gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
|
19
19
|
gem.name = 'unipept'
|
20
20
|
gem.executables = %w(unipept prot2pept peptfilter uniprot)
|
21
|
-
gem.homepage = '
|
21
|
+
gem.homepage = 'http://unipept.ugent.be'
|
22
22
|
gem.license = 'MIT'
|
23
23
|
gem.summary = 'Command line interface to Unipept web services.'
|
24
24
|
gem.description = <<-EOS
|
25
25
|
Command line interface to the Unipept (http://unipept.ugent.be) web services
|
26
|
-
(pept2lca, taxa2lca, pept2taxa, pept2prot and taxonomy) and some utility
|
27
|
-
handling proteins using the command line.
|
26
|
+
(pept2lca, taxa2lca, pept2taxa, pept2prot and taxonomy) and some utility
|
27
|
+
commands for handling proteins using the command line.
|
28
28
|
EOS
|
29
29
|
gem.email = 'unipept@ugent.be'
|
30
30
|
gem.authors = ['Toon Willems', 'Bart Mesuere', 'Tom Naessens']
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
data/lib/commands/peptfilter.rb
CHANGED
@@ -20,7 +20,8 @@ module Unipept::Commands
|
|
20
20
|
puts cmd.help
|
21
21
|
exit 0
|
22
22
|
end
|
23
|
-
run do |opts,
|
23
|
+
run do |opts, args, _cmd|
|
24
|
+
abort "error: peptfilter doesn't support input as arguments. Use standard input instead." unless args.empty?
|
24
25
|
minlen = opts.fetch(:minlen, '5').to_i
|
25
26
|
maxlen = opts.fetch(:maxlen, '50').to_i
|
26
27
|
lacks = opts.fetch(:lacks, '').chars.to_a
|
@@ -38,8 +39,6 @@ module Unipept::Commands
|
|
38
39
|
end
|
39
40
|
end
|
40
41
|
|
41
|
-
@root_command.add_command(Cri::Command.new_basic_help)
|
42
|
-
|
43
42
|
# Invokes the peptfilter command-line tool with the given arguments.
|
44
43
|
#
|
45
44
|
# @param [Array<String>] args An array of command-line arguments
|
@@ -151,6 +151,16 @@ module Unipept
|
|
151
151
|
assert_equal(">\nAALTER\n>", out.chomp)
|
152
152
|
end
|
153
153
|
|
154
|
+
def test_no_input
|
155
|
+
out, err = capture_io_while do
|
156
|
+
assert_raises SystemExit do
|
157
|
+
Commands::Peptfilter.run(%w(some argument))
|
158
|
+
end
|
159
|
+
end
|
160
|
+
assert_equal('', out.chomp)
|
161
|
+
assert_equal("error: peptfilter doesn't support input as arguments. Use standard input instead.", err.chomp)
|
162
|
+
end
|
163
|
+
|
154
164
|
def test_normal_input
|
155
165
|
out, _err = capture_io_with_input(['A', 'A' * 11, 'AAAAB', 'BBBBB', 'CCCCC', 'CCCCCA']) do
|
156
166
|
Commands::Peptfilter.run(%w(--minlen 4 --maxlen 10 --lacks B --contains A))
|
data/unipept.gemspec
CHANGED
@@ -2,17 +2,17 @@
|
|
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.0.
|
5
|
+
# stub: unipept 1.0.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "unipept"
|
9
|
-
s.version = "1.0.
|
9
|
+
s.version = "1.0.1"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Toon Willems", "Bart Mesuere", "Tom Naessens"]
|
14
|
-
s.date = "2015-07-
|
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
|
14
|
+
s.date = "2015-07-31"
|
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"
|
16
16
|
s.email = "unipept@ugent.be"
|
17
17
|
s.executables = ["unipept", "prot2pept", "peptfilter", "uniprot"]
|
18
18
|
s.extra_rdoc_files = [
|
@@ -74,7 +74,7 @@ Gem::Specification.new do |s|
|
|
74
74
|
"test/test_server_message.rb",
|
75
75
|
"unipept.gemspec"
|
76
76
|
]
|
77
|
-
s.homepage = "
|
77
|
+
s.homepage = "http://unipept.ugent.be"
|
78
78
|
s.licenses = ["MIT"]
|
79
79
|
s.required_ruby_version = Gem::Requirement.new(">= 1.9.3")
|
80
80
|
s.rubygems_version = "2.4.8"
|
@@ -90,7 +90,7 @@ Gem::Specification.new do |s|
|
|
90
90
|
s.add_development_dependency(%q<minitest>, ["~> 5.7"])
|
91
91
|
s.add_development_dependency(%q<rubocop>, ["~> 0.32"])
|
92
92
|
s.add_development_dependency(%q<jeweler>, ["~> 2.0"])
|
93
|
-
s.add_development_dependency(%q<coveralls>, ["
|
93
|
+
s.add_development_dependency(%q<coveralls>, ["~> 0"])
|
94
94
|
else
|
95
95
|
s.add_dependency(%q<cri>, ["~> 2.7"])
|
96
96
|
s.add_dependency(%q<typhoeus>, ["= 0.7.2"])
|
@@ -98,7 +98,7 @@ Gem::Specification.new do |s|
|
|
98
98
|
s.add_dependency(%q<minitest>, ["~> 5.7"])
|
99
99
|
s.add_dependency(%q<rubocop>, ["~> 0.32"])
|
100
100
|
s.add_dependency(%q<jeweler>, ["~> 2.0"])
|
101
|
-
s.add_dependency(%q<coveralls>, ["
|
101
|
+
s.add_dependency(%q<coveralls>, ["~> 0"])
|
102
102
|
end
|
103
103
|
else
|
104
104
|
s.add_dependency(%q<cri>, ["~> 2.7"])
|
@@ -107,7 +107,7 @@ Gem::Specification.new do |s|
|
|
107
107
|
s.add_dependency(%q<minitest>, ["~> 5.7"])
|
108
108
|
s.add_dependency(%q<rubocop>, ["~> 0.32"])
|
109
109
|
s.add_dependency(%q<jeweler>, ["~> 2.0"])
|
110
|
-
s.add_dependency(%q<coveralls>, ["
|
110
|
+
s.add_dependency(%q<coveralls>, ["~> 0"])
|
111
111
|
end
|
112
112
|
end
|
113
113
|
|
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.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toon Willems
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-07-
|
13
|
+
date: 2015-07-31 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: cri
|
@@ -100,20 +100,20 @@ dependencies:
|
|
100
100
|
name: coveralls
|
101
101
|
requirement: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
|
-
- - "
|
103
|
+
- - "~>"
|
104
104
|
- !ruby/object:Gem::Version
|
105
105
|
version: '0'
|
106
106
|
type: :development
|
107
107
|
prerelease: false
|
108
108
|
version_requirements: !ruby/object:Gem::Requirement
|
109
109
|
requirements:
|
110
|
-
- - "
|
110
|
+
- - "~>"
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: '0'
|
113
113
|
description: |2
|
114
114
|
Command line interface to the Unipept (http://unipept.ugent.be) web services
|
115
|
-
(pept2lca, taxa2lca, pept2taxa, pept2prot and taxonomy) and some utility
|
116
|
-
handling proteins using the command line.
|
115
|
+
(pept2lca, taxa2lca, pept2taxa, pept2prot and taxonomy) and some utility
|
116
|
+
commands for handling proteins using the command line.
|
117
117
|
email: unipept@ugent.be
|
118
118
|
executables:
|
119
119
|
- unipept
|
@@ -178,7 +178,7 @@ files:
|
|
178
178
|
- test/test_retryable_typhoeus.rb
|
179
179
|
- test/test_server_message.rb
|
180
180
|
- unipept.gemspec
|
181
|
-
homepage:
|
181
|
+
homepage: http://unipept.ugent.be
|
182
182
|
licenses:
|
183
183
|
- MIT
|
184
184
|
metadata: {}
|