Permalink
Browse files

Surface-level cleanups of Message

  • Loading branch information...
1 parent f002287 commit 29b1d86750b45ceca0d7356c4afb544bcaa7b410 @mike-burns mike-burns committed Nov 14, 2010
Showing with 7 additions and 12 deletions.
  1. +1 −1 Gemfile
  2. +4 −11 app/models/message.rb
  3. +2 −0 config/initializers/tropo.rb
View
@@ -15,7 +15,7 @@ gem "mysql"
gem "flutie"
gem "dynamic_form"
gem 'tropo-webapi-ruby'
-gem "addressable"
+gem "addressable", :require => 'addressable/uri'
gem 'SystemTimer'
gem 'resque'
View
@@ -1,16 +1,9 @@
-require 'net/http'
-require 'addressable/uri'
-require 'uri'
-
class Message
-
- TROPO_URL = "http://api.tropo.com/1.0"
- MESSAGE_TOKEN = "aeea3bf2048d1848bc4e706ff76bfe98951f433968b934a2a1d80cf1e047ba36c91a2cd53a958e15319a564a"
DATING_START_STRING = '5PM EDT'
- DATING_END_STRING = '10:59PM EDT'
- DATING_START = Time.zone.parse(DATING_START_STRING)
- DATING_END = Time.zone.parse(DATING_END_STRING)
- HANGUP_RESPONSE = '{"tropo": [{"hangup": null}]}'
+ DATING_END_STRING = '10:59PM EDT'
+ DATING_START = Time.zone.parse(DATING_START_STRING)
+ DATING_END = Time.zone.parse(DATING_END_STRING)
+ HANGUP_RESPONSE = '{"tropo": [{"hangup": null}]}'
def self.deliver(to, message, deliver_in_development = false)
if Rails.env.development? && !deliver_in_development
@@ -0,0 +1,2 @@
+TROPO_URL = "http://api.tropo.com/1.0"
+MESSAGE_TOKEN = "aeea3bf2048d1848bc4e706ff76bfe98951f433968b934a2a1d80cf1e047ba36c91a2cd53a958e15319a564a"

0 comments on commit 29b1d86

Please sign in to comment.