mass-client 1.0.14 → 1.0.16

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: 53fd9f6e473d0b31531ae56a7dd16958b97e795d641359ceaec7a910c68b24d3
4
- data.tar.gz: b827776819119c4a1b94bd11b05dbd5608953aa56bab23131e400062bcbcb9f6
3
+ metadata.gz: 72e73ed48a3ece2e7f8eee5d01ec38f8d4d96b6b489d807d61810d153d23cbe0
4
+ data.tar.gz: 3bbf7cbd0ee7c51d3609d1e98982a5afd7bfd2ed007cf7dcee51041746fbfeda
5
5
  SHA512:
6
- metadata.gz: 5a9ba49872bd605d6c686b95911e419efcd23be69c3ae4043999385d8a00a54e66db3c3406e7e70e2707b252d42bbd3f4f4ffc06f86d44ff8afb0bd9a55a279c
7
- data.tar.gz: 1b84beacd8a19eb5803940db7fc0b162ca67b1b6c505e4082c41746db9c70cc1bde363e7d8a2f87aaa5f34a16524816794f5b9f8fcc92b793a97a09b10db8409
6
+ metadata.gz: 5f3fd3cead76ae5aebcd3ce49e69c993892103c9d54f491bbf698a20d3f00b549094fe3aa8a0b11cd94670664c2ebcea76a58731d02adbb79f9a6195fd0f7ff6
7
+ data.tar.gz: 5e93634a3363448dd86a81d5435056f68251640bad12e3bb94988e3a0aad1ffdfe3c8fd64370694c76705ab9e1e07893885317a2da6efa4465317255d91a73a4
@@ -192,7 +192,7 @@ module Mass
192
192
  tmp_paths = Mass.download_path.map { |s| "#{s}/#{filename}" } if Mass.download_path.is_a?(Array)
193
193
 
194
194
  # excute JavaScript function downloadImage with the parameter src
195
-
195
+ #binding.pry
196
196
  # this function is to download images from the same browser, using the proxy of the browser.
197
197
  # never download images from the server, because sites can track the IP.
198
198
  js0 = "
@@ -212,7 +212,7 @@ module Mass
212
212
  "
213
213
  #binding.pry
214
214
  driver.execute_script(js0)
215
-
215
+ sleep(10)
216
216
  # code
217
217
  year = Time.now.year.to_s.rjust(4,'0')
218
218
  month = Time.now.month.to_s.rjust(2,'0')
@@ -228,7 +228,7 @@ module Mass
228
228
  break
229
229
  end
230
230
  }
231
- raise "The file #{filename} was not downloaded." if tmp_path.nil?
231
+ raise "Downloaded file #{filename} not found in paths #{tmp_paths.join(',')}." if tmp_path.nil?
232
232
 
233
233
  # upload the file to dropbox
234
234
  BlackStack::DropBox.dropbox_upload_file(tmp_path, path)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mass-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.14
4
+ version: 1.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi