Skip to content

Instantly share code, notes, and snippets.

@uchoaaa
Created April 6, 2009 22:09

Revisions

  1. uchoaaa created this gist Apr 6, 2009.
    41 changes: 41 additions & 0 deletions brazilian-rails-template.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,41 @@
    #
    # Author: Rafael Uchôa
    # http://putshelloworld.wordpress.com
    #

    gem "brdinheiro", :version => ">= 2.1.6"
    gem "brcep", :version => ">= 2.1.6"
    gem "brcpfcnpj", :version => ">= 2.1.6"
    gem "brdata", :version => ">= 2.1.6"
    gem "brdinheiro", :version => ">= 2.1.6"
    gem "brhelper", :version => ">= 2.1.6"
    gem "brnumeros", :version => ">= 2.1.6"
    gem "brstring", :version => ">= 2.1.6"
    gem "brI18n", :version => ">= 2.1.6"

    initializer "load_brI18n.rb", <<-CODE
    require 'brI18n'
    CODE

    git :init

    file '.gitignore', <<-CODE
    log/*.log
    log/*.pid
    db/*.db
    db/*.sqlite3
    db/schema.rb
    tmp
    .DS_Store
    doc/api
    doc/app
    config/database.yml
    nbproject
    CODE

    if yes?("Deseja fazer uma cópia de database.yml?")
    run "cp config/database.yml config/database.yml.sample"
    end

    git :add => "."
    git :commit => "-a -m 'Initial commit'"