correios-cep 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.rdoc +3 -0
- data/lib/correios/cep/version.rb +1 -1
- data/lib/correios/cep/web_service.rb +4 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77e523443aee991b4a8f09c8dcfed8bea6309a07
|
4
|
+
data.tar.gz: 5c7ccf2008a2a4f74be4b62639ffc226fdd563e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d8f5101004470c8ee9bdc350ee6fbe7d9cb56b51e2036421b8ad6de8e7bde26f4f64af2babb67e8ed5e1d20876f3ffd01617f44940ccb57b906f66a2017cd6e
|
7
|
+
data.tar.gz: acbe165a68eaaa4d8debae64144ac3e23e53c991e3af2b252a03b15e62ce8069d6bfd985d8b751110ca7124438ecb8c1acf6f3803190ec25cbde13ad15976dae
|
data/CHANGELOG.rdoc
CHANGED
data/lib/correios/cep/version.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
require 'net/
|
1
|
+
require 'net/https'
|
2
2
|
require 'uri'
|
3
3
|
|
4
4
|
module Correios
|
5
5
|
module CEP
|
6
6
|
class WebService
|
7
|
-
URL = "
|
7
|
+
URL = "https://apps.correios.com.br/SigepMasterJPA/AtendeClienteService/AtendeCliente"
|
8
8
|
|
9
9
|
def initialize
|
10
10
|
@uri = URI.parse(URL)
|
@@ -27,6 +27,8 @@ module Correios
|
|
27
27
|
def build_http
|
28
28
|
http = Net::HTTP.new(@uri.host, @uri.port)
|
29
29
|
http.open_timeout = Correios::CEP.request_timeout
|
30
|
+
http.use_ssl = true
|
31
|
+
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
30
32
|
http
|
31
33
|
end
|
32
34
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: correios-cep
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Prodis a.k.a. Fernando Hamasaki de Amorim
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: log-me
|
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
170
|
version: '0'
|
171
171
|
requirements: []
|
172
172
|
rubyforge_project:
|
173
|
-
rubygems_version: 2.4.
|
173
|
+
rubygems_version: 2.4.3
|
174
174
|
signing_key:
|
175
175
|
specification_version: 4
|
176
176
|
summary: Correios CEP gem gets updated Brazilian address from a zipcode, directly
|