miga-base 1.3.10.2 → 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: 601e480270ea7f04ff3f5057fa5f031146ac2e73247a7c191ea391a17e971bfc
4
- data.tar.gz: 1577f19ec6b7798305a847da42556a16ff9e6a144c2e317e3349a8b49a0069fd
3
+ metadata.gz: 4d513b44448defe8d433ed9c6f573dcc84df356c610598e3b2bbaea370c9f459
4
+ data.tar.gz: e09fb9877dfe796856db08b80ac176033025603a49ca5222fda69942544c99ff
5
5
  SHA512:
6
- metadata.gz: '0293ffeea41a27ddef7a7b077d8cd93f86f5b9e95537576f8ce87120242cf3ced5f9554966cf648dcb817134977fbe6ee13a45b0815069cf2471014d780ce8c4'
7
- data.tar.gz: b7ab71aa3a78d32861e1e9f6ff685424530093fd485185be722c6cc139a81d30692e00ccb6cbad4799bbcbd077ce32c7693db8336c98e8dfe0b18196748af174
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
data/lib/miga/metadata.rb CHANGED
@@ -103,7 +103,7 @@ class MiGA::Metadata < MiGA::MiGA
103
103
  # Delete file at #path
104
104
  def remove!
105
105
  MiGA.DEBUG "Metadata.remove! #{path}"
106
- File.unlink(path)
106
+ File.unlink(path) if File.exist?(path)
107
107
  nil
108
108
  end
109
109
 
@@ -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, 2].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, 6)
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.2
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-06 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