fitbit_api 0.15.1 → 0.15.3

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: d911585848ded1bbf5c5abfd9090b96971592ce119e6525e7b82808468717880
4
- data.tar.gz: 1d4984610d1bba6468662b5f22d986a324642685811c9eede3bf35127b6e9bfe
3
+ metadata.gz: 35ca25eddb9d20edb608f8ba914c32b0056484d730c9b1c671385af4348320f0
4
+ data.tar.gz: c79bc99fda06b0f6ad0f2ad321acf371ed619353c13c44d8225efa2263929358
5
5
  SHA512:
6
- metadata.gz: fbfd618baee4f3c58b957d7f4997befa6bf25ee9778cf45d340ed13ed64188eb663781aa6a6f326d63263e0d1de21328fbbdb5e2e04c399b18aa9f617c29b852
7
- data.tar.gz: e4acd060d4d06f1a39ca1c951140db0413b1e6967f252c7abe0dc471d32295c401e67a34e20ea86531b629afcbc319d70265e0c4cbea7cd6afa646b23fe6e1ae
6
+ metadata.gz: 5c35f3405ae380230338376184bda00152619b94bbc91a4eba3075b3dee0c4906da2327967733c17fd5cf3097dbf75ff123e6e8c55f15159a4476e4085573a46
7
+ data.tar.gz: 5e136456daf9ec21fbb2fd89fb5b8ab001c3a99cce3b51ebd007fd320a79d1dcd530463d51b6976057541c6b39cfe152509c5829a160ac7bf7d9cade23f8c41e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ 0.15.3
2
+ ------
3
+ - Use strict encoding for auth tokens
4
+
5
+ 0.15.2
6
+ ------
7
+ - Reduce build size
8
+
1
9
  0.15.1
2
10
  ------
3
11
  - Improve gemspec metadata
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # FitbitAPI
2
2
 
