fluent-plugin-slack 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/VERSION +1 -1
- data/lib/fluent/plugin/out_slack.rb +3 -1
- data/test/plugin/test_out_slack.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 429a849bc8c0e091be8c001d76c54c4874b9ab44
|
4
|
+
data.tar.gz: c19b3e5ff726b62080002e981e8c8b9590fafc7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a661e5ad7d3cec80ff064f082fb28fae2f185323ed67141d6c26e633d5095a154b0f6abcd21303d8c6cbbc3775e1057ea177538a1282cc722666ff5b033a409b
|
7
|
+
data.tar.gz: f52543163ab78b589cc91004e6c18a792eb750f9d4e3e6817d210813c6199cf8cba3188b2508ba146b72e913d03e0c452148455abedcc0c18379145fe93aa7cc
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.7
|
@@ -135,7 +135,9 @@ DESC
|
|
135
135
|
|
136
136
|
if @channel
|
137
137
|
@channel = URI.unescape(@channel) # old version compatibility
|
138
|
-
|
138
|
+
if !@channel.start_with?('#') and !@channel.start_with?('@')
|
139
|
+
@channel = '#' + @channel # add leading # for old version compatibility
|
140
|
+
end
|
139
141
|
end
|
140
142
|
|
141
143
|
if @webhook_url
|
@@ -90,6 +90,10 @@ class SlackOutputTest < Test::Unit::TestCase
|
|
90
90
|
assert_equal '%s', d.instance.message
|
91
91
|
assert_equal ['message'], d.instance.message_keys
|
92
92
|
|
93
|
+
# Allow DM
|
94
|
+
d = create_driver(CONFIG + %[channel @test])
|
95
|
+
assert_equal '@test', d.instance.channel
|
96
|
+
|
93
97
|
assert_raise(Fluent::ConfigError) do
|
94
98
|
create_driver(CONFIG + %[title %s %s\ntitle_keys foo])
|
95
99
|
end
|