lita-diabetter 1.2.6.alpha.84 → 1.2.6.alpha.85
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 +3 -3
- 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: 1392195dd7bed06092066640394c1e0aec3d89c9
|
4
|
+
data.tar.gz: 925b737141129a434724bc1e156f56672990dfb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c35ccd9ee2cc40f1a753b1212578063e7713d5ac3b2a2a98522f915713d6e1824db77c9842d6e74b28ba7cf3012319a4b1d62a5f8ebae0499414f4247e36c66
|
7
|
+
data.tar.gz: 1f5de46473bd5a1f67a3e02bfc7dbebb4901e03aed7d512c1abcb1975a1a23b80735531edd77d81781394adef690c172aef84bf4bf7dab620ee8bb14bdb016bd
|
@@ -6,16 +6,16 @@ module Lita
|
|
6
6
|
@@upper = 50.0 # Upper limit for mmol/L - mg/dL cutoff
|
7
7
|
|
8
8
|
route(/(?:^|_)(\d{1,3}|\d{1,2}\.\d+)(?:$|_)/, :convert, command: false, help: {
|
9
|
-
'<number>' => 'Convert glucose between mass/molar concentration units.',
|
9
|
+
'<number>' => 'Convert glucose between mass/molar concentration units. Attempts to guess which way you want to convert',
|
10
10
|
'_<number>_' => 'Convert glucose between mass/molar concentration units inline. E.g "I started at _125_ today"'
|
11
11
|
})
|
12
12
|
|
13
13
|
route(/(\d{1,3}\.?\d?)\s?(mmol\/?l?)/i, :convert_mmol, command: false, help: {
|
14
|
-
'<number> mmol' => 'Convert glucose from mmol/L to mg/dL'
|
14
|
+
'<number> mmol' => 'Convert glucose from mmol/L to mg/dL, works inline or on its own. E.g "My BG is 5.7 mmol/L"'
|
15
15
|
})
|
16
16
|
|
17
17
|
route(/(\d{1,3}\.?\d?)\s?(mg\/?(dl)?)/i, :convert_mgdl, command: false, help: {
|
18
|
-
'<number> mgdl' => 'Convert glucose from mg/dL to mmol/L'
|
18
|
+
'<number> mgdl' => 'Convert glucose from mg/dL to mmol/L, works inline or on its own. E.g "My BG is 110 mg/dL"'
|
19
19
|
})
|
20
20
|
|
21
21
|
|