Skip to content

Commit

Permalink
Address recent change in GTDB search API
Browse files Browse the repository at this point in the history
  • Loading branch information
lmrodriguezr committed Jan 16, 2025
1 parent 1b624f6 commit c2ccecd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lib/miga/cli/action/download/gtdb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ def cli_name_modifiers(opt)

def sanitize_cli
cli.ensure_par(taxon: '-T')
unless cli[:taxon] =~ /^[a-z]__\S+$/
raise 'Taxon (-T) must be in GTDB format: s__Macondimonas_diazotrophica'
cli[:taxon].gsub!(' ', '%20')
unless cli[:taxon] =~ /^[a-z]__[\S ]+$/
raise 'Taxon (-T) must be in GTDB format: "s__Macondimonas diazotrophica"'
end
cli[:save_every] = 1 if cli[:dry]
end
Expand Down
4 changes: 2 additions & 2 deletions lib/miga/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ module MiGA
# - String indicating release status:
# - rc* release candidate, not released as gem
# - [0-9]+ stable release, released as gem
VERSION = [1.3, 21, 4].freeze
VERSION = [1.3, 21, 5].freeze

##
# Nickname for the current major.minor version.
VERSION_NAME = 'mezzotint'

##
# Date of the current gem relese.
VERSION_DATE = Date.new(2024, 12, 23)
VERSION_DATE = Date.new(2025, 1, 16)

##
# References of MiGA
Expand Down

0 comments on commit c2ccecd

Please sign in to comment.