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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6ad0b176146542cb288467849f95e477cd0345b3eb500a83ca13a47423d8ac2
4
- data.tar.gz: dd8e47b54fc7210cc30ad347664c8e67ed555e1a64597e5cd012d896e31769d3
3
+ metadata.gz: '099467bf4273b82b5a9cc9ad11d96b7e36bb856d9dbaf81735e7d5b913ff09eb'
4
+ data.tar.gz: fd5d0e33608dd71e071436e9619b57bc2ba9ccb27c92e67f2e1dd763ab6b2727
5
5
  SHA512:
6
- metadata.gz: 6c313975d4d22141af31553b129dfcbcf901847bc92191e2e5d559c633f245e5522ae72de893bf67fe0b6ebf3179ae0b3edabdf416da937a31d4025112f89e9c
7
- data.tar.gz: 5d4c95b142fbe3ba5f7561c1c08e821a64c0dbd7fdafe3d5070b876363a0b2af1f5df1c1359bb54262ac5850ffc8104ca0c63e040e87dee9c45edbeade64d123
6
+ metadata.gz: 7aeafc676dd87ad01dceed46fe7f4f741fdce3fea3f62852f3a0df7c4fbf8269f7d2d86471ea1b6866fbc9e2cb1af6be344fb42f8250289f25f4eef428df95c2
7
+ data.tar.gz: 47ea79fc3e1bd68d026622a8fe6404c134a635ca65b6cdeb740fdf5a1245722ec65b0d53a38579897a8dd8631ae75a1519bc96a302fa85e6648fece0e4e9a5af
data/.travis.yml CHANGED
@@ -1,9 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.7.2
4
+ - 2.6.6
3
5
  - 2.5.1
4
6
  - 2.4.2
5
7
  - 2.3.5
6
- - 2.2.2
7
- - 2.1.6
8
- - 2.0.0
9
8
  before_install: gem install bundler -v 1.10.3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ 0.9.1
2
+ -----
3
+ - Fix `sleep_time_series` endpoint
4
+ - Tweak user-agent string in request headers
5
+
1
6
  0.9.0
2
7
  -----
3
8
  - Rework client to accept existing access tokens.
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 = FitbitAPI::REPO_URL
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', '~> 1.10'
26
- spec.add_development_dependency 'rake', '~> 10.0'
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
@@ -54,7 +54,7 @@ module FitbitAPI
54
54
 
55
55
  def request_headers
56
56
  {
57
- 'User-Agent' => "fitbit_api-#{FitbitAPI::VERSION} gem (#{FitbitAPI::REPO_URL})",
57
+ 'User-Agent' => "fitbit_api gem (v#{FitbitAPI::VERSION})",
58
58
  'Accept-Language' => @unit_system,
59
59
  'Accept-Locale' => @locale
60
60
  }
@@ -25,9 +25,9 @@ module FitbitAPI
25
25
  end
26
26
 
27
27
  if period
28
- result = get("user/#{user_id}/activities/#{resource}/date/#{format_date(end_date)}/#{period}.json", opts)
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}/activities/#{resource}/date/#{format_date(start_date)}/#{format_date(end_date)}.json", opts)
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]
@@ -1,4 +1,3 @@
1
1
  module FitbitAPI
2
- VERSION = '0.9.0'
3
- REPO_URL = 'https://github.com/zokioki/fitbit_api'
2
+ VERSION = '0.9.1'
4
3
  end
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.0
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: 2018-07-23 00:00:00.000000000 Z
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: '1.10'
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: '1.10'
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: '10.0'
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: '10.0'
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
- rubyforge_project:
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.