<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/tasks/siga.rake</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -3,6 +3,7 @@ thumbs.db
 log/*.log
 config/database.yml
 tmp/**/*
+tmp/*
 db/development_structure.sql
 doc/api
 doc/app</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -4,9 +4,20 @@ Info p/ desenvolvedores.
 
 = Models
 
+== Sistema
+
+* User         =&gt;   Usuario com acesso sistema (Deve ser person tb)
+* Message      =&gt;   Mensagens entre usuarios.
+* Attachement  =&gt;   Polimorfico pra uso geral anexos.
+* Opt          =&gt;   Opcoes do sistema
+
+== Social
+
+* Family       =&gt;   Agrupa Municipes em uma moradia
 * Person       =&gt;   Cadastro Municipe
-  * Relatives  =&gt;   Familia
+  * Relatives  =&gt;   Filho/Irmao...
   * Documents  =&gt;   Cad. Documentos (CPF, RG..)
+  * P Inpairment =&gt;
   * Contact
   * Address
 
@@ -15,34 +26,37 @@ Info p/ desenvolvedores.
   * Contact
   * Address
 
-* User         =&gt;   Usuario com acesso sistema (Deve ser person tb)
-* Message      =&gt;   Mensagens entre usuarios.
-* Publication  =&gt;   Editais
-* Article      =&gt;   Noticias/Informativos
+* Profession   =&gt;   Cadastro de Profissoes
+* Official     =&gt;   Funcionario Publico
+* Sector       =&gt;   Setor do usuario do sistema
 
-* Storage      =&gt;   Almoxarifado
-* Heritage     =&gt;   Patrimonio
 
-* Procurement  =&gt;   Licitacao
+== Publicate
+
+* Publication  =&gt;   Editais/Decretos/Notas/Portarias
+* Article      =&gt;   Noticias/Informativos
 * Calendar     =&gt;   Calendario Oficial da Cidade
-* Law          =&gt;   Leis
 * Charter      =&gt;   Alvara/Permissoes
+* Law          =&gt;   Leis
 
-* Employee     =&gt;   Funcionario
-* Sector       =&gt;   Setor do usuario do sistema
-* Opt          =&gt;   Opcoes do sistema
 
 == Financeiro
 
+* Procurement  =&gt;   Licitacao
+* Storage      =&gt;   Almoxarifado
+* Heritage     =&gt;   Patrimonio
+* Register     =&gt;   Balanco Geral Caixa
 * Tax
-* Register
 * Account
 
 == Saude
 
-== Educacao
+== Vigilancia Social
 
-== Social
+* Animal       =&gt;  Cad Animais
+
+
+== Educacao
 
 == GIS
 
@@ -55,9 +69,19 @@ Info p/ desenvolvedores.
     * Property   =&gt;   Representa Imovel Construido | MULTIPOLYGON
     * Address    =&gt;   Geolocatable
 
+* POI            =&gt;   Ponto de Interesse
+
+
 == Defaults
 
+Siga o padrao de views de app/views/people e app/views/articles !!
 
+Formtastic + jquery ui
+Nao use h1
+Campo datas =&gt; Jquery Datepicker
+Enums =&gt; activerecord_symbolize
+Todos os campos de nome pessoa/grupo =&gt; jquery autocomplete (TODO)
 
 = SPEC
 
+Use `autospec` ou `spec spec`</diff>
      <filename>DEVEL.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -4,10 +4,6 @@
 #   gem install ruby-postgres
 # On Mac OS X:
 #   gem install ruby-postgres -- --include=/usr/local/pgsql
-# On Windows:
-#   gem install ruby-postgres
-#       Choose the win32 build.
-#       Install PostgreSQL and put its /bin directory on your path.
 development:
   adapter: postgresql
   encoding: unicode
@@ -16,20 +12,7 @@ development:
   username: postgres
   #host: localhost
   #port: 5432
-
-  # Connect on a TCP socket. Omitted by default since the client uses a
-  # domain socket that doesn't need configuration. Windows does not have
-  # domain sockets, so uncomment these lines.
-  #host: localhost
-  #port: 5432
-
-  # Schema search path. The server defaults to $user,public
   #schema_search_path: myapp,sharedapp,public
-
-  # Minimum log levels, in increasing order:
-  #   debug5, debug4, debug3, debug2, debug1,
-  #   log, notice, warning, error, fatal, and panic
-  # The server defaults to notice.
   #min_messages: warning
 
 # Warning: The database defined as &quot;test&quot; will be erased and
@@ -41,21 +24,9 @@ test:
   database: siga_test
   pool: 5
   username: postgres
-
-
-  # Connect on a TCP socket. Omitted by default since the client uses a
-  # domain socket that doesn't need configuration. Windows does not have
-  # domain sockets, so uncomment these lines.
   #host: localhost
   #port: 5432
-
-  # Schema search path. The server defaults to $user,public
   #schema_search_path: myapp,sharedapp,public
-
-  # Minimum log levels, in increasing order:
-  #   debug5, debug4, debug3, debug2, debug1,
-  #   log, notice, warning, error, fatal, and panic
-  # The server defaults to notice.
   #min_messages: warning
 
 production:
@@ -64,20 +35,12 @@ production:
   database: siga_production
   pool: 5
   username: postgres
-
-
-  # Connect on a TCP socket. Omitted by default since the client uses a
-  # domain socket that doesn't need configuration. Windows does not have
-  # domain sockets, so uncomment these lines.
   #host: localhost
   #port: 5432
-
   # Schema search path. The server defaults to $user,public
   #schema_search_path: myapp,sharedapp,public
-
   # Minimum log levels, in increasing order:
   #   debug5, debug4, debug3, debug2, debug1,
   #   log, notice, warning, error, fatal, and panic
   # The server defaults to notice.
-  #min_messages: warning
-
+  #min_messages: warning
\ No newline at end of file</diff>
      <filename>config/database.yml.sample</filename>
    </modified>
    <modified>
      <diff>@@ -65,8 +65,6 @@ namespace :db do
 
   #
   # REMIGRATE
-  #
-  #
   desc &quot;Migrate schema to version 0 and back up again. DESTROYS all data in tables!!&quot;
   task :remigrate =&gt; :environment do
     require 'highline/import'
@@ -86,6 +84,44 @@ namespace :db do
     end
   end
 
+  #
+  # BACKUP DB
+  desc &quot;Backup db to tmp&quot;
+  task :backup do
+    require 'yaml'
+
+    env   = ENV['RAILS_ENV'] || ENV['DB'] || 'production'
+    db_config = YAML.load_file(&quot;config/database.yml&quot;)
+    db_user = db_config[env][&quot;username&quot;]
+    db_pass = db_config[env][&quot;password&quot;]
+    db_host = db_config[env][&quot;hostname&quot;] || &quot;localhost&quot;
+    db_name = db_config[env][&quot;database&quot;]
+
+    #base_path = ENV[&quot;DIR&quot;] || &quot;db&quot;
+    datestamp = Time.now.strftime(&quot;%Y%m%d%H%M%S&quot;)
+    file  = &quot;siga_#{env}-#{datestamp}.sql.bz2&quot;
+
+    cmd = &quot;pg_dump --clean --no-owner --no-privileges -U#{db_user} -h#{db_host} #{db_name}&quot;
+    cmd += &quot; -p#{db_pass}&quot; if db_pass
+    cmd += &quot; | bzip2 &gt; tmp/#{file}&quot;
+    puts &quot;Dump Start =&gt; tmp/#{file}&quot;
+    t = Time.now
+    result =  system cmd
+    raise(&quot;database dump failed.  msg: #{$?}&quot;) unless result
+    puts &quot;Done. (#{Time.now - t}s)&quot;
+  end
+
+  #
+  # BOOTSTRAP DB
+  desc &quot;Loads db with fake data&quot;
+  task :bootstrap do
+    require 'object_daddy'
+    require 'faker'
+    [Publication, Article, Person, Group, Law, Area, Procurement, Poi,
+    User, Official, Sector, Zone, Property].each do |k|
+      80.times {  k.generate! }
+    end
+  end
 
   #
   # SHORTCUT MIGRATE DEV ENV</diff>
      <filename>lib/tasks/database.rake</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>040ecbd38775268a7dd552ba650951bf276b0a00</id>
    </parent>
  </parents>
  <author>
    <name>Marcos Augusto</name>
    <email>x@nofxx.com</email>
  </author>
  <url>http://github.com/fellix/siga/commit/fc0240b3ca96c75176efa2d84b26b3d42fa9d8e5</url>
  <id>fc0240b3ca96c75176efa2d84b26b3d42fa9d8e5</id>
  <committed-date>2009-04-10T12:08:43-07:00</committed-date>
  <authored-date>2009-04-10T12:08:43-07:00</authored-date>
  <message>devel info, and backup tasks</message>
  <tree>6aa5cc2380cfdd413fe3ed67a31f4f290b0b2694</tree>
  <committer>
    <name>Marcos Augusto</name>
    <email>x@nofxx.com</email>
  </committer>
</commit>
