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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 184b33be08e986aed0759111ca47da646a170b4d
4
- data.tar.gz: 72fb479769709a04b749d4cf6391f4d1fe86b3c9
3
+ metadata.gz: 429a849bc8c0e091be8c001d76c54c4874b9ab44
4
+ data.tar.gz: c19b3e5ff726b62080002e981e8c8b9590fafc7e
5
5
  SHA512:
6
- metadata.gz: ab882482f1f5735a837444220f96ecbc5c68b4b9ff660007c3b4189ef0da812598e2dc8bab147c810a5ff6e2a3724709d95e49f6449ae6a00fb34382d985d7ec
7
- data.tar.gz: 2b2f9de2865c86ee853a67a512b998d8e29e39081d95385472511f3303e42f8f7940d31c6d14b63945f8055e0d44b02757f711402def1358e96c3cb9d46c78a7
6
+ metadata.gz: a661e5ad7d3cec80ff064f082fb28fae2f185323ed67141d6c26e633d5095a154b0f6abcd21303d8c6cbbc3775e1057ea177538a1282cc722666ff5b033a409b
7
+ data.tar.gz: f52543163ab78b589cc91004e6c18a792eb750f9d4e3e6817d210813c6199cf8cba3188b2508ba146b72e913d03e0c452148455abedcc0c18379145fe93aa7cc
@@ -1,3 +1,9 @@
1
+ ## 0.6.7 (2017/05/23)
2
+
3
+ Enhancements:
4
+
5
+ * Allow channel @username (DM)
6
+
1
7
  ## 0.6.6 (2017/05/23)
2
8
 
3
9
  Enhancements:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.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
- @channel = '#' + @channel unless @channel.start_with?('#')
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-slack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.6
4
+ version: 0.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keisuke SOGAWA