adops_report_scrapper 0.1.46 → 0.1.47

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: 275a3babb56c7deaada93d0b5114ee6d03d12613
4
- data.tar.gz: 9acf06c49ebc3b0bb50a3be33933bdea1a5a69d9
3
+ metadata.gz: d7acdb9551caa8b8bc52e2ea16d793480d743fbc
4
+ data.tar.gz: 456728e520499f187ee8b243c4d98883fd756c08
5
5
  SHA512:
6
- metadata.gz: f3649d81f5520ef417f05ecccead341985cd048244757ef690b16fdb2d55a50e8e1c9babdcbe50249b5cb266f8103f6249be174e66084cd2f32a6250cd987231
7
- data.tar.gz: e4f2fc8a5bc7d919cb8481d664834457a1ef563b6da560ebb777c463b951512ec06dd3ff444660c7a6a212de1b33fe419fb5864a1be012a3f121c5d0d33302a5
6
+ metadata.gz: 6642c5604a839d84c9beead1e44309e683e802f4ff68b73e1f2622669de7efa22c603a4d4c1584ff30282120b66310ae09b1740cf175d63c297fff18f9d31bb6
7
+ data.tar.gz: 5b33fc89a8a58cabca16987e368d53bfa1bbaec8ecd36037c16546e308e9f75e8617c6444f19ae17dfa14e87f6bd717374500ed1419fdfd520d66c70ca449909
@@ -26,6 +26,7 @@ class AdopsReportScrapper::OpenxClient < AdopsReportScrapper::BaseClient
26
26
  end
27
27
 
28
28
  def request_report
29
+ sleep 5
29
30
  @client.visit "http://#{@account_prefix}.openx.net/#/reports?tab=my_reports"
30
31
  sleep 5
31
32
 
@@ -34,6 +35,7 @@ class AdopsReportScrapper::OpenxClient < AdopsReportScrapper::BaseClient
34
35
  @client.find(:css, '#report_frame')
35
36
  rescue Exception => e
36
37
  retry unless (tries -= 1).zero?
38
+ fail 'cannot find report frame'
37
39
  end
38
40
 
39
41
  create_report_if_not_exist
@@ -1,3 +1,3 @@
1
1
  module AdopsReportScrapper
2
- VERSION = "0.1.46"
2
+ VERSION = "0.1.47"
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.1.46
4
+ version: 0.1.47
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-01-24 00:00:00.000000000 Z
11
+ date: 2017-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient