omniauth-ihealth-oauth2 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/omniauth-ihealth-oauth2/version.rb +1 -1
- data/lib/omniauth/strategies/ihealth.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c969d227452de62ad69d2de395e737ad60c990196e50842d799fda75a924c8a
|
4
|
+
data.tar.gz: 00a4b10e414ca49b893b008a47d2d0e7089057a20575c9d8cb172b9d4f4bb0bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 231a76e2512dc159c1489e79c8e4e0656caf8264b4e3525a5148a985805f6821fb13eba74e20603445d0c5830fb1953e1d70018cb2c269ba95e70125d70bf4e0
|
7
|
+
data.tar.gz: 7ef2b2faeeb8db4fa8cb28edd94d9d8ccb47fa47734d4b8ee6b71b48774815fc2b54cf8a82d7b3fffd4ffc7863f1b6d714087c4ed3fb39e14c504a52f2a5b118
|
data/README.md
CHANGED
@@ -35,6 +35,8 @@ end
|
|
35
35
|
|
36
36
|
You can now access the OmniAuth iHealth OAuth2 URL: `/auth/ihealth`.
|
37
37
|
|
38
|
+
## To use with Devise follow the instructions in this [link](https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview).
|
39
|
+
|
38
40
|
## Granting Member Permissions to Your Application
|
39
41
|
|
40
42
|
With the iHealth API, you have the ability to specify which permissions you want users to grant your application.
|
@@ -67,8 +67,8 @@ module OmniAuth
|
|
67
67
|
user_data ||= {
|
68
68
|
:name => info["nickname"],
|
69
69
|
:gender => info["gender"].try(:downcase),
|
70
|
-
:birthday => Time.at(info["dateofbirth"]).to_date.strftime("%Y-%m-%d"),
|
71
|
-
:image => URI.unescape(info["logo"]),
|
70
|
+
:birthday => Time.at(info["dateofbirth"].to_i).to_date.strftime("%Y-%m-%d"),
|
71
|
+
:image => URI.unescape(info["logo"].to_s),
|
72
72
|
:nickname => info["nickname"],
|
73
73
|
:height => calc_height(info["height"], info["HeightUnit"]),
|
74
74
|
:weight => calc_weight(info["weight"], info["WeightUnit"])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-ihealth-oauth2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hunter Spinks
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2019-
|
14
|
+
date: 2019-12-13 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: omniauth-oauth2
|