tanita-api-client 0.3.0 → 0.5.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: 91859c1415a0fc78e01c01c1e615acdca193ce8ec887abaa19ce5d3e1353285f
4
- data.tar.gz: 4b875b46afb595f6ccb84fb6776da2f4527ab9b099274131251b0a65c2ceaba9
3
+ metadata.gz: 2cb4cedf41e749ea0b6b75bb3477d80e3572ecb38fa39667af9b0aadabcdab11
4
+ data.tar.gz: 2beef47a5586a8b1fecf0c413d3bd330ee9ca2fb05031620ff85412eb5ec9af9
5
5
  SHA512:
6
- metadata.gz: bcd9de5af29bcf2c760a501dab1f4165c6a9102960d64ca23c10d3fbbbeadccc96ccdafd92da4bf776b2778f4d65a1f5dd9976c952317b835a8bc8ec934986ad
7
- data.tar.gz: 1193a310b0014f32f16cf6b5819960b6326a8ef486582007d0a4a179c9ce8fc0788dea6d0a2c67dbefd61c600a9ed731621d4044e22b955aaef54512c00240f2
6
+ metadata.gz: cdd24c58765cff70412a19471edd7a0349a472f180d62bda703756a59d03158e9a804e209cdd05d3c415e10080b5c3155b69e21e2a4b5486db10407321b9f139
7
+ data.tar.gz: efa02fb10dffbc58efc8009ebf5d98e53da1fe5df5d8ea0e4611bfeea1f6f78fa9115c39b4743931d5654fa18efb11a9b3e10721f00de33cb1fcc4f3b9f933d8
@@ -0,0 +1,37 @@
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
+ continue-on-error: true
36
+ env:
37
+ 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}}
@@ -23,12 +23,11 @@ Metrics/BlockNesting:
23
23
  Max: 2
24
24
 
25
25
  Layout/LineLength:
26
- AllowURI: true
27
- Enabled: false
26
+ Max: 120
28
27
 
29
28
  Metrics/MethodLength:
30
29
  CountComments: false
31
- Max: 15
30
+ Max: 20
32
31
 
33
32
  Metrics/ParameterLists:
34
33
  Max: 4
@@ -39,10 +38,10 @@ Metrics/AbcSize:
39
38
 
40
39
  Style/CollectionMethods:
41
40
  PreferredMethods:
42
- map: 'collect'
43
- reduce: 'inject'
44
- find: 'detect'
45
- find_all: 'select'
41
+ map: "collect"
42
+ reduce: "inject"
43
+ find: "detect"
44
+ find_all: "select"
46
45
 
47
46
  Style/Documentation:
48
47
  Enabled: false
@@ -60,10 +59,13 @@ Style/ExpandPathArguments:
60
59
  Enabled: false
61
60
 
62
61
  Style/HashSyntax:
63
- EnforcedStyle: hash_rockets
62
+ EnforcedStyle: ruby19
64
63
 
65
64
  Style/Lambda:
66
65
  Enabled: false
67
66
 
68
67
  Style/RaiseArgs:
69
- EnforcedStyle: compact
68
+ EnforcedStyle: compact
69
+
70
+ Style/AsciiComments:
71
+ Enabled: false
@@ -1,4 +1,23 @@
1
- # 0.3.0
1
+ # CHANGELOG
2
+
3
+ ## 0.5.1
4
+
5
+ - fix rubocop warnings.
6
+
7
+ ## 0.5.0
8
+
9
+ - refs #12 fix dependencies.
10
+
11
+ ## 0.4.1
12
+
13
+ - refs #4 fix settings for simplecov.
14
+
15
+ ## 0.4.0
16
+
17
+ - refs #4 measure code coverage
18
+ - refs #5 setup GitHub Actions for rspec and pushing to RubyGems
19
+
20
+ ## 0.3.0
2
21
 
3
22
  changed Result hash to be Object.
4
23
 
@@ -9,40 +28,38 @@ result.items[0][:weight]
9
28
  result.items[0].weight
10
29
  ```
11
30
 
12
- # 0.2.3
31
+ ## 0.2.3
13
32
 
14
33
  remove Gemfile.lock
15
34
 
16
- # 0.2.2
17
-
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
-
35
+ ## 0.2.2
24
36
 
25
- # 0.2.1
37
+ - define constants
38
+ - `Tanita::Api::Client::AUTH_URL`
39
+ - `Tanita::Api::Client::AUTH_URL_PATH`
40
+ - `Tanita::Api::Client::TOKEN_URL`
41
+ - `Tanita::Api::Client::TOKEN_URL_PATH`
26
42
 
27
- * rename constant
28
- * from `Tanita::Api::Client::HttpHelper::BASE_URL` to `Tanita::Api::Client::BASE_URL`
43
+ ## 0.2.1
29
44
 
30
- # 0.2.0
45
+ - rename constant
46
+ - from `Tanita::Api::Client::HttpHelper::BASE_URL` to `Tanita::Api::Client::BASE_URL`
31
47
 
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]`
48
+ ## 0.2.0
39
49
 
