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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3dfd4995732a04309bf8f5881d84a85eee560b1
4
- data.tar.gz: 0e021ba4026b3ebf29aa9845bac48417ba71a40c
3
+ metadata.gz: 77e523443aee991b4a8f09c8dcfed8bea6309a07
4
+ data.tar.gz: 5c7ccf2008a2a4f74be4b62639ffc226fdd563e6
5
5
  SHA512:
6
- metadata.gz: 5d320b3009f35af36a1c471bb4a5fa5e69d0a22ff456b4e26fd61370403b2ef1b3329c961f17b9446e72ef8cb38bc75bfdc38811f5198e66a6bf2628d60122ba
7
- data.tar.gz: f1518d61c7df7b1e32c694bc7ce7d5aa289980262699601dfdf09fcce804f1ed996a19b4cbc8832ddf20306a0a93cceaf4085b043593efd6aedbb466aa85eaaf
6
+ metadata.gz: 2d8f5101004470c8ee9bdc350ee6fbe7d9cb56b51e2036421b8ad6de8e7bde26f4f64af2babb67e8ed5e1d20876f3ffd01617f44940ccb57b906f66a2017cd6e
7
+ data.tar.gz: acbe165a68eaaa4d8debae64144ac3e23e53c991e3af2b252a03b15e62ce8069d6bfd985d8b751110ca7124438ecb8c1acf6f3803190ec25cbde13ad15976dae
@@ -1,3 +1,6 @@
1
+ == Version 0.3.0
2
+ - Update: Update Correios Web Service URL.
3
+
1
4
  == Version 0.2.0
2
5
  - Warning: Minimal required Ruby version from now is 1.9.3.
3
6
 
@@ -1,5 +1,5 @@
1
1
  module Correios
2
2
  module CEP
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
@@ -1,10 +1,10 @@
1
- require 'net/http'
1
+ require 'net/https'
2
2
  require 'uri'
3
3
 
4
4
  module Correios
5
5
  module CEP
6
6
  class WebService
7
- URL = "http://200.252.60.209/SigepCliente/AtendeClienteService"
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.2.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: 2014-11-14 00:00:00.000000000 Z
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.2
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