tanita-api-client 0.3.1 → 0.4.0

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: ca338c9b56ddf6a7fd487ee1148471b01540fbc0da7d81202df83e5e93ee4d20
4
- data.tar.gz: 22713062f5aff83b763ab8d7540645b226ea46309d9beb43df3737252b0a1f28
3
+ metadata.gz: 9918139ae453534ab69280e8f718af8b50072b09d0c7f336988f963bc44dc129
4
+ data.tar.gz: 8dda6a686a69fc6dcde106354e2ba04ba5d30a3c51869b5d54e00d9a88aab76f
5
5
  SHA512:
6
- metadata.gz: ca237d1f2d54b36fdaae5423fdd8c625e642b18fd1ca6ba027833c2571b7b2769730827788c1e31760f4b88f53fe0064689d0d52f87dbdde193e8e69f9e4f939
7
- data.tar.gz: 26d5af8bbdfad1fbf12c0b63a4356d98d41e76706b3ce89579915e39407ef204d4c0be139b469b8a4595615a9cc3d1a45eed6718e42fd6794c5edf0ea55aab0f
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}}
@@ -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
- * define constants
19
- * `Tanita::Api::Client::AUTH_URL`
20
- * `Tanita::Api::Client::AUTH_URL_PATH`
21
- * `Tanita::Api::Client::TOKEN_URL`
22
- * `Tanita::Api::Client::TOKEN_URL_PATH`
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
- * rename constant
28
- * from `Tanita::Api::Client::HttpHelper::BASE_URL` to `Tanita::Api::Client::BASE_URL`
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
- * set required ruby version to greater than or equal to v2.4
33
- * added `data_type` argument in BaseApiClient#initialize
34
- * set a proper data type in Result class attributes
35
- * rename some attributes in Result class
36
- * e.g.
37
- * `@data` to `@items`
38
- * `@data[0][:date]` to `@items[0][:measured_at]` or `@items[0][:registered_at]`
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
- * support Tanita::Api::Client.configure
43
- * wrote spec
46
+ - support Tanita::Api::Client.configure
47
+ - wrote spec
44
48
 
45
49
  # 0.1.0
46
50
 
47
- * Initial release
48
-
51
+ - Initial release
data/README.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # Tanita::Api::Client
2
2
 
3
+ [![Test](https://github.com/koshilife/tanita-api-ruby-client/workflows/Test/badge.svg)](https://github.com/koshilife/tanita-api-ruby-client/actions?query=workflow%3ATest)
4
+ [![codecov](https://codecov.io/gh/koshilife/tanita-api-ruby-client/branch/master/graph/badge.svg)](https://codecov.io/gh/koshilife/tanita-api-ruby-client)
3
5
  [![Gem Version](https://badge.fury.io/rb/tanita-api-client.svg)](http://badge.fury.io/rb/tanita-api-client)
6
+ [![license](https://img.shields.io/github/license/koshilife/tanita-api-ruby-client)](https://github.com/koshilife/tanita-api-ruby-client/blob/master/LICENSE.txt)
4
7
 
5
8
  ## About
6
9
 
@@ -3,7 +3,7 @@
3
3
  module Tanita
4
4
  module Api
5
5
  module Client
6
- VERSION = '0.3.1'
6
+ VERSION = '0.4.0'
7
7
  end
8
8
  end
9
9
  end
@@ -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 = ['Kenji Koshikawa']
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'] = 'https://www.rubydoc.info/gems/tanita-api-client/'
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.3.1
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-02-14 00:00:00.000000000 Z
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.1.2
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
@@ -1,7 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- rvm:
6
- - 2.6.3
7
- before_install: gem install bundler -v 2.0.2