lita-heroku-keepalive 0.2.0 → 0.2.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 +0 -1
- data/lib/lita/handlers/heroku_keepalive.rb +6 -8
- data/lita-heroku-keepalive.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be3fca789eb6030b295ae8ce386c119ec95173e6
|
4
|
+
data.tar.gz: 0f7ffae760231a9c3df86cd28b21615a56dd9f88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06d468c2b1b44d36d6f91446084717b88f05e7b15275a2096dc7eeea1a56eea29ed8fd308e5f137449af78560e4080f92506da0c54c4a170e62ef3d11d707ffb
|
7
|
+
data.tar.gz: ab8e6ce6ce9ffcdde315a86f90cea89f46d7e60085d2647b71b97f6340ceba9e49d30ac16cce5df20d27fad75eabb2a412b25713aaf0b307b58a2d8c086367a3
|
data/README.md
CHANGED
@@ -63,6 +63,5 @@ heroku addons:create scheduler:standard
|
|
63
63
|
```
|
64
64
|
The scheduler must be manually configured from the web interface, so run `heroku addons:open scheduler` and configure it to run `curl ${LITA_HEROKU_KEEPALIVE_URL}heroku/keepalive` at the time configured for `LITA_HEROKU_WAKEUP_TIME`.
|
65
65
|
|
66
|
-
![Heroku Scheduler Screenshot](https://cloud.githubusercontent.com/assets/173/9414275/2e4b67ea-4805-11e5-80d0-d6b26ead50ef.png)
|
67
66
|
|
68
67
|
Note that the Scheduler's time is in UTC. If you changed your application's timezone with `TZ`, you'll need to convert that time to UTC for the wakup job. For example, if `LITA_HEROKU_WAKEUP_TIME` is set to `06:00` and `TZ` is set to `America/New_York`, you'll need to set the Scheduler to run at 10:00 AM UTC.
|
@@ -15,15 +15,13 @@ module Lita
|
|
15
15
|
unless KEEPALIVE_URL[-1] == '/'
|
16
16
|
KEEPALIVE_URL = KEEPALIVE_URL + "/"
|
17
17
|
end
|
18
|
-
|
19
|
-
http.get "/heroku/keepalive" do |request, response|
|
20
|
-
#log.info ">>>>>>>"
|
21
|
-
response.body << "OK"
|
22
|
-
end
|
23
|
-
http.post "/heroku/keepalive" do |request, response|
|
24
|
-
response.body << "OK"
|
25
|
-
end
|
26
18
|
|
19
|
+
pong = lambda{|request, response| log.info "Keepalive pong..."; response.body << "OK"}
|
20
|
+
|
21
|
+
http.get "/heroku/keepalive", pong
|
22
|
+
|
23
|
+
http.post "/heroku/keepalive", pong
|
24
|
+
|
27
25
|
on(:loaded) do
|
28
26
|
log.info "staring ping keep alive url #{KEEPALIVE_URL}heroku/keepalive"
|
29
27
|
every(KEEPALIVE_INTERVAL) do
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "lita-heroku-keepalive"
|
3
|
-
spec.version = "0.2.
|
3
|
+
spec.version = "0.2.1"
|
4
4
|
spec.authors = ["Ronghai Wei"]
|
5
5
|
spec.email = ["Ronghai.Wei@msn.com"]
|
6
6
|
spec.description = "Based on hubot-heroku-keepalive, to keep Heroku's free tire live"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-heroku-keepalive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ronghai Wei
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|