socials 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/socials/install_generator.rb +5 -3
- data/lib/socials/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43d142a6e1f706affa1b4f6b7d5702175749d687
|
4
|
+
data.tar.gz: 4a59ae62ba49902072a440d8f3a431f0e0614e7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0add2dfe308c7e7e3b69dbe2ce3ef6e16a610d464810fed784ea778c933daeff8e40107c5559230655b51d6ffe67dc9935cefd44b4b5d5079f6e93082987aa07
|
7
|
+
data.tar.gz: 088f8cce57ad46bcfa6e50ba7e6be7d5acfdeea988a2ca058e5fe2603e82288a6b35d14a2fa40e3b95e37c15f0e8fd19f4cf7645743b8b0e78e475e15cc842f6
|
@@ -19,7 +19,7 @@ module Socials
|
|
19
19
|
|
20
20
|
# Add the OAuth Controller
|
21
21
|
template "controllers/omniauth_callbacks_controller.rb", "app/controllers/omniauth_callbacks_controller.rb"
|
22
|
-
puts 'Check out you your app/controllers/omniauth_callbacks_controller.rb which persist the social user through devise'.colorize(:
|
22
|
+
puts 'Check out you your app/controllers/omniauth_callbacks_controller.rb which persist the social user through devise'.colorize(:light_green)
|
23
23
|
end
|
24
24
|
|
25
25
|
# Update files to let the Social working
|
@@ -29,17 +29,19 @@ module Socials
|
|
29
29
|
devise_for :users, controllers: { omniauth_callbacks: "omniauth_callbacks" }
|
30
30
|
RUBY
|
31
31
|
end
|
32
|
+
puts 'Check out you your config/routes.rb where the devise OAuth route was created'.colorize(:light_green)
|
32
33
|
|
33
34
|
# Update the application.rb to load the socials_keys on initialize
|
34
35
|
application do
|
35
36
|
social_keys = File.join(Rails.root, 'config', 'social_keys.yml')
|
36
37
|
yml = YAML::load(IO.read(social_keys))
|
37
38
|
hash = HashWithIndifferentAccess.new(yml)
|
38
|
-
|
39
|
-
|
39
|
+
config = hash[Rails.env] # it is calling as error because it is a Rails CONSTANT
|
40
|
+
config.each do |k,v|
|
40
41
|
ENV[k.upcase] ||= v
|
41
42
|
end
|
42
43
|
end
|
44
|
+
puts 'UPDATE your config/initializers/application.rb and UPCASE the \'config\' to \'CONFIG\''.colorize(:light_yellow)
|
43
45
|
end
|
44
46
|
end
|
45
47
|
end
|
data/lib/socials/version.rb
CHANGED