fitbit_api 0.17.0 → 0.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71eacdb0827044b2e9395689f0e0466672d7ff64477f9ffe9c68b2e2059ea06b
4
- data.tar.gz: ec29770679170f5996d246c008f1537e994e9131c7b8388aa8a27f83652778b3
3
+ metadata.gz: 69af80fbdb9af28b9eb94f8eb53627586f4a37fd5761dc761e60487f275be752
4
+ data.tar.gz: 22cff0c61fb2679040f643f09b5a62200d17bc94a7e64b9b00fe57c7e05f9b05
5
5
  SHA512:
6
- metadata.gz: 16f0aab91afabb265db2f52ba4a8b6b897c952b2f467267d63a9387bbeee266aceaa4a2ea53b40978b8f6ecc7b49f0b02420bb26e15fb0878e1486a5208e6e1f
7
- data.tar.gz: 3d051c0e8b1022e62bee715119f5747f34282ebd3044a825c5456b67696afc15ec4b8cff175de2397550a20f1ad32040eee6f324194bff949697e65e5ecadbe1
6
+ metadata.gz: bbf0efb4eda29415684a74c762782306325364b5ed582c8d457d2d6c1c7c8bea3e3d7df76b5818ac088e5e6202bf78ea39567fa8c4e6b100b14874c1d22d08c9
7
+ data.tar.gz: d29e794b7af47d27d1a0cc818ab20a70959106d4cb5d534c6f82d9638a4328ce25f091159ae741cd292829164a6b9a42bc7ff9864e1caee5068f4f7dd072d41f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
- 0.17.0
1
+ 0.17.1
2
2
  ------
3
+ - Some internal cleanup
3
4
 
5
+ 0.17.0
6
+ ------
4
7
  - Add ECG endpoint support
5
8
  - Add Active Zone Minutes endpoint support
6
9
 
@@ -28,7 +28,10 @@ module FitbitAPI
28
28
  result = if period
29
29
  get("user/#{user_id}/activities/active-zone-minutes/date/#{format_date(end_date)}/#{period}.json")
30
30
  else
31
- get("user/#{user_id}/activities/active-zone-minutes/date/#{format_date(start_date)}/#{format_date(end_date)}.json")
31
+ get(
32
+ "user/#{user_id}/activities/active-zone-minutes/date/" \
33
+ "#{format_date(start_date)}/#{format_date(end_date)}.json"
34
+ )
32
35
  end
33
36
 
34
37
  strip_root_key(result)
@@ -53,9 +56,11 @@ module FitbitAPI
53
56
  raise FitbitAPI::InvalidArgumentError, 'A date and detail_level are required.'
54
57
  end
55
58
 
56
- unless %(1min 5min 15min).include? detail_level
59
+ detail_levels = %(1min 5min 15min)
60
+
61
+ unless detail_levels.include? detail_level
57
62
  raise FitbitAPI::InvalidArgumentError,
58
- "Invalid detail_level: \"#{detail_level}\". Please provide one of the following: \"1min\", \"5min\" or \"15min\"."
63
+ "Invalid detail_level: \"#{detail_level}\". Please provide one of the following: #{detail_levels}."
59
64
  end
60
65
 
61
66
  if (start_time || end_time) && !(start_time && end_time)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FitbitAPI
4
- VERSION = '0.17.0'
4
+ VERSION = '0.17.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fitbit_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zoran
@@ -121,8 +121,8 @@ licenses:
121
121
  - MIT
122
122
  metadata:
123
123
  source_code_uri: https://github.com/zokioki/fitbit_api
124
- changelog_uri: https://github.com/zokioki/fitbit_api/blob/v0.17.0/CHANGELOG.md
125
- documentation_uri: https://www.rubydoc.info/gems/fitbit_api/0.17.0
124
+ changelog_uri: https://github.com/zokioki/fitbit_api/blob/v0.17.1/CHANGELOG.md
125
+ documentation_uri: https://www.rubydoc.info/gems/fitbit_api/0.17.1
126
126
  rubygems_mfa_required: 'true'
127
127
  post_install_message:
128
128
  rdoc_options: []