miga-base 1.2.16.0 → 1.2.16.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0215026559d070f36a5eacddecaa2a2c4c4717f6506add25b76f1988dfb86483'
4
- data.tar.gz: 944b5ba3f76e75a988932963db73ab23795f0a266233f555e5617f875aad1d53
3
+ metadata.gz: 77f8bfc9a80f71c72e391d1a87f5ecadf2fd072106a9b00b59f5435e838dc1e7
4
+ data.tar.gz: 91d2ea45896ced1ac520ff9e8ee64328bd4c2507875b996f1d36598fd5cb16f7
5
5
  SHA512:
6
- metadata.gz: 70b1fb8640127febebf776f80faf75d59b25ab145152ad5d49d78b9a408e5e653cf874bb9e5c5c0749ae4bb790b46ffe9eff504ac646df5c558b72f4ba155be0
7
- data.tar.gz: ca8d6a4f389b721b4240f70b0da6d02ea8f70c52d0e09b5622d168745a1f082a6fc0b5c5a4d92e2b85844d42bb17e682a52cbd788a0664496c2814c958ce6b7a
6
+ metadata.gz: 0a637803294e81239018c73840aae43f3313d7d9fd1c9ce95ea2b47063adb0c349193479af7072aa369aea66030b40e52533f494199dc29601f11aa8393c3217
7
+ data.tar.gz: 81246c2bd29b4dd1de96183ccd366b6b77f9067f3a0d138c19aba3e1b09e22f1e54d564762670e4418d388dd380ca40f8c9dc1853e65460e0484b93cac03c59a
@@ -29,9 +29,9 @@ class MiGA::Cli::Action::GetDb < MiGA::Cli::Action
29
29
  "Local directory to store the database. By default: #{cli[:local]}"
30
30
  ) { |v| cli[:local] = v }
31
31
  opt.on(
32
- '-h', '--host STRING',
32
+ '--host STRING',
33
33
  "Remote host of the database. By default: #{cli[:host]}"
34
- ) { |v| cli[:db] = v.to_sym }
34
+ ) { |v| cli[:host] = v }
35
35
  opt.on(
36
36
  '--list',
37
37
  'List available databases and exit'
@@ -15,16 +15,22 @@ module MiGA::Common::Net
15
15
  def known_hosts(name)
16
16
  case name.to_sym
17
17
  when :miga_online_ftp
18
- 'ftp://microbial-genomes.org//' # <- // to simplify chdir in connection
18
+ "ftp://#{main_server}//" # <- // to simplify chdir in connection
19
19
  when :miga_db
20
- 'ftp://microbial-genomes.org/db'
20
+ "ftp://#{main_server}/db"
21
21
  when :miga_dist
22
- 'ftp://microbial-genomes.org/dist'
22
+ "ftp://#{main_server}/dist"
23
23
  else
24
24
  raise "Unrecognized server name: #{host}"
25
25
  end
26
26
  end
27
27
 
28
+ ##
29
+ # Returns the address of the main MiGA server
30
+ def main_server
31
+ 'gatech.microbial-genomes.org'
32
+ end
33
+
28
34
  ##
29
35
  # Connect to an FTP +host+ (String) or a known host name (Symbol, see
30
36
  # +.known_hosts+)
data/lib/miga/version.rb CHANGED
@@ -12,7 +12,7 @@ module MiGA
12
12
  # - String indicating release status:
13
13
  # - rc* release candidate, not released as gem
14
14
  # - [0-9]+ stable release, released as gem
15
- VERSION = [1.2, 16, 0].freeze
15
+ VERSION = [1.2, 16, 2].freeze
16
16
 
17
17
  ##
18
18
  # Nickname for the current major.minor version.
@@ -20,7 +20,7 @@ module MiGA
20
20
 
21
21
  ##
22
22
  # Date of the current gem relese.
23
- VERSION_DATE = Date.new(2023, 2, 8)
23
+ VERSION_DATE = Date.new(2023, 2, 13)
24
24
 
25
25
  ##
26
26
  # References of MiGA
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miga-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.16.0
4
+ version: 1.2.16.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis M. Rodriguez-R
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-08 00:00:00.000000000 Z
11
+ date: 2023-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daemons