lita-docker-hub 0.1.4 → 0.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 +8 -8
- data/README.md +14 -2
- data/lib/lita/handlers/docker_hub.rb +3 -1
- 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
|
+
MWI5N2U1ZGUzZjQzYzk5MjI5ODEwODkyZDVhODQyMjNjMzVhODllMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzYyZWVhZGYwOWU2OGMxNWFjODExNGJhMjIyYjIwYzVjYWY4ZDllYg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTM0NjgzMGZlMDI2ZmY2MjJiZjc3NzY4MmM1NjE0ODI4ODY5ZTBmZWMwMjQ5
|
10
|
+
M2FiYmExNjhlMzUyMjgwYjU4Y2QxOTBkOWNlZTAyN2M5YmNlNmZkOWM1MWI0
|
11
|
+
Njg1NzczOTU0ZjRhMzBkMTFiNjM3NTdiOTUyNjA2MTdkMWM4OTI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
N2FiN2FlYTc1MjU3MjEwZmE4NGY0MzQzODhkMTdlNDkwNmZkN2U4MjRjOWY4
|
14
|
+
MGU4N2MwNTdjZTgwOTFjY2VhOGY4MDA4NDMwMDYyNzg3YTk0ZTIxOWI0ODA2
|
15
|
+
MTJlZGU4NTIxZTBhY2Q1MDIwYTMyMGZhNDhkMTRmODRjMzliYzY=
|
data/README.md
CHANGED
@@ -14,11 +14,23 @@ gem "lita-docker-hub"
|
|
14
14
|
```
|
15
15
|
## Configuration
|
16
16
|
|
17
|
-
|
17
|
+
You can configure the room where `lita-docker-hub` sends messages. The default is `general`.
|
18
|
+
|
19
|
+
```
|
20
|
+
Lita.configure do |config|
|
21
|
+
config.handlers.docker_hub.room = "ops"
|
22
|
+
end
|
23
|
+
```
|
18
24
|
|
19
25
|
## Usage
|
20
26
|
|
21
|
-
|
27
|
+
In Docker Hub go to the repository that you want to connect with Lita. You should have admin access to the Docker Hub configuration, and it should be an autobuild repository (builds triggered by Github or Bitbucket commits). Open the *Webhooks* tab of the repository and add the following URL:
|
28
|
+
|
29
|
+
```
|
30
|
+
http://MY_LITA_SERVER/docker-hub/receive
|
31
|
+
```
|
32
|
+
|
33
|
+
Where `MY_LITA_SERVER` is the name or IP address of your Lita server. Make sure the Lita server is accessible for web requests.
|
22
34
|
|
23
35
|
## License
|
24
36
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require "time_difference"
|
2
|
+
|
1
3
|
module Lita
|
2
4
|
module Handlers
|
3
5
|
class DockerHub < Handler
|
@@ -27,7 +29,7 @@ module Lita
|
|
27
29
|
response.headers["Content-Type"] = "application/json"
|
28
30
|
response.write("ok")
|
29
31
|
rescue => error
|
30
|
-
|
32
|
+
Lita.logger.error error.message
|
31
33
|
end
|
32
34
|
|
33
35
|
Lita.register_handler(self)
|