miga-base 1.1.3.2 → 1.1.3.3

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: 683a93a244b106eb24f94cff47695b28cc051701ecd4ea83b289a6650fdf3985
4
+ data.tar.gz: 6ce192df7a66502535a5c24406d9d3f1d0a1d51c11f3fb6e08f353547661c053
5
5
  SHA512:
6
- metadata.gz: b2deb4fd773f70d362d2d22224917bc4c72ed39e61951a403d6b9a8584cc99580425d140db4c6048dbf3680d696e26d6683802f88797a08f851b92d70389b79a
7
- data.tar.gz: 1448247c7b883b5a52f92000a7085301b27645f8dc8ef069620815d8dd29f3a0c2ad2d9e3ace1821530bccaa91623793bd8b1f33f158ecf0d731b87c0cd6bc25
6
+ metadata.gz: cd07ba5ea8d3088ba9e7752c13bcdc07a0cf73175687c021e93c6df9361abd6dab361ffaed562f421f551999deee3de4f32d388f96f050ff45750d22bbe3eaf3
7
+ data.tar.gz: 18ba878127bc0abb7aed7b63398091cc2ed0fbee0d8629850a25d26ab9690f4489a8aca4fa8a3e2f2a8d4e80bdf1fd065511c23774327e988fac9ff0df645041
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, 3].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, 11, 29)
24
24
 
25
25
  ##
26
26
  # References of MiGA
@@ -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
+ File.copy(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.3
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-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daemons