embulk-input-google_analytics 0.1.16 → 0.1.17.alpha

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: e0ab37d5e39a76f01a6c0fa0bde5bd6e5fc8fd91
4
- data.tar.gz: cae966f9d4f97e155d9efe1cf3449e2188999716
3
+ metadata.gz: 16f232549d475149fa2551df80303c57c7109774
4
+ data.tar.gz: ed4315355f09e7294b1304086ae81a90b7c0e05d
5
5
  SHA512:
6
- metadata.gz: da5683e8fc3d4562ada3afa2c9a434e9322608f48e2b92d7f8b9a952b428c1b857509509ef8320423724d1d1e7e55f3952c61058988942453f926afc9c81c2e9
7
- data.tar.gz: 7ab3541bd6e9f5bcce7f01d190a1a53d33e45e80f03ed3c3acb97f41c1420baa883f07cbcba1426f7b0322929fd7d05431fc47a6cb617d5c4a7677274d23986c
6
+ metadata.gz: 134bb98046a4a586c1a1ef7d124486bc89d295d5ac76bebded928ba388082ecac9be3e20fd54dc20a088e825001b3c972b51fa4f455056d3290d0d5f65b1fba7
7
+ data.tar.gz: c1f34e67a600002f5171c66057d060481c4f811e1393caa4336f5344126412bdbc2089f356f6b9cdd336f6a775af31b98ca490040544a0bccac69ed3b762aa26
@@ -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.16"
4
+ spec.version = "0.1.17.alpha"
5
5
  spec.authors = ["uu59"]
6
6
  spec.summary = "Google Analytics input plugin for Embulk"
7
7
  spec.description = "Loads records from Google Analytics."
@@ -107,7 +107,7 @@ module Embulk
107
107
  parts = Date._strptime(time_string, date_format)
108
108
  unless parts
109
109
  # strptime was failed. Google API returns unexpected date string.
110
- Embulk.logger.warn("Failed to parse #{task["time_series"]} data. The value is '#{time_string}'(#{time_string.class}) and it doesn't match with '#{date_format}'.")
110
+ raise Embulk::DataError.new("Failed to parse #{task["time_series"]} data. The value is '#{time_string}'(#{time_string.class}) and it doesn't match with '#{date_format}'.")
111
111
  end
112
112
 
113
113
  swap_time_zone do
@@ -180,8 +180,7 @@ module Embulk
180
180
  end
181
181
 
182
182
  test "empty" do
183
- mock(@logger).warn(%Q|Failed to parse ga:dateHour data. The value is ''(String) and it doesn't match with '%Y%m%d%H'.|)
184
- assert_raise do
183
+ assert_raise Embulk::DataError.new(%Q|Failed to parse ga:dateHour data. The value is ''(String) and it doesn't match with '%Y%m%d%H'.|) do
185
184
  @client.time_parse_with_profile_timezone("")
186
185
  end
187
186
  end
@@ -214,8 +213,7 @@ module Embulk
214
213
  end
215
214
 
216
215
  test "empty" do
217
- mock(@logger).warn(%Q|Failed to parse ga:date data. The value is ''(String) and it doesn't match with '%Y%m%d'.|)
218
- assert_raise do
216
+ assert_raise Embulk::DataError.new(%Q|Failed to parse ga:date data. The value is ''(String) and it doesn't match with '%Y%m%d'.|) do
219
217
  @client.time_parse_with_profile_timezone("")
220
218
  end
221
219
  end
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.16
4
+ version: 0.1.17.alpha
5
5
  platform: ruby
6
6
  authors:
7
7
  - uu59
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-06 00:00:00.000000000 Z
11
+ date: 2018-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -248,9 +248,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
248
248
  version: '0'
249
249
  required_rubygems_version: !ruby/object:Gem::Requirement
250
250
  requirements:
251
- - - ">="
251
+ - - ">"
252
252
  - !ruby/object:Gem::Version
253
- version: '0'
253
+ version: 1.3.1
254
254
  requirements: []
255
255
  rubyforge_project:
256
256
  rubygems_version: 2.6.6