miga-base 0.6.3.1 → 0.6.3.2

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: 9b94d26cedfe4ef7f4fd537dd668777c9ee3820eeb670a106e744250cdc72566
4
- data.tar.gz: 37cfd446014fe396ef6ce15d5289e11118095349d400aeefe16f84985f77c27d
3
+ metadata.gz: e975745242a5e71b84fbc5fdea4610eb58c67f43fa08b59344b44dfd83ac5791
4
+ data.tar.gz: c57a5780ac419c290448d06fda58ba16dc953d7a6be96d3612407bafdfedef3c
5
5
  SHA512:
6
- metadata.gz: 44e9dbe946ab889bb8bef0423544cec4d44894f9617ae28bf9ca33094ceaae16a662816110af42fc8a8941834bdf47f623eb6ec42afb3f0da405bb1267503d30
7
- data.tar.gz: 30f712d1f2d9c540d571f66cd5b8b5d21e70540f85ec2b126f11949ea2029d935d5344594817c543d81ce26917c6e5d837798b185000d079c8c700a2ac6f13d8
6
+ metadata.gz: 1860bbd81459d9adb4022b60efa380ca6ce6894418e27cbe961f3e85b63b89026c8ee278aaee1f440bf625e869c81862bf0ab55f60b43cf7e3866bb7a211198b
7
+ data.tar.gz: 79f463ecd256b866a3a52e3f4adb5102fbef2b130131b9febe4b7d81372e00df00b6adb90a9b57ced423087fa0c6fa86dee853bff1041821e42569d8795b79b5
@@ -4,6 +4,7 @@
4
4
  require 'miga/cli/action'
5
5
  require 'net/ftp'
6
6
  require 'digest/md5'
7
+ require 'open-uri'
7
8
 
8
9
  class MiGA::Cli::Action::GetDb < MiGA::Cli::Action
9
10
 
@@ -80,7 +81,8 @@ class MiGA::Cli::Action::GetDb < MiGA::Cli::Action
80
81
  cli.say "Connecting to '#{cli[:host]}'"
81
82
  uri = URI.parse(cli[:host])
82
83
  raise 'Only FTP hosts are supported' unless uri.scheme == 'ftp'
83
- ftp = Net::FTP.open(uri.host, port: uri.port)
84
+ ftp = Net::FTP.new(uri.host)
85
+ ftp.passive = true
84
86
  ftp.login
85
87
  ftp.chdir(uri.path)
86
88
  ftp
@@ -231,7 +231,6 @@ class MiGA::RemoteDataset < MiGA::MiGA
231
231
  download l_ctg
232
232
  end
233
233
  File.unlink(a_ctg) if File.exist? a_ctg
234
- File.symlink(File.basename(l_ctg), a_ctg)
235
234
  File.open("#{base}.done", 'w') { |ofh| ofh.puts Time.now.to_s }
236
235
  end
237
236
  end
@@ -154,7 +154,7 @@ class MiGA::Result < MiGA::MiGA
154
154
  def remove!
155
155
  each_file do |file|
156
156
  f = File.expand_path(file, dir)
157
- FileUtils.rm_rf(f) if File.exist? f
157
+ FileUtils.rm_rf(f)
158
158
  end
159
159
  %w(.start .done).each do |ext|
160
160
  f = path.sub(/\.json$/, ext)
@@ -10,7 +10,7 @@ module MiGA
10
10
  # - Float representing the major.minor version.
11
11
  # - Integer representing gem releases of the current version.
12
12
  # - Integer representing minor changes that require new version number.
13
- VERSION = [0.6, 3, 1]
13
+ VERSION = [0.6, 3, 2]
14
14
 
15
15
  ##
16
16
  # Nickname for the current major.minor version.
@@ -18,7 +18,7 @@ module MiGA
18
18
 
19
19
  ##
20
20
  # Date of the current gem release.
21
- VERSION_DATE = Date.new(2020, 4, 11)
21
+ VERSION_DATE = Date.new(2020, 4, 13)
22
22
 
23
23
  ##
24
24
  # Reference 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: 0.6.3.1
4
+ version: 0.6.3.2
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: 2020-04-11 00:00:00.000000000 Z
11
+ date: 2020-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daemons