lita-docker-hub 0.1.2 → 0.1.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 +8 -8
- data/lib/lita/handlers/docker_hub.rb +16 -2
- data/lib/lita/handlers/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MGJjMDE3MjNmODcwODcyZWQxMTZkNTA4Y2EzMjIxZTE0ZGExMjI2Mg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTA3MTlhNDE0YTAxY2NhY2M1MzExOGY5NzRhMjFlODg4MzZlMzBiYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDVlMmY3N2NkNTNiOTM3MzliNjM3MGFjNjMxNGY5Zjk2NGI4NTIyNzNjZWU0
|
10
|
+
YWVmMjI1OTRjYjRjN2ZmM2M2YzNlYjNkMTFkOTM2ODliODRkNzc1ZWMwNDY0
|
11
|
+
ZjEyYWMyOTA5MjI1ZTkwZjExOTk1NmJhZjAwYjNmZjJjOWJkNWM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Mjc5NTViOWJkMWY1ZWVjYmQ1OGM5MGZkNTIwYWM1MDI3NDcyNWVmMjMxNmEy
|
14
|
+
NGY1OTI3OTAwNmRkZGY4MGVmMGE4NmEwMjM4YzQ5NGVmNjVkYjU3MmJkOGRj
|
15
|
+
YThhYjk1ZWZjOGRhZmJkYTY3Yzc2YmRhZDdiOWY4ODcxMGVmNDY=
|
@@ -7,8 +7,22 @@ module Lita
|
|
7
7
|
|
8
8
|
def receive(request, response)
|
9
9
|
target = Source.new(room: find_room_id_by_name(config.room))
|
10
|
-
|
11
|
-
|
10
|
+
body = parse(request.body.read)
|
11
|
+
pushed_at = body.fetch("push_data", {}).fetch("pushed_at", nil)
|
12
|
+
pushed_at = Time.at(pushed_at) unless pushed_at.nil?
|
13
|
+
tag = body.fetch("push_data", {}).fetch("tag", nil)
|
14
|
+
|
15
|
+
description = body.fetch("repository", {}).fetch("description", nil)
|
16
|
+
repo_name = body.fetch("repository", {}).fetch("repo_name", nil)
|
17
|
+
repo_url = body.fetch("repository", {}).fetch("repo_url", nil)
|
18
|
+
|
19
|
+
message = "Repository "
|
20
|
+
message += "#{repo_name} " unless repo_name.nil?
|
21
|
+
message += "at #{repo_url} " unless repo_url.nil?
|
22
|
+
message += "built at Docker Hub"
|
23
|
+
message += " with tag #{tag}" unless tag.nil?
|
24
|
+
|
25
|
+
Lita.logger.debug target
|
12
26
|
Lita.logger.debug message
|
13
27
|
|
14
28
|
robot.send_messages(target, message)
|