fluent-plugin-typetalk 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODc5NzI2ZWUyNjc0ZDRjYTUxY2NiYzYyMGMzNGM0ZjM3YzZmYmYwOA==
4
+ ZGMwYmFlNGU4OTU4ZGJhZTc3NzIwMmNjYjVhNTc3OWU5N2JkZTgzNg==
5
5
  data.tar.gz: !binary |-
6
- MTg5MjI5YTQwNzk3MDA5MTFkMWJkNjg5NTJkZDUzYjU3MDNiMjNjYw==
6
+ NTA0M2Q5ZDVlOWU0NjA1Mzg3ZTVmNTk5NGUxNzIxM2NhNzk2YTk3OA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjQ5MTE2MWQxNTZmOTAzN2MwOWY1NWU0M2MzODdjZDU1NTU0NmRkY2M2NTM2
10
- Yjc3YmNhNjNlNGYzMzNiZDFjZWIxYzE0MjlhOWVjYzI5NDc5OWFkYThhNmRi
11
- MTNiMDAwM2YwZGNhYjlhNzJiNGFiNjQ3ZWYwZmJhYzUxY2UxNDA=
9
+ MTExZGIyN2I5N2RjOTljMzJiODhlOTI0MTEyYWI2NDQ5Y2JkOTY3NjAxYmVi
10
+ ZTRkY2MwZmQxNmRlY2I4YjlmOWM2ZDFkYWU5YmJkZDAyODA4NDBiZTY1ODY0
11
+ MWU2YzdlZmRjOWQ1YzJiNTEyNzIwMDhlZWZlNDVlN2QzOTBmMTg=
12
12
  data.tar.gz: !binary |-
13
- ZGE5Zjk4YzgxOWI3NzQ5ZDc0ZWQ1MTc4YjQyMDdiYTlkOGIyOTAyODE3MjBh
14
- NTBkOGZmMTk1ZWJlMzRjZGNmMjkxOWVhM2E4MTQxMjU2Yjk5OWE1MmFlZWU3
15
- MTQ1ZTNiMjU4NjBlODlmMzEwNmQzMDVkZTYyMWFhOTRjNjNhYWI=
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 4096. Since 0.0.5, the message over 4096 characters will be truncated automatically. To turn off this behaviour, set truncate_message to false
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 4096 characters will not be sent to Typetalk.
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.8"
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}
@@ -152,7 +152,7 @@ module Fluent
152
152
  truncate (@message % values).gsub(/\\n/, "\n")
153
153
  end
154
154
 
155
- def truncate(str, limit=4096)
155
+ def truncate(str, limit=4000)
156
156
  @truncate_message && str.size >= limit ? str[0,limit-5] + ' ...' : str
157
157
  end
158
158
 
@@ -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'*4095)
179
- mock(d.instance.typetalk).post_message(1, '1'*4091 + ' ...')
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'*4095}) # not truncated
182
- d.emit({'message' => '1'*4096}) # should be truncated
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.8
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: 2015-11-24 00:00:00.000000000 Z
12
+ date: 2016-02-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler