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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 00476d621a6b4cdef34730db1490849db6edce98
4
- data.tar.gz: f33ddb7a50cf00d7c625eabcefc16cc590c316c4
3
+ metadata.gz: 43d142a6e1f706affa1b4f6b7d5702175749d687
4
+ data.tar.gz: 4a59ae62ba49902072a440d8f3a431f0e0614e7b
5
5
  SHA512:
6
- metadata.gz: 34e4d17944fcbd6e1c665712819ad14db1a4bdaa4e21780e2ce90e463c0457fa6755f5e406531777af249b97a06859fcd4baea2fb2ca20384b40e4a29d758010
7
- data.tar.gz: 337983c6b9561f545a715930a3d98cdbba6023708a1a5213fc889f887d0d32466ae799cab6993d82ebe212fa4e8ea81a207767bf69bfc6766ab072bcebab358a
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(:light_yellow)
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
- CONFIG = hash[Rails.env] # it is calling as error because it is a Rails CONSTANT
39
- CONFIG.each do |k,v|
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
@@ -1,6 +1,6 @@
1
1
  module Socials
2
2
  MAJOR = 0
3
3
  MINOR = 0
4
- PATCH = 2
4
+ PATCH = 3
5
5
  VERSION = "#{MAJOR}.#{MINOR}.#{PATCH}"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: socials
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilton Garcia dos Santos Silveira