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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d92f8ee13e26400f77410fae6493272443160c5b0127a3707803441bdc9ac3ca
4
- data.tar.gz: fc1ab6d1dcf9ef7830621422fa6e24900a3274745ea6844e7b3e8901ec7920b1
3
+ metadata.gz: 5653661beebe0e668ae5cd40e7a8bb8f88d0580c95a9a3ccc2bd407fa233f3d1
4
+ data.tar.gz: 46769e4275d66d8a680f31e5550a8be64f4cd159632ff87fdcb07939c3fdf119
5
5
  SHA512:
6
- metadata.gz: aa6c3c86b3cf48bd6fae4d68c2eed1c7b44999d6e0f69282ce3742bbe7379d46c2e5f3b1696b92a2729a3fa7febedc0b072a1d93945ef186bc8b19f273589b4d
7
- data.tar.gz: 807626594715076c8ad214156e3117a97eea810afa1b5feb4b182e6b7bb43c176ae8cc6f0a1e8d9d140e92dd12c49cd0ebeb7a18596fc83e25dc7d0bd7b1e9da
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"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dexcom (0.1.0)
4
+ dexcom (0.2.1)
5
5
  httparty
6
6
 
7
7
  GEM
@@ -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.parse(Time.at(timestamp.to_i, in: utc).to_s)
55
+ DateTime.strptime(timestamp, '%s')
56
56
  end
57
57
 
58
58
  def config
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dexcom
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
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.0
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