3
3
  [![Gem Version](https://img.shields.io/gem/v/fitbit_api)](https://rubygems.org/gems/fitbit_api)
4
- [![CI Workflow](https://img.shields.io/github/workflow/status/zokioki/fitbit_api/CI)](https://github.com/zokioki/fitbit_api/actions/workflows/ci.yml)
4
+ [![CI Workflow](https://img.shields.io/github/actions/workflow/status/zokioki/fitbit_api/ci.yml?branch=master)](https://github.com/zokioki/fitbit_api/actions/workflows/ci.yml)
5
5
 
6
6
  FitbitAPI provides a Ruby interface to the [Fitbit Web API](https://dev.fitbit.com/reference/web-api).
7
7
 
@@ -177,7 +177,7 @@ module FitbitAPI
177
177
  end
178
178
 
179
179
  def auth_headers
180
- { 'Authorization' => "Basic #{Base64.encode64("#{@client_id}:#{@client_secret}")}" }
180
+ { 'Authorization' => "Basic #{Base64.strict_encode64("#{@client_id}:#{@client_secret}")}" }
181
181
  end
182
182
 
183
183
  def default_request_headers
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FitbitAPI
4
- VERSION = '0.15.1'
4
+ VERSION = '0.15.3'
5
5
  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.15.1
4
+ version: 0.15.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zoran
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-06 00:00:00.000000000 Z
11
+ date: 2023-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2
@@ -24,34 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.0'
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '2.3'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '2.3'
41
- - !ruby/object:Gem::Dependency
42
- name: byebug
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '11.0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '11.0'
55
27
  - !ruby/object:Gem::Dependency
56
28
  name: rake
57
29
  requirement: !ruby/object:Gem::Requirement
@@ -72,28 +44,28 @@ dependencies:
72
44
  requirements:
73
45
  - - "~>"
74
46
  - !ruby/object:Gem::Version
75
- version: '3.11'
47
+ version: '3.12'
76
48
  type: :development
77
49
  prerelease: false
78
50
  version_requirements: !ruby/object:Gem::Requirement
79
51
  requirements:
80
52
  - - "~>"
81
53
  - !ruby/object:Gem::Version
82
- version: '3.11'
54
+ version: '3.12'
83
55
  - !ruby/object:Gem::Dependency
84
56
  name: rubocop
85
57
  requirement: !ruby/object:Gem::Requirement
86
58
  requirements:
87
59
  - - "~>"
88
60
  - !ruby/object:Gem::Version
89
- version: '1.39'
61
+ version: 1.54.2
90
62
  type: :development
91
63
  prerelease: false
92
64
  version_requirements: !ruby/object:Gem::Requirement
93
65
  requirements:
94
66
  - - "~>"
95
67
  - !ruby/object:Gem::Version
96
- version: '1.39'
68
+ version: 1.54.2
97
69
  - !ruby/object:Gem::Dependency
98
70
  name: webmock
99
71
  requirement: !ruby/object:Gem::Requirement
@@ -114,16 +86,9 @@ executables: []
114
86
  extensions: []
115
87
  extra_rdoc_files: []
116
88
  files:
117
- - ".github/workflows/ci.yml"
118
- - ".gitignore"
119
- - ".rspec"
120
- - ".rubocop.yml"
121
89
  - CHANGELOG.md
122
- - Gemfile
123
90
  - LICENSE.txt
124
91
  - README.md
125
- - Rakefile
126
- - fitbit_api.gemspec
127
92
  - lib/fitbit_api.rb
128
93
  - lib/fitbit_api/activities.rb
129
94
  - lib/fitbit_api/alarms.rb
@@ -154,8 +119,8 @@ licenses:
154
119
  - MIT
155
120
  metadata:
156
121
  source_code_uri: https://github.com/zokioki/fitbit_api
157
- changelog_uri: https://github.com/zokioki/fitbit_api/blob/v0.15.1/CHANGELOG.md
158
- documentation_uri: https://www.rubydoc.info/gems/fitbit_api/0.15.1
122
+ changelog_uri: https://github.com/zokioki/fitbit_api/blob/v0.15.3/CHANGELOG.md
123
+ documentation_uri: https://www.rubydoc.info/gems/fitbit_api/0.15.3
159
124
  rubygems_mfa_required: 'true'
160
125
  post_install_message:
161
126
  rdoc_options: []
@@ -172,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
137
  - !ruby/object:Gem::Version
173
138
  version: '0'
174
139
  requirements: []
175
- rubygems_version: 3.3.24
140
+ rubygems_version: 3.4.3
176
141
  signing_key:
177
142
  specification_version: 4
178
143
  summary: A Ruby interface to the Fitbit Web API.
@@ -1,31 +0,0 @@
1
- name: CI
2
-
3
- on:
4
- - push
5
- - pull_request
6
-
7
- permissions:
8
- contents: read
9
-
10
- jobs:
11
- build:
12
- runs-on: ubuntu-latest
13
- strategy:
14
- matrix:
15
- ruby-version:
16
- - 2.6
17
- - 2.7
18
- - 3.0
19
- - 3.1
20
-
21
- steps:
22
- - uses: actions/checkout@v3
23
- - name: Set up Ruby
24
- uses: ruby/setup-ruby@v1
25
- with:
26
- ruby-version: ${{ matrix.ruby-version }}
27
- bundler-cache: true
28
- - name: Run Rubocop
29
- run: bundle exec rubocop
30
- - name: Run tests
31
- run: bundle exec rake
data/.gitignore DELETED
@@ -1,10 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- .DS_Store
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
data/.rubocop.yml DELETED
@@ -1,28 +0,0 @@
1
- AllCops:
2
- TargetRubyVersion: 2.6
3
- NewCops: enable
4
-
5
- Gemspec/RequiredRubyVersion:
6
- Enabled: false
7
-
8
- Style/Documentation:
9
- Enabled: false
10
-
11
- Metrics/AbcSize:
12
- Enabled: false
13
-
14
- Metrics/CyclomaticComplexity:
15
- Enabled: false
16
-
17
- Metrics/PerceivedComplexity:
18
- Enabled: false
19
-
20
- Metrics/ClassLength:
21
- Max: 200
22
-
23
- Metrics/MethodLength:
24
- Max: 40
25
-
26
- Metrics/BlockLength:
27
- Exclude:
28
- - '**/*_spec.rb'
data/Gemfile DELETED
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- # Specify your gem's dependencies in fitbit_api.gemspec
6
- gemspec
data/Rakefile DELETED
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
- require 'rspec/core/rake_task'
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- task default: :spec
data/fitbit_api.gemspec DELETED
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- lib = File.expand_path('lib', __dir__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
-
6
- require 'fitbit_api/version'
7
-
8
- Gem::Specification.new do |spec|
9
- spec.name = 'fitbit_api'
10
- spec.version = FitbitAPI::VERSION
11
- spec.authors = ['Zoran']
12
-
13
- spec.summary = 'A Ruby interface to the Fitbit Web API.'
14
- spec.homepage = 'https://github.com/zokioki/fitbit_api'
15
- spec.license = 'MIT'
16
-
17
- spec.metadata = {
18
- 'source_code_uri' => spec.homepage,
19
- 'changelog_uri' => "#{spec.homepage}/blob/v#{FitbitAPI::VERSION}/CHANGELOG.md",
20
- 'documentation_uri' => "https://www.rubydoc.info/gems/fitbit_api/#{FitbitAPI::VERSION}",
21
- 'rubygems_mfa_required' => 'true'
22
- }
23
-
24
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin|test|spec|features)/}) }
25
- spec.bindir = 'exe'
26
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
- spec.require_paths = ['lib']
28
-
29
- spec.required_ruby_version = '>= 1.9.3'
30
-
31
- spec.add_runtime_dependency 'oauth2', '~> 1.0'
32
-
33
- spec.add_development_dependency 'bundler', '~> 2.3'
34
- spec.add_development_dependency 'byebug', '~> 11.0'
35
- spec.add_development_dependency 'rake', '~> 13.0'
36
- spec.add_development_dependency 'rspec', '~> 3.11'
37
- spec.add_development_dependency 'rubocop', '~> 1.39'
38
- spec.add_development_dependency 'webmock', '~> 3.18'
39
- end