omniauth-ihealth-oauth2 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -0
- data/README.md +3 -0
- data/lib/omniauth-ihealth-oauth2/version.rb +1 -1
- data/lib/omniauth/strategies/ihealth.rb +1 -1
- data/spec/omniauth/strategies/ihealth_spec.rb +0 -1
- 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: e6e3ff43fbe8cd61743e1c020be853ea6fcec302231c985e0fec0933a7b02bd5
|
4
|
+
data.tar.gz: 88d8db3b8a305da9ba340d6a4f20e98bad71172044974d1132dc8b24c1e0f49b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 782f0e56c136fd9f0fe202098c666e7dfaca6d7bd8ffa9619da2cfcb4eebf6a885fbfb72438535e860429d08bf58e7ee91029c9060d6988eae714073c2972516
|
7
|
+
data.tar.gz: 34a289c166c5ba66ad719b005e9493eeda50782a1235ce6971e593ce37342a1de12ad96118506539cd5c42bd085ac752e1742f1399bc6e6389bacd4024406c32
|
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# OmniAuth iHealth OAuth2 Strategy
|
2
2
|
|
3
|
+
[![Build Status](https://travis-ci.org/bartimaeus/omniauth-ihealth-oauth2.svg?branch=master)](https://travis-ci.org/bartimaeus/omniauth-ihealth-oauth2)
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/omniauth-ihealth-oauth2.svg)](https://badge.fury.io/rb/omniauth-ihealth-oauth2)
|
5
|
+
|
3
6
|
A iHealth OAuth2 strategy for OmniAuth.
|
4
7
|
|
5
8
|
For more details, read the iHealth documentation: https://developer.ihealthlabs.com
|
@@ -66,7 +66,7 @@ module OmniAuth
|
|
66
66
|
info = raw_info
|
67
67
|
user_data ||= {
|
68
68
|
:name => info["nickname"],
|
69
|
-
:gender => info["gender"]
|
69
|
+
:gender => info["gender"].try(:downcase),
|
70
70
|
:birthday => Time.at(info["dateofbirth"]).to_date.strftime("%Y-%m-%d"),
|
71
71
|
:image => URI.unescape(info["logo"]),
|
72
72
|
:nickname => info["nickname"],
|
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.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hunter Spinks
|
@@ -97,8 +97,8 @@ extensions: []
|
|
97
97
|
extra_rdoc_files: []
|
98
98
|
files:
|
99
99
|
- ".gitignore"
|
100
|
+
- ".travis.yml"
|
100
101
|
- Gemfile
|
101
|
-
- Gemfile.lock
|
102
102
|
- Guardfile
|
103
103
|
- LICENSE.txt
|
104
104
|
- README.md
|