Skip to content

Commit

Permalink
Update documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
prodis committed Sep 4, 2011
1 parent 999579f commit 32b9df4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.rdoc
Expand Up @@ -5,7 +5,7 @@ Cálculo de frete através do PayPal Frete Fácil (http://www.paypal-brasil.com.
== Instalando

=== Gemfile
gem 'paypal-frete-facil', '~> 0.2.0'
gem 'paypal-frete-facil', '~> 0.2.2'

=== Instalação direta
$ gem install paypal-frete-facil
Expand Down Expand Up @@ -40,15 +40,15 @@ Exemplo de log:
<?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns2:getPrecoResponse xmlns:ns2="https://ff.paypal-brasil.com.br/FretesPayPalWS"><return>13.873999999999999</return></ns2:getPrecoResponse></S:Body></S:Envelope>

Se você configurar o nível de log como :debug, serão logados também todos os cabeçalhos HTTP da requisição e da resposta:
I, [2011-08-29T22:00:52.624430 #2186] INFO -- : PayPal-Frete-Facil Request:
D, [2011-08-29T22:00:52.624430 #2186] DEBUG -- : PayPal-Frete-Facil Request:
https://ff.paypal-brasil.com.br/FretesPayPalWS/WSFretesPayPal
accept: */*
user-agent: Ruby
content-type: text/xml; charset=utf-8
soapaction: https://ff.paypal-brasil.com.br/FretesPayPalWS/WSFretesPayPal/getPreco
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:frete="https://ff.paypal-brasil.com.br/FretesPayPalWS"><soapenv:Header /><soapenv:Body><frete:getPreco><cepOrigem>04094-050</cepOrigem><cepDestino>90619-900</cepDestino><largura>15</largura><altura>2</altura><profundidade>30</profundidade><peso>0.3</peso></frete:getPreco></soapenv:Body></soapenv:Envelope>

I, [2011-08-29T22:00:53.917895 #2186] INFO -- : PayPal-Frete-Facil Response:
D, [2011-08-29T22:00:53.917895 #2186] DEBUG -- : PayPal-Frete-Facil Response:
HTTP/1.1 200 OK
date: Tue, 30 Aug 2011 01:00:52 GMT
server: Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_jk/1.2.30
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -16,7 +16,7 @@ require 'jeweler'
Jeweler::Tasks.new do |gem|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
gem.name = "paypal-frete-facil"
gem.homepage = "http://github.com/prodis/paypal-frete-facil"
gem.homepage = "http://prodis.blog.br/2011/09/04/gem-para-calculo-de-frete-do-paypal-frete-facil"
gem.license = "MIT"
gem.summary = %Q{Cálculo de frete do PayPal Frete Fácil.}
gem.description = %Q{Cálculo de frete através do PayPal Frete Fácil (http://www.paypal-brasil.com.br/fretefacil).}
Expand Down
2 changes: 1 addition & 1 deletion lib/paypal/fretefacil/version.rb
Expand Up @@ -4,7 +4,7 @@ module FreteFacil
module Version
MAJOR = 0
MINOR = 2
PATCH = 1
PATCH = 2
VERSION = [MAJOR, MINOR, PATCH].join(".")
end
end
Expand Down
6 changes: 3 additions & 3 deletions paypal-frete-facil.gemspec
Expand Up @@ -5,11 +5,11 @@

Gem::Specification.new do |s|
s.name = %q{paypal-frete-facil}
s.version = "0.2.1"
s.version = "0.2.2"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Prodis a.k.a. Fernando Hamasaki"]
s.date = %q{2011-09-02}
s.date = %q{2011-09-04}
s.description = %q{Cálculo de frete através do PayPal Frete Fácil (http://www.paypal-brasil.com.br/fretefacil).}
s.email = %q{prodis@gmail.com}
s.extra_rdoc_files = [
Expand All @@ -33,7 +33,7 @@ Gem::Specification.new do |s|
"spec/paypal/fretefacil/parser_spec.rb",
"spec/spec_helper.rb"
]
s.homepage = %q{http://github.com/prodis/paypal-frete-facil}
s.homepage = %q{http://prodis.blog.br/2011/09/04/gem-para-calculo-de-frete-do-paypal-frete-facil}
s.licenses = ["MIT"]
s.require_paths = ["lib"]
s.required_ruby_version = Gem::Requirement.new(">= 1.8.7")
Expand Down

0 comments on commit 32b9df4

Please sign in to comment.