40
- # 0.1.1
50
+ - set required ruby version to greater than or equal to v2.4
51
+ - added `data_type` argument in BaseApiClient#initialize
52
+ - set a proper data type in Result class attributes
53
+ - rename some attributes in Result class
54
+ - e.g.
55
+ - `@data` to `@items`
56
+ - `@data[0][:date]` to `@items[0][:measured_at]` or `@items[0][:registered_at]`
41
57
 
42
- * support Tanita::Api::Client.configure
43
- * wrote spec
58
+ ## 0.1.1
44
59
 
45
- # 0.1.0
60
+ - support Tanita::Api::Client.configure
61
+ - wrote spec
46
62
 
47
- * Initial release
63
+ ## 0.1.0
48
64
 
65
+ - 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
 
data/Rakefile CHANGED
@@ -1,6 +1,8 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
3
5
 
4
6
  RSpec::Core::RakeTask.new(:spec)
5
7
 
6
- task :default => :spec
8
+ task default: :spec
@@ -1,14 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
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"
4
+ require 'bundler/setup'
5
+ require 'tanita/api/client'
6
+ require 'irb'
14
7
  IRB.start(__FILE__)
data/bin/setup CHANGED
@@ -4,5 +4,3 @@ IFS=$'\n\t'
4
4
  set -vx
5
5
 
6
6
  bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -35,21 +35,21 @@ module Tanita
35
35
 
36
36
  def auth_uri
37
37
  params = {
38
- :client_id => @client_id,
39
- :redirect_uri => @redirect_uri,
40
- :scope => @scopes.join(','),
41
- :response_type => 'code'
38
+ client_id: @client_id,
39
+ redirect_uri: @redirect_uri,
40
+ scope: @scopes.join(','),
41
+ response_type: 'code'
42
42
  }
43
43
  generate_uri(AUTH_URL_PATH, params)
44
44
  end
45
45
 
46
46
  def exchange_token(auth_code:)
47
47
  params = {
48
- :client_id => @client_id,
49
- :client_secret => @client_secret,
50
- :redirect_uri => DEFAULT_REDIRECT_URI,
51
- :code => auth_code,
52
- :grant_type => 'authorization_code'
48
+ client_id: @client_id,
49
+ client_secret: @client_secret,
50
+ redirect_uri: DEFAULT_REDIRECT_URI,
51
+ code: auth_code,
52
+ grant_type: 'authorization_code'
53
53
  }
54
54
  res = request(TOKEN_URL_PATH, params)
55
55
  token = parse_json(res.body)
@@ -76,14 +76,14 @@ module Tanita
76
76
 
77
77
  def self.properties
78
78
  {
79
- :weight => {:code => '6021', :type => Float},
80
- :body_fat => {:code => '6022', :type => Float},
81
- :muscle_mass => {:code => '6023', :type => Float},
82
- :physique_rating => {:code => '6024', :type => Integer},
83
- :visceral_fat_rating => {:code => '6025', :type => Float},
84
- :basal_metabolic_rate => {:code => '6027', :type => Integer},
85
- :metabolic_age => {:code => '6028', :type => Integer},
86
- :bone_mass => {:code => '6029', :type => Float}
79
+ weight: {code: '6021', type: Float},
80
+ body_fat: {code: '6022', type: Float},
81
+ muscle_mass: {code: '6023', type: Float},
82
+ physique_rating: {code: '6024', type: Integer},
83
+ visceral_fat_rating: {code: '6025', type: Float},
84
+ basal_metabolic_rate: {code: '6027', type: Integer},
85
+ metabolic_age: {code: '6028', type: Integer},
86
+ bone_mass: {code: '6029', type: Float}
87
87
  }
88
88
  end
89
89
  end
@@ -95,9 +95,9 @@ module Tanita
95
95
 
96
96
  def self.properties
97
97
  {
98
- :maximal_pressure => {:code => '622E', :type => Integer},
99
- :minimal_pressure => {:code => '622F', :type => Integer},
100
- :pulse => {:code => '6230', :type => Integer}
98
+ maximal_pressure: {code: '622E', type: Integer},
99
+ minimal_pressure: {code: '622F', type: Integer},
100
+ pulse: {code: '6230', type: Integer}
101
101
  }
