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: 93c42eb9fd43d69aaff590dd248b90cf5d7380f1
4
- data.tar.gz: 01b1dccb4afa06f5217dc06fc229e04dec18af0c
3
+ metadata.gz: aa514d0f2ebdb830ed0e7f2e7a391381063f5e8c
4
+ data.tar.gz: 59b6f1d92a2792251e55eb425f594a9967a5842e
5
5
  SHA512:
6
- metadata.gz: b2e715ed0ddcdac20aa11a48e74b5d6bf91e509303804ba6ea64f2e7b127d2659a94efb54cebd4836f0ba121bdab4c4b45ba74649a9e3a0d63afdaeb5d1cb179
7
- data.tar.gz: c86669718c3fe9b35f50b44e831dc402be045bec9c29dadbff8028a3f1a1cf1e38ac5c2a54fa522583a37d072f4028b4561e729fbd9d0d0434d4569c60c404ae
6
+ metadata.gz: 86d0ae0cc9d7dbcbf6d233ebb43a21410952942f03c825b69e73e2640087d2af29c328bb828f807a34267bb4a79657986bfd091898c9117eb2c79b3f7b765b4c
7
+ data.tar.gz: 6709a1f44f011a6cf46ff758ea8a0893623fc6dfa108bb1420daf5328d68585247ea8c3ba1111105db345edba106fa627d515cb2874e5294e04414c8cbb5c9a6
@@ -1,5 +1,5 @@
1
1
  module Devise
2
2
  module MultiAuth
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise-multi_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - jeremy.n.friesen@gmail.com