lita-diabetter 1.2.6.alpha.85 → 1.2.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1392195dd7bed06092066640394c1e0aec3d89c9
4
- data.tar.gz: 925b737141129a434724bc1e156f56672990dfb4
3
+ metadata.gz: 79873a01346b0768c7b176b1e0897da037c68cd6
4
+ data.tar.gz: 8011887b001d253b760d4973d9ba3f1dd04a4b72
5
5
  SHA512:
6
- metadata.gz: 5c35ccd9ee2cc40f1a753b1212578063e7713d5ac3b2a2a98522f915713d6e1824db77c9842d6e74b28ba7cf3012319a4b1d62a5f8ebae0499414f4247e36c66
7
- data.tar.gz: 1f5de46473bd5a1f67a3e02bfc7dbebb4901e03aed7d512c1abcb1975a1a23b80735531edd77d81781394adef690c172aef84bf4bf7dab620ee8bb14bdb016bd
6
+ metadata.gz: 1bf2dfa6628a56328ed5a6ac1f75618c8e165dc1081c3e411fbe9cabdca8d71351c63244077dddb3ae761cda09b0bca2650f14e270a9404f21f04d415387f21f
7
+ data.tar.gz: c4e57b3b5ed2409cdc4a966eb3f4f7d01679a48289a62e8f382c15eed55016ce6a2b834dfa1d419217704afa8bafd463a0bab141ad43722aa74947cd3ccaa898
data/Gemfile.lock ADDED
@@ -0,0 +1,80 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ lita-diabetter (1.2.1)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ byebug (9.0.6)
10
+ coderay (1.1.1)
11
+ diff-lcs (1.2.5)
12
+ faraday (0.10.1)
13
+ multipart-post (>= 1.2, < 3)
14
+ http_router (0.11.2)
15
+ rack (>= 1.0.0)
16
+ url_mount (~> 0.2.1)
17
+ i18n (0.7.0)
18
+ ice_nine (0.11.2)
19
+ lita (4.7.1)
20
+ bundler (>= 1.3)
21
+ faraday (>= 0.8.7)
22
+ http_router (>= 0.11.2)
23
+ i18n (>= 0.6.9)
24
+ ice_nine (>= 0.11.0)
25
+ multi_json (>= 1.7.7)
26
+ puma (>= 2.7.1)
27
+ rack (>= 1.5.2, < 2.0.0)
28
+ rb-readline (>= 0.5.1)
29
+ redis-namespace (>= 1.3.0)
30
+ thor (>= 0.18.1)
31
+ method_source (0.8.2)
32
+ multi_json (1.12.1)
33
+ multipart-post (2.0.0)
34
+ pry (0.10.4)
35
+ coderay (~> 1.1.0)
36
+ method_source (~> 0.8.1)
37
+ slop (~> 3.4)
38
+ pry-byebug (3.4.2)
39
+ byebug (~> 9.0)
40
+ pry (~> 0.10)
41
+ puma (3.6.2)
42
+ rack (1.6.5)
43
+ rack-test (0.6.3)
44
+ rack (>= 1.0)
45
+ rake (10.4.2)
46
+ rb-readline (0.5.3)
47
+ redis (3.3.2)
48
+ redis-namespace (1.5.2)
49
+ redis (~> 3.0, >= 3.0.4)
50
+ rspec (3.0.0)
51
+ rspec-core (~> 3.0.0)
52
+ rspec-expectations (~> 3.0.0)
53
+ rspec-mocks (~> 3.0.0)
54
+ rspec-core (3.0.4)
55
+ rspec-support (~> 3.0.0)
56
+ rspec-expectations (3.0.4)
57
+ diff-lcs (>= 1.2.0, < 2.0)
58
+ rspec-support (~> 3.0.0)
59
+ rspec-mocks (3.0.4)
60
+ rspec-support (~> 3.0.0)
61
+ rspec-support (3.0.4)
62
+ slop (3.6.0)
63
+ thor (0.19.4)
64
+ url_mount (0.2.1)
65
+ rack
66
+
67
+ PLATFORMS
68
+ x64-mingw32
69
+
70
+ DEPENDENCIES
71
+ bundler (~> 1.3)
72
+ lita (~> 4.7)
73
+ lita-diabetter!
74
+ pry-byebug
75
+ rack-test
76
+ rake (~> 10.4.2)
77
+ rspec (~> 3.0.0)
78
+
79
+ BUNDLED WITH
80
+ 1.13.7
@@ -6,19 +6,10 @@ 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. Attempts to guess which way you want to convert',
9
+ '<number>' => 'Convert glucose between mass/molar concentration units.',
10
10
  '_<number>_' => 'Convert glucose between mass/molar concentration units inline. E.g "I started at _125_ today"'
11
11
  })
12
12
 
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, works inline or on its own. E.g "My BG is 5.7 mmol/L"'
15
- })
16
-
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, works inline or on its own. E.g "My BG is 110 mg/dL"'
19
- })
20
-
21
-
22
13
  route(/estimate a1c(?: from average)?\s+(\d{1,3}|\d{1,2}\.\d+)$/i, :estimate_a1c, command: true, help: {
23
14
  'estimate a1c [from average] <glucose level>' => 'Estimates A1C based on average BG level'
24
15
  })
@@ -49,22 +40,6 @@ module Lita
49
40
  end
50
41
  end
51
42
 
52
- def convert_mmol(response)
53
- if response.message.body.match(URI.regexp(%w(http https))).nil?
54
- input = response.matches[0][0]
55
- Lita.logger.debug('Converting BG for input "' + input + '" from mmol/L to mg/dL')
56
- response.reply("#{input} mmol/L is #{mmol_to_mgdl(input).to_s} mg/dL")
57
- end
58
- end
59
-
60
- def convert_mgdl(response)
61
- if response.message.body.match(URI.regexp(%w(http https))).nil?
62
- input = response.matches[0][0]
63
- Lita.logger.debug('Converting BG for input "' + input + '" from mg/dL to mmol/L')
64
- response.reply("#{input} mg/dL is #{mgdl_to_mmol(input).to_s} mmol/L")
65
- end
66
- end
67
-
68
43
  def estimate_a1c(response)
69
44
  input = response.matches[0][0]
70
45
  Lita.logger.debug('Estimating a1c for input "' + input + '"')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-diabetter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6.alpha.85
4
+ version: 1.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cas Eliëns
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-25 00:00:00.000000000 Z
11
+ date: 2017-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita
@@ -104,6 +104,7 @@ files:
104
104
  - ".gitignore"
105
105
  - ".travis.yml"
106
106
  - Gemfile
107
+ - Gemfile.lock
107
108
  - README.md
108
109
  - Rakefile
109
110
  - lib/lita-diabetter.rb
@@ -130,9 +131,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
130
131
  version: 2.0.0
131
132
  required_rubygems_version: !ruby/object:Gem::Requirement
132
133
  requirements:
133
- - - ">"
134
+ - - ">="
134
135
  - !ruby/object:Gem::Version
135
- version: 1.3.1
136
+ version: '0'
136
137
  requirements: []
137
138
  rubyforge_project:
138
139
  rubygems_version: 2.4.5