fluent-plugin-google-chat 0.0.1 → 0.0.3
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 +4 -4
- data/VERSION +1 -1
- data/lib/fluent/plugin/google_chat_client.rb +1 -1
- data/lib/fluent/plugin/out_buffered_google_chat.rb +1 -1
- data/lib/fluent/plugin/out_google_chat.rb +1 -1
- metadata +3 -5
- data/docker.sh +0 -1
- data/todelete.rb +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3296d244aba66416c968474399b559bfa514ac9962c4ac7f98d77018b08f9ffc
|
4
|
+
data.tar.gz: 54c19db68f13c17c855f1f74e9da83f72252bc1f5464a38be65ff4acd0053697
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c9ffd81ea69df4ed819a04f79dbcdf69cd7c396d79e1b8de28049dc70d40804670e4b5496bf513f54396d7070591ed9864eb1bd5a563e853c979b668b9014a0
|
7
|
+
data.tar.gz: a57fcc678817f69c84aa3ba439768ee71a31051c29c747f53975160ae2d4959726259489ab772cfba956ef54cd09fab316c5c97f6aa937632099957608129190
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
@@ -69,7 +69,7 @@ module Fluent
|
|
69
69
|
chat = Chat::HangoutsChatService.new
|
70
70
|
chat.authorization = authorize
|
71
71
|
message = Chat::Message.new
|
72
|
-
message.text = params[:text]
|
72
|
+
message.text = params[:text].length > 4096 ? params[:text][0...4096] : params[:text]
|
73
73
|
|
74
74
|
chat.create_space_message(
|
75
75
|
'spaces/%s' % params[:space],
|
@@ -1 +1 @@
|
|
1
|
-
lib/fluent/plugin/
|
1
|
+
lib/fluent/plugin/out_google_chat.rb
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-google-chat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lionel Gabaude
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -165,7 +165,6 @@ files:
|
|
165
165
|
- README.md
|
166
166
|
- Rakefile
|
167
167
|
- VERSION
|
168
|
-
- docker.sh
|
169
168
|
- example.conf
|
170
169
|
- fluent-plugin-google-chat.gemspec
|
171
170
|
- lib/fluent/plugin/google_chat_client.rb
|
@@ -176,7 +175,6 @@ files:
|
|
176
175
|
- test/plugin/test_google_chat_client.rb
|
177
176
|
- test/plugin/test_out_google_chat.rb
|
178
177
|
- test/test_helper.rb
|
179
|
-
- todelete.rb
|
180
178
|
homepage: https://github.com/treasuryspring/fluent-plugin-google-chat
|
181
179
|
licenses:
|
182
180
|
- Apache-2.0
|
@@ -196,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
196
194
|
- !ruby/object:Gem::Version
|
197
195
|
version: '0'
|
198
196
|
requirements: []
|
199
|
-
rubygems_version: 3.0.3
|
197
|
+
rubygems_version: 3.0.3.1
|
200
198
|
signing_key:
|
201
199
|
specification_version: 4
|
202
200
|
summary: fluent Google Chat plugin
|
data/docker.sh
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
docker run --rm -ti
|
data/todelete.rb
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
require './lib/fluent/plugin/google_chat_client'
|
2
|
-
|
3
|
-
# API: FluentLogger.new(tag_prefix, options)
|
4
|
-
client = Fluent::GoogleChatClient::WebApi.new("./keyfile.json")
|
5
|
-
message = {text: "Hello", space: "AAAAcmBaNCg"}
|
6
|
-
client.post(message)
|
7
|
-
|
8
|
-
client = Fluent::GoogleChatOutput.new
|
9
|
-
client.write("Hello")
|
10
|
-
# log.post('google_chat', {
|
11
|
-
# :message => 'Hello<br>World!'
|
12
|
-
# })
|
13
|
-
log.warn("some application running.")
|