102
102
  end
103
103
  end
@@ -109,9 +109,9 @@ module Tanita
109
109
 
110
110
  def self.properties
111
111
  {
112
- :steps => {:code => '6331', :type => Integer},
113
- :exercise => {:code => '6335', :type => Integer},
114
- :calories => {:code => '6336', :type => Integer}
112
+ steps: {code: '6331', type: Integer},
113
+ exercise: {code: '6335', type: Integer},
114
+ calories: {code: '6336', type: Integer}
115
115
  }
116
116
  end
117
117
  end
@@ -123,7 +123,7 @@ module Tanita
123
123
 
124
124
  def self.properties
125
125
  {
126
- :urinary_sugar => {:code => '6240', :type => Integer}
126
+ urinary_sugar: {code: '6240', type: Integer}
127
127
  }
128
128
  end
129
129
  end
@@ -3,7 +3,6 @@
3
3
  module Tanita
4
4
  module Api
5
5
  module Client
6
-
7
6
  module Scope
8
7
  INNERSCAN = 'innerscan'
9
8
  SPHYGMOMANOMETER = 'sphygmomanometer'
@@ -16,7 +15,6 @@ module Tanita
16
15
 
17
16
  class Error < StandardError
18
17
  end
19
-
20
18
  end
21
19
  end
22
20
  end
@@ -26,7 +26,9 @@ module Tanita
26
26
  raise Error.new("param:'access_token' is required.'") if @access_token.nil?
27
27
 
28
28
  @date_type = date_type
29
- raise Error.new("param:'date_type' is invalid.'") unless [DATE_TYPE_REGISTERD_AT, DATE_TYPE_MEASURED_AT].include? date_type
29
+ unless [DATE_TYPE_REGISTERD_AT, DATE_TYPE_MEASURED_AT].include? date_type
30
+ raise Error.new("param:'date_type' is invalid.'")
31
+ end
30
32
 
31
33
  ClassBuilder.load
32
34
  end
@@ -37,9 +39,9 @@ module Tanita
37
39
  )
38
40
  tags = self.class.properties.values.map { |i| i[:code] }.join(',')
39
41
  params = {
40
- :access_token => @access_token,
41
- :date => @date_type,
42
- :tag => tags
42
+ access_token: @access_token,
43
+ date: @date_type,
44
+ tag: tags
43
45
  }
44
46
  params[:from] = time_format(from) unless from.nil?
45
47
  params[:to] = time_format(to) unless to.nil?
@@ -56,10 +58,10 @@ module Tanita
56
58
  def build_result(res)
57
59
  result = parse_json(res.body)
58
60
  Result.new(
59
- :birth_date => Date.parse(result[:birth_date]),
60
- :height => result[:height].to_f,
61
- :sex => result[:sex],
62
- :items => build_result_items(:raw_items => result[:data])
61
+ birth_date: Date.parse(result[:birth_date]),
62
+ height: result[:height].to_f,
63
+ sex: result[:sex],
64
+ items: build_result_items(raw_items: result[:data])
63
65
  )
64
66
  end
65
67
 
@@ -69,8 +71,8 @@ module Tanita
69
71
  date = item[:date]
70
72
  model = item[:model]
71
73
  key = "#{date}_#{model}"
72
- property = find_property_by_code(:code => item[:tag])
73
- value = cast(:value => item[:keydata], :type => property[:type])
74
+ property = find_property_by_code(code: item[:tag])
75
+ value = cast(value: item[:keydata], type: property[:type])
74
76
  item_dic[key] ||= {}
75
77
  item_dic[key][date_key] = Time.parse("#{date} +09:00").to_i unless item_dic[key].key? :date
76
78
  item_dic[key][:model] = model unless item_dic[key].key? :model
@@ -93,7 +95,7 @@ module Tanita
93
95
 
94
96
  @property_code_dic = {}
95
97
  self.class.properties.each do |m_name, m_info|
96
- @property_code_dic[m_info[:code]] = {:name => m_name, :type => m_info[:type]}
98
+ @property_code_dic[m_info[:code]] = {name: m_name, type: m_info[:type]}
97
99
  end
98
100
  @property_code_dic[code]
99
101
  end
@@ -5,7 +5,6 @@ module Tanita
5
5
  module Client
6
6
  class BaseEntity
7
7
  def initialize(property_values = {})
8
- @properties = []
9
8
  @cached_property_values = {}
10
9
  @cached_property_values.merge!(property_values)
11
10
  end
@@ -13,7 +12,7 @@ module Tanita
13
12
  def to_h
14
13
  ret = {}
15
14
  self.class.properties.each do |property|
