adops_report_scrapper 0.2.20 → 0.2.21

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
  SHA1:
3
- metadata.gz: 98a0c77cfd9e06624bf5994f7cc64a4833987e04
4
- data.tar.gz: 695e54b633e13adafe601bd7a6edb22fd482253b
3
+ metadata.gz: d537923a45df90cbac619437c713036c1346694f
4
+ data.tar.gz: 321edb47fe694a55ed67fa8cea9f871ad9de8721
5
5
  SHA512:
6
- metadata.gz: 59c9a0041d61d1957e9a8cf6ad2cc91d022382d7ba067138b2aa59ba5685ae5c23f983e64be6efcf8c3a6047ca26f1d0e6a8298ac875eeb56a8895f76f96efe1
7
- data.tar.gz: d152000831ee7a2e83072f112b1889b67a91249ca8fd652874d138efd46dbde3832434796154ebabc0a60ee11e40eff51d78de939e0c6ea0f46fb758a6b13282
6
+ metadata.gz: 2f32f5d409fa1eca2fb95f6ac7c8981e75b925d1754e65deb4642564fe6e077cf1d1a800bfbfa605d5d9515645b6d10e915f78d918a3f12490aee7bdb72ee2af
7
+ data.tar.gz: 094edf3648718c6d86dee8441fb2c2e02b47d2f81d274b3722931739a35ddb5b04a4b37aa526c4fa7ec49ca3a01c39c507fca4b7eab2e8aa7d4d12fd0d293dbd
@@ -33,7 +33,11 @@ class AdopsReportScrapper::AdsparcClient < AdopsReportScrapper::BaseClient
33
33
  @client.visit url
34
34
  sleep 5
35
35
  @client.find(:css, '#topCalendar').click
36
- @client.find(:xpath, '//*[text()="Month to date "]').click
36
+ begin
37
+ @client.find(:xpath, '//*[text()="Month to date "]').click
38
+ rescue Exception => e
39
+ @client.find(:xpath, '//*[text()="Custom Range "]').click
40
+ end
37
41
  @client.find(:xpath, '//*[text()="Last 7 Days"]').click
38
42
  @client.click_button 'Apply'
39
43
  sleep 0.5
@@ -1,3 +1,3 @@
1
1
  module AdopsReportScrapper
2
- VERSION = "0.2.20"
2
+ VERSION = "0.2.21"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adops_report_scrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.20
4
+ version: 0.2.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stayman Hou
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-27 00:00:00.000000000 Z
11
+ date: 2017-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient