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
group :test do | |
gem 'capybara' | |
gem 'poltergeist' # gem 'capybara-webkit' | |
gem 'database_cleaner' | |
end |
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
// display: block | |
@mixin block( $width: 0, $height: 0 ) { | |
display: block; | |
height: $height; | |
width: $width; | |
} | |
// CSS3: backface-visibility | |
@mixin backface-visibility( $style: visible ) { |
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
# config/initializers/asset_helpers.rb | |
Rails.application.assets.context_class.instance_eval do | |
include ActionView::Helpers::UrlHelper | |
include Rails.application.routes.url_helpers | |
end |
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
#!/usr/bin/env bash | |
gem uninstall rubygems-update | |
gem install rubygems-update --version $1 | |
update_rubygems |
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
# Hi! I'am rack middleware! | |
# I was born for show right way to you JavaScript | |
# My author's name was Aleksandr Koss. Mail him at [email protected] | |
# Nice to MIT you! | |
require(File.dirname(__FILE__) + '/../config/environment') unless defined?(Rails) | |
class RoutesJs | |
def initialize app, options = {} |
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
# 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 # this tells capistrano where to run the migration. otherwise it would try to use the latest release directory (/path/to/app/releases/2012XXXXXXXXX) | |
set :use_sudo, false | |
set :ssh_options, {:forward_agent => true} # so you can checkout the git repo without giving the server access to the repo | |
set :rails_env, 'production' | |
# These are here to override the defaults by cap |