correios_sigep 2.1.1 → 2.2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 843216a68a938b1a62b4d84dd437b049db5f55d8
|
4
|
+
data.tar.gz: 2f2aaaa9bdbe5c25c7823e1a5218d806a8567a4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 466ce82ae72af9cfa60ba8ea240a55b5f68b3c97a922271871dbfb3790428b92f29854141f272e83a1c163ab24ccc0e20d5e6b02612885bc7ad88086aa80f991
|
7
|
+
data.tar.gz: b51833314c20b1bad9b24236cf14a2f50e97a9b9d2473745c54d7b7c19f08e28ab03c250662fa24b4367295fd6dd0308747d94346bd063626acef3167451ac06
|
data/README.md
CHANGED
@@ -42,6 +42,12 @@ CorreiosSigep.configure do |config|
|
|
42
42
|
end
|
43
43
|
```
|
44
44
|
|
45
|
+
Para utilizar o ambiente de homologação dos correios, adicione essa configuração:
|
46
|
+
|
47
|
+
```ruby
|
48
|
+
config.development = true
|
49
|
+
```
|
50
|
+
|
45
51
|
Se for necessário, é possível adicionar também um proxy.
|
46
52
|
|
47
53
|
```ruby
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module CorreiosSigep
|
2
2
|
class Configuration
|
3
|
-
attr_accessor :administrative_code, :card, :service_code, :wsdl_base_url,
|
3
|
+
attr_accessor :administrative_code, :card, :development, :service_code, :wsdl_base_url,
|
4
4
|
:proxy, :timeout, :user, :password
|
5
5
|
|
6
6
|
def administrative_fields
|
@@ -10,5 +10,9 @@ module CorreiosSigep
|
|
10
10
|
service_code: service_code)
|
11
11
|
|
12
12
|
end
|
13
|
+
|
14
|
+
def development?
|
15
|
+
@development
|
16
|
+
end
|
13
17
|
end
|
14
18
|
end
|
@@ -23,7 +23,7 @@ module CorreiosSigep
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def wsdl
|
26
|
-
@wsdl ||= if ENV['GEM_ENV'] == 'test'
|
26
|
+
@wsdl ||= if ENV['GEM_ENV'] == 'test' || CorreiosSigep.configuration.development?
|
27
27
|
'https://apphom.correios.com.br/logisticaReversaWS/logisticaReversaService/logisticaReversaWS?wsdl'
|
28
28
|
else
|
29
29
|
'https://cws.correios.com.br/logisticaReversaWS/logisticaReversaService/logisticaReversaWS?wsdl'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: correios_sigep
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Ribeiro
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-08-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: net-http-persistent
|
@@ -221,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
221
221
|
version: '0'
|
222
222
|
requirements: []
|
223
223
|
rubyforge_project:
|
224
|
-
rubygems_version: 2.6.
|
224
|
+
rubygems_version: 2.6.14
|
225
225
|
signing_key:
|
226
226
|
specification_version: 4
|
227
227
|
summary: A gem that integrates with Correios SIGEP WEB.
|