miga-base 1.2.14.1 → 1.2.14.2

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: ae083dbb06efae44846887887e0706b0436340aeb7524846478a68867c602b67
4
- data.tar.gz: 78bb2440e073e4d55fe6a439dfa1eddb25c2fa4aad7d06000384de20092ab710
3
+ metadata.gz: b8a1b62d1125f54550d8cf801c46924abb79085005b8fa4abe732e9347b1fa82
4
+ data.tar.gz: baa4a96d604fd649147f47aafeaea038310b8ec588edb8055f7d511842ba3f6b
5
5
  SHA512:
6
- metadata.gz: 185667da9d0e7dc3849dc851e2f2c6829901bfaee7975c7b249630b660cc41aa40988fcc9e27c3937a6ad533df3135e4d2f2115e7f16e8bd3f25ed9e0533d9f7
7
- data.tar.gz: 77ec658cbfcecda4b32e7a0110b53953220f649f79f4a112c23c510511a4752869af9e3894452335d827311a9b8fedd0c5072860ecff035f1c018aa346c9894f
6
+ metadata.gz: 1ab3bed5edbd0e9ef513c731c9d28999bdb483547376446746157b58bddc92a9ddde7e0cdfd7766351f11e69f1e11df8e2ccf94815ab95108842caa43f6fdd29
7
+ data.tar.gz: b3401886ca9139d3ed3a9c19188a1b171254c0d0c1c21d63beffb71b497713dac59ba5fb0176bf2340bc48595640dc6dadfba7881aa7c993cd82894b0679c8a6
@@ -9,9 +9,9 @@ end
9
9
  module MiGA::Cli::Action::Download::Base
10
10
  def cli_filters(opt)
11
11
  opt.on(
12
- '--blacklist PATH',
13
- 'A file with dataset names to blacklist'
14
- ) { |v| cli[:blacklist] = v }
12
+ '--exclude PATH',
13
+ 'A file with dataset names to exclude'
14
+ ) { |v| cli[:exclude] = v }
15
15
  cli.opt_flag(opt, 'dry', 'Do not download or save the datasets')
16
16
  opt.on(
17
17
  '--ignore-until STRING',
@@ -49,10 +49,10 @@ module MiGA::Cli::Action::Download::Base
49
49
  ) { |v| cli[:remote_list] = v }
50
50
  end
51
51
 
52
- def discard_blacklisted(ds)
53
- unless cli[:blacklist].nil?
54
- cli.say "Discarding datasets in #{cli[:blacklist]}"
55
- File.readlines(cli[:blacklist])
52
+ def discard_excluded(ds)
53
+ unless cli[:exclude].nil?
54
+ cli.say "Discarding datasets in #{cli[:exclude]}"
55
+ File.readlines(cli[:exclude])
56
56
  .select { |i| i !~ /^#/ }
57
57
  .map(&:chomp)
58
58
  .each { |i| ds.delete i }
@@ -42,7 +42,7 @@ class MiGA::Cli::Action::GtdbGet < MiGA::Cli::Action
42
42
  sanitize_cli
43
43
  p = cli.load_project
44
44
  ds = remote_list
45
- ds = discard_blacklisted(ds)
45
+ ds = discard_excluded(ds)
46
46
  ds = impose_limit(ds)
47
47
  d, downloaded = download_entries(ds, p)
48
48
 
@@ -44,7 +44,7 @@ class MiGA::Cli::Action::NcbiGet < MiGA::Cli::Action
44
44
  sanitize_cli
45
45
  p = cli.load_project
46
46
  ds = remote_list
47
- ds = discard_blacklisted(ds)
47
+ ds = discard_excluded(ds)
48
48
  ds = impose_limit(ds)
49
49
  d, downloaded = download_entries(ds, p)
50
50
 
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, 14, 1].freeze
15
+ VERSION = [1.2, 14, 2].freeze
16
16
 
17
17
  ##
18
18
  # Nickname for the current major.minor version.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miga-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.14.1
4
+ version: 1.2.14.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis M. Rodriguez-R