16
- ret[property.to_sym] = eval property.to_s
15
+ ret[property.to_sym] = eval property.to_s # rubocop:disable Security/Eval
17
16
  end
18
17
  ret
19
18
  end
@@ -27,10 +27,10 @@ module Tanita
27
27
  klass = Tanita::Api::Client.const_set(class_name, super_klass)
28
28
  define_properties_reader(klass)
29
29
  property_names.each do |property_name|
30
- klass.properties << property_name if klass.respond_to?(:properties)
30
+ klass.properties << property_name
31
31
  define_getter_and_setter(klass, property_name)
32
32
  end
33
- klass.properties.freeze if klass.respond_to?(:properties)
33
+ klass.properties.freeze
34
34
  end
35
35
  private_class_method :create_class
36
36
 
@@ -4,19 +4,15 @@ module Tanita
4
4
  module Api
5
5
  module Client
6
6
  class Configuration
7
- # [String]
7
+ # @return [String]
8
8
  attr_accessor :client_id
9
-
10
- # [String]
9
+ # @return [String]
11
10
  attr_accessor :client_secret
12
-
13
- # [String]
11
+ # @return [String]
14
12
  attr_accessor :redirect_uri
15
-
16
- # [String]
13
+ # @return [String]
17
14
  attr_accessor :access_token
18
-
19
- # [Array<Tanita::Api::Client::Scope>]
15
+ # @return [Array<Tanita::Api::Client::Scope>]
20
16
  attr_accessor :scopes
21
17
  end
22
18
  end
@@ -33,7 +33,7 @@ module Tanita
33
33
  end
34
34
 
35
35
  def parse_json(str)
36
- JSON.parse(str, :symbolize_names => true)
36
+ JSON.parse(str, symbolize_names: true)
37
37
  rescue JSON::ParserError => e
38
38
  raise Error.new("JSON::ParseError: '#{e}'\nstr:#{str}")
39
39
  end
@@ -3,7 +3,7 @@
3
3
  module Tanita
4
4
  module Api
5
5
  module Client
6
- VERSION = '0.3.0'
6
+ VERSION = '0.5.1'
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.
@@ -30,8 +30,10 @@ Gem::Specification.new do |spec|
30
30
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
31
  spec.require_paths = ['lib']
32
32
 
33
- spec.add_development_dependency 'bundler', '~> 2.0'
34
- spec.add_development_dependency 'rake', '~> 12.0'
35
- spec.add_development_dependency 'rspec', '~> 3.0'
36
- spec.add_development_dependency 'webmock', '~> 3.7.6'
33
+ spec.add_development_dependency 'bundler'
34
+ spec.add_development_dependency 'codecov'
35
+ spec.add_development_dependency 'rake'
36
+ spec.add_development_dependency 'rspec'
37
+ spec.add_development_dependency 'simplecov'
38
+ spec.add_development_dependency 'webmock'
37
39
  end
metadata CHANGED
@@ -1,71 +1,99 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tanita-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.5.1
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-13 00:00:00.000000000 Z
11
+ date: 2020-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '2.0'
26
+ version: '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'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rake
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - "~>"
45
+ - - ">="
32
46
  - !ruby/object:Gem::Version
33
- version: '12.0'
47
+ version: '0'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - "~>"
52
+ - - ">="
39
53
  - !ruby/object:Gem::Version
40
- version: '12.0'
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rspec
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - "~>"
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: simplecov
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
46
74
  - !ruby/object:Gem::Version
47
- version: '3.0'
75
+ version: '0'
48
76
  type: :development
49
77
  prerelease: false
50
78
  version_requirements: !ruby/object:Gem::Requirement
51
79
  requirements:
52
- - - "~>"
80
+ - - ">="
53
81
  - !ruby/object:Gem::Version
54
- version: '3.0'
82
+ version: '0'
55
83
  - !ruby/object:Gem::Dependency
56
84
  name: webmock
57
85
  requirement: !ruby/object:Gem::Requirement
58
86
  requirements:
59
- - - "~>"
87
+ - - ">="
60
88
  - !ruby/object:Gem::Version
61
- version: 3.7.6
89
+ version: '0'
62
90
  type: :development
63
91
  prerelease: false
64
92
  version_requirements: !ruby/object:Gem::Requirement
65
93
  requirements:
66
- - - "~>"
94
+ - - ">="
67
95
  - !ruby/object:Gem::Version
68
- version: 3.7.6
96
+ version: '0'
69
97
  description: Client for accessing Tanita Health Planet APIs
70
98
  email:
71
99
  - koshikawa2009@gmail.com
@@ -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.5.1
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