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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a06d61a542fae23221eb956df8a0f23157c1a94a6475135d4e844c453a238501
4
- data.tar.gz: dc7104521deeb08323c4de39c1c0dea7a4e5cea52ac482f3e63f9565941f20d5
3
+ metadata.gz: 3296d244aba66416c968474399b559bfa514ac9962c4ac7f98d77018b08f9ffc
4
+ data.tar.gz: 54c19db68f13c17c855f1f74e9da83f72252bc1f5464a38be65ff4acd0053697
5
5
  SHA512:
6
- metadata.gz: 299a8bf7403aba535cbf8d2d609b4ef9252b3b88dcbaacb6ab426e90ebe159bdd954a3ac3380afadcd9fd2f53fc2dd83abf7b48ee2cae5e0b1590f183824ff99
7
- data.tar.gz: ed60576f6b3638038062aaf8f6d9e5b4ed73edf448ee7ae4b6f849bce9b6f8f4e58d54d580994045b27df594f44dd43dcfebfddbec5d9e6b22cf4a8633c4c4aa
6
+ metadata.gz: 1c9ffd81ea69df4ed819a04f79dbcdf69cd7c396d79e1b8de28049dc70d40804670e4b5496bf513f54396d7070591ed9864eb1bd5a563e853c979b668b9014a0
7
+ data.tar.gz: a57fcc678817f69c84aa3ba439768ee71a31051c29c747f53975160ae2d4959726259489ab772cfba956ef54cd09fab316c5c97f6aa937632099957608129190
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
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/Users/lgabaude/Documents/ts/fluent-plugin-google-chat/lib/fluent/plugin/out_google
1
+ lib/fluent/plugin/out_google_chat.rb
@@ -64,7 +64,7 @@ DESC
64
64
  super
65
65
 
66
66
  if @space
67
- @space = URI.unescape(@space) # old version compatibility
67
+ @space = URI::Parser.new.unescape(@space)
68
68
  else
69
69
  raise Fluent::ConfigError.new("`space` is required")
70
70
  end
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.1
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: 2020-06-29 00:00:00.000000000 Z
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.")