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
| file 'Gemfile', <<-GEMS | |
| source 'http://gemcutter.org' | |
| gem "rails", "3.0.0.beta3" | |
| gem "bson_ext" | |
| gem "mongoid", "2.0.0.beta4" | |
| gem "haml", "3.0.0.rc.2" | |
| gem "compass", "0.10.0.rc4" | |
| gem "inherited_resources" | |
| group :test do |
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 "rack/openid" | |
| require "warden" | |
| use Rack::OpenID | |
| use Warden::Manager do |manager| | |
| Warden::Strategies.add(:openid) do | |
| def authenticate! | |
| if resp = env["rack.openid.response"] | |
| case resp.status | |
| when :success |
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
| development: &global_settings | |
| database: textual_development | |
| host: 127.0.0.1 | |
| port: 27017 | |
| test: | |
| database: textual_test | |
| <<: *global_settings | |
| production: |
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
| module HTML | |
| class StathamSanitizer < WhiteListSanitizer | |
| protected | |
| def tokenize(text, options) | |
| super.map do |token| | |
| if token.is_a?(HTML::Tag) && options[:parent].include?(token.name) | |
| token.to_s.gsub(/</, "<") | |
| else |
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
| # you'd obviously have more settings somewhere | |
| set :scm, :git | |
| set :repository, "[email protected]:defunkt/github.git" | |
| set :branch, "origin/master" | |
| set :migrate_target, :current | |
| set(:latest_release) { fetch(:current_path) } | |
| set(:release_path) { fetch(:current_path) } | |
| set(:current_release) { fetch(:current_path) } |