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
state_machine User do | |
state :new | |
state :normal | |
state :locked | |
end | |
state_machine Membership do | |
state :new | |
state :active | |
state :inactive |
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
#!/usr/bin/env ruby | |
# Opens the source code for a gem and the gem's direct dependencies in textmate. | |
# | |
# When this is mature it will be added to [Dionysus](http://github.com/tekwiz/dionysus). | |
# | |
# TODO add banner and better docs to option parser | |
# TODO add --quiet flag to suppress dependency not found warnings | |
# TODO add recursive dependencies (e.g. failure: `mate-gem rails 3.0.0.beta3` does not load activemodel | |
# since that is a dependency of activerecord) |
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 'cloudfiles' | |
require 'activesupport' | |
CF_USERNAME = '' | |
CF_API_KEY = '' | |
CONTAINER = '' | |
# Connect | |
cf = CloudFiles::Connection.new(CF_USERNAME, CF_API_KEY) |
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/s3' | |
require 'activesupport' | |
S3_KEY_ID = '' | |
S3_ACCESS_KEY = '' | |
BUCKET = '' | |
# Connect | |
AWS::S3::Base.establish_connection!( |
NewerOlder