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: d9c90b176c3e23789717f9dae6a7dab382a52846
4
- data.tar.gz: 1f9b511590da3c0204bc9644c66eec44d1df3dc8
3
+ metadata.gz: 7626d2300b7b2ac18fd80e8f71a8f07cccef2e79
4
+ data.tar.gz: 4252ccae865ad2dac558fd7d812fcd04d6a4138a
5
5
  SHA512:
6
- metadata.gz: e4abd0c6150c8bea0e7d138312f8a7ea737e07c2a1c92ed003b95803a74bdddb638a1918ba2408f34ed662476a0256d9449236c51fb5b40ef7a378c70f9c66d7
7
- data.tar.gz: ad951b60858a54bcf3faf293d3c45f6986a136e9786c39842c7a9cbf3a587c10ef9dcd41824222b0bed36de6cf0db61fb615f35aa44f2ad867e061c4e811f73c
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
@@ -1,3 +1,3 @@
1
1
  module AdopsReportScrapper
2
- VERSION = "0.1.31"
2
+ VERSION = "0.1.32"
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.31
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-10-27 00:00:00.000000000 Z
11
+ date: 2016-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient