fitbit_api 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -3
- data/CHANGELOG.md +5 -0
- data/fitbit_api.gemspec +3 -3
- data/lib/fitbit_api/client.rb +1 -1
- data/lib/fitbit_api/sleep.rb +2 -2
- data/lib/fitbit_api/version.rb +1 -2
- metadata +9 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '099467bf4273b82b5a9cc9ad11d96b7e36bb856d9dbaf81735e7d5b913ff09eb'
|
4
|
+
data.tar.gz: fd5d0e33608dd71e071436e9619b57bc2ba9ccb27c92e67f2e1dd763ab6b2727
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7aeafc676dd87ad01dceed46fe7f4f741fdce3fea3f62852f3a0df7c4fbf8269f7d2d86471ea1b6866fbc9e2cb1af6be344fb42f8250289f25f4eef428df95c2
|
7
|
+
data.tar.gz: 47ea79fc3e1bd68d026622a8fe6404c134a635ca65b6cdeb740fdf5a1245722ec65b0d53a38579897a8dd8631ae75a1519bc96a302fa85e6648fece0e4e9a5af
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/fitbit_api.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ['Zoran']
|
10
10
|
|
11
11
|
spec.summary = %q{A Ruby interface to the Fitbit Web API.}
|
12
|
-
spec.homepage =
|
12
|
+
spec.homepage = 'https://github.com/zokioki/fitbit_api'
|
13
13
|
spec.license = 'MIT'
|
14
14
|
|
15
15
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_runtime_dependency 'oauth2', '~> 1.0'
|
23
23
|
|
24
24
|
spec.add_development_dependency 'byebug'
|
25
|
-
spec.add_development_dependency 'bundler', '~>
|
26
|
-
spec.add_development_dependency 'rake', '
|
25
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
26
|
+
spec.add_development_dependency 'rake', '>= 12.3.3'
|
27
27
|
spec.add_development_dependency 'rspec'
|
28
28
|
end
|
data/lib/fitbit_api/client.rb
CHANGED
@@ -54,7 +54,7 @@ module FitbitAPI
|
|
54
54
|
|
55
55
|
def request_headers
|
56
56
|
{
|
57
|
-
'User-Agent' => "fitbit_api
|
57
|
+
'User-Agent' => "fitbit_api gem (v#{FitbitAPI::VERSION})",
|
58
58
|
'Accept-Language' => @unit_system,
|
59
59
|
'Accept-Locale' => @locale
|
60
60
|
}
|
data/lib/fitbit_api/sleep.rb
CHANGED
@@ -25,9 +25,9 @@ module FitbitAPI
|
|
25
25
|
end
|
26
26
|
|
27
27
|
if period
|
28
|
-
result = get("user/#{user_id}/
|
28
|
+
result = get("user/#{user_id}/sleep/#{resource}/date/#{format_date(end_date)}/#{period}.json", opts)
|
29
29
|
else
|
30
|
-
result = get("user/#{user_id}/
|
30
|
+
result = get("user/#{user_id}/sleep/#{resource}/date/#{format_date(start_date)}/#{format_date(end_date)}.json", opts)
|
31
31
|
end
|
32
32
|
# remove root key from response
|
33
33
|
result.values[0]
|
data/lib/fitbit_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fitbit_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zoran
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oauth2
|
@@ -44,28 +44,28 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '2.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '2.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 12.3.3
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 12.3.3
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -132,8 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
132
|
- !ruby/object:Gem::Version
|
133
133
|
version: '0'
|
134
134
|
requirements: []
|
135
|
-
|
136
|
-
rubygems_version: 2.7.6
|
135
|
+
rubygems_version: 3.2.3
|
137
136
|
signing_key:
|
138
137
|
specification_version: 4
|
139
138
|
summary: A Ruby interface to the Fitbit Web API.
|