lita-diabetter 0.1.1.alpha.22 → 0.1.1.alpha.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lita/handlers/diabetter.rb +7 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 807209bbe7889277bf2457b5aaf042456a4013fa
|
4
|
+
data.tar.gz: 8e2659d53687d2137b638cf98826551996d04871
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93d5d7e3a9701da470082d2c24fa495f1381e67a11e1ec60499a9ae3418d199459249ca3abc0a378424da7cf82229e54501273fafd3050355ea3c8ee5619a123
|
7
|
+
data.tar.gz: b866199dc16276222eb488909d861561296bf3e29f4ab1c8673b743aee64738cafa965a65deb23e10ecd1aab32e7c467c61886fc39a713e7a8b87f802cdd3e8a
|
@@ -13,10 +13,17 @@ module Lita
|
|
13
13
|
route(/estimate a1c(?: from average)?\s+(\d{1,3}|\d{1,2}\.\d+)$/i, :estimate_a1c, command: true, help: {
|
14
14
|
'estimate a1c [from average] <glucose level>' => 'Estimates A1C based on average BG level'
|
15
15
|
})
|
16
|
+
|
16
17
|
route(/estimate average(?: from a1c)?\s+(\d{1,3}|\d{1,2}\.\d+)$/i, :estimate_average_from_a1c, command: true, help: {
|
17
18
|
'estimate average [from a1c] <A1C>' => 'Estimates average blood glucose'
|
18
19
|
})
|
19
20
|
|
21
|
+
route(/^-diabot.*/, :deprecated, command: true)
|
22
|
+
|
23
|
+
def deprecated(response)
|
24
|
+
response.reply('The -diabot prefix is deprecated. See `diabot help` for more info')
|
25
|
+
end
|
26
|
+
|
20
27
|
def convert(response)
|
21
28
|
if response.message.body.match(URI.regexp(%w(http https))).nil?
|
22
29
|
input = response.matches[0][0]
|