schiphol 0.9 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/schiphol.rb +4 -2
- metadata +5 -15
data/lib/schiphol.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
# - Automatically retry downloads N times.
|
7
7
|
class Schiphol
|
8
8
|
|
9
|
-
VERSION = '0.9'
|
9
|
+
VERSION = '0.9.1'
|
10
10
|
|
11
11
|
#* External dependencies *#
|
12
12
|
|
@@ -99,6 +99,8 @@ class Schiphol
|
|
99
99
|
|
100
100
|
# Write the downloaded file.
|
101
101
|
response.read_body do |segment|
|
102
|
+
segment.force_encoding('UTF-8')
|
103
|
+
|
102
104
|
# Increment the progress bar.
|
103
105
|
bar.inc(segment.length) if bar
|
104
106
|
# Write the read segment.
|
@@ -238,4 +240,4 @@ class Schiphol
|
|
238
240
|
|
239
241
|
end
|
240
242
|
|
241
|
-
end
|
243
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: schiphol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.9.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-10-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rubyzip
|
@@ -43,9 +43,8 @@ dependencies:
|
|
43
43
|
- - ! '>='
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: 0.10.0
|
46
|
-
description: ! ' Schiphol is a
|
47
|
-
|
48
|
-
ZIP archives, and auto-retries for a preset number of times. '
|
46
|
+
description: ! ' Schiphol is a Ruby downloader script with progress bar, retries,
|
47
|
+
MIME type detection and ZIP file extraction. '
|
49
48
|
email:
|
50
49
|
- louis.mullie@gmail.com
|
51
50
|
executables: []
|
@@ -58,16 +57,7 @@ files:
|
|
58
57
|
- LICENSE
|
59
58
|
homepage: https://github.com/louismullie/schiphol
|
60
59
|
licenses: []
|
61
|
-
post_install_message:
|
62
|
-
|
63
|
-
|
64
|
-
Thank you for installing Schiphol!
|
65
|
-
|
66
|
-
|
67
|
-
********************************************************************************
|
68
|
-
|
69
|
-
|
70
|
-
'
|
60
|
+
post_install_message:
|
71
61
|
rdoc_options: []
|
72
62
|
require_paths:
|
73
63
|
- lib
|