tanita-api-client 0.3.1 → 0.4.0
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 +4 -4
- data/.github/workflows/gem-push.yml +36 -0
- data/.github/workflows/test.yml +21 -0
- data/CHANGELOG.md +22 -19
- data/README.md +3 -0
- data/lib/tanita/api/client/version.rb +1 -1
- data/tanita-api-client.gemspec +4 -2
- metadata +34 -5
- data/.travis.yml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9918139ae453534ab69280e8f718af8b50072b09d0c7f336988f963bc44dc129
|
4
|
+
data.tar.gz: 8dda6a686a69fc6dcde106354e2ba04ba5d30a3c51869b5d54e00d9a88aab76f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 217ebaa94b56c6100278bab4f507ebc49669b5cf13362853cbc18818809d65ccc8a8005ae5e42395f339b1962b015373ce7b6dbee98fd9e365720ed54b3cabe5
|
7
|
+
data.tar.gz: 7f86f379cde3fc4678e103805417f3ce626bd1ce9190910150a39c99c3285d91b9a2efe02fcda1d8869af154d29e8f7c2ed9320ff3d9b906f611c5dfb8c1b98b
|
@@ -0,0 +1,36 @@
|
|
1
|
+
name: Ruby Gem
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [master]
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
build:
|
9
|
+
name: Build + Publish
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v2
|
14
|
+
- name: Set up Ruby 2.6
|
15
|
+
uses: actions/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
ruby-version: 2.6
|
18
|
+
|
19
|
+
- name: Build and test
|
20
|
+
run: |
|
21
|
+
gem install bundler
|
22
|
+
bundle install --jobs 4 --retry 3
|
23
|
+
bundle exec rspec
|
24
|
+
env:
|
25
|
+
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
|
26
|
+
|
27
|
+
- name: Publish to RubyGems
|
28
|
+
run: |
|
29
|
+
mkdir -p $HOME/.gem
|
30
|
+
touch $HOME/.gem/credentials
|
31
|
+
chmod 0600 $HOME/.gem/credentials
|
32
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
33
|
+
gem build *.gemspec
|
34
|
+
gem push *.gem
|
35
|
+
env:
|
36
|
+
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
name: Test
|
2
|
+
|
3
|
+
on: pull_request
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
test:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
|
9
|
+
steps:
|
10
|
+
- uses: actions/checkout@v2
|
11
|
+
- name: Set up Ruby
|
12
|
+
uses: ruby/setup-ruby@v1
|
13
|
+
with:
|
14
|
+
ruby-version: 2.6
|
15
|
+
- name: Build and test
|
16
|
+
run: |
|
17
|
+
gem install bundler
|
18
|
+
bundle install --jobs 4 --retry 3
|
19
|
+
bundle exec rspec
|
20
|
+
env:
|
21
|
+
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
# 0.4.0
|
2
|
+
|
3
|
+
- refs #4 measure code coverage
|
4
|
+
- refs #5 setup GitHub Actions for rspec and pushing to RubyGems
|
5
|
+
|
1
6
|
# 0.3.0
|
2
7
|
|
3
8
|
changed Result hash to be Object.
|
@@ -15,34 +20,32 @@ remove Gemfile.lock
|
|
15
20
|
|
16
21
|
# 0.2.2
|
17
22
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
23
|
+
- define constants
|
24
|
+
- `Tanita::Api::Client::AUTH_URL`
|
25
|
+
- `Tanita::Api::Client::AUTH_URL_PATH`
|
26
|
+
- `Tanita::Api::Client::TOKEN_URL`
|
27
|
+
- `Tanita::Api::Client::TOKEN_URL_PATH`
|
24
28
|
|
25
29
|
# 0.2.1
|
26
30
|
|
27
|
-
|
28
|
-
|
31
|
+
- rename constant
|
32
|
+
- from `Tanita::Api::Client::HttpHelper::BASE_URL` to `Tanita::Api::Client::BASE_URL`
|
29
33
|
|
30
34
|
# 0.2.0
|
31
35
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
36
|
+
- set required ruby version to greater than or equal to v2.4
|
37
|
+
- added `data_type` argument in BaseApiClient#initialize
|
38
|
+
- set a proper data type in Result class attributes
|
39
|
+
- rename some attributes in Result class
|
40
|
+
- e.g.
|
41
|
+
- `@data` to `@items`
|
42
|
+
- `@data[0][:date]` to `@items[0][:measured_at]` or `@items[0][:registered_at]`
|
39
43
|
|
40
44
|
# 0.1.1
|
41
45
|
|
42
|
-
|
43
|
-
|
46
|
+
- support Tanita::Api::Client.configure
|
47
|
+
- wrote spec
|
44
48
|
|
45
49
|
# 0.1.0
|
46
50
|
|
47
|
-
|
48
|
-
|
51
|
+
- Initial release
|
data/README.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
# Tanita::Api::Client
|
2
2
|
|
3
|
+
[](https://github.com/koshilife/tanita-api-ruby-client/actions?query=workflow%3ATest)
|
4
|
+
[](https://codecov.io/gh/koshilife/tanita-api-ruby-client)
|
3
5
|
[](http://badge.fury.io/rb/tanita-api-client)
|
6
|
+
[](https://github.com/koshilife/tanita-api-ruby-client/blob/master/LICENSE.txt)
|
4
7
|
|
5
8
|
## About
|
6
9
|
|
data/tanita-api-client.gemspec
CHANGED
@@ -7,7 +7,7 @@ require 'tanita/api/client/version'
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
8
|
spec.name = 'tanita-api-client'
|
9
9
|
spec.version = Tanita::Api::Client::VERSION
|
10
|
-
spec.authors
|
10
|
+
spec.authors = ['Kenji Koshikawa']
|
11
11
|
spec.email = ['koshikawa2009@gmail.com']
|
12
12
|
|
13
13
|
spec.description = 'Client for accessing Tanita Health Planet APIs'
|
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.metadata['homepage_uri'] = spec.homepage
|
20
20
|
spec.metadata['source_code_uri'] = 'https://github.com/koshilife/tanita-api-ruby-client'
|
21
21
|
spec.metadata['changelog_uri'] = "#{spec.metadata['source_code_uri']}/blob/master/CHANGELOG.md"
|
22
|
-
spec.metadata['documentation_uri'] =
|
22
|
+
spec.metadata['documentation_uri'] = "https://www.rubydoc.info/gems/tanita-api-client/#{spec.version}"
|
23
23
|
|
24
24
|
# Specify which files should be added to the gem when it is released.
|
25
25
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
@@ -31,7 +31,9 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.require_paths = ['lib']
|
32
32
|
|
33
33
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
34
|
+
spec.add_development_dependency 'codecov', '~> 0.1.17'
|
34
35
|
spec.add_development_dependency 'rake', '~> 12.0'
|
35
36
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
37
|
+
spec.add_development_dependency 'simplecov', '~> 0.18.5'
|
36
38
|
spec.add_development_dependency 'webmock', '~> 3.7.6'
|
37
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tanita-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kenji Koshikawa
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: codecov
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.1.17
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.1.17
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rake
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,6 +66,20 @@ dependencies:
|
|
52
66
|
- - "~>"
|
53
67
|
- !ruby/object:Gem::Version
|
54
68
|
version: '3.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: simplecov
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.18.5
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.18.5
|
55
83
|
- !ruby/object:Gem::Dependency
|
56
84
|
name: webmock
|
57
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,10 +101,11 @@ executables: []
|
|
73
101
|
extensions: []
|
74
102
|
extra_rdoc_files: []
|
75
103
|
files:
|
104
|
+
- ".github/workflows/gem-push.yml"
|
105
|
+
- ".github/workflows/test.yml"
|
76
106
|
- ".gitignore"
|
77
107
|
- ".rspec"
|
78
108
|
- ".rubocop.yml"
|
79
|
-
- ".travis.yml"
|
80
109
|
- CHANGELOG.md
|
81
110
|
- CODE_OF_CONDUCT.md
|
82
111
|
- Gemfile
|
@@ -101,7 +130,7 @@ metadata:
|
|
101
130
|
homepage_uri: https://github.com/koshilife/tanita-api-ruby-client
|
102
131
|
source_code_uri: https://github.com/koshilife/tanita-api-ruby-client
|
103
132
|
changelog_uri: https://github.com/koshilife/tanita-api-ruby-client/blob/master/CHANGELOG.md
|
104
|
-
documentation_uri: https://www.rubydoc.info/gems/tanita-api-client/
|
133
|
+
documentation_uri: https://www.rubydoc.info/gems/tanita-api-client/0.4.0
|
105
134
|
post_install_message:
|
106
135
|
rdoc_options: []
|
107
136
|
require_paths:
|
@@ -117,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
146
|
- !ruby/object:Gem::Version
|
118
147
|
version: '0'
|
119
148
|
requirements: []
|
120
|
-
rubygems_version: 3.
|
149
|
+
rubygems_version: 3.0.3
|
121
150
|
signing_key:
|
122
151
|
specification_version: 4
|
123
152
|
summary: Client for accessing Tanita Health Planet APIs
|