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 +4 -4
- data/Gemfile +1 -1
- data/lib/miga/cli/action/db.rb +3 -1
- data/lib/miga/common/net.rb +3 -1
- data/lib/miga/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a664f669e51be77875c62623d2c3f749ff6bcdb7a118f7432a9ecadcead1bcf2
|
4
|
+
data.tar.gz: ec9f67e76a763c17e660dab05191d5f8ced5ac84988ddc8a27566f42e90f906d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d26498f03f512d96f4dc1a7ade3d065c9301bb7170e6cbff8c5241313e397782d8516e18f18e9dc0aee1b0a990fca58463cc138c4c2bce4c72b38f10fec148db
|
7
|
+
data.tar.gz: 3fff9c2b56a3f3e4a004375432170cab95a8102de0035428384c63b0818a3be18d4b040e32abdb413875f230a4f03195f42e3439c3eae9f61d72c23ed5a3e6a8
|
data/Gemfile
CHANGED
data/lib/miga/cli/action/db.rb
CHANGED
@@ -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
|
-
|
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)
|
data/lib/miga/common/net.rb
CHANGED
@@ -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 =
|
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,
|
15
|
+
VERSION = [1.3, 15, 10].freeze
|
16
16
|
|
17
17
|
##
|
18
18
|
# Nickname for the current major.minor version.
|