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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e6a15b4479cbf7318be107f94f57eba9a19037e76c26d2408853a6407c50008
4
- data.tar.gz: 5e838d02dd9bd81290db3dbf4bc5a3b5427361953458dc026fb3db3db6a42e05
3
+ metadata.gz: ea8f7f1cba1f575af4fb82c8d83d7108decbdc8eabf38be38693b2f94c5d4b95
4
+ data.tar.gz: 69deb413bdce72404ca9a76e5d5d01014214559c71a1aad421c8b3e32c400f52
5
5
  SHA512:
6
- metadata.gz: e102a711d68eeef3f8a070c1668df9469bd5961f4820e4dd6b326c005ba34e3687373a58ddb057ae649eefe77c40181788ad6fa83f9c06b0bcd4eb0e11424855
7
- data.tar.gz: b9dbd2385e65812d09a5a6ceeab9e31dc5457c69384d1b96e34bca5ea54cd3515201ec34b570fad6ae9f7717a63d039f6b4a853e8df1ef7336fb0f3bf4421c47
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(fetch_file_paths.size)
73
+ @progress_bar = ::ProgressBar.new(file_paths.size)
71
74
  end
72
75
 
73
- fetch_file_paths.map do |file_path|
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
@@ -1,5 +1,5 @@
1
1
  module Pulse
2
2
  module Downloader
3
- VERSION = "0.1.32"
3
+ VERSION = "0.1.33"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulse-downloader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.32
4
+ version: 0.1.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - trex22