slkecho 2.1.1 → 2.1.2
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/CHANGELOG.md +5 -0
- data/lib/slkecho/slack_request/post_message.rb +7 -8
- data/lib/slkecho/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 295daf68fcaa6ff59b760b56838278783ad0aa2faf9d0762d2f71224171f7651
|
4
|
+
data.tar.gz: 175739afc0d696ab3cee16032ab9f9559bb6dcaa2d4223f4be60875943d1870a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc03a7970e96f640c5ab1264100968d240189f018214443f79237ec9b4f67faea585c0416e29f14f5a743a75c54d41549ee209adbf746dba5c5c94f1188a535b
|
7
|
+
data.tar.gz: ba52052e096ee65b03d7d869205f51492b825ffaa2bd1aa298d77b79b2067f766923ce02eb4ba29834bd809ba3614e096c330595f0f6bda27ee9738155b0e838
|
data/CHANGELOG.md
CHANGED
@@ -25,16 +25,15 @@ module Slkecho
|
|
25
25
|
|
26
26
|
def request(params)
|
27
27
|
result = Slkecho::SlackRequest.send_request do
|
28
|
-
@http.post(
|
29
|
-
@uri.path,
|
30
|
-
request_body(params).to_json,
|
31
|
-
@headers
|
32
|
-
)
|
28
|
+
@http.post(@uri.path, request_body(params).to_json, @headers)
|
33
29
|
end
|
34
30
|
|
35
|
-
|
36
|
-
|
37
|
-
|
31
|
+
case result
|
32
|
+
in { ok: true }
|
33
|
+
true
|
34
|
+
in { ok: false, error: error }
|
35
|
+
raise Slkecho::SlackApiResultError, error
|
36
|
+
end
|
38
37
|
end
|
39
38
|
|
40
39
|
def request_body(params)
|
data/lib/slkecho/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slkecho
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- okonomi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Post message to Slack like echo command.
|
14
14
|
email:
|