Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
| Cucumber | |
| gem 'cucumber' | |
| gem 'cucumber-rails' | |
| rails generate cucumber:install pt-BR | |
| cucumber --i18n help | |
| cucumber --i18n pt |
| export JAVA_HOME=/usr/lib/jvm/java-6-openjdk | |
| cd ~/bedel | |
| git stash | |
| git pull | |
| rvm use 1.9.2 | |
| rvm gemset use bedel | |
| bundle | |
| rake db:migrate | |
| rake spec |
| cd ~/forteschat3/oraculo | |
| git stash | |
| git pull | |
| rvm use ruby-1.9.2-p290@oraculo | |
| gem list | |
| bundle | |
| rake db:migrate | |
| rspec | |
| cd ~/forteschat3 | |
| forever stopall |
| #Matcher included_in | |
| #my test | |
| it "quando sortear, gravar os vencedores" do | |
| concorrentes = Concorrente.where(:sorteio_id => @sorteio.id) | |
| @sorteio.sortear | |
| @sorteio.vencedores.should included_in(concorrentes) | |
| end | |
| #spec/support/spec_array_helper.rb |
| .bashrc, .bash_profile, .zshrc | |
| alias status='git status' | |
| alias logdiff='git log -p' | |
| alias log='git log --decorate' | |
| alias pull='git pull' | |
| alias push='git push' | |
| alias commit='git commit' | |
| alias add='git add' | |
| alias checkout='git checkout' | |
| alias branch='git branch' |
| ###### INSTALL GIT | |
| apt-get install git | |
| ###### INSTALL MYSQL | |
| apt-get install mysqld-server | |
| apt-get install libmysqld-dev | |
| mysql -u root -proot | |
| ###### INSTALL REDIS | |
| apt-get install redis-server |
| rails plugin new sudy_ag --full | |
| # copiar as migrations pro hospedeiro | |
| rake sudy_ag_engine:install:migrations | |
| fonte: http://guides.rubyonrails.org/engines.html |
| #!/usr/bin/env ruby | |
| # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application. | |
| ENGINE_ROOT = File.expand_path('../..', __FILE__) | |
| ENGINE_PATH = File.expand_path('../../lib/atlas_ag/engine', __FILE__) | |
| require 'rails/all' | |
| require 'rails/engine/commands' |
| #!/bin/sh | |
| echo "Clean Services" | |
| echo "Clean User" | |
| dscl localhost -delete /Local/Default/Users/firebird | |
| echo "Clean Group" | |
| dscl localhost -delete /Local/Default/Groups/firebird | |
| if [ -f "/Library/StartupItems/Firebird" ]; then | |
| echo "Remove SuperServer StartupItem" | |
| rm -fr /Library/StartupItems/Firebird | |
| fi |