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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a229b8d14271b6bf7882e8d8484fafa898e802a5deb4c91e3f9c39770d2331a5
4
- data.tar.gz: c9095d2f7bae1afcf598d2339f7bae922eac62eef1dba562953d0a625ab3a735
3
+ metadata.gz: 588396c579300500ee9480c4d1582e000fb1d92722ad0f6ae4a44e9f1cc2aefd
4
+ data.tar.gz: 9f5ee17355c48a5550f561853b8ce6075978b52f71a6de6fe1f47838d4f5f681
5
5
  SHA512:
6
- metadata.gz: '048d9d0fab4a2a2e0a9dcc5dc5b5d22ad57b1c1566821b984ec2a93f14ba28ace529af47f7a3117004a0504d91f90c68f4b3c42af44c7b8f0343e2e0d241a7ab'
7
- data.tar.gz: 0d826f2055702e1dd1f79378c6fe823337c88605c19e51edef64271359b51540bba150de6920d443d8e46ba1119d4722c9c312a7dc90bf8b53f656cf755afda9
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
- - You can install this gem using [Lambda Layer](#mos-eisley-lambda) or just copy the `lib` directory to your Lambda code.
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
- 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
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
 
@@ -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}\"}"
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'mos-eisley-lambda'
3
- s.version = '0.4.0'
3
+ s.version = '0.4.1'
4
4
  s.authors = ['Ken J.']
5
5
  s.email = ['kenjij@gmail.com']
6
6
  s.summary = %q{Ruby based Slack bot framework, for AWS Lambda use}
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.0
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-26 00:00:00.000000000 Z
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.