omniauth-tanita 0.2.3 → 0.3.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: 9eef96d05035d109a2a91b80964ace3e02d41e407b0cc54dd019616b1c2905b0
4
- data.tar.gz: 74c4056c1cdbeb9e9feb37b4b52fb9e378dd1bbe04b9384a5a535a841365765a
3
+ metadata.gz: c720eafb34089a6565b1b6c19846520eb0b6ba2d2d8215cd54671ddb489f6145
4
+ data.tar.gz: 16993aa8102c9b787db39b33b35c9aa7b7310035a1cf7cb6d3af195bda960a06
5
5
  SHA512:
6
- metadata.gz: 0fa761375b19f482f14914f641547e1eb1e9d756d322e73fb0ecb6fb95b3bb3a82b73d22d5423eda921f12cd7534b2b5ac13c8b4915e7bb8e64c245322b6327d
7
- data.tar.gz: 2bcba2d681d74554a6138102bb626659377c11c9ca5c0e8142c2dc57fe2be8f46e1f80d0472125bc1964eb343eb2fd8a8526fbac1768a1246aa5497a0f223747
6
+ metadata.gz: 50fb40b4ac400bed6d328b8353df1b6f07b4f7a6ec4cccf1f55b5ef68c24d72149457e3ddf69d5246362fa0c8f112dee4d14d6f31f829bd6c9cd31d5b6b07de9
7
+ data.tar.gz: 1f31056d34429a873f2bfe0204835d027b6dab946726fd98f36c024a2350759efc0339a56d6962124ad92602b8bc7c087f95d0cd980a8bb069cfd09ddfefb519
@@ -32,5 +32,6 @@ jobs:
32
32
  printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
33
33
  gem build *.gemspec
34
34
  gem push *.gem
35
+ continue-on-error: true
35
36
  env:
36
37
  GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
@@ -1,3 +1,9 @@
1
+ # 0.3.0
2
+
3
+ - remove 'tanita-api-client' dependency.
4
+ - rename module 'Omniauth' to 'OmniAuth'.
5
+ - update gem-push GitHub Actions settings in order to ignore error for same version.
6
+
1
7
  # 0.2.3
2
8
 
3
9
  - refs #1 setup GitHub Actions for rspec and pushing to RubyGems.
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module Omniauth
3
+ module OmniAuth
4
4
  module Tanita
5
- VERSION = '0.2.3'
5
+ VERSION = '0.3.0'
6
6
  end
7
7
  end
@@ -1,27 +1,25 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'omniauth-oauth2'
4
- require 'tanita/api/client'
5
4
 
6
5
  module OmniAuth
7
6
  module Strategies
8
- TANITA = Tanita::Api::Client
9
-
7
+ # OmniAuth strategy for Health Planet
10
8
  class Tanita < OmniAuth::Strategies::OAuth2
11
9
  option :name, 'tanita'
12
10
 
13
11
  option :skip_info, true
14
12
  option :provider_ignores_state, true
15
- option :scope, TANITA::Scope::INNERSCAN
13
+ option :scope, 'innerscan'
14
+
15
+ option :client_options, :site => 'https://www.healthplanet.jp',
16
+ :authorize_url => '/oauth/auth'
16
17
 
17
- option :client_options, :site => TANITA::BASE_URL,
18
- :authorize_url => TANITA::AUTH_URL_PATH,
19
- :token_url => TANITA::TOKEN_URL_PATH
18
+ private
20
19
 
21
20
  def callback_url
22
21
  full_host + script_name + callback_path
23
- end
24
-
22
+ end
25
23
  end
26
24
  end
27
25
  end
@@ -4,7 +4,7 @@ require_relative 'lib/omniauth-tanita/version'
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'omniauth-tanita'
7
- spec.version = Omniauth::Tanita::VERSION
7
+ spec.version = OmniAuth::Tanita::VERSION
8
8
  spec.authors = ['Kenji Koshikawa']
9
9
  spec.email = ['koshikawa2009@gmail.com']
10
10
 
@@ -28,7 +28,6 @@ Gem::Specification.new do |spec|
28
28
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
29
29
  spec.require_paths = ['lib']
30
30
 
31
- spec.add_runtime_dependency 'tanita-api-client', '~> 0.2.3'
32
31
  spec.add_runtime_dependency 'omniauth-oauth2', '~> 1.6.0'
33
32
 
34
33
  spec.add_development_dependency 'bundler', '~> 2.0'
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-tanita
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.3.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-07-03 00:00:00.000000000 Z
11
+ date: 2020-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: tanita-api-client
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: 0.2.3
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: 0.2.3
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: omniauth-oauth2
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -140,7 +126,7 @@ metadata:
140
126
  homepage_uri: https://github.com/koshilife/omniauth-tanita
141
127
  source_code_uri: https://github.com/koshilife/omniauth-tanita
142
128
  changelog_uri: https://github.com/koshilife/omniauth-tanita/blob/master/CHANGELOG.md
143
- documentation_uri: https://www.rubydoc.info/gems/omniauth-tanita/0.2.3
129
+ documentation_uri: https://www.rubydoc.info/gems/omniauth-tanita/0.3.0
144
130
  post_install_message:
145
131
  rdoc_options: []
146
132
  require_paths: