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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 31694b8e8e2d4b7032db272cc4aa8df32746c87ee26a104a175c7b36de1d2a60
4
- data.tar.gz: 61b613d35b59eb69ea6dd87b4dc497f2c7b99b46af97f918e1c1406fc3954c28
3
+ metadata.gz: 8c969d227452de62ad69d2de395e737ad60c990196e50842d799fda75a924c8a
4
+ data.tar.gz: 00a4b10e414ca49b893b008a47d2d0e7089057a20575c9d8cb172b9d4f4bb0bc
5
5
  SHA512:
6
- metadata.gz: 8727d904e2ca3294aab6493ec6f1ddfad6f9e84cc41aebad9021af7bd54b936bfa0e0f8fad869792a1de3a46ad4b2dbbbbbbe212b5debeeceafdc69554dfd7a5
7
- data.tar.gz: 6d4b1ae62c30458d1f2766f03602ca3df574552491d17ab1023994e0eabf059b675cfdc1adac5e1bae0067027ce69d3da16026ca0b9c0569923a5b8aec8afa05
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.
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module IHealthOauth2
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
@@ -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.0
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-06-25 00:00:00.000000000 Z
14
+ date: 2019-12-13 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: omniauth-oauth2