monese_csv_downloader 0.1.3 → 0.1.4

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: ac53d1e4026fe560bc4055ae26c5c5efc7110f7c53f470a02b23bcb6e9d87b54
4
- data.tar.gz: c24e7ab212b29748c759a6c9a4cc44418e9887d54d21c2d3028676b388eceb53
3
+ metadata.gz: 6f084fc651e80268d4481229a49c0556e000326b8591f9690324685e95bccc84
4
+ data.tar.gz: 3f313e95ab99c3c73df2bc684e1b5a79ab99a53939582dbe89d5e60f8dfc9372
5
5
  SHA512:
6
- metadata.gz: d1a35ed5735a470ea38c9cc6c8cd174c59c54ee96c246b91958a035f212452e2e84ff30ca2dab0031d0d9f2f3ab7e24ea9bcf38dd7eeb4f40a450fcbbba8430c
7
- data.tar.gz: cdb8e4df249186f614db355448b53edae48a517f52738900028ce882822024fa766401f5558364d45ec66d263a9c6e68c3461dbf7568db4f0ea795c32e547c5b
6
+ metadata.gz: 990136b194d275c3c122bc2f73525abd59a6baadd4e9b83af58bdf43de0e5486b39b874045991d25168727d14d49bfd0b8d2afac52dbe85a6da3f514cb56f0b2
7
+ data.tar.gz: 850db4ce9f8dde0e052c9abc977a3f9d8e4fbac5b43647502af2e4aeb69fbffc6c8f130cbec4bf85daacc830003b0cfc936b841e9de404b0a6e0b4e10ca482ba
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- monese_csv_downloader (0.1.3)
4
+ monese_csv_downloader (0.1.4)
5
5
  thor (~> 1.1)
6
6
  watir (~> 6.19)
7
7
  webdrivers (~> 4.5.0)
@@ -1,3 +1,3 @@
1
1
  module MoneseCsvDownloader
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -12,6 +12,12 @@ module MoneseCsvDownloader
12
12
  def browser
13
13
  sleep(1) # Act like a human
14
14
  @browser ||= self.firefox_browser
15
+
16
+ @screenshot_count ||= 0
17
+ @screenshot_count += 1
18
+ @browser.screenshot.save "/tmp/monese-csv-downloader-screenshot-#{@screenshot_count}.png"
19
+
20
+ @browser
15
21
  end
16
22
 
17
23
  def downloaded_file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monese_csv_downloader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Kuruvilla