fluent-plugin-hipchat 0.1.7 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -4
- data/VERSION +1 -1
- data/fluent-plugin-hipchat.gemspec +1 -0
- data/lib/fluent/plugin/out_hipchat.rb +4 -7
- data/test/plugin/out_hipchat.rb +13 -0
- data/test/test_helper.rb +1 -6
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 956ca8f2c269a901d1afd66f55926fd421f2953d
|
4
|
+
data.tar.gz: a7968c4b26d1d73374ef829508494b1760a112fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 745a459a8b4b8518ac996e584315703850011cc2d0e2f05aee46de958769949e4f37526ea9c2bc223d2f9b86854b250579ff01e32b03dd44fdda3d078bddc1b4
|
7
|
+
data.tar.gz: 0d997194930e335c75745bfc449e25107dc867a1914e0e2f39c9af7a2d651ec08f8843055cdd38aa343438d7538edff20e48b7a205fad541ff1ec3655ea9d36f
|
data/.travis.yml
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
@@ -7,10 +7,10 @@ module Fluent
|
|
7
7
|
|
8
8
|
config_param :api_token, :string, :secret => true
|
9
9
|
config_param :default_room, :string, :default => nil
|
10
|
-
config_param :default_color, :string, :default =>
|
11
|
-
config_param :default_from, :string, :default =>
|
12
|
-
config_param :default_notify, :bool, :default =>
|
13
|
-
config_param :default_format, :string, :default =>
|
10
|
+
config_param :default_color, :string, :default => 'yellow'
|
11
|
+
config_param :default_from, :string, :default => 'fluentd'
|
12
|
+
config_param :default_notify, :bool, :default => false
|
13
|
+
config_param :default_format, :string, :default => 'html'
|
14
14
|
config_param :key_name, :string, :default => 'message'
|
15
15
|
config_param :default_timeout, :time, :default => nil
|
16
16
|
config_param :http_proxy_host, :string, :default => nil
|
@@ -31,10 +31,7 @@ module Fluent
|
|
31
31
|
|
32
32
|
@hipchat = HipChat::API.new(conf['api_token'])
|
33
33
|
@default_room = conf['default_room']
|
34
|
-
@default_from = conf['default_from'] || 'fluentd'
|
35
34
|
@default_notify = conf['default_notify'] || 0
|
36
|
-
@default_color = conf['default_color'] || 'yellow'
|
37
|
-
@default_format = conf['default_format'] || 'html'
|
38
35
|
@default_timeout = conf['default_timeout']
|
39
36
|
if conf['http_proxy_host']
|
40
37
|
HipChat::API.http_proxy(
|
data/test/plugin/out_hipchat.rb
CHANGED
@@ -27,6 +27,19 @@ class HipchatOutputTest < Test::Unit::TestCase
|
|
27
27
|
}.configure(conf)
|
28
28
|
end
|
29
29
|
|
30
|
+
def test_configure_default
|
31
|
+
d = create_driver %[
|
32
|
+
type hipchat
|
33
|
+
api_token testtoken
|
34
|
+
]
|
35
|
+
assert_equal "yellow", d.instance.default_color
|
36
|
+
assert_equal "fluentd", d.instance.default_from
|
37
|
+
assert_equal 0, d.instance.default_notify
|
38
|
+
assert_equal "html", d.instance.default_format
|
39
|
+
assert_equal "message", d.instance.key_name
|
40
|
+
assert_equal 1, d.instance.flush_interval
|
41
|
+
end
|
42
|
+
|
30
43
|
def test_default_message
|
31
44
|
d = create_driver(<<-EOF)
|
32
45
|
type hipchat
|
data/test/test_helper.rb
CHANGED
@@ -1,12 +1,6 @@
|
|
1
1
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
2
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
3
|
|
4
|
-
require 'rr'
|
5
|
-
require 'test/unit'
|
6
|
-
class Test::Unit::TestCase
|
7
|
-
include RR::Adapters::TestUnit
|
8
|
-
end
|
9
|
-
|
10
4
|
if ENV['SIMPLE_COV']
|
11
5
|
require 'simplecov'
|
12
6
|
SimpleCov.start do
|
@@ -17,4 +11,5 @@ if ENV['SIMPLE_COV']
|
|
17
11
|
end
|
18
12
|
|
19
13
|
require 'test/unit'
|
14
|
+
require 'test/unit/rr'
|
20
15
|
require 'fluent/test'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-hipchat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuichi Tateno
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: 3.1.0
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: test-unit-rr
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 1.0.5
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 1.0.5
|
111
125
|
description: fluent HipChat plugin
|
112
126
|
email: hotchpotch@gmail.com
|
113
127
|
executables: []
|
@@ -144,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
158
|
version: '0'
|
145
159
|
requirements: []
|
146
160
|
rubyforge_project:
|
147
|
-
rubygems_version: 2.
|
161
|
+
rubygems_version: 2.5.1
|
148
162
|
signing_key:
|
149
163
|
specification_version: 4
|
150
164
|
summary: fluent HipChat plugin
|