ecf_classify 1.0.0 → 1.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 312243cd7a9a732057536db8ea083a5747eb4b03da3d3924a03fe4658ee2cacf
4
- data.tar.gz: 25b64a52903763a62055f4e89a5b7c772ebceb6643621188a11d2296056d1b9a
3
+ metadata.gz: 766e33cb819c529e6a5f1726736379ca33319ef7fc0b724300600e61663a8486
4
+ data.tar.gz: dd4a1adc9a60a254e958e19a882ce668e6f92344b7929edeb6176014865c468b
5
5
  SHA512:
6
- metadata.gz: 9d7e7a10ff4eb41eade8b507be5e9d6031f9d88bb40b8e3115f67b1175e5a817cae1813697aad391eb686a305ec80eda5e27fbcdd2b8d24f2b939f8a4cb51b9c
7
- data.tar.gz: d77a4fd1d841d52405c24b6d96900538f60df059ee6161a012c49123067ee8125b02ee5d3c6ddcd0938b07914c52e1108f269c6baae04cacca32c39aa422ea10
6
+ metadata.gz: ef78c97a64fad2b232dfe4d8c2843ecfa597e8ece978b42f6600b29ea18e292c47be0cde51937dddd658afc0e72611c584bfb5146f837a58a782c5269b40746e
7
+ data.tar.gz: 7374767ba31ef7d967021a22fda7a41e8c31f382c63922e21431dbf7b63565b48dede727b524f42ff0f5b66966541978a6038f28cf5b879f4ed4f786b4605fe5
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # EcfClassify
1
+ # ECF Classify
2
2
 
3
3
  Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/ecf_classify`. To experiment with that code, run `bin/console` for an interactive prompt.
4
4
 
@@ -6,6 +6,16 @@ TODO: Delete this and the text above, and describe your gem
6
6
 
7
7
  ## Installation
8
8
 
9
+ ### As a command line tool
10
+
11
+ You can install `ecf_classify` with the ruby package manager
12
+
13
+ ```bash
14
+ gem install ecf_classify
15
+ ```
16
+
17
+ ### As a Ruby module
18
+
9
19
  Add this line to your application's Gemfile:
10
20
 
11
21
  ```ruby
@@ -26,13 +36,13 @@ Or install it yourself as:
26
36
  ### General
27
37
  ```
28
38
  ecf_classify commands:
39
+ ecf_classify --version # print the version
29
40
  ecf_classify groups [FILE] # Classifies protein sequences into ECF groups
30
41
  ecf_classify help [COMMAND] # Describe available commands or one specific command
31
42
  ecf_classify subgroups [FILE] # Classifies protein sequences into ECF subgroups
32
43
 
33
44
  Options:
34
45
  -h, [--help], [--no-help]
35
-
36
46
  ```
37
47
 
38
48
  ### Groups
data/lib/ecf_classify.rb CHANGED
@@ -6,8 +6,15 @@ require 'thor'
6
6
 
7
7
  module EcfClassify
8
8
  class CLI < Thor
9
- package_name "ecf_classify"
9
+ package_name "#{EcfClassify::NAME}"
10
10
  class_option :help, aliases: "-h", type: :boolean
11
+ map %w[--version] => :__print_version
12
+
13
+ desc "--version", "print the version"
14
+ def __print_version
15
+ puts "#{EcfClassify::NAME}: #{EcfClassify::VERSION}"
16
+ exit
17
+ end
11
18
 
12
19
  desc "groups [FILE]", "Classifies protein sequences into ECF groups"
13
20
  method_option :probabilities, type: :string, aliases: "-p", default: nil
@@ -1,4 +1,4 @@
1
1
  module EcfClassify
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  NAME = 'ecf_classify'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecf_classify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delia Casas Pastor
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2019-10-14 00:00:00.000000000 Z
12
+ date: 2019-10-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler