fluent-plugin-typetalk 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/README.md +2 -2
- data/fluent-plugin-typetalk.gemspec +1 -1
- data/lib/fluent/plugin/out_typetalk.rb +1 -1
- data/test/plugin/test_out_typetalk.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGMwYmFlNGU4OTU4ZGJhZTc3NzIwMmNjYjVhNTc3OWU5N2JkZTgzNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTA0M2Q5ZDVlOWU0NjA1Mzg3ZTVmNTk5NGUxNzIxM2NhNzk2YTk3OA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTExZGIyN2I5N2RjOTljMzJiODhlOTI0MTEyYWI2NDQ5Y2JkOTY3NjAxYmVi
|
10
|
+
ZTRkY2MwZmQxNmRlY2I4YjlmOWM2ZDFkYWU5YmJkZDAyODA4NDBiZTY1ODY0
|
11
|
+
MWU2YzdlZmRjOWQ1YzJiNTEyNzIwMDhlZWZlNDVlN2QzOTBmMTg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDliNDA0OWFlMmI5OGNkN2Q5ZjNlZGNkODYyNjdiMzBjZjZiNjg3ZjdmYzE2
|
14
|
+
OTQ2MDQyZGU1Mjg1NmZjYWRmNTk4ODAyODhiYTUyZDcwNThiMDFlNmY2ZjVl
|
15
|
+
MGI2MDQ5MzUwYjRlM2E5YTcyNDRlMGY4MDRlZTlmN2UyMjg4NDA=
|
data/README.md
CHANGED
@@ -63,7 +63,7 @@ By default, the number of notification you can send within a minute is limited t
|
|
63
63
|
```
|
64
64
|
In the example above, you can allow 10 notifications to be sent within 300 seconds. To remove the notification throttle, set both parameters to 0.
|
65
65
|
|
66
|
-
Typetalk doesn't allow message which length is equal to or greater than
|
66
|
+
Typetalk doesn't allow message which length is equal to or greater than 4000. Since 0.0.5, the message over 4000 characters will be truncated automatically. To turn off this behaviour, set truncate_message to false
|
67
67
|
```
|
68
68
|
<match ...>
|
69
69
|
type typetalk
|
@@ -71,7 +71,7 @@ Typetalk doesn't allow message which length is equal to or greater than 4096. Si
|
|
71
71
|
truncate_message false
|
72
72
|
</match>
|
73
73
|
```
|
74
|
-
If you set this value to false, the message over
|
74
|
+
If you set this value to false, the message over 4000 characters will not be sent to Typetalk.
|
75
75
|
|
76
76
|
## TODO
|
77
77
|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "fluent-plugin-typetalk"
|
7
|
-
spec.version = "0.0.
|
7
|
+
spec.version = "0.0.9"
|
8
8
|
spec.authors = ["tksmd","umakoz"]
|
9
9
|
spec.email = ["someda@isenshi.com"]
|
10
10
|
spec.description = %q{fluent plugin to send message to typetalk}
|
@@ -175,11 +175,11 @@ class TypetalkOutputTest < Test::Unit::TestCase
|
|
175
175
|
def test_truncate
|
176
176
|
d = create_driver(CONFIG_TRUNCATE)
|
177
177
|
mock(d.instance.typetalk).post_message(1, '1')
|
178
|
-
mock(d.instance.typetalk).post_message(1, '1'*
|
179
|
-
mock(d.instance.typetalk).post_message(1, '1'*
|
178
|
+
mock(d.instance.typetalk).post_message(1, '1'*3999)
|
179
|
+
mock(d.instance.typetalk).post_message(1, '1'*3995 + ' ...')
|
180
180
|
d.emit({'message' => '1'})
|
181
|
-
d.emit({'message' => '1'*
|
182
|
-
d.emit({'message' => '1'*
|
181
|
+
d.emit({'message' => '1'*3999}) # not truncated
|
182
|
+
d.emit({'message' => '1'*4000}) # should be truncated
|
183
183
|
d.run()
|
184
184
|
end
|
185
185
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-typetalk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tksmd
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-02-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|