lita-docker-hub 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDA4MzdmZGY1NTlkOGQ0NTFmM2Q2YWEyM2JiOWUzNjI0ODRlNGRmNw==
4
+ MWI5N2U1ZGUzZjQzYzk5MjI5ODEwODkyZDVhODQyMjNjMzVhODllMA==
5
5
  data.tar.gz: !binary |-
6
- MDBhYzUwMDk0ZjdlYTJkYzVkOTFjNTBhN2U0OGU2MzlhMmM0NjlmYQ==
6
+ NzYyZWVhZGYwOWU2OGMxNWFjODExNGJhMjIyYjIwYzVjYWY4ZDllYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTZlN2RhOTIwNWFlMzc5MDE0MDFjZDFmMmQwMjA0MzZkZmJmNWRiNDNmYTFm
10
- YTBmZDhiOTliMjdlNjgwZWJhM2NjOWM1YmNmZWNlZmI0ZDZmZmIzM2E5Nzcz
11
- YzAxODFiZjBjNjk4NzBjNjUzMDExODRhZjUwNDhkNDk5ZjdkMjA=
9
+ MTM0NjgzMGZlMDI2ZmY2MjJiZjc3NzY4MmM1NjE0ODI4ODY5ZTBmZWMwMjQ5
10
+ M2FiYmExNjhlMzUyMjgwYjU4Y2QxOTBkOWNlZTAyN2M5YmNlNmZkOWM1MWI0
11
+ Njg1NzczOTU0ZjRhMzBkMTFiNjM3NTdiOTUyNjA2MTdkMWM4OTI=
12
12
  data.tar.gz: !binary |-
13
- MWM2YWI2MzI2MTVmYzBlN2UzMTAzYjNhNjdkNWNkMjUzMjUzYTExNDIxZjU3
14
- MTE5ZjRiYTgzNTU0ZjNhZjdlNjdhYTk4OTViMzljNzE3MzJmMGQxZDdmYWZi
15
- ODY4OWZiNWIwNzU4Y2ZhZjMzMjU1YTRhZWI0NzhjOWFhNDIwMGU=
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
- TODO: Describe any configuration attributes the plugin exposes.
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
- TODO: Describe the plugin's features and how to use them.
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
- log_error(robot, error, message: message)
32
+ Lita.logger.error error.message
31
33
  end
32
34
 
33
35
  Lita.register_handler(self)
@@ -1,3 +1,3 @@
1
1
  module DockerHub
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-docker-hub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner