fbdoorman 0.7.4 → 0.7.6
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.
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/app/models/clearance_mailer.rb +8 -2
- metadata +3 -3
data/Rakefile
CHANGED
@@ -18,7 +18,7 @@ Jeweler::Tasks.new do |gem|
|
|
18
18
|
gem.summary = "Rails authentication with facebook single sign-on OR email & password."
|
19
19
|
gem.description = "Painless user registration and sign-in using Facebook single sign-on with JS. Typical email login still works too."
|
20
20
|
gem.email = "pelaez89@gmail.com"
|
21
|
-
gem.version = "0.7.
|
21
|
+
gem.version = "0.7.6"
|
22
22
|
gem.homepage = "http://github.com/davidpelaez/minifb-clearance"
|
23
23
|
gem.authors = ["Fbdoorman: David Pelaez","MiniFB: Appoxy","Clearance: Thoughtbot"]
|
24
24
|
gem.files = FileList["[A-Z]*", "{app,config,generators,lib,shoulda_macros,rails}/**/*"]
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.6
|
@@ -2,7 +2,7 @@ class ClearanceMailer < ActionMailer::Base
|
|
2
2
|
|
3
3
|
def change_password(user)
|
4
4
|
from Clearance.configuration.mailer_sender
|
5
|
-
recipients user.email
|
5
|
+
recipients user.email
|
6
6
|
subject I18n.t(:change_password,
|
7
7
|
:scope => [:clearance, :models, :clearance_mailer],
|
8
8
|
:default => "Change your password")
|
@@ -11,11 +11,17 @@ class ClearanceMailer < ActionMailer::Base
|
|
11
11
|
|
12
12
|
def confirmation(user)
|
13
13
|
from Clearance.configuration.mailer_sender
|
14
|
-
recipients user
|
14
|
+
recipients select_destination(user)
|
15
15
|
subject I18n.t(:confirmation,
|
16
16
|
:scope => [:clearance, :models, :clearance_mailer],
|
17
17
|
:default => "Account confirmation")
|
18
18
|
body :user => user
|
19
19
|
end
|
20
|
+
|
21
|
+
private
|
22
|
+
|
23
|
+
def select_destination(user)
|
24
|
+
if user.email.blank? then user.email2 else user.email end
|
25
|
+
end
|
20
26
|
|
21
27
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fbdoorman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 0.7.
|
9
|
+
- 6
|
10
|
+
version: 0.7.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Fbdoorman: David Pelaez"
|