SMS 0.0.1 → 0.0.2
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/lib/sms.rb +3 -3
- data/lib/sms/version.rb +1 -1
- metadata +3 -3
data/lib/sms.rb
CHANGED
@@ -45,7 +45,7 @@ class SMS
|
|
45
45
|
recipients = Array(recipients)
|
46
46
|
recipients.map! { |r| r.to_s }
|
47
47
|
from = opts && opts[:from] || twilio_from
|
48
|
-
raise "You must set a
|
48
|
+
raise "You must set a twilio from number. Please put your from number" +
|
49
49
|
" in the environment variable as TWILIO_FROM or set it with SMS.from=" unless from
|
50
50
|
messages = Array(messages)
|
51
51
|
messages.map! { |m| m.to_s }
|
@@ -61,9 +61,9 @@ class SMS
|
|
61
61
|
|
62
62
|
private
|
63
63
|
def setup!
|
64
|
-
!twilio_account_id.nil? or raise "You must set a
|
64
|
+
!twilio_account_id.nil? or raise "You must set a twilio account id. Please put your account id" +
|
65
65
|
" in the environment variable as TWILIO_ACCOUNT_ID or set it with SMS.twilio_account_id="
|
66
|
-
!twilio_auth_token.nil? or raise "You must set a
|
66
|
+
!twilio_auth_token.nil? or raise "You must set a twilio auth token. Please put your auth token" +
|
67
67
|
" in the environment variable as TWILIO_AUTH_TOKEN or set it with SMS.twilio_auth_token="
|
68
68
|
end
|
69
69
|
end
|
data/lib/sms/version.rb
CHANGED
metadata
CHANGED