omniauth-galvanize 0.1.0 → 0.3.0

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
  SHA1:
3
- metadata.gz: 9ebaae03d4e5690ca7d68078056165fc72dbb803
4
- data.tar.gz: a7975bc398824f80bbdd237af8f2afca59facb30
3
+ metadata.gz: 018d3ae9713ef03859f625a0e4cb29b9b059751e
4
+ data.tar.gz: e7793a1108d38a04d99bb5eb9efd30bb7ce2df76
5
5
  SHA512:
6
- metadata.gz: 9ce2d7f0b8390bffed67e37f1b80c552dc8e0fd3b3a1ce0f86288329107c51cf130fef73f093b1d31a4d2310b59d29956b4e10cd4221290496cf25f89c7ade17
7
- data.tar.gz: b49e929deceb65475e231db0fd3c8cf69f2de625634ce20bc601de755301da744d6c2b590b0d5437cf224784ac152044b2680a738284db9fac8a4387cc282a80
6
+ metadata.gz: 75f2948593065190a82b1e305bee4cbe62dc309ce8a1387b567b1bdc72193a124da268514771b838e1c24261eae74430aed4ec92f8955d9fde6e1b70b390a750
7
+ data.tar.gz: 66592d6a067761a7b988752d30b579af76ca6b0344bc18b97155134f2ba0de1d801b66a7b99f09c0692d3b14366d93aeb20f006264156f56d11ee0b3827fce1f
@@ -11,6 +11,14 @@ module OmniAuth
11
11
  :token_url => '/accounts/token'
12
12
  }
13
13
 
14
+ SETUP_PROC = lambda do |env|
15
+ if env['omniauth.strategy'].options[:sign_up]
16
+ env['omniauth.strategy'].options[:client_options][:authorize_url] = 'accounts/signup'
17
+ end
18
+ end
19
+
20
+ OmniAuth.config.before_request_phase = SETUP_PROC
21
+
14
22
  uid{ raw_info['results'][0]['id'] }
15
23
 
16
24
  info do
@@ -37,4 +45,4 @@ module OmniAuth
37
45
  end
38
46
  end
39
47
  end
40
- end
48
+ end
@@ -11,6 +11,14 @@ module OmniAuth
11
11
  :token_url => '/accounts/token'
12
12
  }
13
13
 
14
+ SETUP_PROC = lambda do |env|
15
+ if env['omniauth.strategy'].options[:sign_up]
16
+ env['omniauth.strategy'].options[:client_options][:authorize_url] = 'accounts/signup'
17
+ end
18
+ end
19
+
20
+ OmniAuth.config.before_request_phase = SETUP_PROC
21
+
14
22
  uid{ raw_info['results'][0]['id'] }
15
23
 
16
24
  info do
@@ -37,4 +45,4 @@ module OmniAuth
37
45
  end
38
46
  end
39
47
  end
40
- end
48
+ end
@@ -11,6 +11,14 @@ module OmniAuth
11
11
  :token_url => '/accounts/token'
12
12
  }
13
13
 
14
+ SETUP_PROC = lambda do |env|
15
+ if env['omniauth.strategy'].options[:sign_up]
16
+ env['omniauth.strategy'].options[:client_options][:authorize_url] = 'accounts/signup'
17
+ end
18
+ end
19
+
20
+ OmniAuth.config.before_request_phase = SETUP_PROC
21
+
14
22
  uid{ raw_info['results'][0]['id'] }
15
23
 
16
24
  info do
@@ -38,4 +46,4 @@ module OmniAuth
38
46
  end
39
47
  end
40
48
  end
41
- end
49
+ end
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Galvanize
3
- VERSION = "0.1.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
- end
5
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-galvanize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Cunningham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-14 00:00:00.000000000 Z
11
+ date: 2015-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth