adops_report_scrapper 0.2.41 → 0.2.42
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: 5ff29d79e1259550d96576bd1a40a3ec23b92bf9
|
4
|
+
data.tar.gz: 6aac86bed071247327aa01bc62dea46f221649e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8333cf2e82def1c12c5557f917059497966e0a8c5b14391918914ab90cdd86cc8f2e8758bab92375f525ede25a3a8207a0c0ad3de906a698bb56f175496d6d5e
|
7
|
+
data.tar.gz: 27a382df7d369517fbd20bb0f9c4edc48342f665e7ddfb97fbe30b21aaacd6d69d2fd742d3baa9dc959f3ea9fdc4967108d8351240b8fa3619fe7f655aae1c55
|
@@ -3,6 +3,12 @@ require_relative 'base_client'
|
|
3
3
|
require 'rest-client'
|
4
4
|
|
5
5
|
class AdopsReportScrapper::RevcontentClient < AdopsReportScrapper::BaseClient
|
6
|
+
def date_supported?(date = nil)
|
7
|
+
_date = date || @date
|
8
|
+
return true if _date < Date.today
|
9
|
+
false
|
10
|
+
end
|
11
|
+
|
6
12
|
private
|
7
13
|
|
8
14
|
def init_client
|
@@ -37,7 +43,5 @@ class AdopsReportScrapper::RevcontentClient < AdopsReportScrapper::BaseClient
|
|
37
43
|
@data += data.map do |datum|
|
38
44
|
header.map { |key| datum[key] }
|
39
45
|
end
|
40
|
-
|
41
|
-
byebug
|
42
46
|
end
|
43
47
|
end
|
@@ -3,6 +3,12 @@ require_relative 'base_client'
|
|
3
3
|
require 'rest-client'
|
4
4
|
|
5
5
|
class AdopsReportScrapper::SpringserveClient < AdopsReportScrapper::BaseClient
|
6
|
+
def date_supported?(date = nil)
|
7
|
+
_date = date || @date
|
8
|
+
return true if _date < Date.today
|
9
|
+
false
|
10
|
+
end
|
11
|
+
|
6
12
|
private
|
7
13
|
|
8
14
|
def init_client
|