miga-base 1.1.3.2 → 1.1.3.6

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: 869314efef2d92764d569f6ba5bc7cf03182a8a4dddb27405349923ca1518100
4
- data.tar.gz: 9bd3e4a7fb5d34c0d34b850a0f300b4f6ddbc4607d63fc92a5240c7674ce53b6
3
+ metadata.gz: 529121bd6f55dfeb21559b77af71a4537db91cda1fe2fdfc9bdee9adfcaaa962
4
+ data.tar.gz: 8b892eb88019c4c5d0ec654c722142004867665892a38cf96233afc0b1f30aef
5
5
  SHA512:
6
- metadata.gz: b2deb4fd773f70d362d2d22224917bc4c72ed39e61951a403d6b9a8584cc99580425d140db4c6048dbf3680d696e26d6683802f88797a08f851b92d70389b79a
7
- data.tar.gz: 1448247c7b883b5a52f92000a7085301b27645f8dc8ef069620815d8dd29f3a0c2ad2d9e3ace1821530bccaa91623793bd8b1f33f158ecf0d731b87c0cd6bc25
6
+ metadata.gz: ab6397d8b74d163cac4afa9a8e79776b91c1c4175da947d669bcc9ae441d04a0345f9c31feffbbb6349e5d9375ccd61b6396740763f3d96d0606a9f2312d9ad0
7
+ data.tar.gz: db534b553aca1ecbcee679edaf33b7cdea972e648b507b2a2e7841f8865f7572e3d498714672b8f49b21babda9f5db311bb580a4e8f90e70470a6fff13f51e6e
data/lib/miga/project.rb CHANGED
@@ -121,4 +121,11 @@ class MiGA::Project < MiGA::MiGA
121
121
  def active?
122
122
  true
123
123
  end
124
+
125
+ ##
126
+ # Load or recover the project's daemon
127
+ def daemon
128
+ require 'miga/daemon'
129
+ @daemon ||= MiGA::Daemon.new(self)
130
+ end
124
131
  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.1, 3, 2].freeze
15
+ VERSION = [1.1, 3, 6].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(2021, 11, 26)
23
+ VERSION_DATE = Date.new(2021, 12, 1)
24
24
 
25
25
  ##
26
26
  # References of MiGA
@@ -2954,10 +2954,12 @@ def merge_db(recipient, donors, donor_file, verbose, threads):
2954
2954
  pass
2955
2955
  except:
2956
2956
  #Error
2957
- shutil.rmtree(temp_dir)
2957
+ if os.path.exists(temp_dir):
2958
+ shutil.rmtree(temp_dir)
2958
2959
  finally:
2959
2960
  #Success
2960
- shutil.rmtree(temp_dir)
2961
+ if os.path.exists(temp_dir):
2962
+ shutil.rmtree(temp_dir)
2961
2963
 
2962
2964
  print("\nDatabases merged!")
2963
2965
 
@@ -153,13 +153,15 @@ module MiGA::DistanceRunner::Commands
153
153
  return nil if donors.empty?
154
154
 
155
155
  # Build target database
156
- f1 = donors.first
157
- if donors.size > 1
156
+ f1 = tmp_file
157
+ if donors.size == 1
158
+ FileUtils.cp(donors.first, f1)
159
+ else
158
160
  File.open(f0 = tmp_file, 'w') { |fh| donors.each { |i| fh.puts i } }
159
161
  run_cmd(
160
162
  <<~CMD
161
163
  FastAAI merge_db --threads #{opts[:thr]} \
162
- --donor_file "#{f0}" --recipient "#{f1 = tmp_file}"
164
+ --donor_file "#{f0}" --recipient "#{f1}"
163
165
  CMD
164
166
  )
165
167
  raise "Cannot merge databases into: #{f1}" unless File.size?(f1)
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.1.3.2
4
+ version: 1.1.3.6
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: 2021-11-26 00:00:00.000000000 Z
11
+ date: 2021-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daemons