adops_report_scrapper 0.1.31 → 0.1.32
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: 7626d2300b7b2ac18fd80e8f71a8f07cccef2e79
|
4
|
+
data.tar.gz: 4252ccae865ad2dac558fd7d812fcd04d6a4138a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b464d5fcd7661e7f614d89bf8a61124ddfbd8e172760c2eafe6fc5bec74fbcf405f1e8b17d2e48b88c2c0fd766d073fd00269559fb26f7c87a6a0fc0e6a10049
|
7
|
+
data.tar.gz: 34b3c9a21a078d155293d905d9b02eb8bbc476d56d8c8b6728be6782d127a91d4d9a71d7a48f48015a7ada5525459c31574e6f2c2dc52c24998021a82e22b51a
|
@@ -48,5 +48,6 @@ class AdopsReportScrapper::SpringserveClient < AdopsReportScrapper::BaseClient
|
|
48
48
|
def extract_data_from_report
|
49
49
|
rows = @client.find_all :xpath, '//table[1]/*/tr'
|
50
50
|
@data = rows.map { |tr| tr.find_css('td,th').map { |td| td.visible_text } }.reject { |row| row[0] == 'Total' }
|
51
|
+
@data = [] if @data.flatten.include? 'No data available in table'
|
51
52
|
end
|
52
53
|
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.
|
4
|
+
version: 0.1.32
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stayman Hou
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|