miga-base 1.3.15.9 → 1.3.15.10

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: 064e93465ac48e77eb31406064706cc7a10e1b34b73fea9216a7759f23f4982c
4
- data.tar.gz: 2818f9708bfbaa8e43f6742c5bfb963a00f68737a07b4afdb3a693ce58a49f40
3
+ metadata.gz: a664f669e51be77875c62623d2c3f749ff6bcdb7a118f7432a9ecadcead1bcf2
4
+ data.tar.gz: ec9f67e76a763c17e660dab05191d5f8ced5ac84988ddc8a27566f42e90f906d
5
5
  SHA512:
6
- metadata.gz: b6b8df2cfd819f69fcc5bf922d0a57d0cb33f48a4bf6371fc1a5433c9571902ca3f1ed8a8c7df5c1df2b35f05da820545b51e046e60ba692eeff7e77e46d1699
7
- data.tar.gz: '024922760df8f9cffdc72fb96df36fe8d4805b41b885164280af6633cf45f6da95fa5cb647d44a8149d1e81026d41e397888c453f97adc0ee7ea176b50ff6507'
6
+ metadata.gz: d26498f03f512d96f4dc1a7ade3d065c9301bb7170e6cbff8c5241313e397782d8516e18f18e9dc0aee1b0a990fca58463cc138c4c2bce4c72b38f10fec148db
7
+ data.tar.gz: 3fff9c2b56a3f3e4a004375432170cab95a8102de0035428384c63b0818a3be18d4b040e32abdb413875f230a4f03195f42e3439c3eae9f61d72c23ed5a3e6a8
data/Gemfile CHANGED
@@ -6,4 +6,4 @@ group :test do
6
6
  gem 'codeclimate-test-reporter', '~> 1.0'
7
7
  end
8
8
 
9
- gem 'rake', '~> 12.0'
9
+ gem 'rake', '~> 13.0'
@@ -237,7 +237,9 @@ class MiGA::Cli::Action::Db < MiGA::Cli::Action
237
237
  cli.say '' if cli[:pb]
238
238
  dig = md5.hexdigest
239
239
  cli.say "Observed: #{dig}"
240
- raise 'Corrupt file, MD5 does not match' unless dig == ver[:MD5]
240
+ unless dig == ver[:MD5]
241
+ raise "Corrupt file, MD5 differs. Remove #{file} before trying again"
242
+ end
241
243
  end
242
244
 
243
245
  def version_size(ver)
@@ -49,6 +49,7 @@ module MiGA::Common::Net
49
49
  when 'ftp'
50
50
  ftp = Net::FTP.new(uri.host)
51
51
  ftp.passive = true
52
+ ftp.resume = true
52
53
  ftp.login
53
54
  ftp.chdir(uri.path) unless host.is_a?(URI)
54
55
  ftp
@@ -87,7 +88,8 @@ module MiGA::Common::Net
87
88
  # Prepare download
88
89
  FileUtils.mkdir_p(File.dirname(target)) if target
89
90
  filesize = connection.size(file)
90
- transferred = 0
91
+ transferred =
92
+ target && connection.resume && File.exist?(target) ? File.size(target) : 0
91
93
 
92
94
  # Get in chunks of 1KiB
93
95
  ret = ''
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, 15, 9].freeze
15
+ VERSION = [1.3, 15, 10].freeze
16
16
 
17
17
  ##
18
18
  # Nickname for the current major.minor version.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miga-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.15.9
4
+ version: 1.3.15.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis M. Rodriguez-R