https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png
![](https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png | width=100)
#!/bin/bash | |
OPENSSL_VERSION="1.0.1o" | |
curl -O -L http://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz | |
tar -xvzf openssl-$OPENSSL_VERSION.tar.gz | |
mv openssl-$OPENSSL_VERSION openssl_i386 | |
tar -xvzf openssl-$OPENSSL_VERSION.tar.gz | |
mv openssl-$OPENSSL_VERSION openssl_x86_64 | |
cd openssl_i386 |
# Install older OpenSSL 1.0.0 from source on Mac OS X to install Ruby version compatible (like 1.8.7) | |
# prepare workspace | |
mkdir -p ~/code/build-from-src/ && cd $_ | |
# download source code | |
curl -LO https://www.openssl.org/source/openssl-1.0.0.tar.gz | |
# expand tar | |
tar -xzvf openssl-1.0.0.tar.gz |
In Rails 5, the preferred base class for testing controllers is ActionDispatch::IntegrationTest
.
If you have an API that receives parameters as JSON request bodies, here are some helper methods to facilitate testing:
class ActionDispatch::IntegrationTest
def put_json(path, obj)
put path, params: obj.to_json, headers: { 'CONTENT_TYPE' => 'application/json' }
end
class DummyController < ApplicationController | |
def do | |
render json: { balance: 50 } | |
end | |
end |
console.disableYellowBox = true; | |
// console.ignoredYellowBox = ['Warning:']; |
# where jdk1.8.0_211.jdk is the target version in this example | |
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home |
@media print { | |
#header, #location, #sidebar, #footer, #respond, #wpml_credit_footer { | |
display: none; | |
} | |
#content { | |
width: 95%; | |
} | |
.entry { | |
padding: 0; | |
margin: 0; |
Fluxo de Trabalho no Git | |
======================== | |
Primeiro crie um branch de desenvolvimento no seu repositório local: | |
$ git checkout --track origin/development | |
1. Trabalhe em sua tarefa, continuamente comitando em intervalos regulares para manter | |
o rastro daquilo que você fez. |