paypal-frete-facil 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ module PayPal
4
4
  module Version
5
5
  MAJOR = 0
6
6
  MINOR = 0
7
- PATCH = 2
7
+ PATCH = 3
8
8
  VERSION = [MAJOR, MINOR, PATCH].join(".")
9
9
  end
10
10
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
- require 'net/http'
2
+ require 'net/https'
3
3
  require 'uri'
4
4
 
5
5
  module PayPal
@@ -17,7 +17,7 @@ module PayPal
17
17
  http.verify_mode = OpenSSL::SSL::VERIFY_NONE
18
18
 
19
19
  request = Net::HTTP::Post.new(@uri.path)
20
- request["Content-Type"] = "text/xml"
20
+ request["Content-Type"] = "text/xml; charset=utf-8"
21
21
  request["SoapAction"] = "#{URL}/getPreco"
22
22
  request.body = request_body_for(frete)
23
23
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{paypal-frete-facil}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Prodis a.k.a. Fernando Hamasaki"]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: paypal-frete-facil
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Prodis a.k.a. Fernando Hamasaki