pulse-downloader 0.1.5 → 0.1.6
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 +3 -5
- 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: 29c8e757ece7a21581d6e2699e21ee7ff2c7f10ec97c1b11ca42f7b360933f23
|
4
|
+
data.tar.gz: c010c991869f751618d91e766091b8ff1de846feb068b627855738a21777ea74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37ac13c68205845e979e6f2031a412fd6ea5b9fd679ffba89a33625a380fd60a6a0c142cbc4580a036cee777d48175251ad5cced875f3a6d6a2e9305c6d6518c
|
7
|
+
data.tar.gz: eca9461c1f3d722e42da98d7328712291a8fa41fe37d162d8c6aaed208978eed36c6b5c7a7db244defaab7f0fc561e3a5bedee659d9989e25148d89273e2439e
|
@@ -1,6 +1,7 @@
|
|
1
1
|
module Pulse
|
2
2
|
module Downloader
|
3
3
|
class Client
|
4
|
+
require 'progress_bar'
|
4
5
|
include ::Pulse::Downloader::WebPageParser
|
5
6
|
include ::Pulse::Downloader::FileChecker
|
6
7
|
include ::Pulse::Downloader::FileDownloader
|
@@ -44,10 +45,7 @@ module Pulse
|
|
44
45
|
@drop_exitsing_files_in_path = drop_exitsing_files_in_path
|
45
46
|
@save_and_dont_return = save_and_dont_return
|
46
47
|
@report_time = report_time
|
47
|
-
|
48
|
-
if progress_bar
|
49
|
-
@progress_bar = ProgressBar.new
|
50
|
-
end
|
48
|
+
@progress_bar = progress_bar
|
51
49
|
end
|
52
50
|
|
53
51
|
def call!
|
@@ -58,7 +56,7 @@ module Pulse
|
|
58
56
|
return false unless valid?
|
59
57
|
|
60
58
|
if @progress_bar
|
61
|
-
@progress_bar = ProgressBar.new(fetch_file_paths.size)
|
59
|
+
@progress_bar = ::ProgressBar.new(fetch_file_paths.size)
|
62
60
|
end
|
63
61
|
|
64
62
|
fetch_file_paths.map do |file_path|
|