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: fd14a54424030fa0313ba2bdd4b6b75a4fdcbd74
4
- data.tar.gz: cf0ffae611f824c7fca8323c2e65879d7bcb01e8
3
+ metadata.gz: bbbc359cde49b54ef02ec739ca2d82ee2214fac2
4
+ data.tar.gz: e76d0fb5123c24ae69247bfb609c9b558d73f767
5
5
  SHA512:
6
- metadata.gz: ce1679f456bc48e498a572d52dcbbc57d51ad86af3d9d7ee3976fe9f0e2ee0aa23d6958b462a0474c60046ca31a1cefd8a10dc3e112605a31c98db38a2606e97
7
- data.tar.gz: ed165a4bd609a58d39b8ecb8279ac7cc0f2df408e16bcf75b7f24ed6aefc131973156b07b9a23bd2236d31a77c401aacc06f4e32c8320966d39dc68668fa3f61
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
@@ -1,3 +1,3 @@
1
1
  module WeBridgeRailsEngineUsers
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: we_bridge_rails_engine_users
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinjiro Itagaki