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 +4 -4
- data/.github/workflows/gem-push.yml +1 -0
- data/CHANGELOG.md +6 -0
- data/lib/omniauth-tanita/version.rb +2 -2
- data/lib/omniauth/strategies/tanita.rb +7 -9
- data/omniauth-tanita.gemspec +1 -2
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c720eafb34089a6565b1b6c19846520eb0b6ba2d2d8215cd54671ddb489f6145
|
4
|
+
data.tar.gz: 16993aa8102c9b787db39b33b35c9aa7b7310035a1cf7cb6d3af195bda960a06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50fb40b4ac400bed6d328b8353df1b6f07b4f7a6ec4cccf1f55b5ef68c24d72149457e3ddf69d5246362fa0c8f112dee4d14d6f31f829bd6c9cd31d5b6b07de9
|
7
|
+
data.tar.gz: 1f31056d34429a873f2bfe0204835d027b6dab946726fd98f36c024a2350759efc0339a56d6962124ad92602b8bc7c087f95d0cd980a8bb069cfd09ddfefb519
|
data/CHANGELOG.md
CHANGED
@@ -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,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
|
-
|
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,
|
13
|
+
option :scope, 'innerscan'
|
14
|
+
|
15
|
+
option :client_options, :site => 'https://www.healthplanet.jp',
|
16
|
+
:authorize_url => '/oauth/auth'
|
16
17
|
|
17
|
-
|
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
|
-
|
24
|
-
|
22
|
+
end
|
25
23
|
end
|
26
24
|
end
|
27
25
|
end
|
data/omniauth-tanita.gemspec
CHANGED
@@ -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 =
|
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.
|
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-
|
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.
|
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:
|