slkecho 2.1.3 → 2.1.5
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 +10 -0
- data/Steepfile +40 -0
- data/lib/slkecho/slack_request/lookup_user_by_email.rb +2 -1
- data/lib/slkecho/version.rb +1 -1
- data/sig/slkecho/slack_request/lookup_user_by_email.rbs +13 -0
- data/sig/slkecho/slack_request.rbs +5 -0
- metadata +9 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77afa5c20a94b0e30aa7aa41e5a2849a235d4fc2a60fe4437db1401b655cc784
|
4
|
+
data.tar.gz: 7bd371392c450668e17d39f9e97e5a37490cded751b0a046c924ba063da5394f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e4b16802556b7e67e0d12c3ab51c272d423bc57ca3a9066e82a31d697535c8ff2254e012dca963aa2e5fb99d23d6ce1a7ab6e40dcdcc3751dbe722ac33ab4f1
|
7
|
+
data.tar.gz: 0ee38f3cf91680f85ebaa03c328d89b8aae3e8793ecf03e9b63ed5e9b5f5c147733e66911c179403dc879044d782a7bc80f22886a2fe53856152e79dd5129477
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
- feat: Start type signature implementation
|
4
|
+
|
5
|
+
## [v2.1.5] - 2025-01-04
|
6
|
+
|
7
|
+
- Only update dependencies
|
8
|
+
|
9
|
+
## [v2.1.4] - 2024-08-31
|
10
|
+
|
11
|
+
- Only update dependencies
|
12
|
+
|
3
13
|
## [v2.1.3] - 2024-03-15
|
4
14
|
|
5
15
|
- fix: Broken mention by email
|
data/Steepfile
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# D = Steep::Diagnostic
|
4
|
+
#
|
5
|
+
# target :lib do
|
6
|
+
# signature "sig"
|
7
|
+
#
|
8
|
+
# check "lib" # Directory name
|
9
|
+
# check "Gemfile" # File name
|
10
|
+
# check "app/models/**/*.rb" # Glob
|
11
|
+
# # ignore "lib/templates/*.rb"
|
12
|
+
#
|
13
|
+
# # library "pathname" # Standard libraries
|
14
|
+
# # library "strong_json" # Gems
|
15
|
+
#
|
16
|
+
# # configure_code_diagnostics(D::Ruby.default) # `default` diagnostics setting (applies by default)
|
17
|
+
# # configure_code_diagnostics(D::Ruby.strict) # `strict` diagnostics setting
|
18
|
+
# # configure_code_diagnostics(D::Ruby.lenient) # `lenient` diagnostics setting
|
19
|
+
# # configure_code_diagnostics(D::Ruby.silent) # `silent` diagnostics setting
|
20
|
+
# # configure_code_diagnostics do |hash| # You can setup everything yourself
|
21
|
+
# # hash[D::Ruby::NoMethod] = :information
|
22
|
+
# # end
|
23
|
+
# end
|
24
|
+
|
25
|
+
# target :test do
|
26
|
+
# signature "sig", "sig-private"
|
27
|
+
#
|
28
|
+
# check "test"
|
29
|
+
#
|
30
|
+
# # library "pathname" # Standard libraries
|
31
|
+
# end
|
32
|
+
|
33
|
+
target :lib do
|
34
|
+
signature "sig"
|
35
|
+
|
36
|
+
library "net-http"
|
37
|
+
library "uri"
|
38
|
+
|
39
|
+
check "lib/slkecho/slack_request/lookup_user_by_email.rb"
|
40
|
+
end
|
@@ -13,7 +13,8 @@ module Slkecho
|
|
13
13
|
@slack_api_token = slack_api_token
|
14
14
|
|
15
15
|
@uri = URI.parse("https://slack.com/api/users.lookupByEmail")
|
16
|
-
|
16
|
+
host = @uri.host
|
17
|
+
@http = Net::HTTP.new(host, @uri.port) unless host.nil?
|
17
18
|
@http.use_ssl = true
|
18
19
|
@headers = {
|
19
20
|
"Authorization" => "Bearer #{slack_api_token}",
|
data/lib/slkecho/version.rb
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
module Slkecho
|
2
|
+
module SlackRequest
|
3
|
+
class LookupUserByEmail
|
4
|
+
@slack_api_token: String
|
5
|
+
@uri: URI::Generic
|
6
|
+
@http: Net::HTTP
|
7
|
+
@headers: Hash[String, String]
|
8
|
+
|
9
|
+
def initialize: (slack_api_token: String) -> void
|
10
|
+
def uri_with_query: (URI::Generic, untyped) -> untyped
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- okonomi
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Post message to Slack like echo command.
|
14
14
|
email:
|
@@ -21,6 +21,7 @@ files:
|
|
21
21
|
- CHANGELOG.md
|
22
22
|
- LICENSE.txt
|
23
23
|
- README.md
|
24
|
+
- Steepfile
|
24
25
|
- exe/slkecho
|
25
26
|
- lib/slkecho.rb
|
26
27
|
- lib/slkecho/blocks_builder.rb
|
@@ -34,6 +35,8 @@ files:
|
|
34
35
|
- lib/slkecho/slack_request/post_message.rb
|
35
36
|
- lib/slkecho/version.rb
|
36
37
|
- sig/slkecho.rbs
|
38
|
+
- sig/slkecho/slack_request.rbs
|
39
|
+
- sig/slkecho/slack_request/lookup_user_by_email.rbs
|
37
40
|
homepage: https://github.com/okonomi/slkecho
|
38
41
|
licenses:
|
39
42
|
- MIT
|
@@ -43,7 +46,7 @@ metadata:
|
|
43
46
|
changelog_uri: https://github.com/okonomi/slkecho/blob/main/CHANGELOG.md
|
44
47
|
github_repo: https://github.com/okonomi/slkecho
|
45
48
|
rubygems_mfa_required: 'true'
|
46
|
-
post_install_message:
|
49
|
+
post_install_message:
|
47
50
|
rdoc_options: []
|
48
51
|
require_paths:
|
49
52
|
- lib
|
@@ -58,8 +61,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
61
|
- !ruby/object:Gem::Version
|
59
62
|
version: '0'
|
60
63
|
requirements: []
|
61
|
-
rubygems_version: 3.5.
|
62
|
-
signing_key:
|
64
|
+
rubygems_version: 3.5.22
|
65
|
+
signing_key:
|
63
66
|
specification_version: 4
|
64
67
|
summary: Post message to Slack like echo command.
|
65
68
|
test_files: []
|