This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'aws-sdk' | |
require 'twilio-ruby' | |
account_sid = ENV['twilio_account_sid'] | |
auth_token = ENV['twilio_auth_token'] | |
client = Twilio::REST::Client.new account_sid, auth_token | |
from = ENV['twilo_from_number'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'thread' | |
class ActionOnLatest | |
attr_accessor :queue, :mutex, :val | |
def initialize | |
@queue = Queue.new | |
@mutex = Mutex.new | |
end |
NewerOlder