<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>puts 'hello world'</title>
	<atom:link href="http://putshelloworld.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://putshelloworld.wordpress.com</link>
	<description>Just another Ruby On Rails weblog</description>
	<lastBuildDate>Wed, 07 Apr 2010 02:55:08 +0000</lastBuildDate>
	<language>pt</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='putshelloworld.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>puts 'hello world'</title>
		<link>http://putshelloworld.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://putshelloworld.wordpress.com/osd.xml" title="puts &#039;hello world&#039;" />
	<atom:link rel='hub' href='http://putshelloworld.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Instalando o Buildr com RubyGems 1.3.6</title>
		<link>http://putshelloworld.wordpress.com/2010/04/06/instalando-o-buildr-com-rubygems-1-3-6/</link>
		<comments>http://putshelloworld.wordpress.com/2010/04/06/instalando-o-buildr-com-rubygems-1-3-6/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 02:55:08 +0000</pubDate>
		<dc:creator>uchoaaa</dc:creator>
				<category><![CDATA[Dicas]]></category>
		<category><![CDATA[bdd]]></category>
		<category><![CDATA[buildr]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jbehave]]></category>
		<category><![CDATA[rubygems]]></category>

		<guid isPermaLink="false">http://putshelloworld.wordpress.com/?p=76</guid>
		<description><![CDATA[Hoje cedo resolvi instalar o JBehave na minha máquina para preparar um material de aula. Para quem não conhece, o JBehave é um ferramenta BDD para Java (não espere nenhum Cucumber . Bom, como ando um pouco enferrujado em BDD &#8211; e em Java &#8211; busquei um bom material para seguir e encontrei esse post [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=putshelloworld.wordpress.com&amp;blog=7122078&amp;post=76&amp;subd=putshelloworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hoje cedo resolvi instalar o <a href="http://jbehave.org/">JBehave</a> na minha máquina para preparar um material de aula. Para quem não conhece, o JBehave é um ferramenta <a href="http://blog.dannorth.net/introducing-bdd/">BDD</a> para Java (não espere nenhum <a href="http://wiki.github.com/aslakhellesoy/cucumber/ruby-on-rails">Cucumber</a> <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<p>Bom, como ando um pouco enferrujado em BDD &#8211; e em Java &#8211; busquei um bom material para seguir e encontrei <a href="http://www.marcuscavalcanti.net/blog/2010/01/08/bdd-com-jbehave/">esse post</a> do Marcus Cavalcanti. Lá ele cita um <a href="http://codificando.com/2009/04/15/jbehave-brasil-bdd-em-java-no-nosso-idioma/">tradução do JBehaver para português </a>feita pelo Emerson. Para compilar o <a href="http://github.com/emerleite/jbehave-br">jbehave-br</a> é preciso o <a href="http://buildr.apache.org">buildr</a>, uma ferramenta de <em>build</em> que não conhecia e achei bem interessante. Mas aí veio o problema. Após atualizar meu RubyGems para a versão 1.3.6  e instalar buildr, <a href="http://issues.apache.org/jira/browse/BUILDR-378">ele não funcinou</a>.</p>
<p>Google vai, google vem e eis que encontro a resposta: <a href="http://mail-archives.apache.org/mod_mbox/buildr-users/201004.mbox/%3co2pf97124911004061350kd7b88c15p4b5c4dde0a28e542@mail.gmail.com%3e">instalar a versão Release Candidate do builder 1.4.0</a>. Para isso, vá no site <a href="http://people.apache.org/~toulmean/buildr/1.4.0/dist/">http://people.apache.org/~toulmean/buildr/1.4.0/dist/</a> baixe e instale manualmete a gem do buildr. Para instalação manual de qualquer gem, basta digitar<br />
<code><br />
sudo gem install caminho_fisico.gem<br />
</code><br />
Após, execute</p>
<p><code> buildr<br />
</code><br />
Que tudo deve correr bem.</p>
<p>No mais, abraços</p>
<p>Até mais</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/putshelloworld.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/putshelloworld.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/putshelloworld.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/putshelloworld.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/putshelloworld.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/putshelloworld.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/putshelloworld.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/putshelloworld.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/putshelloworld.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/putshelloworld.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/putshelloworld.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/putshelloworld.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/putshelloworld.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/putshelloworld.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=putshelloworld.wordpress.com&amp;blog=7122078&amp;post=76&amp;subd=putshelloworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://putshelloworld.wordpress.com/2010/04/06/instalando-o-buildr-com-rubygems-1-3-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/571c1558fb00961bc38384c9b163a599?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">uchoaaa</media:title>
		</media:content>
	</item>
		<item>
		<title>II Bienal de Informática do RN</title>
		<link>http://putshelloworld.wordpress.com/2009/04/21/ii-bienal-de-informatica-do-rn/</link>
		<comments>http://putshelloworld.wordpress.com/2009/04/21/ii-bienal-de-informatica-do-rn/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 04:22:52 +0000</pubDate>
		<dc:creator>uchoaaa</dc:creator>
				<category><![CDATA[Eventos]]></category>
		<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[bienal]]></category>
		<category><![CDATA[ruby+web]]></category>
		<category><![CDATA[slides]]></category>

		<guid isPermaLink="false">http://putshelloworld.wordpress.com/?p=48</guid>
		<description><![CDATA[Nesse final de semana preguiçoso de feriadão rolou a II Bienal de Informática do Rio Grande do Norte em um shopping local. Eu e o Elomar, à convite do PSL-RN, palestramos sobre &#8220;Desenvolvimento Web Ágil com Ruby On Rails&#8220;. A apresentação foi bem recebida, o que foi bem bacana. Os slides já estão disponíveis no [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=putshelloworld.wordpress.com&amp;blog=7122078&amp;post=48&amp;subd=putshelloworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Nesse final de semana preguiçoso de feriadão rolou a II Bienal de Informática do Rio Grande do Norte em um shopping local. Eu e o <a href="http://maisweb.org/blogdoelomar/" target="_blank">Elomar</a>, à convite do <a href="http://rn.softwarelivre.org/site/" target="_blank">PSL-RN</a>, palestramos sobre &#8220;<em>Desenvolvimento Web Ágil com Ruby On Rails</em>&#8220;. A apresentação foi bem recebida, o que foi bem bacana. Os slides já estão disponíveis no <a href="http://rubymaisweb.ning.com/" target="_blank">nosso site</a> e pode ser conferido também aqui embaixo.</p>
<iframe src='http://www.slideshare.net/slideshow/embed_code/1311051' width='500' height='410'></iframe>
<p>Logo após a palestra trocamos uma idéia sobre Ruby e Rails no lounge do Software Livre para um público curioso. Sorteamos descontos para o curso de <a href="http://www.itnatal.com.br/home/node/141" target="_blank">Webdeveloper+Ruby</a> oferecido pela <a href="http://itnatal.com.br/home/" target="_blank">IT Informática</a>, e para aquisição do <a href="http://livro.urubatan.com.br/" target="_blank">novo livro do Urubatan</a>. Entregamos 3 pendrives recheados de material sobre Ruby On Rails para aqueles que se deram bem nos desafios de Ruby que lançamos (parabéns para o pessoal do Python! <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ).</p>
<p>O Elomar também <a href="http://maisweb.org/blogdoelomar/2009/04/rubyweb-na-ii-bienal-de-software-livre-resultado/" target="_blank">postou sobre o evento</a> e disponibilizou algumas fotos, deem uma olhada.</p>
<p>Gostaria de agradecer a <a href="http://tink.com.br/" target="_blank">tink!</a>, sempre nos apoiando, a <a href="http://www.itnatal.com.br/home/" target="_blank">IT Informática</a> por mais uma parceria, ao pessoal da <a href="http://www.novatec.com.br/" target="_blank">NOVATEC</a> pelo desconto no livro e ao pessoal do <a href="http://rn.softwarelivre.org/site/" target="_blank">PSL-RN</a> pelo convite. Agradeço também, claro, ao <a href="http://blog.improveit.com.br/" target="_blank">Tapajós,</a> <a href="http://www.rubyinside.com.br/ruby-on-rails-na-ii-bienal-de-informatica-do-rn-1186">Brando</a>, <a href="http://ruby-br.org/?p=1135" target="_blank">Paulo Vanderley</a>, <a href="http://www.urubatan.com.br/ruby-on-rails-na-segunda-bienal-de-informatica-do-rio-grande-do-norte/" target="_blank">Urubatan</a> e o <a href="http://twitter.com/AkitaOnRails/status/1545804098" target="_blank">Akita</a> pela força na divulgação. Valeu mesmo pela ajuda.</p>
<p>Fiquem atentos nas próximas atuações do<a href="http://rubymaisweb.ning.com/" target="_blank"> ruby+web</a> pelo site<a href="http://rubymaisweb.ning.com/" target="_blank"> http://rubymaisweb.ning.com/</a>. Semana que vem estaremos no <a href="http://rn.softwarelivre.org/flisol/2009/" target="_blank">FISL</a> e no dia 01 de maio ocorrerá nosso 2o. Encontro, lá no IFRN.</p>
<p>Abraços e bons códigos</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/putshelloworld.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/putshelloworld.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/putshelloworld.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/putshelloworld.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/putshelloworld.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/putshelloworld.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/putshelloworld.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/putshelloworld.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/putshelloworld.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/putshelloworld.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/putshelloworld.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/putshelloworld.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/putshelloworld.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/putshelloworld.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=putshelloworld.wordpress.com&amp;blog=7122078&amp;post=48&amp;subd=putshelloworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://putshelloworld.wordpress.com/2009/04/21/ii-bienal-de-informatica-do-rn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/571c1558fb00961bc38384c9b163a599?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">uchoaaa</media:title>
		</media:content>
	</item>
		<item>
		<title>Criando Application Templates no Rails 2.3.2</title>
		<link>http://putshelloworld.wordpress.com/2009/04/06/criando-application-templates-no-rails-232/</link>
		<comments>http://putshelloworld.wordpress.com/2009/04/06/criando-application-templates-no-rails-232/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 22:33:45 +0000</pubDate>
		<dc:creator>uchoaaa</dc:creator>
				<category><![CDATA[Códigos]]></category>
		<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[2.3.2]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://putshelloworld.wordpress.com/?p=23</guid>
		<description><![CDATA[Uma das novidades mais bacanas da nova versão do Rails é o uso de modelos para criação de novos projetos, os chamados Application Templates. Com eles, você pode configurar toda a estrutura padrão do seu projeto, como plugins, gems, arquivos de inicialização, configurar git e tudo mais, em um arquivo .rb reutilizável. O Carlos Brando [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=putshelloworld.wordpress.com&amp;blog=7122078&amp;post=23&amp;subd=putshelloworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Uma das novidades mais bacanas da nova versão do Rails é o uso de modelos para criação de novos projetos, os chamados <em>Application Templates.</em> Com eles, você pode configurar toda a estrutura padrão do seu projeto, como plugins, gems, arquivos de inicialização, configurar git e tudo mais, em um arquivo .rb reutilizável. O Carlos Brando postou sobre isso <a href="http://www.nomedojogo.com/2008/12/04/criando-um-template-padrao-de-um-projeto-rails-ou-adeus-bort-blank-suspenders-e-outros/" target="_blank">aqui</a> e <a href="http://www.nomedojogo.com/2009/01/06/edge-rails-rake-railstemplate/" target="_blank">aqui</a>, antes mesmo da versão 2.3.2 ser lançada.</p>
<p>A ideia é simples. Ao criar um novo projeto, indicamos o caminho para o template com a opcão <em>-m</em> ao comando <em>rails</em>.</p>
<p><code>rails minha_app -m /caminho/para/o/template.rb</code></p>
<p>Se for um projeto já existente, existe uma rake para aplicar o template.</p>
<p><code>rake rails:template LOCATION=/caminho/para/o/template.rb</code></p>
<p>Na <a href="http://m.onkey.org/2008/12/4/rails-templates" target="_blank">página</a> do autor existe um exemplo de um template bem simples:</p>
<pre><code>
run "rm public/index.html"
generate(:scaffold, "person name:string")
route "map.root :controller =&gt; 'people'"
rake("db:migrate")
git :init
git :add =&gt; "."
git :commit =&gt; "-a -m 'Initial commit'"</code></pre>
<p>Dá para perceber que seu uso é bem intuitivo. Esse template remove o arquivo <em>public/index.html</em>, cria um scaffold Person, mapeia a rota inicial para PeopleController e roda a migração. Depois inicializa o repositório git e commita tudo. Legal, né?!<br />
Outros templates podem ser obtidos <a href="http://github.com/jeremymcanally/rails-templates/tree/master" target="_blank">aqui</a> e <a href="http://github.com/lackac/app_lego/tree/master" target="_blank">aqui</a>.</p>
<p>Bom, mas a idéia desse post é criarmos nosso próprio template.</p>
<p>Como várias pessoas usam o <a href="http://github.com/tapajos/brazilian-rails/tree/master" target="_blank">brazlian-rails</a> em seus projetos, vamos aqui criar nosso template configurando para tal.</p>
<p>Primeiro vamos configurar as gems. Crie um arquivo ruby chamado <em>brazilian-rails-template.rb</em> e adicione o código abaixo.</p>
<p><code> </code></p>
<pre>#brazilian-rails-template.rb
gem "brdinheiro",       :version =&gt; "&gt;= 2.1.6"
gem "brcep",            :version =&gt; "&gt;= 2.1.6"
gem "brcpfcnpj",        :version =&gt; "&gt;= 2.1.6"
gem "brdata",           :version =&gt; "&gt;= 2.1.6"
gem "brdinheiro",       :version =&gt; "&gt;= 2.1.6"
gem "brhelper",         :version =&gt; "&gt;= 2.1.6"
gem "brnumeros",        :version =&gt; "&gt;= 2.1.6"
gem "brstring",         :version =&gt; "&gt;= 2.1.6"
gem "brI18n",           :version =&gt; "&gt;= 2.1.6"</pre>
<p>O uso de <strong>:version</strong> é totalmente opcional. Assim como as opções <strong>:source</strong> e <strong>:lib</strong>.</p>
<p>Lembre-se que o método <em>gem()</em> não instala as gems para você. Se quiser fazê-lo, adicione a linha abaixo ao seu arquivo.</p>
<p><code>rake "gems:install"</code></p>
<p>Qualquer <em>rake task</em> pode ser executada. Caso precise permissões de sudo para rodar alguma delas, use a opção <strong>:sudo =&gt; true</strong>. Existe, ainda, a opção <strong>:env</strong> para você setar qual ambiente deseja que a <em>rake</em> seja executada. Por exemplo:</p>
<p><code>rake "db:migrate", :env =&gt; "test"</code></p>
<p>Existe também o método <strong>plugin()</strong>, para configurar, advinhem?, seus plugins.</p>
<p>Ok, voltemos para nosso template.<br />
Uma vez que a internacionalização  do brazilian-rails é, por padrão, desabilitada, precisamos que nosso template carregue o suporte a I18n da gem brI18n. Uma forma de fazer isso é criar um arquivo dentro de <em>config/initializers</em> que faça a chamada à <em>require &#8216;brI18n&#8217;</em>. Isso pode ser feito assim:</p>
<p><code> </code></p>
<pre>#brazilian-rails-template.rb
#...
initializer "load_brI18n.rb", &lt;&lt;-CODE
require 'brI18n'
CODE</pre>
<p>O método <em>initializer()</em> cria um arquivo dentro de <em>config/initializers/</em> com o nome passado com argumento. O último argumento vai ser impresso dentro do arquivo recém criado. A mesma ideia serve para o método<em> lib()</em>, que gera um arquivo dentro da pasta<em> lib/</em>, e para <em>vendor()</em>, dentro de <em>vendor/</em>. Existe, ainda, o <em>file()</em>, que gera o arquivo em um caminho absoluto:</p>
<p><code> </code></p>
<pre>file "app/components/foo.rb", &lt;&lt;-CODE
class Foo
end
CODE</pre>
<p>Legal, assim já temos as gems configuradas. Vamos agora para o git.</p>
<p><code> </code></p>
<pre>#brazilian-rails-template.rb
#...
git :init

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

inside("config") do
run "cp database.yml database.yml.sample"
end</pre>
<p>Aqui iniciei o repositório git e criei o arquivo <em>.gitignore</em> com o<em> file()</em>. Note que usei o método <em>run()</em>, dentro de <em>inside()</em> para executar o comando &#8216;<strong>cp</strong>&#8216; no diretório <em>config</em>.<br />
Meu amigo João Vitor me ensinou que é um boa prática nunca versionar o arquivo <em>database.yml</em>, então joguei ele (o arquivo, não meu amigo João <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  dentro de <em>.gitignore</em> e versionei sua cópia inicial.</p>
<p>Bom, mas talvez nem sempre seja interessante fazer isso. Que tal perguntar ao usuário se ele desejar fazer uma cópia do <em>database.yml</em>? Para esse tipo de interação, existe o método <em>yes?()</em>, que recebe uma string como argumento, a imprime na tela e espera uma resposta &#8220;y&#8221; ou &#8220;yes&#8221; para sim e qualquer coisa diferente para não.</p>
<p><code> </code></p>
<pre>#brazilian-rails-template.rb
#...
git :init

file '.gitignore', &lt;&lt;-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 config/database.yml?")
run "cp config/database.yml config/database.yml.sample"
end</pre>
<p>Pronto, melhor assim. Agora é só comitar<br />
<code> </code></p>
<pre>#brazilian-rails-template.rb
#...
git :add =&gt; "."
git :commit =&gt; "-a -m 'Initial commit'"</pre>
<p>Por fim, nosso <em>brazilian-rails-template.rb</em> vai ficar assim:</p>
<p><code> </code></p>
<pre>gem "brdinheiro",       :version =&gt; "&gt;= 2.1.6"
gem "brcep",            :version =&gt; "&gt;= 2.1.6"
gem "brcpfcnpj",        :version =&gt; "&gt;= 2.1.6"
gem "brdata",           :version =&gt; "&gt;= 2.1.6"
gem "brdinheiro",       :version =&gt; "&gt;= 2.1.6"
gem "brhelper",         :version =&gt; "&gt;= 2.1.6"
gem "brnumeros",        :version =&gt; "&gt;= 2.1.6"
gem "brstring",         :version =&gt; "&gt;= 2.1.6"
gem "brI18n",           :version =&gt; "&gt;= 2.1.6"

initializer "load_brI18n.rb", &lt;&lt;-CODE
require 'brI18n'
CODE

git :init

file '.gitignore', &lt;&lt;-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 =&gt; "."
git :commit =&gt; "-a -m 'Initial commit'"</pre>
<p>Esse template está no <a href="http://github.com/uchoaaa/brazilian-rails-template/tree/master" target="_blank">GitHub</a>, fique a vontade para alterá-lo.</p>
<p>Se preferir, você pode apontar diretamente para o Gist:<br />
<code>rails minha_app -m http://gist.github.com/90973.txt</code></p>
<p>E é isso.</p>
<p>Abraços e bons códigos!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/putshelloworld.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/putshelloworld.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/putshelloworld.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/putshelloworld.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/putshelloworld.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/putshelloworld.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/putshelloworld.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/putshelloworld.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/putshelloworld.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/putshelloworld.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/putshelloworld.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/putshelloworld.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/putshelloworld.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/putshelloworld.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=putshelloworld.wordpress.com&amp;blog=7122078&amp;post=23&amp;subd=putshelloworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://putshelloworld.wordpress.com/2009/04/06/criando-application-templates-no-rails-232/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/571c1558fb00961bc38384c9b163a599?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">uchoaaa</media:title>
		</media:content>
	</item>
		<item>
		<title>DIRTY TIP: Autotest no Mac</title>
		<link>http://putshelloworld.wordpress.com/2009/04/02/dirty-tip-autotest-no-mac/</link>
		<comments>http://putshelloworld.wordpress.com/2009/04/02/dirty-tip-autotest-no-mac/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 12:44:43 +0000</pubDate>
		<dc:creator>uchoaaa</dc:creator>
				<category><![CDATA[Dicas]]></category>
		<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[autotest]]></category>
		<category><![CDATA[tests]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://putshelloworld.wordpress.com/?p=16</guid>
		<description><![CDATA[Depois de instalar e configurar o autotest no Mac, com o Growl e tudo mais, o autotest simplesmente não funcionava. Orando para Pai Google de Oxum, eis que, enfim, ele me responde: $ RSPEC=true autotest And everything works fine! Então, atualizei meu ~/.bash_profile com a linha abaixo e pronto. export RSPEC=true Abraços e bom código.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=putshelloworld.wordpress.com&amp;blog=7122078&amp;post=16&amp;subd=putshelloworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Depois de <a href="http://blog.spiragram.com/2007/7/22/setting-up-rspec-autotest-and-growl-on-mac-os-x" target="_blank">instalar e configurar o autotest no Mac</a>, com o Growl e tudo mais, o autotest simplesmente não funcionava. Orando para Pai Google de Oxum, eis que, enfim, ele me responde:</p>
<pre><code>$ RSPEC=true autotest</code></pre>
<p>And everything works fine!<br />
Então, atualizei meu ~/.bash_profile com a linha abaixo e pronto.</p>
<pre><code>export RSPEC=true</code></pre>
<p>Abraços e bom código.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/putshelloworld.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/putshelloworld.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/putshelloworld.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/putshelloworld.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/putshelloworld.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/putshelloworld.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/putshelloworld.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/putshelloworld.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/putshelloworld.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/putshelloworld.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/putshelloworld.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/putshelloworld.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/putshelloworld.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/putshelloworld.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=putshelloworld.wordpress.com&amp;blog=7122078&amp;post=16&amp;subd=putshelloworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://putshelloworld.wordpress.com/2009/04/02/dirty-tip-autotest-no-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/571c1558fb00961bc38384c9b163a599?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">uchoaaa</media:title>
		</media:content>
	</item>
		<item>
		<title>Bug no Netbeans 6.5.x com RSpec &gt;= 1.1.12</title>
		<link>http://putshelloworld.wordpress.com/2009/04/01/bug-no-netbeans-65x-com-rspec/</link>
		<comments>http://putshelloworld.wordpress.com/2009/04/01/bug-no-netbeans-65x-com-rspec/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 22:01:55 +0000</pubDate>
		<dc:creator>uchoaaa</dc:creator>
				<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[netbeans]]></category>

		<guid isPermaLink="false">http://putshelloworld.wordpress.com/?p=10</guid>
		<description><![CDATA[Quem trabalha com Netbeans 6.5.x para desenvolvimento Rails utilizando o RSpec deve ter percebido que com a atualização para a versão mais nova do framework seus testes simplesmente não rodam mais a partir da IDE. Algo como isso aparece no seu &#8216;output&#8217;: from E:/cms/cms3/vendor/plugins/rspec/lib/spec/runner/options.rb:101:in `run_examples' Finished in seconds 0 examples, 0 failures from E:/cms/cms3/vendor/plugins/rspec/lib/spec/runner/command_line.rb:9:in `run' [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=putshelloworld.wordpress.com&amp;blog=7122078&amp;post=10&amp;subd=putshelloworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Quem trabalha com Netbeans 6.5.x para desenvolvimento Rails utilizando o RSpec deve ter percebido que com a atualização para a versão mais nova do framework seus testes simplesmente não rodam mais a partir da IDE.</p>
<p>Algo como isso aparece no seu &#8216;output&#8217;:</p>
<pre>
from E:/cms/cms3/vendor/plugins/rspec/lib/spec/runner/options.rb:101:in `run_examples'
Finished in  seconds

0 examples, 0 failures
	from E:/cms/cms3/vendor/plugins/rspec/lib/spec/runner/command_line.rb:9:in `run'
	from E:/cms/cms3/script/spec:5
</pre>
<p>Para resolver é simples. Substitua o arquivo <em>$NB_PATH/ruby2/nb_rspec_mediator.rb</em> por esse <a href="http://gist.github.com/88891" target="_blank">aqui</a>.</p>
<p>Você também pode baixar a versão 6.7 de desenvolvimento, mas, particularmente, não recomendo. Ela ainda não está estável e ocorrem muitos bugs.</p>
<p>Abraços e bons códigos.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/putshelloworld.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/putshelloworld.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/putshelloworld.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/putshelloworld.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/putshelloworld.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/putshelloworld.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/putshelloworld.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/putshelloworld.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/putshelloworld.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/putshelloworld.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/putshelloworld.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/putshelloworld.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/putshelloworld.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/putshelloworld.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=putshelloworld.wordpress.com&amp;blog=7122078&amp;post=10&amp;subd=putshelloworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://putshelloworld.wordpress.com/2009/04/01/bug-no-netbeans-65x-com-rspec/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/571c1558fb00961bc38384c9b163a599?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">uchoaaa</media:title>
		</media:content>
	</item>
		<item>
		<title>ActiveRecord I18n Defaults forked</title>
		<link>http://putshelloworld.wordpress.com/2009/03/31/activerecord-i18n-defaults-forked/</link>
		<comments>http://putshelloworld.wordpress.com/2009/03/31/activerecord-i18n-defaults-forked/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 20:08:44 +0000</pubDate>
		<dc:creator>uchoaaa</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[i18n]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://putshelloworld.wordpress.com/?p=4</guid>
		<description><![CDATA[Desde a versão 2.2 o Rails da suporte a internacionalização  I18n. O post do Patrick explica muito bem como fazê-lo funcionar. Aqui, explicarei com implementar a mesma idéia em projetos rails 2.3.2. A diferença entre as duas versões é que o plugin activerecord_i18n_defaults utiliza um método do 2.2 que foi renomeado na 2.3.2. Então, fiz [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=putshelloworld.wordpress.com&amp;blog=7122078&amp;post=4&amp;subd=putshelloworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Desde a versão 2.2 o Rails da suporte a internacionalização  I18n. O <a href="http://patrickespake.wordpress.com/2009/01/31/ruby-on-rails-22-como-usar-i18n-traduzir-as-mensagens-de-validacao-do-model-e-atributos-do-model/">post</a> do Patrick explica muito bem como fazê-lo funcionar. Aqui, explicarei com implementar a mesma idéia em projetos rails 2.3.2.</p>
<p>A diferença entre as duas versões é que o plugin <a href="http://github.com/dcrec1/activerecord_i18n_defaults/tree/master" target="_blank">activerecord_i18n_defaults</a> utiliza um método do 2.2 que foi <a href="http://apidock.com/rails/ActiveRecord/Base/self_and_descendents_from_active_record/class" target="_blank">renomeado</a> na 2.3.2. Então, fiz um fork do projeto e corrigi a chamada ao método. Os testes passaram, ótimo.</p>
<p>Nos comentários do post do Patrick, o Thiago sugere o uso do plugin <a href="http://github.com/iain/i18n_label/tree/master" target="_blank">i18n_label</a> para que as tags label utilize internacionalização. Fiz um fork do projeto também e juntei com meu primeiro fork. O resultado pode ser conferido na <a href="http://github.com/uchoaaa/i18n_label/tree/master" target="_blank">página do projeto no github</a>.</p>
<p>Abraços e bons códigos.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/putshelloworld.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/putshelloworld.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/putshelloworld.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/putshelloworld.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/putshelloworld.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/putshelloworld.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/putshelloworld.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/putshelloworld.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/putshelloworld.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/putshelloworld.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/putshelloworld.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/putshelloworld.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/putshelloworld.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/putshelloworld.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=putshelloworld.wordpress.com&amp;blog=7122078&amp;post=4&amp;subd=putshelloworld&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://putshelloworld.wordpress.com/2009/03/31/activerecord-i18n-defaults-forked/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/571c1558fb00961bc38384c9b163a599?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">uchoaaa</media:title>
		</media:content>
	</item>
	</channel>
</rss>
