adops_report_scrapper 0.2.37 → 0.2.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4cf064a3b734f43507cd24f2ad6b904bccf1225d
4
- data.tar.gz: cec38e250b5689ef69913a791e05e16265419874
3
+ metadata.gz: f5b8ad7a22018c511df995c7fcf413724ed94878
4
+ data.tar.gz: 49571246c78e5f8f7a946f34b3b96d74a0c5d336
5
5
  SHA512:
6
- metadata.gz: 97358fa3667fb4ebf77be5b4269b5b800ede5267f09b447541e914df6b60f8136995a8c2a873d898b1e49f751eb86a69851e5faa2482de5f516d749365736213
7
- data.tar.gz: 1f2e15de0eba6d7b48a71e6fb10927f40f64c4b374733cd5b1987d1b02adf1cbfeabd8e4e3c8b13436f34ab2227697e2ab2d34807e57cae40a32b91394473d6f
6
+ metadata.gz: 964df614675bc98c05a7f3bc9012f8cc25f4ed65975a27d181206570f58302c371163bc8b0fd2673616d645c002e53e97287ec6e1d2f832dd745c3a5900a5b54
7
+ data.tar.gz: 74d9fb2f09099bf013ae0ea114df3d45f1534ea501dab81a049aa7fa4b6ac5e8e23f10fd4d14b9e06f59f3f822baecc2e8845b44cbe4f1b3455242e0a954dbd8
data/CHANGELOG CHANGED
@@ -1,5 +1,8 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.2.38
4
+ require account_id option for springserve client
5
+
3
6
  ## 0.2.37
4
7
  add ignore_receive_date option for email client to ignore the email receive date when searching for a report
5
8
 
@@ -9,6 +9,8 @@ class AdopsReportScrapper::SpringserveClient < AdopsReportScrapper::BaseClient
9
9
  end
10
10
 
11
11
  def before_quit_with_error
12
+ fail 'please specify springserve account_id' unless @options['account_id']
13
+ @account_id = @options['account_id']
12
14
  end
13
15
 
14
16
  private
@@ -22,7 +24,7 @@ class AdopsReportScrapper::SpringserveClient < AdopsReportScrapper::BaseClient
22
24
 
23
25
  headers = { content_type: :json, accept: :json, authorization: token }
24
26
 
25
- response = RestClient.post "https://video.springserve.com/api/v0/report", { timezone: 'America/New_York', date_range: 'Yesterday', interval: 'cumulative', dimensions: ['country', 'supply_tag_id']}.to_json, headers
27
+ response = RestClient.post "https://video.springserve.com/api/v0/report", { timezone: 'America/New_York', date_range: 'Yesterday', interval: 'cumulative', dimensions: ['country', 'supply_tag_id'], account_id: @account_id }.to_json, headers
26
28
  data = JSON.parse response
27
29
  header = data[0].keys
28
30
  @data = [header]
@@ -1,3 +1,3 @@
1
1
  module AdopsReportScrapper
2
- VERSION = "0.2.37"
2
+ VERSION = "0.2.38"
3
3
  end
data/secret.sample.yml CHANGED
@@ -7,6 +7,8 @@ brightroll:
7
7
  yellowhammer:
8
8
  login: ------
9
9
  secret: ------
10
+ options:
11
+ account_id: ------
10
12
  adaptv:
11
13
  login: ------
12
14
  secret: ------
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.2.37
4
+ version: 0.2.38
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-10-13 00:00:00.000000000 Z
11
+ date: 2017-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient