- RVM: gerenciador de versões de ruby. Porém o mais legal dele é facilitar a compilação.
- RubyGems: gerenciador de dependências entre Gems (biblioticas ruby). É o apt-get do Ruby.
- Rails 3: um gem (biblioteca) da linguagem Ruby
- MySQL: Sistema de gerenciamento de banco de dados usado no Redu
- SQLite: Sistema de gerenciamento de banco de dados portátil.
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
juliana:~ julianalucena$ brew doctor | |
Your OS X is ripe for brewing. | |
Any troubles you may be experiencing are likely purely edit. | |
- Create a repository and push it to Github
- Change some files and commit it
- Create two files and edit an existent file, add all to the index and make a commit only with one of the new files
- Create another branch (cool) and change files
- (Stash here we go!)
- Go to master branch and push the modifications
- Go back to cool branch, unstash, commit and push
- Put the commits on cool branch on master branch doing a merge
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
require "debugger" | |
class Wally < Grape::API | |
format :json | |
helpers do | |
def permit | |
@permit ||= Permit::Mechanism.new | |
end | |
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 ruby | |
require 'benchmark' | |
REGEXPS = [ | |
/^no such file to load -- (.+)$/i, | |
/^Missing \w+ (?:file\s*)?([^\s]+.rb)$/i, | |
/^Missing API definition file in (.+)$/i, | |
/^cannot load such file -- (.+)$/i, | |
] |