diff options
| author | Brendan G. Lim | 2008-03-31 18:23:53 -0400 |
|---|---|---|
| committer | Brendan G. Lim | 2008-03-31 18:23:53 -0400 |
| commit | 364997b52bdb1c7ae8b3382b4742b5fbd52fb20c (patch) | |
| tree | 631587986d37f3931a40a670318b3b405e381287 | |
| parent | 5ecbaaee4d38543a66767b02d5b41ef9e885f2d5 (diff) | |
| download | sms-fu-364997b52bdb1c7ae8b3382b4742b5fbd52fb20c.tar.bz2 | |
Fixed indentation of README and minor tweak
| -rw-r--r-- | README | 6 | ||||
| -rw-r--r-- | lib/sms_fu.rb | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -52,11 +52,11 @@ Example Usage deliver_sms("5558675309","at&t","your message here", :limit => 128) - * You can retrieve just the formatted address to use in your own mailer. + * You can retrieve just the formatted address to use in your own mailer. - get_sms_address("5558675309","at&t") + get_sms_address("5558675309","at&t") - This returns "5558675309@txt.att.net" + This returns "5558675309@txt.att.net" Copyright (c) 2008 Brendan G. Lim, released under the MIT license diff --git a/lib/sms_fu.rb b/lib/sms_fu.rb index 5932d4a..3e0e6d4 100644 --- a/lib/sms_fu.rb +++ b/lib/sms_fu.rb @@ -21,7 +21,6 @@ require 'yaml' # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. module SMSFu - RAILS_CONFIG_ROOT = defined?(RAILS_ROOT) ? "#{RAILS_ROOT}/config" : "#{File.dirname(__FILE__)}/../templates" @config = YAML::load(File.open("#{RAILS_CONFIG_ROOT}/sms_fu.yml")) @@carriers = @config['carriers'] @@ -33,6 +32,7 @@ module SMSFu options[:limit] ||= message.length message = message[0..options[:limit]-1] sms_email = determine_sms_email(format_number(number),carrier) + SmsNotifier.deliver_sms_message(sms_email,message) rescue SMSFuException => exception raise exception |
