fluent-plugin-mixpanel 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +3 -2
- data/README.md +1 -1
- data/Rakefile +1 -0
- data/fluent-plugin-mixpanel.gemspec +6 -3
- data/test/helper.rb +0 -14
- data/test/plugin/test_in_http_mixpanel.rb +9 -0
- data/test/plugin/test_mixpanel_ruby_error_handler.rb +2 -0
- data/test/plugin/test_out_mixpanel.rb +2 -0
- metadata +32 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4ff732421c00609c090823ae194c33bb1a7d9c8
|
4
|
+
data.tar.gz: 70324c13ee00a78eec426bfaa7dc576cf7cbc434
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e307e9f0123ed644f2a2940a066daf9370c01a76ab7a07ee3a44a6d8c42c7cb0209402c17e3a6bb64b6c32e6274af9a3c395b2d5b65f1e4c3540172644352b7
|
7
|
+
data.tar.gz: 16cd104e50bf5d3c27574416a7e89184725d6062770ccc283f8c2178b2d01459fb92abc033f262164dfe8bf04bf9921575f4cea09b481325d1b0c6fb69197a17
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.org/hakobera/fluent-plugin-mixpanel.png?branch=master)](https://travis-ci.org/hakobera/fluent-plugin-mixpanel)
|
4
4
|
|
5
|
-
**CAUTION** This plugin does not support Ruby < 2.0.
|
5
|
+
**CAUTION** This plugin does not support Ruby < 2.0, and fluentd >= 0.14.
|
6
6
|
|
7
7
|
## Component
|
8
8
|
|
data/Rakefile
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "fluent-plugin-mixpanel"
|
7
|
-
spec.version = "0.0
|
7
|
+
spec.version = "0.1.0"
|
8
8
|
spec.authors = ["Kazuyuki Honda"]
|
9
9
|
spec.email = ["hakobera@gmail.com"]
|
10
10
|
spec.summary = %q{Fluentd plugin to input/output event track data to mixpanel}
|
@@ -17,10 +17,13 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
|
-
spec.
|
21
|
-
|
20
|
+
spec.required_ruby_version = '>= 2.0.0'
|
21
|
+
|
22
|
+
spec.add_dependency "fluentd", [">= 0.10.58", "< 0.14.0"]
|
23
|
+
spec.add_dependency "mixpanel-ruby", "~> 2.2.0"
|
22
24
|
|
23
25
|
spec.add_development_dependency "rake"
|
26
|
+
spec.add_development_dependency "serverengine", [">= 2.0.4", "< 3.0.0"]
|
24
27
|
spec.add_development_dependency "webmock"
|
25
28
|
spec.add_development_dependency "test-unit", "~> 3.0.2"
|
26
29
|
end
|
data/test/helper.rb
CHANGED
@@ -23,17 +23,3 @@ unless ENV.has_key?('VERBOSE')
|
|
23
23
|
}
|
24
24
|
$log = nulllogger
|
25
25
|
end
|
26
|
-
|
27
|
-
def unused_port
|
28
|
-
s = TCPServer.open(0)
|
29
|
-
port = s.addr[1]
|
30
|
-
s.close
|
31
|
-
port
|
32
|
-
end
|
33
|
-
|
34
|
-
require 'fluent/plugin/mixpanel_ruby_error_handler'
|
35
|
-
require 'fluent/plugin/out_mixpanel'
|
36
|
-
require 'fluent/plugin/in_http_mixpanel'
|
37
|
-
|
38
|
-
class Test::Unit::TestCase
|
39
|
-
end
|
@@ -3,6 +3,8 @@ require 'net/http'
|
|
3
3
|
require 'base64'
|
4
4
|
require 'fluent/test'
|
5
5
|
require 'net/http'
|
6
|
+
require 'serverengine'
|
7
|
+
require 'fluent/plugin/in_http_mixpanel'
|
6
8
|
|
7
9
|
class HttpMixpanelInputTest < Test::Unit::TestCase
|
8
10
|
|
@@ -16,6 +18,13 @@ class HttpMixpanelInputTest < Test::Unit::TestCase
|
|
16
18
|
def shutdown
|
17
19
|
@server.close
|
18
20
|
end
|
21
|
+
|
22
|
+
def unused_port
|
23
|
+
s = TCPServer.open(0)
|
24
|
+
port = s.addr[1]
|
25
|
+
s.close
|
26
|
+
port
|
27
|
+
end
|
19
28
|
end
|
20
29
|
|
21
30
|
def setup
|
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'helper'
|
2
2
|
require 'uri'
|
3
3
|
require 'msgpack'
|
4
|
+
require 'fluent/plugin/out_mixpanel'
|
4
5
|
|
5
6
|
class MixpanelOutputTest < Test::Unit::TestCase
|
6
7
|
|
@@ -12,6 +13,7 @@ class MixpanelOutputTest < Test::Unit::TestCase
|
|
12
13
|
CONFIG = %[
|
13
14
|
project_token test_token
|
14
15
|
distinct_id_key user_id
|
16
|
+
log_level info
|
15
17
|
]
|
16
18
|
|
17
19
|
IMPORT_CONFIG = CONFIG + %[ api_key test_api_key
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-mixpanel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kazuyuki Honda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -16,14 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.10.
|
19
|
+
version: 0.10.58
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.14.0
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.10.
|
29
|
+
version: 0.10.58
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.14.0
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: mixpanel-ruby
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,6 +58,26 @@ dependencies:
|
|
52
58
|
- - ">="
|
53
59
|
- !ruby/object:Gem::Version
|
54
60
|
version: '0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: serverengine
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 2.0.4
|
68
|
+
- - "<"
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 3.0.0
|
71
|
+
type: :development
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 2.0.4
|
78
|
+
- - "<"
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: 3.0.0
|
55
81
|
- !ruby/object:Gem::Dependency
|
56
82
|
name: webmock
|
57
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -116,7 +142,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
116
142
|
requirements:
|
117
143
|
- - ">="
|
118
144
|
- !ruby/object:Gem::Version
|
119
|
-
version:
|
145
|
+
version: 2.0.0
|
120
146
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
147
|
requirements:
|
122
148
|
- - ">="
|
@@ -124,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
150
|
version: '0'
|
125
151
|
requirements: []
|
126
152
|
rubyforge_project:
|
127
|
-
rubygems_version: 2.5.
|
153
|
+
rubygems_version: 2.5.2
|
128
154
|
signing_key:
|
129
155
|
specification_version: 4
|
130
156
|
summary: Fluentd plugin to input/output event track data to mixpanel
|