sprout 0.7.153 → 0.7.156
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sprout might be problematic. Click here for more details.
- data/lib/sprout/remote_file_loader.rb +10 -1
- data/lib/sprout/version.rb +1 -1
- metadata +2 -2
@@ -19,7 +19,16 @@ module Sprout
|
|
19
19
|
if(expected_md5sum)
|
20
20
|
md5 = Digest::MD5.new
|
21
21
|
md5 << response
|
22
|
-
|
22
|
+
|
23
|
+
if(expected_md5sum != md5.hexdigest)
|
24
|
+
puts "The MD5 Sum of the downloaded file (#{md5.hexdigest}) does not match what was expected, would you like to install anyway? [Yn]"
|
25
|
+
response = $stdin.gets.chomp!
|
26
|
+
if(response.downcase == 'y')
|
27
|
+
return true
|
28
|
+
else
|
29
|
+
raise RemoteFileLoaderError.new('MD5 Checksum failed')
|
30
|
+
end
|
31
|
+
end
|
23
32
|
end
|
24
33
|
return true
|
25
34
|
end
|
data/lib/sprout/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.156
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luke Bayes
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-02-
|
12
|
+
date: 2008-02-11 00:00:00 -08:00
|
13
13
|
default_executable: sprout
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|