Skip to content

Commit

Permalink
Merge branch 'master' of github.com:michel/Ringr
Browse files Browse the repository at this point in the history
  • Loading branch information
michel committed Mar 1, 2012
2 parents 8dec49e + 7f4d23b commit 3051a5b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
7 changes: 7 additions & 0 deletions Gemfile.lock
Expand Up @@ -113,6 +113,8 @@ GEM
railties (>= 3.2.0, < 5.0)
thor (~> 0.14)
json (1.6.5)
jwt (0.1.4)
json (>= 1.2.4)
launchy (2.0.5)
addressable (~> 2.2.6)
libv8 (3.3.10.4)
Expand Down Expand Up @@ -223,6 +225,10 @@ GEM
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
twilio-ruby (3.5.1)
builder (>= 2.1.2)
jwt (>= 0.1.2)
multi_json (>= 1.0.3)
tzinfo (0.3.31)
uglifier (1.2.3)
execjs (>= 0.3.0)
Expand Down Expand Up @@ -267,5 +273,6 @@ DEPENDENCIES
shoulda (~> 2.11.3)
therubyracer
timecop
twilio-ruby
uglifier (>= 1.0.3)
uuid
4 changes: 4 additions & 0 deletions app/models/victim.rb
Expand Up @@ -11,6 +11,10 @@ def sanitize_mobile_numer
self.telephone_number = self.telephone_number.gsub(/[^\d]+/, "")
end

def call
Callr.new.call(self.telephone_number, self.name)
end

private
def generate_mp3
return unless self.filename.blank?
Expand Down
6 changes: 3 additions & 3 deletions lib/ringr.rb → lib/callr.rb
@@ -1,6 +1,6 @@
require 'twilio-ruby'

class Ringr
class Callr
def initialize
account_sid = 'AC94571850a65e4706bb71b21cd9c6831a'
auth_token = '0cb6a2e4127d2cdca4c51fcad1dfd925'
Expand All @@ -15,5 +15,5 @@ def call(number,name)
end
end

x = Ringr.new
x.call("+31648121608")
#x = Ringr.new
#x.call("+31648121608")

0 comments on commit 3051a5b

Please sign in to comment.