embulk-input-mixpanel 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/.travis.yml +64 -6
- data/.travis.yml.erb +46 -0
- data/CHANGELOG.md +4 -0
- data/embulk-input-mixpanel.gemspec +1 -1
- data/gemfiles/embulk-0.6.0-latest +4 -0
- data/gemfiles/embulk-0.6.24 +4 -0
- data/gemfiles/embulk-0.6.25 +4 -0
- data/gemfiles/embulk-0.6.26 +4 -0
- data/gemfiles/embulk-0.6.27 +4 -0
- data/gemfiles/embulk-0.7.0 +4 -0
- data/gemfiles/embulk-0.7.0-latest +4 -0
- data/gemfiles/embulk-0.7.1 +4 -0
- data/gemfiles/embulk-0.7.2 +4 -0
- data/gemfiles/embulk-0.7.3 +4 -0
- data/gemfiles/embulk-0.7.4 +4 -0
- data/gemfiles/embulk-0.7.5 +4 -0
- data/lib/embulk/input/mixpanel.rb +9 -9
- data/lib/embulk/input/mixpanel_api/client.rb +1 -1
- data/test/embulk/input/mixpanel_api/test_client.rb +3 -0
- data/test/embulk/input/test_mixpanel.rb +3 -0
- data/test/override_assert_raise.rb +18 -0
- data/test/prepare_embulk.rb +15 -8
- metadata +45 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9b930812eda7043923b65baf311b686f6a75955
|
4
|
+
data.tar.gz: 9e7c02c4232d7cfa94a0e2fe051d6cc18122a33b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e77beb053f17adedbcb86a87004871721ed08bcca888e7d3b0754e673c3b0ec181231432145732846b005d6ebc84429ab5457aa4bbee5a9e403ce5984c915382
|
7
|
+
data.tar.gz: 8b23002ec143aef8aa686e67f2c58eb7eb2b62fd2d7bc05aa913b773eda93d845dc349543a5d0f9e010784049ca4de7bd58a3056ec8d63343498dbcd0ed4a743
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
jruby-9.0.1.0
|
data/.travis.yml
CHANGED
@@ -1,16 +1,30 @@
|
|
1
1
|
language: ruby
|
2
|
-
|
3
|
-
|
2
|
+
|
3
|
+
jdk: oraclejdk8
|
4
|
+
|
4
5
|
addons:
|
5
6
|
code_climate:
|
6
7
|
repo_token:
|
7
8
|
secure: "opE/ZhRzsEU2Fn6YEnItMD/rMs3O2OHVYQQ7Ly0dAkIc9ZrVMa//ogt4k7h0QGZUettRVV7kawCtRzde+QbOmezTRwWqQJ7Mi6D6qfwlYMz+D9FcufHaCJyLy+dYeBuQqr1d6n/3gVqVGh8MAMGHipYodudCub38DQ1sVWcCMDNNo4PMRFLS0pS839SC80HAS7tutOeaeohRc+Ct5yoY2ZDoTuGtNeJhwqmDAo13RwvVu9aZw97EZPvt8UcaW5oYDnx47kDpKi4XGrTPaWpSm/IitwW11FF+Kevt0RpUS0uVWqg4/6xTjDg++ETG+94ePYrOZGF4ne/CPtC0AtaWF1jgSlL9iu4IR/Awt+2BqawKzCnoSRgCGIHRZApErC3KacadJBaPCrKwf4xxxqRXex4lXcptKRygkG4ic2r+MblyPPwIsc1Wb1QYCeVjIEGWzOgKVEUpT8qN0DAj6KQe/HuyuXKE/FiPIRfkJkRY5oGCNZtzeCzXlC+IqhZYCg6HwcZuk3CbcxRrg5VFKDlL0VWacD/FQoGgfTp3SUmaL6NMcCKSrL0vjEgx98/yM9rsGZlZOU9ioN93PQVgqpI5dl+nm9vKkFyuzW07nNM+/6PNdHbbZBY1OLNd3RSpWVC9TDtZ3Q2gAx25+31TDzD2/3yjJjfdtwIH3bdyrO44MK8="
|
8
9
|
notifications:
|
9
10
|
slack:
|
10
|
-
secure: cAAHcb/HdJK6elr6gfxlotUJdZys8nA/BUb1rKVt7T7EShOjqNOwHo0vZBG5fXQEbUJjHCFAl8tH1N8wz+KLoVErlMmD2OgBKGgvgm3fddkIgGRRvxe8yB0yEFy5yuvfgqJDlwPHZxbwj2Ddb8uTaLd8yzmRzGWNwLyRQTDaQbaKBaB+emP2t/1AilQHyItN02NuW3qcEGr7Hzg+IsKabDRzhMi89RV0xk2eP5iWTYW76ULbbfP3NqBpcVLskAqVQd1YOFUSEb2fdzRj7UuLUUp3C0Kb5gKfXPHb97XuMqwyviakTr02omdaM82NvB8GKn7QKBbcwA1Iz1euinxQQ7MTzJe8wLMH8q205lTpl96CANKwIxrk/HestgEboq97xSp5Wc1Qn1ynnrLOvBYW7EG/e6exguojQmkLkV9P6LW9g4nYsR8UEjyuRd252xch4+b4M3lxtlAXtpWguPfm5ZKhICBsJMlYm6//q1cBlNUOzR0cufCHDTNdlB/YLynvdg1ykFISYARP+5sV2YM9rD/1Rs/396qYr0mNbCh83P9GlZ5NZtWLQePJroHe3iQ18X3YHEcb50OTfRmKNoXTldQBD9iKNkwlFpWfruVdBWT+JRM77+yIV9ORjY7UE4ZtH8HxAg4bX+ey+C5axgxQk569h3CdLmVapFt6wovCSVk=
|
11
|
-
|
12
|
-
|
11
|
+
secure: "cAAHcb/HdJK6elr6gfxlotUJdZys8nA/BUb1rKVt7T7EShOjqNOwHo0vZBG5fXQEbUJjHCFAl8tH1N8wz+KLoVErlMmD2OgBKGgvgm3fddkIgGRRvxe8yB0yEFy5yuvfgqJDlwPHZxbwj2Ddb8uTaLd8yzmRzGWNwLyRQTDaQbaKBaB+emP2t/1AilQHyItN02NuW3qcEGr7Hzg+IsKabDRzhMi89RV0xk2eP5iWTYW76ULbbfP3NqBpcVLskAqVQd1YOFUSEb2fdzRj7UuLUUp3C0Kb5gKfXPHb97XuMqwyviakTr02omdaM82NvB8GKn7QKBbcwA1Iz1euinxQQ7MTzJe8wLMH8q205lTpl96CANKwIxrk/HestgEboq97xSp5Wc1Qn1ynnrLOvBYW7EG/e6exguojQmkLkV9P6LW9g4nYsR8UEjyuRd252xch4+b4M3lxtlAXtpWguPfm5ZKhICBsJMlYm6//q1cBlNUOzR0cufCHDTNdlB/YLynvdg1ykFISYARP+5sV2YM9rD/1Rs/396qYr0mNbCh83P9GlZ5NZtWLQePJroHe3iQ18X3YHEcb50OTfRmKNoXTldQBD9iKNkwlFpWfruVdBWT+JRM77+yIV9ORjY7UE4ZtH8HxAg4bX+ey+C5axgxQk569h3CdLmVapFt6wovCSVk="
|
12
|
+
|
13
|
+
before_install:
|
14
|
+
- |
|
15
|
+
# Currently, Travis can't treat jruby 9.0.1.0
|
16
|
+
if [[ ${TRAVIS_RUBY_VERSION} = "jruby-9.0.0.0" ]];then
|
17
|
+
rvm get head
|
18
|
+
rvm use jruby-9.0.1.0 --install
|
19
|
+
ruby -v
|
20
|
+
fi
|
21
|
+
|
22
|
+
rvm:
|
23
|
+
- jruby-19mode
|
24
|
+
- jruby-9.0.0.0
|
25
|
+
|
13
26
|
gemfile:
|
27
|
+
- gemfiles/embulk-0.6.0-latest
|
14
28
|
- gemfiles/embulk-0.6.16
|
15
29
|
- gemfiles/embulk-0.6.17
|
16
30
|
- gemfiles/embulk-0.6.18
|
@@ -19,8 +33,52 @@ gemfile:
|
|
19
33
|
- gemfiles/embulk-0.6.21
|
20
34
|
- gemfiles/embulk-0.6.22
|
21
35
|
- gemfiles/embulk-0.6.23
|
36
|
+
- gemfiles/embulk-0.6.24
|
37
|
+
- gemfiles/embulk-0.6.25
|
38
|
+
- gemfiles/embulk-0.6.26
|
39
|
+
- gemfiles/embulk-0.6.27
|
40
|
+
- gemfiles/embulk-0.7.0
|
41
|
+
- gemfiles/embulk-0.7.0-latest
|
42
|
+
- gemfiles/embulk-0.7.1
|
43
|
+
- gemfiles/embulk-0.7.2
|
44
|
+
- gemfiles/embulk-0.7.3
|
45
|
+
- gemfiles/embulk-0.7.4
|
46
|
+
- gemfiles/embulk-0.7.5
|
22
47
|
- gemfiles/embulk-latest
|
48
|
+
|
23
49
|
matrix:
|
50
|
+
exclude:
|
51
|
+
- jdk: oraclejdk8 # Ignore all matrix at first, use `include` to allow build
|
52
|
+
include:
|
53
|
+
- {rvm: jruby-19mode, gemfile: gemfiles/embulk-0.6.0-latest}
|
54
|
+
- {rvm: jruby-19mode, gemfile: gemfiles/embulk-0.6.16}
|
55
|
+
- {rvm: jruby-19mode, gemfile: gemfiles/embulk-0.6.17}
|
56
|
+
- {rvm: jruby-19mode, gemfile: gemfiles/embulk-0.6.18}
|
57
|
+
- {rvm: jruby-19mode, gemfile: gemfiles/embulk-0.6.19}
|
58
|
+
- {rvm: jruby-19mode, gemfile: gemfiles/embulk-0.6.20}
|
59
|
+
- {rvm: jruby-19mode, gemfile: gemfiles/embulk-0.6.21}
|
60
|
+
- {rvm: jruby-19mode, gemfile: gemfiles/embulk-0.6.22}
|
61
|
+
- {rvm: jruby-19mode, gemfile: gemfiles/embulk-0.6.23}
|
62
|
+
- {rvm: jruby-19mode, gemfile: gemfiles/embulk-0.6.24}
|
63
|
+
- {rvm: jruby-19mode, gemfile: gemfiles/embulk-0.6.25}
|
64
|
+
- {rvm: jruby-19mode, gemfile: gemfiles/embulk-0.6.26}
|
65
|
+
- {rvm: jruby-19mode, gemfile: gemfiles/embulk-0.6.27}
|
66
|
+
- {rvm: jruby-9.0.0.0, gemfile: gemfiles/embulk-0.7.0}
|
67
|
+
- {rvm: jruby-9.0.0.0, gemfile: gemfiles/embulk-0.7.0-latest}
|
68
|
+
- {rvm: jruby-9.0.0.0, gemfile: gemfiles/embulk-0.7.1}
|
69
|
+
- {rvm: jruby-9.0.0.0, gemfile: gemfiles/embulk-0.7.2}
|
70
|
+
- {rvm: jruby-9.0.0.0, gemfile: gemfiles/embulk-0.7.3}
|
71
|
+
- {rvm: jruby-9.0.0.0, gemfile: gemfiles/embulk-0.7.4}
|
72
|
+
- {rvm: jruby-9.0.0.0, gemfile: gemfiles/embulk-0.7.5}
|
73
|
+
- {rvm: jruby-9.0.0.0, gemfile: gemfiles/embulk-latest}
|
74
|
+
|
75
|
+
|
24
76
|
allow_failures:
|
25
77
|
- gemfile: gemfiles/embulk-0.6.22
|
26
|
-
- gemfile: gemfiles/embulk-
|
78
|
+
- gemfile: gemfiles/embulk-0.7.0
|
79
|
+
- gemfile: gemfiles/embulk-0.7.1
|
80
|
+
# Ignore failure for *-latest
|
81
|
+
- gemfile: embulk-0.6.0-latest
|
82
|
+
- gemfile: embulk-0.7.0-latest
|
83
|
+
- gemfile: embulk-latest
|
84
|
+
|
data/.travis.yml.erb
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
language: ruby
|
2
|
+
|
3
|
+
jdk: oraclejdk8
|
4
|
+
|
5
|
+
addons:
|
6
|
+
code_climate:
|
7
|
+
repo_token:
|
8
|
+
secure: "opE/ZhRzsEU2Fn6YEnItMD/rMs3O2OHVYQQ7Ly0dAkIc9ZrVMa//ogt4k7h0QGZUettRVV7kawCtRzde+QbOmezTRwWqQJ7Mi6D6qfwlYMz+D9FcufHaCJyLy+dYeBuQqr1d6n/3gVqVGh8MAMGHipYodudCub38DQ1sVWcCMDNNo4PMRFLS0pS839SC80HAS7tutOeaeohRc+Ct5yoY2ZDoTuGtNeJhwqmDAo13RwvVu9aZw97EZPvt8UcaW5oYDnx47kDpKi4XGrTPaWpSm/IitwW11FF+Kevt0RpUS0uVWqg4/6xTjDg++ETG+94ePYrOZGF4ne/CPtC0AtaWF1jgSlL9iu4IR/Awt+2BqawKzCnoSRgCGIHRZApErC3KacadJBaPCrKwf4xxxqRXex4lXcptKRygkG4ic2r+MblyPPwIsc1Wb1QYCeVjIEGWzOgKVEUpT8qN0DAj6KQe/HuyuXKE/FiPIRfkJkRY5oGCNZtzeCzXlC+IqhZYCg6HwcZuk3CbcxRrg5VFKDlL0VWacD/FQoGgfTp3SUmaL6NMcCKSrL0vjEgx98/yM9rsGZlZOU9ioN93PQVgqpI5dl+nm9vKkFyuzW07nNM+/6PNdHbbZBY1OLNd3RSpWVC9TDtZ3Q2gAx25+31TDzD2/3yjJjfdtwIH3bdyrO44MK8="
|
9
|
+
notifications:
|
10
|
+
slack:
|
11
|
+
secure: "cAAHcb/HdJK6elr6gfxlotUJdZys8nA/BUb1rKVt7T7EShOjqNOwHo0vZBG5fXQEbUJjHCFAl8tH1N8wz+KLoVErlMmD2OgBKGgvgm3fddkIgGRRvxe8yB0yEFy5yuvfgqJDlwPHZxbwj2Ddb8uTaLd8yzmRzGWNwLyRQTDaQbaKBaB+emP2t/1AilQHyItN02NuW3qcEGr7Hzg+IsKabDRzhMi89RV0xk2eP5iWTYW76ULbbfP3NqBpcVLskAqVQd1YOFUSEb2fdzRj7UuLUUp3C0Kb5gKfXPHb97XuMqwyviakTr02omdaM82NvB8GKn7QKBbcwA1Iz1euinxQQ7MTzJe8wLMH8q205lTpl96CANKwIxrk/HestgEboq97xSp5Wc1Qn1ynnrLOvBYW7EG/e6exguojQmkLkV9P6LW9g4nYsR8UEjyuRd252xch4+b4M3lxtlAXtpWguPfm5ZKhICBsJMlYm6//q1cBlNUOzR0cufCHDTNdlB/YLynvdg1ykFISYARP+5sV2YM9rD/1Rs/396qYr0mNbCh83P9GlZ5NZtWLQePJroHe3iQ18X3YHEcb50OTfRmKNoXTldQBD9iKNkwlFpWfruVdBWT+JRM77+yIV9ORjY7UE4ZtH8HxAg4bX+ey+C5axgxQk569h3CdLmVapFt6wovCSVk="
|
12
|
+
|
13
|
+
before_install:
|
14
|
+
- |
|
15
|
+
# Currently, Travis can't treat jruby 9.0.1.0
|
16
|
+
if [[ ${TRAVIS_RUBY_VERSION} = "jruby-9.0.0.0" ]];then
|
17
|
+
rvm get head
|
18
|
+
rvm use jruby-9.0.1.0 --install
|
19
|
+
ruby -v
|
20
|
+
fi
|
21
|
+
|
22
|
+
rvm:
|
23
|
+
- jruby-19mode
|
24
|
+
- jruby-9.0.0.0
|
25
|
+
|
26
|
+
gemfile:
|
27
|
+
<% versions.each do |file| -%>
|
28
|
+
- gemfiles/<%= file %>
|
29
|
+
<% end -%>
|
30
|
+
|
31
|
+
matrix:
|
32
|
+
exclude:
|
33
|
+
- jdk: oraclejdk8 # Ignore all matrix at first, use `include` to allow build
|
34
|
+
include:
|
35
|
+
<% matrix.each do |m| -%>
|
36
|
+
<%= m %>
|
37
|
+
<% end %>
|
38
|
+
|
39
|
+
allow_failures:
|
40
|
+
- gemfile: gemfiles/embulk-0.6.22
|
41
|
+
- gemfile: gemfiles/embulk-0.7.0
|
42
|
+
- gemfile: gemfiles/embulk-0.7.1
|
43
|
+
# Ignore failure for *-latest
|
44
|
+
<% versions.find_all{|file| file.to_s.match(/-latest/)}.each do |file| -%>
|
45
|
+
- gemfile: <%= file %>
|
46
|
+
<% end %>
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## 0.3.2 - 2015-10-06
|
2
|
+
|
3
|
+
* [enhancement] Support embulk 0.7 [#25](https://github.com/treasure-data/embulk-input-mixpanel/pull/25)
|
4
|
+
|
1
5
|
## 0.3.1 - 2015-09-08
|
2
6
|
|
3
7
|
* [enhancement] Show ignore dates as range [#23](https://github.com/treasure-data/embulk-input-mixpanel/pull/23) [[Reported by @muga](https://github.com/treasure-data/embulk-input-mixpanel/issues/20). Thanks!!]
|
@@ -22,7 +22,7 @@ module Embulk
|
|
22
22
|
from_date_str = config.param(:from_date, :string, default: (Date.today - 2).to_s)
|
23
23
|
from_date = Date.parse(from_date_str)
|
24
24
|
rescue ArgumentError # invalid date
|
25
|
-
raise ConfigError
|
25
|
+
raise ConfigError.new "from_date '#{from_date_str}' is invalid date"
|
26
26
|
end
|
27
27
|
|
28
28
|
if from_date > Date.today - 1
|
@@ -36,7 +36,7 @@ module Embulk
|
|
36
36
|
# generated by from_date and yeasterday.
|
37
37
|
dates = from_date..(Date.today - 1)
|
38
38
|
elsif days < 1
|
39
|
-
raise ConfigError
|
39
|
+
raise ConfigError.new "days '#{days}' is invalid. Please specify bigger number than 0."
|
40
40
|
else
|
41
41
|
# When 'days' is specified in config file and it is satisfied,
|
42
42
|
# so it is used for dates.
|
@@ -64,7 +64,7 @@ module Embulk
|
|
64
64
|
TZInfo::Timezone.get(task[:timezone])
|
65
65
|
rescue => e
|
66
66
|
Embulk.logger.error "'#{task[:timezone]}' is invalid timezone"
|
67
|
-
raise ConfigError
|
67
|
+
raise ConfigError.new e.message
|
68
68
|
end
|
69
69
|
|
70
70
|
columns = []
|
@@ -80,12 +80,12 @@ module Embulk
|
|
80
80
|
end
|
81
81
|
|
82
82
|
def self.resume(task, columns, count, &control)
|
83
|
-
|
83
|
+
task_reports = yield(task, columns, count)
|
84
84
|
|
85
85
|
# NOTE: If this plugin supports to run by multi threads, this
|
86
86
|
# implementation is terrible.
|
87
|
-
|
88
|
-
next_to_date = Date.parse(
|
87
|
+
task_report = task_reports.first
|
88
|
+
next_to_date = Date.parse(task_report[:to_date]).next
|
89
89
|
|
90
90
|
next_config_diff = {from_date: next_to_date.to_s}
|
91
91
|
return next_config_diff
|
@@ -99,7 +99,7 @@ module Embulk
|
|
99
99
|
from_date = Date.parse(from_date_str)
|
100
100
|
|
101
101
|
if from_date > Date.today - 1
|
102
|
-
raise ConfigError
|
102
|
+
raise ConfigError.new "Please specify date later than yesterday (inclusive) as 'from_date'"
|
103
103
|
end
|
104
104
|
|
105
105
|
# NOTE: to_date is yeasterday if from_date..Date.Today doesn't have
|
@@ -170,8 +170,8 @@ module Embulk
|
|
170
170
|
|
171
171
|
page_builder.finish
|
172
172
|
|
173
|
-
|
174
|
-
return
|
173
|
+
task_report = {to_date: @dates.last || (Date.today - 1)}
|
174
|
+
return task_report
|
175
175
|
end
|
176
176
|
|
177
177
|
private
|
@@ -27,7 +27,7 @@ module Embulk
|
|
27
27
|
Embulk.logger.debug "response code: #{response.code}"
|
28
28
|
|
29
29
|
if (400..499).include?(response.code)
|
30
|
-
raise ConfigError
|
30
|
+
raise ConfigError.new response.body
|
31
31
|
elsif response.code >= 500
|
32
32
|
raise RuntimeError, response.body
|
33
33
|
end
|
@@ -1,9 +1,12 @@
|
|
1
1
|
require "embulk/input/mixpanel_api/client"
|
2
|
+
require "override_assert_raise"
|
2
3
|
|
3
4
|
module Embulk
|
4
5
|
module Input
|
5
6
|
module MixpanelApi
|
6
7
|
class ClientTest < Test::Unit::TestCase
|
8
|
+
include OverrideAssertRaise
|
9
|
+
|
7
10
|
API_KEY = "api_key".freeze
|
8
11
|
API_SECRET = "api_secret".freeze
|
9
12
|
|
@@ -1,10 +1,13 @@
|
|
1
1
|
require "prepare_embulk"
|
2
|
+
require "override_assert_raise"
|
2
3
|
require "embulk/input/mixpanel"
|
3
4
|
require "json"
|
4
5
|
|
5
6
|
module Embulk
|
6
7
|
module Input
|
7
8
|
class MixpanelTest < Test::Unit::TestCase
|
9
|
+
include OverrideAssertRaise
|
10
|
+
|
8
11
|
API_KEY = "api_key".freeze
|
9
12
|
API_SECRET = "api_secret".freeze
|
10
13
|
FROM_DATE = "2015-02-22".freeze
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module OverrideAssertRaise
|
2
|
+
# NOTE: Embulk 0.7.1+ required to raise ConfigError to do as `ConfigError.new("message")`,
|
3
|
+
# original `assert_raise` method can't catch that, but `begin .. rescue` can.
|
4
|
+
# So we override assert_raise as below.
|
5
|
+
def assert_raise(expected_class = StandardError, &block)
|
6
|
+
begin
|
7
|
+
block.call
|
8
|
+
assert_equal expected_class, nil
|
9
|
+
rescue ::Test::Unit::AssertionFailedError => e
|
10
|
+
# failed assert raises this Error and that extends StandardError, so rescue it first
|
11
|
+
raise e
|
12
|
+
rescue expected_class
|
13
|
+
assert true # passed
|
14
|
+
rescue => e
|
15
|
+
assert_equal(expected_class, e.class) # not expected one raised
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/test/prepare_embulk.rb
CHANGED
@@ -1,10 +1,17 @@
|
|
1
|
-
|
1
|
+
module PrepareEmbulk
|
2
|
+
require "embulk/command/embulk_run"
|
2
3
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
if Embulk.respond_to?(:home)
|
5
|
+
# keep compatibility for Embulk 0.6.x
|
6
|
+
classpath_dir = Embulk.home("classpath")
|
7
|
+
jars = Dir.entries(classpath_dir).select{|f| f =~ /\.jar$/ }.sort
|
8
|
+
jars.each do |jar|
|
9
|
+
require File.join(classpath_dir, jar)
|
10
|
+
end
|
11
|
+
require "embulk/java/bootstrap"
|
12
|
+
require "embulk"
|
13
|
+
else
|
14
|
+
require "embulk"
|
15
|
+
Embulk.setup
|
16
|
+
end
|
7
17
|
end
|
8
|
-
require "embulk/java/bootstrap"
|
9
|
-
|
10
|
-
require "embulk"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-input-mixpanel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yoshihara
|
@@ -9,12 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-10-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
name: httpclient
|
@@ -22,13 +22,13 @@ dependencies:
|
|
22
22
|
type: :runtime
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
name: tzinfo
|
@@ -36,13 +36,13 @@ dependencies:
|
|
36
36
|
type: :runtime
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '1.0'
|
48
48
|
name: bundler
|
@@ -50,13 +50,13 @@ dependencies:
|
|
50
50
|
type: :development
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - ~>
|
53
|
+
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '1.0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '10.0'
|
62
62
|
name: rake
|
@@ -64,16 +64,16 @@ dependencies:
|
|
64
64
|
type: :development
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '10.0'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 0.6.16
|
76
|
-
- - <
|
76
|
+
- - "<"
|
77
77
|
- !ruby/object:Gem::Version
|
78
78
|
version: '1.0'
|
79
79
|
name: embulk
|
@@ -81,16 +81,16 @@ dependencies:
|
|
81
81
|
type: :development
|
82
82
|
version_requirements: !ruby/object:Gem::Requirement
|
83
83
|
requirements:
|
84
|
-
- -
|
84
|
+
- - ">="
|
85
85
|
- !ruby/object:Gem::Version
|
86
86
|
version: 0.6.16
|
87
|
-
- - <
|
87
|
+
- - "<"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '1.0'
|
90
90
|
- !ruby/object:Gem::Dependency
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
|
-
- -
|
93
|
+
- - ">="
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: '0'
|
96
96
|
name: pry
|
@@ -98,13 +98,13 @@ dependencies:
|
|
98
98
|
type: :development
|
99
99
|
version_requirements: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
- !ruby/object:Gem::Dependency
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
|
-
- -
|
107
|
+
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '0'
|
110
110
|
name: test-unit
|
@@ -112,13 +112,13 @@ dependencies:
|
|
112
112
|
type: :development
|
113
113
|
version_requirements: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
- !ruby/object:Gem::Dependency
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
|
-
- -
|
121
|
+
- - ">="
|
122
122
|
- !ruby/object:Gem::Version
|
123
123
|
version: '0'
|
124
124
|
name: test-unit-rr
|
@@ -126,13 +126,13 @@ dependencies:
|
|
126
126
|
type: :development
|
127
127
|
version_requirements: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
- !ruby/object:Gem::Dependency
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|
134
134
|
requirements:
|
135
|
-
- -
|
135
|
+
- - ">="
|
136
136
|
- !ruby/object:Gem::Version
|
137
137
|
version: '0'
|
138
138
|
name: codeclimate-test-reporter
|
@@ -140,13 +140,13 @@ dependencies:
|
|
140
140
|
type: :development
|
141
141
|
version_requirements: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- -
|
143
|
+
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '0'
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
147
|
requirement: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
|
-
- -
|
149
|
+
- - ">="
|
150
150
|
- !ruby/object:Gem::Version
|
151
151
|
version: '0'
|
152
152
|
name: everyleaf-embulk_helper
|
@@ -154,7 +154,7 @@ dependencies:
|
|
154
154
|
type: :development
|
155
155
|
version_requirements: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- -
|
157
|
+
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: '0'
|
160
160
|
description: Loads records from Mixpanel.
|
@@ -165,14 +165,17 @@ executables: []
|
|
165
165
|
extensions: []
|
166
166
|
extra_rdoc_files: []
|
167
167
|
files:
|
168
|
-
- .gitignore
|
169
|
-
- .
|
168
|
+
- ".gitignore"
|
169
|
+
- ".ruby-version"
|
170
|
+
- ".travis.yml"
|
171
|
+
- ".travis.yml.erb"
|
170
172
|
- CHANGELOG.md
|
171
173
|
- Gemfile
|
172
174
|
- LICENSE
|
173
175
|
- README.md
|
174
176
|
- Rakefile
|
175
177
|
- embulk-input-mixpanel.gemspec
|
178
|
+
- gemfiles/embulk-0.6.0-latest
|
176
179
|
- gemfiles/embulk-0.6.16
|
177
180
|
- gemfiles/embulk-0.6.17
|
178
181
|
- gemfiles/embulk-0.6.18
|
@@ -181,12 +184,24 @@ files:
|
|
181
184
|
- gemfiles/embulk-0.6.21
|
182
185
|
- gemfiles/embulk-0.6.22
|
183
186
|
- gemfiles/embulk-0.6.23
|
187
|
+
- gemfiles/embulk-0.6.24
|
188
|
+
- gemfiles/embulk-0.6.25
|
189
|
+
- gemfiles/embulk-0.6.26
|
190
|
+
- gemfiles/embulk-0.6.27
|
191
|
+
- gemfiles/embulk-0.7.0
|
192
|
+
- gemfiles/embulk-0.7.0-latest
|
193
|
+
- gemfiles/embulk-0.7.1
|
194
|
+
- gemfiles/embulk-0.7.2
|
195
|
+
- gemfiles/embulk-0.7.3
|
196
|
+
- gemfiles/embulk-0.7.4
|
197
|
+
- gemfiles/embulk-0.7.5
|
184
198
|
- gemfiles/embulk-latest
|
185
199
|
- gemfiles/template.erb
|
186
200
|
- lib/embulk/input/mixpanel.rb
|
187
201
|
- lib/embulk/input/mixpanel_api/client.rb
|
188
202
|
- test/embulk/input/mixpanel_api/test_client.rb
|
189
203
|
- test/embulk/input/test_mixpanel.rb
|
204
|
+
- test/override_assert_raise.rb
|
190
205
|
- test/prepare_embulk.rb
|
191
206
|
- test/run-test.rb
|
192
207
|
homepage: https://github.com/treasure-data/embulk-input-mixpanel
|
@@ -199,22 +214,23 @@ require_paths:
|
|
199
214
|
- lib
|
200
215
|
required_ruby_version: !ruby/object:Gem::Requirement
|
201
216
|
requirements:
|
202
|
-
- -
|
217
|
+
- - ">="
|
203
218
|
- !ruby/object:Gem::Version
|
204
219
|
version: '0'
|
205
220
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
206
221
|
requirements:
|
207
|
-
- -
|
222
|
+
- - ">="
|
208
223
|
- !ruby/object:Gem::Version
|
209
224
|
version: '0'
|
210
225
|
requirements: []
|
211
226
|
rubyforge_project:
|
212
|
-
rubygems_version: 2.4.
|
227
|
+
rubygems_version: 2.4.8
|
213
228
|
signing_key:
|
214
229
|
specification_version: 4
|
215
230
|
summary: Mixpanel input plugin for Embulk
|
216
231
|
test_files:
|
217
232
|
- test/embulk/input/mixpanel_api/test_client.rb
|
218
233
|
- test/embulk/input/test_mixpanel.rb
|
234
|
+
- test/override_assert_raise.rb
|
219
235
|
- test/prepare_embulk.rb
|
220
236
|
- test/run-test.rb
|