adops_report_scrapper 0.1.22 → 0.1.23

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: 9517c263ff1775d359ae43a97cbfc8b1e59ebac0
4
- data.tar.gz: 6aa3a9313e6f02e32a15d8074cc967ff0617624c
3
+ metadata.gz: baf2e5206eb476a1f34966d49549797e4eff6e04
4
+ data.tar.gz: 0ac95ba0dead4c7cad4ccb594fabf5ce0bb427f5
5
5
  SHA512:
6
- metadata.gz: 63ffcfc0dc5ecb1652f5f089e33561c3585a16051783831952faa79107ea334b34637e245e7a76634ed70ac67fc843a1187392e4f7d6c20dfccca6e3feacf29a
7
- data.tar.gz: acc4de49afd82ee6fc552eef224c5afdedf6c49e53e96f91401c82638a9e7c62b39f088821e6692b490352ff34b7ef718c881d1008c420b610aab543cda80360
6
+ metadata.gz: 9b6554e264f5ebaccd8c535b4982aa625b39ae078c4f09306e0bdbdcc619e6ec8633e4f01a053c1155c3290a3c76ee9ca16a376f0ceca5883e7ae00fb0a99cf4
7
+ data.tar.gz: 9215b66a1b1a7574f908ab2a676aedad1521b38f4aece0f9138dab14a36aec9778c27a6784e38e376edf265c2935633dbec83e469a883d040f7cfc13600fe143
@@ -6,7 +6,8 @@ class AdopsReportScrapper::RhythmoneClient < AdopsReportScrapper::BaseClient
6
6
 
7
7
  def login
8
8
  @client.visit 'https://portal.rhythmone.com/login'
9
- sleep 5
9
+ sleep 1
10
+ return if @client.find_all(:xpath, '//*[contains(text(),"REPORTING")]').count > 0
10
11
  @client.fill_in 'email', :with => @login
11
12
  @client.fill_in 'password', :with => @secret
12
13
  @client.click_button 'Sign in'
@@ -1,3 +1,3 @@
1
1
  module AdopsReportScrapper
2
- VERSION = "0.1.22"
2
+ VERSION = "0.1.23"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adops_report_scrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.22
4
+ version: 0.1.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stayman Hou