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: 9c607980aba3786d27f887c7cf3e483e5ca9f9c7
4
- data.tar.gz: 612447f3d4b4fd75d33829a526f50bd62f77d701
3
+ metadata.gz: 5ff29d79e1259550d96576bd1a40a3ec23b92bf9
4
+ data.tar.gz: 6aac86bed071247327aa01bc62dea46f221649e8
5
5
  SHA512:
6
- metadata.gz: 3d343ae25f045bc41b47f1c63461292cc1693cbf4cad20b4f7de623a3ea96a6da084be319158062e11f63b5331a2f460eb1b183262782c2253bbf28e8e34dcd4
7
- data.tar.gz: bc3e7b151ce2e26f6a17437e03f93ffb6a4f975de8019ad354f2b8a42b419bbf4526798c283b9b8d3b17072dbabb8c532b587542ed54a756db3bd776a7281dc6
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
@@ -1,3 +1,3 @@
1
1
  module AdopsReportScrapper
2
- VERSION = "0.2.41"
2
+ VERSION = "0.2.42"
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.2.41
4
+ version: 0.2.42
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stayman Hou