tanita-api-client 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 7276f5bfe20571b5e467cb6723f40df02c52d7287de11dca0eb40009487c3e21
4
+ data.tar.gz: 44d0295e8ed1d822e5cc2dc60e0b2222fa046970cde0973b1bdc3372d930f0d4
5
+ SHA512:
6
+ metadata.gz: b306fa0d89dcfe58209130baf00f0f051cb34c8c6a79ffdee50740f70e29dacf52b8b4d51e01aaa7a3cf0ab03e303c750a8a600a9efa9aa683a3bc32c506d20b
7
+ data.tar.gz: 43b9326709bf1f594bea7270155730139cd1d7e6d0bec99b3eb01f258e5be97987ca72ade4214f63fb0d9fc622be9cfa063c65f5a99ca3b8aba76ea14a959969
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,69 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.6
3
+
4
+ Layout/AccessModifierIndentation:
5
+ EnforcedStyle: outdent
6
+
7
+ Layout/HashAlignment:
8
+ Enabled: false
9
+
10
+ Layout/DotPosition:
11
+ EnforcedStyle: trailing
12
+
13
+ Layout/SpaceInsideHashLiteralBraces:
14
+ EnforcedStyle: no_space
15
+
16
+ Lint/SuppressedException:
17
+ Enabled: false
18
+
19
+ Metrics/BlockLength:
20
+ Enabled: false
21
+
22
+ Metrics/BlockNesting:
23
+ Max: 2
24
+
25
+ Layout/LineLength:
26
+ AllowURI: true
27
+ Enabled: false
28
+
29
+ Metrics/MethodLength:
30
+ CountComments: false
31
+ Max: 15
32
+
33
+ Metrics/ParameterLists:
34
+ Max: 4
35
+ CountKeywordArgs: true
36
+
37
+ Metrics/AbcSize:
38
+ Enabled: false
39
+
40
+ Style/CollectionMethods:
41
+ PreferredMethods:
42
+ map: 'collect'
43
+ reduce: 'inject'
44
+ find: 'detect'
45
+ find_all: 'select'
46
+
47
+ Style/Documentation:
48
+ Enabled: false
49
+
50
+ Style/DoubleNegation:
51
+ Enabled: false
52
+
53
+ Style/EachWithObject:
54
+ Enabled: false
55
+
56
+ Style/Encoding:
57
+ Enabled: false
58
+
59
+ Style/ExpandPathArguments:
60
+ Enabled: false
61
+
62
+ Style/HashSyntax:
63
+ EnforcedStyle: hash_rockets
64
+
65
+ Style/Lambda:
66
+ Enabled: false
67
+
68
+ Style/RaiseArgs:
69
+ EnforcedStyle: compact
@@ -0,0 +1 @@
1
+ 2.6.3
@@ -0,0 +1,7 @@
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
@@ -0,0 +1,14 @@
1
+ {
2
+ "ruby.format": "rubocop",
3
+ "ruby.lint": {
4
+ "rubocop": true
5
+ },
6
+ "[ruby]": {
7
+ "editor.formatOnSave": true,
8
+ "editor.formatOnSaveTimeout": 10000,
9
+ },
10
+ "[javascript]": {
11
+ "editor.formatOnSave": true,
12
+ "editor.formatOnSaveTimeout": 10000,
13
+ }
14
+ }
@@ -0,0 +1,3 @@
1
+ # 0.1.0
2
+
3
+ * Initial release
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at koshikawa2009@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in tanita-api-client.gemspec
4
+ gemspec
5
+
6
+ group :development, :test do
7
+ gem 'rubocop', require: false
8
+ end
@@ -0,0 +1,51 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ tanita-api-client (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ ast (2.4.0)
10
+ diff-lcs (1.3)
11
+ jaro_winkler (1.5.4)
12
+ parallel (1.19.1)
13
+ parser (2.7.0.1)
14
+ ast (~> 2.4.0)
15
+ rainbow (3.0.0)
16
+ rake (10.5.0)
17
+ rspec (3.9.0)
18
+ rspec-core (~> 3.9.0)
19
+ rspec-expectations (~> 3.9.0)
20
+ rspec-mocks (~> 3.9.0)
21
+ rspec-core (3.9.1)
22
+ rspec-support (~> 3.9.1)
23
+ rspec-expectations (3.9.0)
24
+ diff-lcs (>= 1.2.0, < 2.0)
25
+ rspec-support (~> 3.9.0)
26
+ rspec-mocks (3.9.1)
27
+ diff-lcs (>= 1.2.0, < 2.0)
28
+ rspec-support (~> 3.9.0)
29
+ rspec-support (3.9.2)
30
+ rubocop (0.78.0)
31
+ jaro_winkler (~> 1.5.1)
32
+ parallel (~> 1.10)
33
+ parser (>= 2.6)
34
+ rainbow (>= 2.2.2, < 4.0)
35
+ ruby-progressbar (~> 1.7)
36
+ unicode-display_width (>= 1.4.0, < 1.7)
37
+ ruby-progressbar (1.10.1)
38
+ unicode-display_width (1.6.0)
39
+
40
+ PLATFORMS
41
+ ruby
42
+
43
+ DEPENDENCIES
44
+ bundler (~> 2.0)
45
+ rake (~> 10.0)
46
+ rspec (~> 3.0)
47
+ rubocop
48
+ tanita-api-client!
49
+
50
+ BUNDLED WITH
51
+ 2.1.3
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Kenji Koshikawa
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,42 @@
1
+ # Tanita::Api::Client
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/tanita/api/client`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'tanita-api-client'
12
+ ```
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install tanita-api-client
21
+
22
+ ## Usage
23
+
24
+ TODO: Write usage instructions here
25
+
26
+ ## Development
27
+
28
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
29
+
30
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
31
+
32
+ ## Contributing
33
+
34
+ Bug reports and pull requests are welcome on GitHub at https://github.com/koshilife/tanita-api-ruby-client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
35
+
36
+ ## License
37
+
38
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
39
+
40
+ ## Code of Conduct
41
+
42
+ Everyone interacting in the Tanita::Api::Client project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/koshilife/tanita-api-ruby-client/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "tanita/api/client"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,108 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tanita/api/client/base'
4
+ require 'tanita/api/client/helpers'
5
+ require 'tanita/api/client/version'
6
+
7
+ module Tanita
8
+ module Api
9
+ module Client
10
+ class Auth
11
+ include HttpHelper
12
+
13
+ def initialize(client_id:, client_secret:, redirect_uri:, scopes: [Scope::INNERSCAN])
14
+ @client_id = client_id
15
+ @client_secret = client_secret
16
+ @redirect_uri = redirect_uri
17
+ @scopes = scopes
18
+ end
19
+
20
+ def auth_uri
21
+ params = {
22
+ :client_id => @client_id,
23
+ :redirect_uri => @redirect_uri,
24
+ :scope => @scopes.join(','),
25
+ :response_type => 'code'
26
+ }
27
+ generate_uri('/oauth/auth', params)
28
+ end
29
+
30
+ def exchange_token(auth_code:)
31
+ params = {
32
+ :client_id => @client_id,
33
+ :client_secret => @client_secret,
34
+ :redirect_uri => DEFAULT_REDIRECT_URI,
35
+ :code => auth_code,
36
+ :grant_type => 'authorization_code'
37
+ }
38
+ res = request('/oauth/token', params)
39
+ token = parse_json(res.body)
40
+
41
+ raise Error.new("#{self.class}.#{__method__}: #{token[:error]}") if token.key? :error
42
+
43
+ token
44
+ end
45
+ end
46
+
47
+ class Innerscan < BaseApiClient
48
+ def endpoint
49
+ '/status/innerscan.json'
50
+ end
51
+
52
+ def measurement_tags
53
+ {
54
+ :weight => '6021',
55
+ :body_fat => '6022',
56
+ :muscle_mass => '6023',
57
+ :physique_rating => '6024',
58
+ :visceral_fat_rating2 => '6025',
59
+ :visceral_fat_rating1 => '6026',
60
+ :basal_metabolic_rate => '6027',
61
+ :metabolic_age => '6028',
62
+ :bone_mass => '6029'
63
+ }
64
+ end
65
+ end
66
+
67
+ class Sphygmomanometer < BaseApiClient
68
+ def endpoint
69
+ '/status/sphygmomanometer.json'
70
+ end
71
+
72
+ def measurement_tags
73
+ {
74
+ :maximal_pressure => '622E',
75
+ :minimal_pressure => '622F',
76
+ :pulse => '6230'
77
+ }
78
+ end
79
+ end
80
+
81
+ class Pedometer < BaseApiClient
82
+ def endpoint
83
+ '/status/pedometer.json'
84
+ end
85
+
86
+ def measurement_tags
87
+ {
88
+ :steps => '6331',
89
+ :exercise => '6335',
90
+ :calories => '6336'
91
+ }
92
+ end
93
+ end
94
+
95
+ class Smug < BaseApiClient
96
+ def endpoint
97
+ '/status/smug.json'
98
+ end
99
+
100
+ def measurement_tags
101
+ {
102
+ :urinary_sugar => '6240'
103
+ }
104
+ end
105
+ end
106
+ end
107
+ end
108
+ end
@@ -0,0 +1,100 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tanita/api/client/helpers'
4
+
5
+ module Tanita
6
+ module Api
7
+ module Client
8
+ module Scope
9
+ INNERSCAN = 'innerscan'
10
+ SPHYGMOMANOMETER = 'sphygmomanometer'
11
+ PEDOMETER = 'pedometer'
12
+ SMUG = 'smug'
13
+ end
14
+
15
+ class Error < StandardError
16
+ end
17
+
18
+ class BaseApiClient
19
+ include HttpHelper
20
+
21
+ DATE_REGISTERD_AT = 0
22
+ DATE_MEASURED_AT = 1
23
+
24
+ def initialize(access_token:)
25
+ @access_token = access_token
26
+ end
27
+
28
+ def endpoint
29
+ raise NotImplementedError
30
+ end
31
+
32
+ def measurement_tags
33
+ raise NotImplementedError
34
+ end
35
+
36
+ def status(
37
+ date_type: DATE_MEASURED_AT,
38
+ from: nil,
39
+ to: nil
40
+ )
41
+ tags = measurement_tags.values.join(',')
42
+ params = {
43
+ :access_token => @access_token,
44
+ :date => date_type,
45
+ :tag => tags
46
+ }
47
+ params[:from] = time_format(from) unless from.nil?
48
+ params[:to] = time_format(to) unless to.nil?
49
+
50
+ res = request(endpoint, params)
51
+ Result.new(:response => res, :client => self)
52
+ end
53
+
54
+ private
55
+
56
+ def time_format(time)
57
+ time.strftime('%Y%m%d%H%M%S')
58
+ end
59
+ end
60
+
61
+ class Result
62
+ include HttpHelper
63
+ attr_reader :birth_date
64
+ attr_reader :height
65
+ attr_reader :sex
66
+ attr_reader :data
67
+
68
+ def initialize(response:, client:)
69
+ result = parse_json(response.body)
70
+ @birth_date = result[:birth_date]
71
+ @height = result[:height]
72
+ @sex = result[:sex]
73
+
74
+ mapper = client.measurement_tags.invert
75
+ set_data(result[:data], mapper)
76
+ end
77
+
78
+ private
79
+
80
+ def set_data(items, mapper)
81
+ data_dic = {}
82
+ items.each do |item|
83
+ date = item[:date]
84
+ model = item[:model]
85
+ key = "#{date}_#{model}"
86
+ measurement = mapper[item[:tag]]
87
+ value = item[:keydata]
88
+
89
+ data_dic[key] ||= {}
90
+ data_dic[key][:date] = date unless data_dic[key].key? :date
91
+ data_dic[key][:model] = model unless data_dic[key].key? :model
92
+ data_dic[key][measurement] = value
93
+ end
94
+ # sort by date in ascending order
95
+ @data = data_dic.values { |dic| -dic[:date] }
96
+ end
97
+ end
98
+ end
99
+ end
100
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'json'
4
+ require 'net/https'
5
+
6
+ module Tanita
7
+ module Api
8
+ module Client
9
+ module HttpHelper
10
+ BASE_URL = 'https://www.healthplanet.jp'
11
+ DEFAULT_REDIRECT_URI = "#{BASE_URL}/success.html"
12
+
13
+ def generate_uri(path, params)
14
+ uri = URI.parse("#{BASE_URL}#{path}?#{URI.encode_www_form(params)}")
15
+ uri.to_s
16
+ end
17
+
18
+ def request(path, params)
19
+ uri = URI.parse("#{BASE_URL}#{path}")
20
+ http = Net::HTTP.new(uri.host, uri.port)
21
+ http.use_ssl = true
22
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE
23
+ req = Net::HTTP::Post.new(uri.path)
24
+ req.set_form_data(params)
25
+ http.request(req)
26
+ end
27
+
28
+ def parse_json(str)
29
+ JSON.parse(str, :symbolize_names => true)
30
+ rescue JSON::ParserError => e
31
+ raise Error.new("JSON::ParseError: '#{e}'\nstr:#{str}")
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Tanita
4
+ module Api
5
+ module Client
6
+ VERSION = '0.1.0'
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,32 @@
1
+ lib = File.expand_path("lib", __dir__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "tanita/api/client/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "tanita-api-client"
7
+ spec.version = Tanita::Api::Client::VERSION
8
+ spec.authors = ["Kenji Koshikawa"]
9
+ spec.email = ["koshikawa2009@gmail.com"]
10
+
11
+ spec.description = 'Client for accessing Tanita Health Planet APIs'
12
+ spec.summary = spec.description
13
+ spec.homepage = 'https://github.com/koshilife/tanita-api-ruby-client'
14
+ spec.license = "MIT"
15
+
16
+ spec.metadata["homepage_uri"] = spec.homepage
17
+ spec.metadata["source_code_uri"] = "https://github.com/koshilife/tanita-api-ruby-client"
18
+ spec.metadata["changelog_uri"] = "#{spec.metadata["source_code_uri"]}/CHANGELOG.md"
19
+
20
+ # Specify which files should be added to the gem when it is released.
21
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
22
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
23
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
24
+ end
25
+ spec.bindir = "exe"
26
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
+ spec.require_paths = ["lib"]
28
+
29
+ spec.add_development_dependency "bundler", "~> 2.0"
30
+ spec.add_development_dependency "rake", "~> 10.0"
31
+ spec.add_development_dependency "rspec", "~> 3.0"
32
+ end
metadata ADDED
@@ -0,0 +1,108 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tanita-api-client
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Kenji Koshikawa
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-01-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description: Client for accessing Tanita Health Planet APIs
56
+ email:
57
+ - koshikawa2009@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".rspec"
64
+ - ".rubocop.yml"
65
+ - ".ruby-version"
66
+ - ".travis.yml"
67
+ - ".vscode/settings.json"
68
+ - CHANGELOG.md
69
+ - CODE_OF_CONDUCT.md
70
+ - Gemfile
71
+ - Gemfile.lock
72
+ - LICENSE.txt
73
+ - README.md
74
+ - Rakefile
75
+ - bin/console
76
+ - bin/setup
77
+ - lib/tanita/api/client.rb
78
+ - lib/tanita/api/client/base.rb
79
+ - lib/tanita/api/client/helpers.rb
80
+ - lib/tanita/api/client/version.rb
81
+ - tanita-api-client.gemspec
82
+ homepage: https://github.com/koshilife/tanita-api-ruby-client
83
+ licenses:
84
+ - MIT
85
+ metadata:
86
+ homepage_uri: https://github.com/koshilife/tanita-api-ruby-client
87
+ source_code_uri: https://github.com/koshilife/tanita-api-ruby-client
88
+ changelog_uri: https://github.com/koshilife/tanita-api-ruby-client/CHANGELOG.md
89
+ post_install_message:
90
+ rdoc_options: []
91
+ require_paths:
92
+ - lib
93
+ required_ruby_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ required_rubygems_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ requirements: []
104
+ rubygems_version: 3.0.3
105
+ signing_key:
106
+ specification_version: 4
107
+ summary: Client for accessing Tanita Health Planet APIs
108
+ test_files: []