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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7acdb9551caa8b8bc52e2ea16d793480d743fbc
|
4
|
+
data.tar.gz: 456728e520499f187ee8b243c4d98883fd756c08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2017-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|