gem install rails
rails new my_app -T
require 'rubygems' if RUBY_VERSION < '1.9' | |
require 'tempfile' | |
require File.join(ENV['JETPAC_PATH'], 'library/logger') | |
require File.join(ENV['JETPAC_PATH'], 'library/email') | |
def image_command(command) | |
log "IMG: Running '#{command}'" | |
result = system(command) | |
if !result |
# WAIT! Do consider that `wait` may not be needed. This article describes | |
# that reasoning. Please read it and make informed decisions. | |
# https://www.varvet.com/blog/why-wait_until-was-removed-from-capybara/ | |
# Have you ever had to sleep() in Capybara-WebKit to wait for AJAX and/or CSS animations? | |
describe 'Modal' do | |
should 'display login errors' do | |
visit root_path |
#!/usr/bin/env bash | |
# Formatting constants | |
export BOLD=`tput bold` | |
export UNDERLINE_ON=`tput smul` | |
export UNDERLINE_OFF=`tput rmul` | |
export TEXT_BLACK=`tput setaf 0` | |
export TEXT_RED=`tput setaf 1` | |
export TEXT_GREEN=`tput setaf 2` | |
export TEXT_YELLOW=`tput setaf 3` |
fa: | |
errors: | |
messages: | |
not_found: "یافت نشد" | |
already_confirmed: "قبلا تایید شده است" | |
not_locked: "قفل نشده است" | |
not_saved: | |
one: "۱ خطا جلوی ذخیره %{resource} را گرفت:" | |
other: "%{count} خطا جلوی ذخیره این %{resource} را گرفت:" |
;; emacs configuration | |
(push "/usr/local/bin" exec-path) | |
(add-to-list 'load-path "~/.emacs.d") | |
(setq make-backup-files nil) | |
(setq auto-save-default nil) | |
(setq-default tab-width 2) | |
(setq-default indent-tabs-mode nil) | |
(setq inhibit-startup-message t) |