mos-eisley-lambda 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/mos-eisley-lambda.rb +1 -1
- data/mos-eisley-lambda.gemspec +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: 588396c579300500ee9480c4d1582e000fb1d92722ad0f6ae4a44e9f1cc2aefd
|
4
|
+
data.tar.gz: 9f5ee17355c48a5550f561853b8ce6075978b52f71a6de6fe1f47838d4f5f681
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 004a47f7f3e51a3d891c2912993365a61ced40cc1ba7bb82ac383c4a8543d19142b66d622097e8b10cae14e7003fb1e2d8aa4f4eeea3e59718a3543d4d5d69a3
|
7
|
+
data.tar.gz: 6b171f129793e822e3c7755460d93a81c33827c1ce0755fef3c02484cd92d5e487d63f6353d6d6504369b31393fef10e1e4ed62b95a9fa9a520570aa0268c171
|
data/README.md
CHANGED
@@ -13,10 +13,10 @@ Episode 2 of the Ruby based [Slack app](https://api.slack.com/) framework, this
|
|
13
13
|
1. Create an SQS queue for MosEisley
|
14
14
|
1. Create an IAM role for MosEisley Lambda function
|
15
15
|
1. Create a Lambda function for MosEisley
|
16
|
-
|
16
|
+
- You can install this gem using [Lambda Layer](#using-with-lambda-layers) or just copy the `lib` directory to your Lambda code.
|
17
17
|
1. Create an HTTP API Gateway
|
18
|
-
|
19
|
-
|
18
|
+
1. Create the appropriate routes (or use [the OpenAPI spec](https://github.com/kenjij/mos-eisley-lambda/blob/main/openapi3.yaml))
|
19
|
+
1. Create Lambda integration and attach it to all the routes
|
20
20
|
|
21
21
|
Configure Lambda environment variable.
|
22
22
|
|
data/lib/mos-eisley-lambda.rb
CHANGED
@@ -75,7 +75,7 @@ module MosEisley
|
|
75
75
|
end
|
76
76
|
when '/events'
|
77
77
|
# Respond to Slack challenge request
|
78
|
-
if se[:event][:url_verification
|
78
|
+
if se[:event][:type] == 'url_verification'
|
79
79
|
c = se[:event][:challenge]
|
80
80
|
MosEisley.logger.info("Slack Events API challenge accepted: #{c}")
|
81
81
|
return "{\"challenge\": \"#{c}\"}"
|
data/mos-eisley-lambda.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mos-eisley-lambda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ken J.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-07-
|
11
|
+
date: 2021-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Ruby based Slack bot framework, for AWS Lambda use. Also provides helpers
|
14
14
|
to analyze/build messages. Event based utilizing SQS.
|