adops_report_scrapper 0.2.15 → 0.2.16

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: b956dd2e93da86703af0b79fe9ac00547c8d4080
4
- data.tar.gz: 016d2f647d7c7fc3861b9613a2501cd996c2a4f5
3
+ metadata.gz: 946d431b163ad6d8cbe97ad6e3ed71dca48343c1
4
+ data.tar.gz: 611639ffa42c933a3c4ff9992fcbf47e93d6eff8
5
5
  SHA512:
6
- metadata.gz: 465fc6c18a54e8e3a06850aa1dfccfd33f8c68e033e316c6df206542f6bb14a1e13c3b39e7dfee999769ef488e8f01c98f5ea000b6f8ae554f40b8eebd2f54c6
7
- data.tar.gz: f99077ba114bae2be8e78e5707e6c0c3c76c9330ec88ed7573492c4933587e929379cb58cba7b3d15ef89b815346777f650cb8e155e88f1a254c103b4d9ce3bb
6
+ metadata.gz: 47b1224876d51997d76280c77eda361774c16f19d274c49c68a156d7cabc22ba26045c1f8c0b9e3113f87c6433823c46cb599a5e03f1c32ed7f4cb8d2586ff46
7
+ data.tar.gz: 0726c276afb3f9dde4ca44028476727c32c9038dce0a2bdcd58c5b6dc4e80468415e31ac4083bbb72cb3b61d23ca7d7f8c16c81156b2774f5babaa574f0f957a
data/Gemfile CHANGED
@@ -16,5 +16,5 @@ gem 'rubyzip'
16
16
  gem 'google-api-client', '~> 0.8.2'
17
17
  gem 'cheddar'
18
18
  gem 'roo', '~> 2.4.0'
19
- gem 'selenium-webdriver'
19
+ gem 'selenium-webdriver', '~> 3.4.0'
20
20
  gem 'mail'
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.add_dependency 'google-api-client', '~> 0.8.2'
31
31
  spec.add_dependency 'cheddar', '~> 1.0'
32
32
  spec.add_dependency 'roo', '~> 2.4.0'
33
- spec.add_dependency 'selenium-webdriver', '~> 3.3.0'
33
+ spec.add_dependency 'selenium-webdriver', '~> 3.4.0'
34
34
  spec.add_dependency 'mail', '~> 2.6.4'
35
35
 
36
36
  spec.add_development_dependency "bundler", "~> 1.8"
@@ -66,7 +66,7 @@ class AdopsReportScrapper::TremorClient < AdopsReportScrapper::BaseClient
66
66
  flag_holding = true
67
67
  60.times do |_i| # wait 20 min
68
68
  begin
69
- @client.find(:xpath, '//*[text()="Please Hold"]')
69
+ @client.find(:xpath, '//*[text()="Cancel Report"]')
70
70
  rescue Exception => e
71
71
  flag_holding = false
72
72
  break
@@ -78,7 +78,7 @@ class AdopsReportScrapper::TremorClient < AdopsReportScrapper::BaseClient
78
78
 
79
79
  def extract_data_from_report
80
80
  page = Nokogiri::HTML @client.html
81
- rows = page.xpath '//table[@id="DataTables_Table_1"]/*/tr'
81
+ rows = page.xpath '//table[@id="DataTables_Table_0"]/*/tr'
82
82
  @data = rows.map { |tr| tr.css('td,th').map { |td| td.text } }
83
83
  end
84
84
  end
@@ -1,3 +1,3 @@
1
1
  module AdopsReportScrapper
2
- VERSION = "0.2.15"
2
+ VERSION = "0.2.16"
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.15
4
+ version: 0.2.16
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-21 00:00:00.000000000 Z
11
+ date: 2017-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -170,14 +170,14 @@ dependencies:
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 3.3.0
173
+ version: 3.4.0
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 3.3.0
180
+ version: 3.4.0
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: mail
183
183
  requirement: !ruby/object:Gem::Requirement