dexcom 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/.circleci/config.yml +50 -0
- data/Gemfile.lock +1 -1
- data/lib/dexcom/blood_glucose/api_handler.rb +3 -3
- data/lib/dexcom/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5653661beebe0e668ae5cd40e7a8bb8f88d0580c95a9a3ccc2bd407fa233f3d1
|
4
|
+
data.tar.gz: 46769e4275d66d8a680f31e5550a8be64f4cd159632ff87fdcb07939c3fdf119
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51bc3300fdb22d4f58b97ca5aad688cdf6837586a9e7ec1a4dcd168eb6e9e7df53b15054750cbc21108b4aebd37049c63b2a7dcdbe34de804b1acd649b45e841
|
7
|
+
data.tar.gz: 225b52b8df6f4044b4eddc110d31c115b142c0e91181ec34b5f510f72741e0ea96d2e301f97d407c7a1959b79da23a357bbe2472238d1824b03564d9cdd38443
|
@@ -0,0 +1,50 @@
|
|
1
|
+
version: 2.1
|
2
|
+
orbs:
|
3
|
+
ruby: circleci/ruby@0.1.2
|
4
|
+
|
5
|
+
common: &common
|
6
|
+
steps:
|
7
|
+
- checkout
|
8
|
+
- run:
|
9
|
+
name: Configure Bundler
|
10
|
+
command: |
|
11
|
+
echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV
|
12
|
+
source $BASH_ENV
|
13
|
+
gem install bundler
|
14
|
+
- restore_cache:
|
15
|
+
keys:
|
16
|
+
- v1-dep-bundle-{{ checksum "Gemfile.lock" }}-{{ .Environment.CIRCLE_JOB }}
|
17
|
+
- run:
|
18
|
+
name: Install dependencies
|
19
|
+
command: |
|
20
|
+
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
21
|
+
- save_cache:
|
22
|
+
key: v1-dep-bundle-{{ checksum "Gemfile.lock" }}-{{ .Environment.CIRCLE_JOB }}
|
23
|
+
paths:
|
24
|
+
- vendor/bundle
|
25
|
+
- run:
|
26
|
+
name: Run tests
|
27
|
+
command: |
|
28
|
+
bundle exec rspec --color --format documentation --format progress spec
|
29
|
+
|
30
|
+
|
31
|
+
jobs:
|
32
|
+
"ruby-25":
|
33
|
+
<<: *common
|
34
|
+
docker:
|
35
|
+
- image: circleci/ruby:2.5
|
36
|
+
"ruby-26":
|
37
|
+
<<: *common
|
38
|
+
docker:
|
39
|
+
- image: circleci/ruby:2.6
|
40
|
+
"ruby-27":
|
41
|
+
<<: *common
|
42
|
+
docker:
|
43
|
+
- image: ruby:2.7
|
44
|
+
workflows:
|
45
|
+
version: 2.1
|
46
|
+
build:
|
47
|
+
jobs:
|
48
|
+
- "ruby-25"
|
49
|
+
- "ruby-26"
|
50
|
+
- "ruby-27"
|
data/Gemfile.lock
CHANGED
@@ -42,7 +42,8 @@ module Dexcom
|
|
42
42
|
def query(max_count)
|
43
43
|
{
|
44
44
|
maxCount: max_count,
|
45
|
-
minutes: MAX_MINUTES
|
45
|
+
minutes: MAX_MINUTES,
|
46
|
+
sessionId: Dexcom::Authentication.session_id
|
46
47
|
}
|
47
48
|
end
|
48
49
|
|
@@ -50,9 +51,8 @@ module Dexcom
|
|
50
51
|
timestamp_info = blood_glucose_response_item['WT']
|
51
52
|
timestamp_regex = /(\d+)000/
|
52
53
|
timestamp = timestamp_info[timestamp_regex, 1]
|
53
|
-
utc = '+00:00'
|
54
54
|
|
55
|
-
DateTime.
|
55
|
+
DateTime.strptime(timestamp, '%s')
|
56
56
|
end
|
57
57
|
|
58
58
|
def config
|
data/lib/dexcom/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dexcom
|
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
|
- Alex Gascon
|
@@ -114,6 +114,7 @@ executables: []
|
|
114
114
|
extensions: []
|
115
115
|
extra_rdoc_files: []
|
116
116
|
files:
|
117
|
+
- ".circleci/config.yml"
|
117
118
|
- ".gitignore"
|
118
119
|
- ".rspec"
|
119
120
|
- Gemfile
|