fluent-plugin-sentry 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +17 -3
- data/Appraisals +8 -0
- data/fluent-plugin-sentry.gemspec +3 -2
- data/gemfiles/fluentd_v0.10.gemfile +7 -0
- data/gemfiles/fluentd_v0.12.gemfile +7 -0
- data/test/plugin/test_out_sentry.rb +8 -3
- metadata +19 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b29074c81d05ba028cfcf7c9cc07075333fddd9
|
4
|
+
data.tar.gz: 7230913a91bfaada903e5f9dd4cd2d2766697827
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e444ca823a006ebcfb0de7d92fbda3897ee5f316efbf20450b20151058497c4280ee9a990d9ac078d026ba16249c8dc2bb99b5e5ca1445f0938b31b87df8beaf
|
7
|
+
data.tar.gz: 2a47b0685faa5bc35f2cfbd3dfc020ee0fb7ed399e774b5138b796e4f69e95d1a905eeed164b2ef4d39d23ebe7c8c273ffeda4f252bc9f5fb655b10829909f80
|
data/.travis.yml
CHANGED
@@ -1,11 +1,25 @@
|
|
1
1
|
language: ruby
|
2
2
|
|
3
3
|
rvm:
|
4
|
-
- 2.2
|
4
|
+
- 2.2
|
5
5
|
- 2.1
|
6
|
-
- 2.0.0
|
7
|
-
- 1.9.3
|
8
6
|
|
9
7
|
before_script:
|
10
8
|
- export RAILS_ENV=default
|
11
9
|
|
10
|
+
gemfile:
|
11
|
+
- Gemfile
|
12
|
+
- gemfiles/fluentd_v0.10.gemfile
|
13
|
+
- gemfiles/fluentd_v0.12.gemfile
|
14
|
+
|
15
|
+
# to avoid travis-ci issue since 2015-12-25
|
16
|
+
before_install:
|
17
|
+
- gem update bundler
|
18
|
+
|
19
|
+
matrix:
|
20
|
+
include:
|
21
|
+
- rvm: 1.9.3
|
22
|
+
gemfile: gemfiles/fluentd_v0.10.gemfile
|
23
|
+
- rvm: 2.0.0
|
24
|
+
gemfile: gemfiles/fluentd_v0.10.gemfile
|
25
|
+
|
data/Appraisals
ADDED
@@ -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-sentry"
|
7
|
-
spec.version = "0.0.
|
7
|
+
spec.version = "0.0.3"
|
8
8
|
spec.authors = ["Kentaro Yoshida"]
|
9
9
|
spec.email = ["y.ken.studio@gmail.com"]
|
10
10
|
spec.summary = %q{Fluentd output plugin that sends aggregated errors/exception events to Sentry. Sentry is a event logging and aggregation platform.}
|
@@ -22,7 +22,8 @@ Gem::Specification.new do |spec|
|
|
22
22
|
if defined?(RUBY_VERSION) && RUBY_VERSION > '2.2'
|
23
23
|
spec.add_development_dependency "test-unit", '~> 3'
|
24
24
|
end
|
25
|
-
|
25
|
+
spec.add_development_dependency "appraisal"
|
26
|
+
|
26
27
|
spec.add_runtime_dependency "fluentd"
|
27
28
|
spec.add_runtime_dependency "sentry-raven", "~> 0.15.0"
|
28
29
|
end
|
@@ -16,8 +16,13 @@ class SentryOutputTest < Test::Unit::TestCase
|
|
16
16
|
remove_tag_prefix input.
|
17
17
|
]
|
18
18
|
|
19
|
-
def create_driver(conf=CONFIG,tag='test')
|
20
|
-
|
19
|
+
def create_driver(conf=CONFIG,tag='test',use_v1=false)
|
20
|
+
require 'fluent/version'
|
21
|
+
if Gem::Version.new(Fluent::VERSION) < Gem::Version.new('0.12')
|
22
|
+
Fluent::Test::OutputTestDriver.new(Fluent::SentryOutput, tag).configure(conf, use_v1)
|
23
|
+
else
|
24
|
+
Fluent::Test::BufferedOutputTestDriver.new(Fluent::SentryOutput, tag).configure(conf, use_v1)
|
25
|
+
end
|
21
26
|
end
|
22
27
|
|
23
28
|
def stub_post(url="https://app.getsentry.com/api/12345/store/")
|
@@ -60,10 +65,10 @@ class SentryOutputTest < Test::Unit::TestCase
|
|
60
65
|
end
|
61
66
|
p @body
|
62
67
|
emits = d1.emits
|
68
|
+
timestamp = Time.now.utc.strftime('%Y-%m-%dT%H:%M:%S')
|
63
69
|
assert_equal 0, emits.length
|
64
70
|
assert_equal 'application/octet-stream', @content_type
|
65
71
|
assert_equal emit_message, @body['message']
|
66
|
-
timestamp = Time.now.utc.strftime('%Y-%m-%dT%H:%M:%S')
|
67
72
|
assert_equal timestamp, @body['timestamp']
|
68
73
|
assert_equal emit_level, @body['level']
|
69
74
|
assert_equal 'fluentd', @body['logger']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-sentry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kentaro Yoshida
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '3'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: appraisal
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: fluentd
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -103,11 +117,14 @@ extra_rdoc_files: []
|
|
103
117
|
files:
|
104
118
|
- ".gitignore"
|
105
119
|
- ".travis.yml"
|
120
|
+
- Appraisals
|
106
121
|
- Gemfile
|
107
122
|
- LICENSE
|
108
123
|
- README.md
|
109
124
|
- Rakefile
|
110
125
|
- fluent-plugin-sentry.gemspec
|
126
|
+
- gemfiles/fluentd_v0.10.gemfile
|
127
|
+
- gemfiles/fluentd_v0.12.gemfile
|
111
128
|
- lib/fluent/plugin/out_sentry.rb
|
112
129
|
- test/helper.rb
|
113
130
|
- test/plugin/test_out_sentry.rb
|