pulse-downloader 0.1.32 → 0.1.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pulse/downloader/client.rb +6 -3
- data/lib/pulse/downloader/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: ea8f7f1cba1f575af4fb82c8d83d7108decbdc8eabf38be38693b2f94c5d4b95
|
4
|
+
data.tar.gz: 69deb413bdce72404ca9a76e5d5d01014214559c71a1aad421c8b3e32c400f52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f1633832d05cf665d116cd9180c66b02d7c0a0c5dbf77db03d758fa9f0f051982761125cbdfc4914e3dd53b5ee6c91fc9b74fe16cd9c992098e7f72df78ac52
|
7
|
+
data.tar.gz: 4f571acd0d6019506a9cb58b5e86bcb8c79cbc856406342a1325864ee6f771b7c3bdc09e65d8bba6ee79d1d77b59f4a37b5e771e6b8b51d959350d32142bf378
|
@@ -20,7 +20,8 @@ module Pulse
|
|
20
20
|
:start_time,
|
21
21
|
:end_time,
|
22
22
|
:progress_bar,
|
23
|
-
:base_url
|
23
|
+
:base_url,
|
24
|
+
:file_paths
|
24
25
|
|
25
26
|
# Does not continue downloads-
|
26
27
|
# Will only save once the file has been downloaded in memory
|
@@ -66,11 +67,13 @@ module Pulse
|
|
66
67
|
def call
|
67
68
|
return false unless valid?
|
68
69
|
|
70
|
+
@file_paths = fetch_file_paths
|
71
|
+
|
69
72
|
if @progress_bar
|
70
|
-
@progress_bar = ::ProgressBar.new(
|
73
|
+
@progress_bar = ::ProgressBar.new(file_paths.size)
|
71
74
|
end
|
72
75
|
|
73
|
-
|
76
|
+
file_paths.map do |file_path|
|
74
77
|
download(file_path, @progress_bar) if save_data
|
75
78
|
@progress_bar.increment!
|
76
79
|
end
|