devise-multi_auth 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa514d0f2ebdb830ed0e7f2e7a391381063f5e8c
|
4
|
+
data.tar.gz: 59b6f1d92a2792251e55eb425f594a9967a5842e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86d0ae0cc9d7dbcbf6d233ebb43a21410952942f03c825b69e73e2640087d2af29c328bb828f807a34267bb4a79657986bfd091898c9117eb2c79b3f7b765b4c
|
7
|
+
data.tar.gz: 6709a1f44f011a6cf46ff758ea8a0893623fc6dfa108bb1420daf5328d68585247ea8c3ba1111105db345edba106fa627d515cb2874e5294e04414c8cbb5c9a6
|
@@ -6,6 +6,7 @@ module Devise::MultiAuth
|
|
6
6
|
|
7
7
|
class_option :install_devise, default: false, type: :boolean
|
8
8
|
class_option :skip_migrate, default: false, type: :boolean
|
9
|
+
class_option :with_omniauth_github, default: false, type: :boolean
|
9
10
|
|
10
11
|
def install_devise
|
11
12
|
if options[:install_devise]
|
@@ -14,11 +15,6 @@ module Devise::MultiAuth
|
|
14
15
|
end
|
15
16
|
end
|
16
17
|
|
17
|
-
def install_authentications_controller
|
18
|
-
gem "omniauth-github"
|
19
|
-
routing_code = %(, controllers: { omniauth_callbacks: 'devise/multi_auth/authentications' }\n)
|
20
|
-
insert_into_file 'config/routes.rb', routing_code, { :after => /devise_for :users/, :verbose => false }
|
21
|
-
end
|
22
18
|
|
23
19
|
def install_migrations
|
24
20
|
rake 'devise_multi_auth:install:migrations'
|
@@ -27,6 +23,13 @@ module Devise::MultiAuth
|
|
27
23
|
end
|
28
24
|
end
|
29
25
|
|
26
|
+
def install_authentications_controller
|
27
|
+
if options[:with_omniauth_github]
|
28
|
+
gem "omniauth-github"
|
29
|
+
end
|
30
|
+
routing_code = %(, controllers: { omniauth_callbacks: 'devise/multi_auth/authentications' }\n)
|
31
|
+
insert_into_file 'config/routes.rb', routing_code, { :after => /devise_for :users/, :verbose => false }
|
32
|
+
end
|
30
33
|
end
|
31
34
|
|
32
35
|
end
|