Brazil

Brazilian flag

It's not at all known that there are different programming conventions for Brazil. This gem attempts to make life easier for Brazilian Rubyists by integrating conventions that Brazilians might want to use.

>> require 'brazil'
=> true
>> [].empty_neh?
=> true
>> [1,2,3].empty_neh?
=> false
>> [].respond_to_neh?(:empty_neh?)
=> true
>> sobre Object.new
=> "#<Object:0x007f802b8b92c0>"
>> porra!
=> 'caralho!'
>> caralho!
=> 'puta que pariu!'
>> fudeu!
=> 'com certeza'

>> raise "something went wrong..."
RuntimeError: Porra Viado! Tu me fudeu cara! something went wrong...
  from (irb):6
  from /Users/godfrey/.rvm/rubies/ruby-2.0.0-p195/bin/irb:16:in `<main>'

Legal, neh?

Production Ready™, neh?

I guess.

What about performance?

We hand-tuned the gem's performance to keep it in line with everything else in Brazil, so each command takes two days to execute and then times out with no explanation.

Installation

Add this line to your application's Gemfile:

gem 'brazil'

And then execute:

$ bundle

Or install it yourself as:

$ gem install brazil

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Product of China

Like everything else we had this built in a Chinese sweatshop using Brazilian natural resources and then imported back to Brazil, however it was sweetened with 100% Brazilian pinga.

Acknowledgement

This was based on the Canada gem