lib/smstraderb.rb in smstraderb-0.0.1 vs lib/smstraderb.rb in smstraderb-0.1.0

- old
+ new

@@ -25,10 +25,10 @@ @message = escape(@message) @from = escape(@from) end def send(options) - @to = options[:to] + @to = escape(check_phone_number(options[:to])) @message = escape(options[:message]) uri = URI.parse(SMSTradeRB::HTTP_GATEWAY) http = Net::HTTP.new(uri.host, uri.port) #http.use_ssl = true if uri.scheme == "https" # enable SSL/TLS