fluent-plugin-slack 0.6.1 → 0.6.2

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: 9728adc795ffb5913a6a95b430a9f32cfa6a348b
4
- data.tar.gz: 2b4644f289d44272a7ce2b06a4d7fa9b523afa2b
3
+ metadata.gz: c03f2406138aa33b38a5db1fe9df6a75b2e660e7
4
+ data.tar.gz: ddb0b1cf2dc19024bca2838eeecc22a99116711c
5
5
  SHA512:
6
- metadata.gz: e133acd3966eca01bde5fe1a5dae574fd58761dd49066bac8a08ec46322e936cf20d7710c689bdbc135a6a438039e4d23c6bfcf3bff43ecae1be9091957038ef
7
- data.tar.gz: e1c18bf9fe6fef99314522bfb94a8d092f430375ff69e3d2a2cb995185de5419f09dbaee50b3fd4528fbd329a427936578f6055c2133c4b3179b2d8b7b2cda87
6
+ metadata.gz: c4dffa0ecdad7eda6d710cba98078cc1cb0fdb4c4967ed64a200bfcb57d5897a44929d9ec714f837ab443dca01a99a90ddb09ad5cef76dd5a6da85037dd6c674
7
+ data.tar.gz: 6901248f0fe1b72cca79d26877f3d75e4147b66e9f52132770a537d12a8e579cba9ef45efc8f544caa4cc1f6d3f96fcdbc7f9adaf401cdd1c103d5c4a43e9fd0
data/.travis.yml CHANGED
@@ -5,3 +5,5 @@ rvm:
5
5
  - 2.2.*
6
6
  gemfile:
7
7
  - Gemfile
8
+ before_install:
9
+ - gem update bundler
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.6.2 (2015/12/17)
2
+
3
+ Fixes:
4
+
5
+ * escape special characters in message (thanks @fujiwara)
6
+
1
7
  ## 0.6.1 (2015/05/17)
2
8
 
3
9
  Fixes:
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Fluent event to slack plugin.
1
+ # fluent-plugin-slack [![Build Status](https://travis-ci.org/sowawa/fluent-plugin-slack.svg)](https://travis-ci.org/sowawa/fluent-plugin-slack)
2
2
 
3
3
  # Installation
4
4
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.6.2
@@ -5,6 +5,7 @@ Gem::Specification.new do |gem|
5
5
  gem.name = "fluent-plugin-slack"
6
6
  gem.description = "fluent Slack plugin"
7
7
  gem.homepage = "https://github.com/sowawa/fluent-plugin-slack"
8
+ gem.license = "Apache-2.0"
8
9
  gem.summary = gem.description
9
10
  gem.version = File.read("VERSION").strip
10
11
  gem.authors = ["Keisuke SOGAWA", "Naotoshi Seo"]
@@ -114,7 +114,8 @@ module Fluent
114
114
  private
115
115
 
116
116
  def encode_body(params = {})
117
- params.to_json
117
+ # https://api.slack.com/docs/formatting
118
+ params.to_json.gsub(/&/, '&amp;').gsub(/</, '&lt;').gsub(/>/, '&gt;')
118
119
  end
119
120
 
120
121
  def response_check(res, params)
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.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keisuke SOGAWA
@@ -9,118 +9,118 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-16 00:00:00.000000000 Z
12
+ date: 2015-12-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '>='
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: 0.10.8
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - '>='
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: 0.10.8
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rake
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - '>='
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
34
  version: 10.1.1
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - '>='
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: 10.1.1
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rr
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - '>='
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
48
  version: 1.0.0
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - '>='
53
+ - - ">="
54
54
  - !ruby/object:Gem::Version
55
55
  version: 1.0.0
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: pry
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - '>='
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - '>='
67
+ - - ">="
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: pry-nav
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - '>='
74
+ - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - '>='
81
+ - - ">="
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: test-unit
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - ~>
88
+ - - "~>"
89
89
  - !ruby/object:Gem::Version
90
90
  version: 3.0.2
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - ~>
95
+ - - "~>"
96
96
  - !ruby/object:Gem::Version
97
97
  version: 3.0.2
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: test-unit-rr
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - ~>
102
+ - - "~>"
103
103
  - !ruby/object:Gem::Version
104
104
  version: 1.0.3
105
105
  type: :development
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - ~>
109
+ - - "~>"
110
110
  - !ruby/object:Gem::Version
111
111
  version: 1.0.3
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: dotenv
114
114
  requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - '>='
116
+ - - ">="
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0'
119
119
  type: :development
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - '>='
123
+ - - ">="
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  description: fluent Slack plugin
@@ -131,8 +131,8 @@ executables: []
131
131
  extensions: []
132
132
  extra_rdoc_files: []
133
133
  files:
134
- - .gitignore
135
- - .travis.yml
134
+ - ".gitignore"
135
+ - ".travis.yml"
136
136
  - CHANGELOG.md
137
137
  - Gemfile
138
138
  - README.md
@@ -149,7 +149,8 @@ files:
149
149
  - test/plugin/test_slack_client.rb
150
150
  - test/test_helper.rb
151
151
  homepage: https://github.com/sowawa/fluent-plugin-slack
152
- licenses: []
152
+ licenses:
153
+ - Apache-2.0
153
154
  metadata: {}
154
155
  post_install_message:
155
156
  rdoc_options: []
@@ -157,17 +158,17 @@ require_paths:
157
158
  - lib
158
159
  required_ruby_version: !ruby/object:Gem::Requirement
159
160
  requirements:
160
- - - '>='
161
+ - - ">="
161
162
  - !ruby/object:Gem::Version
162
163
  version: '0'
163
164
  required_rubygems_version: !ruby/object:Gem::Requirement
164
165
  requirements:
165
- - - '>='
166
+ - - ">="
166
167
  - !ruby/object:Gem::Version
167
168
  version: '0'
168
169
  requirements: []
169
170
  rubyforge_project:
170
- rubygems_version: 2.0.14
171
+ rubygems_version: 2.4.5
171
172
  signing_key:
172
173
  specification_version: 4
173
174
  summary: fluent Slack plugin