we_bridge_rails_engine_users 0.1.2 → 0.1.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbbc359cde49b54ef02ec739ca2d82ee2214fac2
|
4
|
+
data.tar.gz: e76d0fb5123c24ae69247bfb609c9b558d73f767
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ce99e8ba5c95612c0228b8ffb2756534660dfb27bdbb23eeb31b35a690695d608476d19a5ecceb7f03533b226a0a63e71cff44bc8b62760a12d83d6a5d8a7b7
|
7
|
+
data.tar.gz: 77f5d7db81dfab972eb0522eed5aeda0acf19b9222e7f41c5d3670fbf7c0e958833aed302fe8ff783483525f04ea0a31859659b71116b71ea7d21837d6c3b1fb
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'yaml'
|
2
|
+
require 'rubygems'
|
2
3
|
module WeBridgeRailsEngineUsers
|
3
4
|
class ProviderSettings < Hash
|
4
5
|
|
@@ -68,6 +69,10 @@ module WeBridgeRailsEngineUsers
|
|
68
69
|
conf.merge!(
|
69
70
|
request_path: ProviderSettings.request_path(name),
|
70
71
|
callback_path: ProviderSettings.callback_path(name))
|
72
|
+
lib = Gem::Specification.all.to_hash.keys.find{|n|
|
73
|
+
n.include?('omniauth') && n.downcase.gsub('_','-').include?(oauth_provider_symbol.to_s.gsub('_','-').downcase)
|
74
|
+
}
|
75
|
+
require lib
|
71
76
|
provider oauth_provider_symbol, key, secret, conf.merge(key: nil, secret: nil, name: nil)
|
72
77
|
end
|
73
78
|
end
|