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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 84b6c8dcaacf144683725acdbe1a53dd9ed49bf0
4
- data.tar.gz: d823256e2e4a64b5a7f0276e9a00d009b8c66dd3
3
+ metadata.gz: 956ca8f2c269a901d1afd66f55926fd421f2953d
4
+ data.tar.gz: a7968c4b26d1d73374ef829508494b1760a112fa
5
5
  SHA512:
6
- metadata.gz: 6b3007ee95c623c1abfb1046543df4f827de504c93ad6a2a6e38205c544e4dd802471b9d96014d5c76fb4579e759523d9df7f5a6f025abe664d9a6eb80aa3a84
7
- data.tar.gz: 71b7b7534a4e1ec1ca8f25d92af3f84525ec956a17439fa02eb3b44820ea7a2331ea8955d16c5c9b03277de721cadbd4cbfc046ebc30f5b9645d295e7d38c94c
6
+ metadata.gz: 745a459a8b4b8518ac996e584315703850011cc2d0e2f05aee46de958769949e4f37526ea9c2bc223d2f9b86854b250579ff01e32b03dd44fdda3d078bddc1b4
7
+ data.tar.gz: 0d997194930e335c75745bfc449e25107dc867a1914e0e2f39c9af7a2d651ec08f8843055cdd38aa343438d7538edff20e48b7a205fad541ff1ec3655ea9d36f
data/.travis.yml CHANGED
@@ -1,7 +1,8 @@
1
1
  rvm:
2
- - 1.9.3
3
- - 2.0.0
4
2
  - 2.1
5
3
  - 2.2
6
-
7
- script: bundle exec rake test
4
+ - 2.3.3
5
+ before_install:
6
+ - gem update bundler
7
+ script:
8
+ - bundle exec rake test
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.7
1
+ 0.2.0
@@ -23,4 +23,5 @@ Gem::Specification.new do |gem|
23
23
  gem.add_development_dependency "rr", ">= 1.0.0"
24
24
  gem.add_development_dependency "pry"
25
25
  gem.add_development_dependency "test-unit", ">= 3.1.0"
26
+ gem.add_development_dependency "test-unit-rr", ">= 1.0.5"
26
27
  end
@@ -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 => nil
11
- config_param :default_from, :string, :default => nil
12
- config_param :default_notify, :bool, :default => nil
13
- config_param :default_format, :string, :default => nil
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(
@@ -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.1.7
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: 2015-08-28 00:00:00.000000000 Z
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.4.5
161
+ rubygems_version: 2.5.1
148
162
  signing_key:
149
163
  specification_version: 4
150
164
  summary: fluent HipChat plugin