adops_report_scrapper 0.2.23 → 0.2.24

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: c35a29d6fc5cfcb3c3a6278a218322a76197961b
4
- data.tar.gz: 45285d83a684001446a0abb09855a703f6e54973
3
+ metadata.gz: fb9beb81dde043e82e3c034f4209bb2818645312
4
+ data.tar.gz: 53bd361517c5d4e0044cd0e32f6478d0ceb912db
5
5
  SHA512:
6
- metadata.gz: 45cde7937c665c815c4b00b672ddf64b785d3c87d57023b92d1189b26ff27b55c6f27e29d67e3904912a477ce37663b8ebc70cea0a82129e0ff442371277b770
7
- data.tar.gz: df470afc8451f7acf1e1a5bd07e161edced30016666abaf4d4cc8e229654af3712c45d9e51746c711811cc21970e53af44195470923271543f07ff1ded46d7d4
6
+ metadata.gz: f213278d000ef893acdc3da822897534a02087fac7991e08549228e4e7159ac61e46ae75f2286a220717c6e797781d0013599c75e9cdd789e81a4a7d280ace8a
7
+ data.tar.gz: a12820ed245f5cd5617dca72df8a4339d564d9c4d545bc74ed2549461afd7e702256f59a9345ce664f65338f572a6b25ef417a14e351b712607be70ab0cad109
@@ -41,11 +41,10 @@ class AdopsReportScrapper::PopadsbuyerClient < AdopsReportScrapper::BaseClient
41
41
  end
42
42
 
43
43
  def scrap_hourly
44
- start_date_str = (@date - 1).strftime('%Y-%m-%d')
45
- end_date_str = @date.strftime('%Y-%m-%d')
44
+ date_str = @date.strftime('%Y-%m-%d')
46
45
  time_zone_id = 'America%2FNew_York'
47
46
 
48
- response = RestClient.post "https://www.popads.net/api/report_advertiser?key=#{@secret}&zone=#{time_zone_id}&start=#{start_date_str}%2000%3A00&end=#{end_date_str}%2023%3A59&groups=datetime%3Ahour", {}
47
+ response = RestClient.post "https://www.popads.net/api/report_advertiser?key=#{@secret}&zone=#{time_zone_id}&start=#{date_str}%2000%3A00&end=#{date_str}%2023%3A59&groups=datetime%3Ahour", {}
49
48
 
50
49
  data = JSON.parse response
51
50
  data = data['rows']
@@ -1,3 +1,3 @@
1
1
  module AdopsReportScrapper
2
- VERSION = "0.2.23"
2
+ VERSION = "0.2.24"
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.2.23
4
+ version: 0.2.24
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-06-09 00:00:00.000000000 Z
11
+ date: 2017-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient