embulk-input-google_analytics 0.1.12 → 0.1.13

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: d6660967199ce0831bd8d265a6a8421d68d64efb
4
- data.tar.gz: fb0b657eb49c9e0b685e608d5e2edb186e154562
3
+ metadata.gz: 4c1608db16bb48a4978e48708aca23d4846125ea
4
+ data.tar.gz: dd94cc151188181dbcadeb3b90ca1f20956f52ea
5
5
  SHA512:
6
- metadata.gz: 9b3d6cceabd655cf706ec940b90b9bf97f4a04daa25a4065d5cc06a669d9146ea581743cbe7c4fa4d762839f8e81ddfefd85fc1109b75a0ecc37d6e02a838e7b
7
- data.tar.gz: 6dcfc08461ee9d880025d845605aa45411741b9a5371c16f020970ec0548fa3853ff9f37380f18651f74f31c5bd87e56dc77ac350c0b51abdd7048d41519c361
6
+ metadata.gz: fe605f2a9af29587bb97dbee7a343aab9d6a9723a823cabce481a531f71e11760891e2991ddd1f3f92d7ce5146d60ddd730a989ab59903e093b6b408081956c9
7
+ data.tar.gz: 058c0d0bb2d27c0adf828a971ce47ab8202a38fc0a779839461571619f126e56c51ef8d6538d617e4c57f3aeef2d3cc112305adffe1a8428614435fc78dcc274
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.1.13 - 2017-03-28
2
+ * Fixed bug `last_record_time` in `preview` mode [#20](https://github.com/treasure-data/embulk-input-google_analytics/pull/20)
3
+
1
4
  ## 0.1.12 - 2017-01-31
2
5
  * Support 'fooXXbar' column names [#19](https://github.com/treasure-data/embulk-input-google_analytics/pull/19)
3
6
 
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "embulk-input-google_analytics"
4
- spec.version = "0.1.12"
4
+ spec.version = "0.1.13"
5
5
  spec.authors = ["uu59"]
6
6
  spec.summary = "Google Analytics input plugin for Embulk"
7
7
  spec.description = "Loads records from Google Analytics."
@@ -52,12 +52,14 @@ module Embulk
52
52
  met = metrics.zip(row[:metrics].first[:values]).to_h
53
53
  format_row = dim.merge(met)
54
54
  raw_time = format_row[task["time_series"]]
55
+ Embulk.logger.info "#{raw_time}"
55
56
  optimize_value_by_query_limit?(raw_time)
56
57
  next if too_early_data?(raw_time)
57
58
  format_row[task["time_series"]] = time_parse_with_profile_timezone(raw_time)
58
59
  format_row["view_id"] = view_id
59
60
  block.call format_row
60
61
  end
62
+ Embulk.logger.info "still here"
61
63
 
62
64
  break if preview?
63
65
 
@@ -103,7 +103,7 @@ module Embulk
103
103
  latest_time_series = nil
104
104
  client.each_report_row do |row|
105
105
  time = row[task["time_series"]]
106
- next if last_record_time && time <= last_record_time
106
+ next if !preview? && last_record_time && time <= last_record_time
107
107
 
108
108
  values = row.values_at(*columns)
109
109
  page_builder.add values
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-google_analytics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - uu59
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-01 00:00:00.000000000 Z
11
+ date: 2017-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -253,7 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
253
253
  version: '0'
254
254
  requirements: []
255
255
  rubyforge_project:
256
- rubygems_version: 2.6.6
256
+ rubygems_version: 2.6.4
257
257
  signing_key:
258
258
  specification_version: 4
259
259
  summary: Google Analytics input plugin for Embulk