Busca de CEP, rastreamento de pacotes e cálculo de frete utilizando o Web Service dos Correios (http://www.correios.com.br/webservices). Servicos de frete suportados são PAC, SEDEX, SEDEX a Cobrar, SEDEX 10, SEDEX Hoje e e-SEDEX.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib ajuste no cálculo de módico Nov 27, 2012
misc rastreamento e cep Oct 15, 2012
.gitignore rastreamento e cep Oct 15, 2012
.rspec rastreamento e cep Oct 15, 2012
Gemfile rastreamento e cep Oct 15, 2012
README.rdoc mudança de exemplo Oct 15, 2012
Rakefile mudança de nome Oct 15, 2012
postmanbr.gemspec erro no gemfile Nov 9, 2012

README.rdoc

Postmanbr

Busca de CEP e rastreamento de pacotes através do site dos Correios, e cálculo de frete utilizando o Web Service dos Correios (www.correios.com.br/webservices).

Os serviços de frete suportados são PAC, SEDEX, SEDEX a Cobrar (necessário informar o valor declarado), SEDEX 10, SEDEX Hoje e e-SEDEX. Para os serviços com contrato é necessário informar código de empresa e senha.

Instalando

Gemfile

gem 'postmanbr', :git => 'https://evandrodutra@github.com/evandrodutra/postmanbr.git'

Usando

Busca de CEP:

>>> require 'postmanbr'
>>> Postmanbr.cep('70100-000')
>>>

Rastreamento de pacote:

>>> require 'postmanbr'
>>> Postmanbr.rastrear('70100-000')
>>>

License

(The MIT License)

Copyright © 2012 Evandro Dutra

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.