adops_report_scrapper 0.1.66 → 0.1.67

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: 93a875311b6b77e868a4afb1498b6b4cb4e41d37
4
- data.tar.gz: 05efa95ce31b91d04962cb27083983f43961de43
3
+ metadata.gz: 7125ce707e546106037a9d1aa48886c7890a47f4
4
+ data.tar.gz: f5e68fd5f368ad5a4ed79dd0085553ad1adc383f
5
5
  SHA512:
6
- metadata.gz: bc4a06bcf1164aa5ad813820c574fe791474fee52f19f7626229018478807eb10d7397979fbf76c8a6a94b383d9f6a4a1647d64863854c11f9402ba14e7dbea9
7
- data.tar.gz: 60e9ab3f00ff30bec0f3a652d18bfe2287d563b3b13c570d7288f56ef5e21f2e05268a35e68949e7e6f069b175033157291736ff74e46727391f48c9aa7fd216
6
+ metadata.gz: 04b65bc91288708a4834ee83c36bd49d1f2d587180e413b16d020849a1e019da3c35043a563632dfe32b5cf94fba25000bf39f4fba62a420d79885a3845bec97
7
+ data.tar.gz: b9557ae9913eac36a13825b015aa77bbd6e226eefb23c9906c040c4e32dad8a76af4aa08f1025c06d526714d4d0ef5dcdb7d9d501e2b211aaed94741728a02f1
data/CHANGELOG CHANGED
@@ -1,5 +1,8 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.1.67
4
+ fix adtechus
5
+
3
6
  ## 0.1.66
4
7
  implement gumgum
5
8
 
@@ -6,9 +6,17 @@ class AdopsReportScrapper::AdtechusClient < AdopsReportScrapper::BaseClient
6
6
 
7
7
  def login
8
8
  @client.visit 'http://marketplace.adtechus.com'
9
- @client.fill_in 'Login', :with => @login
10
- @client.fill_in 'Password', :with => @secret
11
- @client.click_button 'Sign in'
9
+ @client.fill_in 'Username', :with => @login
10
+ begin
11
+ @client.fill_in 'Password', :with => @secret
12
+ rescue Exception => e
13
+ puts 'You are selected in the Beta that sucks!!!'
14
+ @client.find_all(:button).first.click
15
+ sleep 10
16
+ @client.fill_in 'Password', :with => @secret
17
+ end
18
+ @client.find_all(:button).first.click
19
+ sleep 10
12
20
  begin
13
21
  @client.find :xpath, '//*[text()="REPORTING"]'
14
22
  rescue Exception => e
@@ -21,6 +29,7 @@ class AdopsReportScrapper::AdtechusClient < AdopsReportScrapper::BaseClient
21
29
  end
22
30
 
23
31
  def request_report
32
+ byebug
24
33
  @client.find(:xpath, '//*[text()="REPORTING"]').click
25
34
  wait_for_loading
26
35
  @client.visit(@client.find(:css, '#mainwindow')[:src])
@@ -1,3 +1,3 @@
1
1
  module AdopsReportScrapper
2
- VERSION = "0.1.66"
2
+ VERSION = "0.1.67"
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.66
4
+ version: 0.1.67
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-03-14 00:00:00.000000000 Z
11
+ date: 2017-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient