miga-base 1.3.20.11 → 1.3.21.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: 91302d7d75ccc35b6ff9606f8b6d777f1ed9d003884b1239ccf88d1a60e9cd23
4
- data.tar.gz: d71e38b02f3e54695a4e2c40b07b910ebaf8719511f20fb5c19198aa9b4dbae2
3
+ metadata.gz: 27c260214690d23cf63214ecbd8bab0671af2450bf0edd6f4fabfb17b9a8c71c
4
+ data.tar.gz: ce22d314727280fc4c0c8707ac8e4997361a611d3134321cb9de35bf9455fdab
5
5
  SHA512:
6
- metadata.gz: e0df7e189c74f4c791493d04f14000671c40a2fe5d9a50c92985a82eb0b7fe9670205a8d5b01ab7fb158df9836fb5d41040c1cf3ac81321dd66dde84d01adbe3
7
- data.tar.gz: 0f30aac316c440e623405eab59855a3ace6d5bc04e452bfe67d67c1cb486670a48a629e0fd9f631cdd66446907147043d80d03e273423a620074d5a320bd3975
6
+ metadata.gz: 76d0b214b27547b22118557c0f733649b7f73c5bd3c6fe67c09a84f4fac5b232b79011de5c11e9cd90656db796eb84c59ac6b553e90f8e2f8ffb7f9be8feba34
7
+ data.tar.gz: d4eaf235af72b9b168660f0b518f7ffbfa6fc58f3b92acf4c9f99c469cd786de71b68569c859a549f5f49ae32e17737edbf0be80619ed5ba19ce4b1a3daa1569
data/lib/miga/dataset.rb CHANGED
@@ -196,4 +196,19 @@ class MiGA::Dataset < MiGA::MiGA
196
196
  [name, how_many]
197
197
  )
198
198
  end
199
+
200
+ ##
201
+ # Retrieves the option with name +key+ from the dataset's metadata
202
+ # extending support to relative paths in +:db_project+
203
+ def option_by_metadata(key)
204
+ case key.to_sym
205
+ when :db_project
206
+ y = metadata[key] or return
207
+ ref_location = project.option(:db_proj_dir) || File.dirname(project.path)
208
+ y = File.expand_path(y, ref_location)
209
+ return y
210
+ end
211
+
212
+ super
213
+ end
199
214
  end
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, 20, 11].freeze
15
+ VERSION = [1.3, 21, 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, 9, 13)
23
+ VERSION_DATE = Date.new(2024, 9, 28)
24
24
 
25
25
  ##
26
26
  # References of MiGA
@@ -19,9 +19,7 @@ class MiGA::DistanceRunner
19
19
  @ref_project = MiGA::Project.load(ref_path)
20
20
  raise "Cannot load reference project: #{ref_path}" if @ref_project.nil?
21
21
  elsif !opts[:run_taxonomy] && dataset.option(:db_project)
22
- ref_location = project.option(:db_proj_dir) || File.dirname(project.path)
23
- ref_path = File.expand_path(dataset.option(:db_project), ref_location)
24
- @ref_project = MiGA::Project.load(ref_path)
22
+ @ref_project = MiGA::Project.load(dataset.option(:db_project))
25
23
  raise "Cannot load reference project: #{ref_path}" if @ref_project.nil?
26
24
  else
27
25
  @ref_project = project
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.20.11
4
+ version: 1.3.21.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-09-13 00:00:00.000000000 Z
11
+ date: 2024-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daemons