adops_report_scrapper 0.1.68 → 0.1.69
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +3 -0
- data/lib/adops_report_scrapper/criteo_client.rb +1 -1
- data/lib/adops_report_scrapper/version.rb +1 -1
- data/secret.sample.yml +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b57c737ccfc9f5d880ce391d9f355dedaf8bbc70
|
4
|
+
data.tar.gz: a5f2495fa1de0149097f909691a285aa14720bdc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd3b2a29fb54892ee2dfbec9731ee2c5cc72b9eeb4c54d82d15b2972427761e0504ba4be9e1cf49a2c186bb086b1ffad3b4102da97a42bce01c54a638f75fadf
|
7
|
+
data.tar.gz: 822e3682bafe46d6b90b2b9a5f73094245d5f1c877890134a7d714622e5f99d70d96cced0ac4c369c79778a708ac80543d23d652bbaf5ed38de487e796bec538
|
data/CHANGELOG
CHANGED
@@ -20,6 +20,6 @@ class AdopsReportScrapper::CriteoClient < AdopsReportScrapper::BaseClient
|
|
20
20
|
data = JSON.parse response.body
|
21
21
|
header = data[0].keys
|
22
22
|
@data = [header]
|
23
|
-
@data += data.map { |datum| header.map { |key| datum[key].is_a?(Hash) ? datum[key]['value'] : datum[key] } }
|
23
|
+
@data += data.select { |datum| datum['date'].split('T')[0] == date_str }.map { |datum| header.map { |key| datum[key].is_a?(Hash) ? datum[key]['value'] : datum[key] } }
|
24
24
|
end
|
25
25
|
end
|
data/secret.sample.yml
CHANGED
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.69
|
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-03-
|
11
|
+
date: 2017-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|