miga-base 1.3.10.3 → 1.3.11.0

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: 26f037fb985a88f2a020739b5844087e5c461a480d0847dc12acd12f5f38e623
4
- data.tar.gz: 0ce0666c34e0d79d39b9dfb3c695a48e17b11f066efff7185abd7f10b47d163b
3
+ metadata.gz: 4d513b44448defe8d433ed9c6f573dcc84df356c610598e3b2bbaea370c9f459
4
+ data.tar.gz: e09fb9877dfe796856db08b80ac176033025603a49ca5222fda69942544c99ff
5
5
  SHA512:
6
- metadata.gz: 3e3965aed211f86a0a82477d2ae749af5c3331a310c07f89804731ea98db6db3dce19714929fe321705ed2fd31ff6bf95110f17ed49e19d3c57cc48f2ba64452
7
- data.tar.gz: 4533d47bc902aefe9c91ae6627d4c635887dfd12f1661ecdfa1b6faead14f535c91fe6e0961e10800a52d3585db041eacf28696996607a8d1417ac0004f5ec78
6
+ metadata.gz: e55a66e7dd5e8fe3b06ba3ed36d1a6b7e1480d8a99505e348f1a3fe4ebd3ffdc90b878249f788ac6b930544f7f7b5a24fc847a0bd2e55331c74f5af0256e2f92
7
+ data.tar.gz: f26bc6e99d591a60603c06de28f6b622ac13ed9e4d17acce43f532a3d29bed930e013aa7bd84b93aa1f9ca272c4427ea4bce7afe8e0bd5fbeef4174b75d40142
@@ -61,6 +61,10 @@ class MiGA::Cli::Action::Get < MiGA::Cli::Action
61
61
  '--only-metadata',
62
62
  'Create datasets without input data but retrieve all metadata'
63
63
  ) { |v| cli[:only_md] = v }
64
+ opt.on(
65
+ '--bypass-metadata',
66
+ 'Do not gather optional metadata such as the dataset taxonomy'
67
+ ) { |v| cli[:bypass_md] = v }
64
68
  opt.on(
65
69
  '--api-key STRING',
66
70
  'API key for the given universe'
@@ -75,6 +79,7 @@ class MiGA::Cli::Action::Get < MiGA::Cli::Action
75
79
  rd = create_remote_dataset(sub_cli, p)
76
80
  next if rd.nil?
77
81
 
82
+ rd.metadata[:bypass_metadata] = true if sub_cli[:bypass_md]
78
83
  if sub_cli[:get_md]
79
84
  update_metadata(sub_cli, p, rd)
80
85
  else
@@ -188,6 +188,7 @@ class MiGA::RemoteDataset < MiGA::MiGA
188
188
  # Get metadata from the remote location.
189
189
  def get_metadata(metadata_def = {})
190
190
  metadata_def.each { |k, v| @metadata[k] = v }
191
+ return @metadata if @metadata[:bypass_metadata]
191
192
 
192
193
  case universe
193
194
  when :ebi, :ncbi, :web
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.3, 10, 3].freeze
15
+ VERSION = [1.3, 11, 0].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(2024, 2, 8)
23
+ VERSION_DATE = Date.new(2024, 2, 11)
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.3.10.3
4
+ version: 1.3.11.0
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: 2024-02-08 00:00:00.000000000 Z
11
+ date: 2024-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daemons