omniauth-mhealth 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,6 +27,8 @@ module OmniAuth
27
27
 
28
28
  option :authorize_options, [:scope]
29
29
 
30
+ option :api_site, 'https://api-mhealth.att.com/'
31
+
30
32
  uid { raw_info['email']['value'] }
31
33
 
32
34
  info do
@@ -43,7 +45,8 @@ module OmniAuth
43
45
  end
44
46
 
45
47
  def raw_info
46
- @raw_info ||= access_token.get('https://api-mhealth.att.com/v2/health/user').parsed || { }
48
+ url = options.api_site + 'v2/health/user'
49
+ @raw_info ||= access_token.get(url).parsed || { }
47
50
  end
48
51
 
49
52
  def authorize_params
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Mhealth
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-mhealth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-09 00:00:00.000000000 Z
12
+ date: 2012-09-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth-oauth2