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 'bundler/setup' | |
require 'roar/representer/json' | |
require 'roar/representer/feature/hypermedia' | |
require 'webmachine' | |
class Product | |
include Roar::Representer::JSON | |
include Roar::Representer::Feature::Hypermedia | |
property :name |
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 'formula' | |
class Ffmpeg < Formula | |
homepage 'http://ffmpeg.org/' | |
url 'http://ffmpeg.org/releases/ffmpeg-1.0.tar.bz2' | |
sha1 'bf1f917c4fa26cf225616f2063e60c33cac546be' | |
head 'git://github.com/jamiehodge/FFmpeg.git' | |
option "without-x264", "Disable H264 encoder" |
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 'sinatra/base' | |
module Sinatra | |
module Exchange | |
RESPONSE = Struct.new(:status, :headers, :body) | |
def get_local(path, params={}) | |
r = env['operator'].call( | |
env.merge( | |
'SCRIPT_NAME' => '', |