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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 528b545a62356f1b1d9c1786f975b059f0387c3fecd58d6fe211b62405922d56
4
- data.tar.gz: a173671066bb527aaf9abdd8e68be48ab0e849a22d70cce4b4abaf0271ba425a
3
+ metadata.gz: 29c8e757ece7a21581d6e2699e21ee7ff2c7f10ec97c1b11ca42f7b360933f23
4
+ data.tar.gz: c010c991869f751618d91e766091b8ff1de846feb068b627855738a21777ea74
5
5
  SHA512:
6
- metadata.gz: 8028861136a23be938d906811375d24dd4da26ad25c33b97ed8872316610daf34ca8e83a285a16e5b76445bab5fe8164592848442a51d7c3dd00696e9092f688
7
- data.tar.gz: 50b64203c44b39b458fd8ea5dc7610ba6d1e22418a74762d6ebae78c06a14a31ea5c3e7606eec21cf1a60bf6c82f1d1be6549b3eb8a7f3945777f35d93b27714
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|
@@ -1,5 +1,5 @@
1
1
  module Pulse
2
2
  module Downloader
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
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.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - trex22