This file contains 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
message :body => /^\/(space)?rofo\s*([\d])*\s*$/ do | |
phrases = ["Subways, subways, subways!", | |
"Anything else?", | |
"I saved a billion dollars.", | |
"I'm running for mayor in 2014!", | |
"Gridlock creates pollution. It keeps you away from your families.", | |
"Cyclists are a pain in the ass.", | |
"The purpose of marathons is to create revenue for charities.", | |
"I stopped the Gravy Train!" | |
] |
This file contains 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
# http://www.mikeperham.com/2009/01/21/testing-multipart-upload-with-sinatra/ | |
module FiveRuns | |
module Multipart | |
class FileUpload | |
BOUNDARY_ROOT = 'B0UND~F0R~UPL0AD' | |
attr_reader :file, :params, :rack_opts | |
def initialize(params={}, rack_opts = {}) |