referthis 0.4.12 → 0.4.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mailers/mailer.rb +1 -1
- data/lib/sms.rb +1 -1
- metadata +2 -2
data/lib/mailers/mailer.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# http://stackoverflow.com/questions/6021372/best-way-to-create-unique-token-in-rails
|
2
2
|
class Mailer < ActionMailer::Base
|
3
3
|
def send_referral(referral, url, referrer_name, app_name)
|
4
|
-
mail(:to => Referee.find(referral.referee_id).endpoint, :subject => app_name, :body => referrer_name + ' has referred you to ' + app_name + '
|
4
|
+
mail(:to => Referee.find(referral.referee_id).endpoint, :subject => app_name, :body => referrer_name + ' has referred you to ' + app_name + '! You might be interested in checking out the following: ' + url + '/' + Base64::encode64(referral.id.to_s).chop + '.')
|
5
5
|
end
|
6
6
|
end
|
data/lib/sms.rb
CHANGED
@@ -8,6 +8,6 @@ class SMS
|
|
8
8
|
return number.to_s.gsub(/\D/, '')
|
9
9
|
end
|
10
10
|
def self.send_referral(referral, url, referrer_name, app_name)
|
11
|
-
@@account.sms.messages.create(:from => '+18599030353', :to => Referee.find(referral.referee_id).endpoint, :body => referrer_name + ' has referred you to ' + app_name + '
|
11
|
+
@@account.sms.messages.create(:from => '+18599030353', :to => Referee.find(referral.referee_id).endpoint, :body => referrer_name + ' has referred you to ' + app_name + '! You might be interested in checking out the following: ' + url + '/' + Base64::encode64(referral.id.to_s).chop + '.')
|
12
12
|
end
|
13
13
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: referthis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.13
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-03 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email:
|