sigep_web 0.2.6.3 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +0 -30
- data/.travis.yml +1 -1
- data/Gemfile +0 -1
- data/Gemfile.lock +46 -11
- data/LICENSE +1 -1
- data/LICENSE.txt +5 -7
- data/README.md +120 -28
- data/lib/sigep_web/version.rb +1 -1
- data/lib/sigep_web/web_service_interface_api.rb +12 -7
- data/sigep_web.gemspec +6 -11
- metadata +74 -26
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7361634528c0483b2de3458754a26a4a77365cc9
|
|
4
|
+
data.tar.gz: b8c6a0f10b06f462b918495060d947999d0da776
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f8bf029a10fe3c0556dda07793047b1de21bdeaf2eb76a3b2d2d9b7b650a090e7ea19b603d843bdeeaf409ee4e93b448a081ce75dbadf66ee492931f6c64cb66
|
|
7
|
+
data.tar.gz: bf2dd161f9c1823913b7e3228b8d69b83c7008d5b4b29d5180f8fd60cef3d9ea51102f78d8371494f435fa8487e70130a20dafb416b800dea3d6d236c257f84f
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
|
@@ -94,16 +94,6 @@ Lint/HandleExceptions:
|
|
|
94
94
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions'
|
|
95
95
|
Enabled: true
|
|
96
96
|
|
|
97
|
-
Lint/InvalidCharacterLiteral:
|
|
98
|
-
Description: >-
|
|
99
|
-
Checks for invalid character literals with a non-escaped
|
|
100
|
-
whitespace character.
|
|
101
|
-
Enabled: true
|
|
102
|
-
|
|
103
|
-
Lint/LiteralInCondition:
|
|
104
|
-
Description: 'Checks of literals used in conditions.'
|
|
105
|
-
Enabled: true
|
|
106
|
-
|
|
107
97
|
Lint/LiteralInInterpolation:
|
|
108
98
|
Description: 'Checks for literals used in interpolation.'
|
|
109
99
|
Enabled: true
|
|
@@ -528,11 +518,6 @@ Style/DefWithParentheses:
|
|
|
528
518
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
|
|
529
519
|
Enabled: false
|
|
530
520
|
|
|
531
|
-
Style/DeprecatedHashMethods:
|
|
532
|
-
Description: 'Checks for use of deprecated Hash methods.'
|
|
533
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-key'
|
|
534
|
-
Enabled: false
|
|
535
|
-
|
|
536
521
|
Style/Documentation:
|
|
537
522
|
Description: 'Document classes and non-namespace modules.'
|
|
538
523
|
Enabled: false
|
|
@@ -716,11 +701,6 @@ Style/LineEndConcatenation:
|
|
|
716
701
|
line end.
|
|
717
702
|
Enabled: false
|
|
718
703
|
|
|
719
|
-
Style/MethodCallParentheses:
|
|
720
|
-
Description: 'Do not use parentheses for method calls with no arguments.'
|
|
721
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-args-no-parens'
|
|
722
|
-
Enabled: false
|
|
723
|
-
|
|
724
704
|
Style/MethodDefParentheses:
|
|
725
705
|
Description: >-
|
|
726
706
|
Checks if the method definitions have or don't have
|
|
@@ -816,11 +796,6 @@ Style/OneLineConditional:
|
|
|
816
796
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
|
|
817
797
|
Enabled: false
|
|
818
798
|
|
|
819
|
-
Style/OpMethod:
|
|
820
|
-
Description: 'When defining binary operators, name the argument other.'
|
|
821
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#other-arg'
|
|
822
|
-
Enabled: false
|
|
823
|
-
|
|
824
799
|
Style/OptionalArguments:
|
|
825
800
|
Description: >-
|
|
826
801
|
Checks for optional arguments that do not appear at the end
|
|
@@ -1015,11 +990,6 @@ Style/SpaceAroundOperators:
|
|
|
1015
990
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
|
1016
991
|
Enabled: false
|
|
1017
992
|
|
|
1018
|
-
Style/SpaceInsideBrackets:
|
|
1019
|
-
Description: 'No spaces after [ or before ].'
|
|
1020
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
|
|
1021
|
-
Enabled: false
|
|
1022
|
-
|
|
1023
993
|
Style/SpaceInsideHashLiteralBraces:
|
|
1024
994
|
Description: "Use spaces inside hash literal braces - or don't."
|
|
1025
995
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
sigep_web (0.2.
|
|
5
|
-
nokogiri (~> 1.
|
|
4
|
+
sigep_web (0.2.7)
|
|
5
|
+
nokogiri (~> 1.8.1)
|
|
6
6
|
savon (~> 2.10, >= 2.10.0)
|
|
7
7
|
|
|
8
8
|
GEM
|
|
@@ -11,18 +11,32 @@ GEM
|
|
|
11
11
|
akami (1.3.1)
|
|
12
12
|
gyoku (>= 0.4.0)
|
|
13
13
|
nokogiri
|
|
14
|
-
|
|
14
|
+
ast (2.3.0)
|
|
15
|
+
builder (3.2.3)
|
|
16
|
+
coveralls (0.8.21)
|
|
17
|
+
json (>= 1.8, < 3)
|
|
18
|
+
simplecov (~> 0.14.1)
|
|
19
|
+
term-ansicolor (~> 1.3)
|
|
20
|
+
thor (~> 0.19.4)
|
|
21
|
+
tins (~> 1.6)
|
|
15
22
|
diff-lcs (1.2.5)
|
|
23
|
+
docile (1.1.5)
|
|
16
24
|
gyoku (1.3.1)
|
|
17
25
|
builder (>= 2.1.2)
|
|
18
26
|
httpi (2.4.2)
|
|
19
27
|
rack
|
|
20
28
|
socksify
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
29
|
+
json (2.1.0)
|
|
30
|
+
mini_portile2 (2.3.0)
|
|
31
|
+
nokogiri (1.8.1)
|
|
32
|
+
mini_portile2 (~> 2.3.0)
|
|
24
33
|
nori (2.6.0)
|
|
25
|
-
|
|
34
|
+
parallel (1.12.1)
|
|
35
|
+
parser (2.4.0.2)
|
|
36
|
+
ast (~> 2.3)
|
|
37
|
+
powerpack (0.1.1)
|
|
38
|
+
rack (2.0.3)
|
|
39
|
+
rainbow (3.0.0)
|
|
26
40
|
rake (10.4.2)
|
|
27
41
|
rspec (3.4.0)
|
|
28
42
|
rspec-core (~> 3.4.0)
|
|
@@ -37,15 +51,33 @@ GEM
|
|
|
37
51
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
38
52
|
rspec-support (~> 3.4.0)
|
|
39
53
|
rspec-support (3.4.1)
|
|
40
|
-
|
|
54
|
+
rubocop (0.52.1)
|
|
55
|
+
parallel (~> 1.10)
|
|
56
|
+
parser (>= 2.4.0.2, < 3.0)
|
|
57
|
+
powerpack (~> 0.1)
|
|
58
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
59
|
+
ruby-progressbar (~> 1.7)
|
|
60
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
|
61
|
+
ruby-progressbar (1.9.0)
|
|
62
|
+
savon (2.12.0)
|
|
41
63
|
akami (~> 1.2)
|
|
42
64
|
builder (>= 2.1.2)
|
|
43
65
|
gyoku (~> 1.2)
|
|
44
66
|
httpi (~> 2.3)
|
|
45
|
-
nokogiri (>= 1.
|
|
67
|
+
nokogiri (>= 1.8.1)
|
|
46
68
|
nori (~> 2.4)
|
|
47
69
|
wasabi (~> 3.4)
|
|
48
|
-
|
|
70
|
+
simplecov (0.14.1)
|
|
71
|
+
docile (~> 1.1.0)
|
|
72
|
+
json (>= 1.8, < 3)
|
|
73
|
+
simplecov-html (~> 0.10.0)
|
|
74
|
+
simplecov-html (0.10.2)
|
|
75
|
+
socksify (1.7.1)
|
|
76
|
+
term-ansicolor (1.6.0)
|
|
77
|
+
tins (~> 1.0)
|
|
78
|
+
thor (0.19.4)
|
|
79
|
+
tins (1.15.1)
|
|
80
|
+
unicode-display_width (1.3.0)
|
|
49
81
|
wasabi (3.5.0)
|
|
50
82
|
httpi (~> 2.0)
|
|
51
83
|
nokogiri (>= 1.4.2)
|
|
@@ -55,9 +87,12 @@ PLATFORMS
|
|
|
55
87
|
|
|
56
88
|
DEPENDENCIES
|
|
57
89
|
bundler (~> 1.11)
|
|
90
|
+
coveralls
|
|
58
91
|
rake (~> 10.0)
|
|
59
92
|
rspec (~> 3.0)
|
|
93
|
+
rubocop
|
|
60
94
|
sigep_web!
|
|
95
|
+
simplecov
|
|
61
96
|
|
|
62
97
|
BUNDLED WITH
|
|
63
|
-
1.
|
|
98
|
+
1.16.1
|
data/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2018 Marcelo Perini Veloso
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/LICENSE.txt
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
Copyright (c) 2018 Marcelo Perini Veloso
|
|
6
4
|
|
|
7
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -11,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
11
9
|
copies of the Software, and to permit persons to whom the Software is
|
|
12
10
|
furnished to do so, subject to the following conditions:
|
|
13
11
|
|
|
14
|
-
The above copyright notice and this permission notice shall be included in
|
|
15
|
-
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
16
14
|
|
|
17
15
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
16
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
17
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
-
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
# Sigep Web
|
|
2
2
|
|
|
3
|
-
[](https://travis-ci.org/marceloperini/sigep_web)
|
|
4
4
|
[](https://badge.fury.io/rb/sigep_web)
|
|
5
5
|
[](https://codeclimate.com/github/Sidoniuns/sigep_web)
|
|
6
|
+
[](https://coveralls.io/github/marceloperini/sigep_web?branch=master)
|
|
7
|
+
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=DWFWT6N2YCZTG)
|
|
6
8
|
|
|
7
9
|
## About
|
|
8
10
|
|
|
9
|
-
This gem provide a easy way to integrate an application to Correios Sigep Web API, all features is based on this API documentation
|
|
11
|
+
This gem provide a easy way to integrate an application to Correios Sigep Web API, all features is based on this [API documentation](http://www.corporativo.correios.com.br/encomendas/sigepweb/doc/Manual_de_Implementacao_do_Web_Service_SIGEP_WEB.pdf)
|
|
10
12
|
|
|
11
13
|
## Getting started
|
|
12
14
|
|
|
@@ -37,43 +39,47 @@ end
|
|
|
37
39
|
```
|
|
38
40
|
### How It Works
|
|
39
41
|
|
|
40
|
-
####
|
|
42
|
+
#### Consulting service availability
|
|
41
43
|
|
|
42
44
|
This check whether a particular service is available from source zip code to target zip code.
|
|
43
45
|
|
|
44
46
|
``` ruby
|
|
45
|
-
SigepWeb.service_availability(service_number: '40215',
|
|
47
|
+
SigepWeb.service_availability(service_number: '40215',
|
|
48
|
+
source_zip: '70002900',
|
|
49
|
+
target_zip: '74730490')
|
|
46
50
|
```
|
|
47
51
|
|
|
48
52
|
This method will return a hash like this if has a success response, the second attribute indicate if a particular service is available.
|
|
49
53
|
|
|
50
54
|
``` ruby
|
|
51
|
-
{ :
|
|
55
|
+
{ success: true, response: true }
|
|
52
56
|
```
|
|
53
57
|
|
|
54
58
|
#### Search Client
|
|
59
|
+
|
|
55
60
|
This method return the available services of specific post card
|
|
56
61
|
|
|
57
62
|
``` ruby
|
|
58
|
-
SigepWeb.search_client(id_contract: "0000000000",
|
|
63
|
+
SigepWeb.search_client(id_contract: "0000000000",
|
|
64
|
+
id_post_card: "0000000000")
|
|
59
65
|
```
|
|
60
66
|
|
|
61
67
|
The method will return something like this
|
|
62
68
|
|
|
63
69
|
``` ruby
|
|
64
70
|
{
|
|
65
|
-
:
|
|
66
|
-
:
|
|
67
|
-
:
|
|
68
|
-
:
|
|
69
|
-
:
|
|
70
|
-
:
|
|
71
|
-
:
|
|
72
|
-
:
|
|
71
|
+
success: true,
|
|
72
|
+
response: {
|
|
73
|
+
cnpj: '0000000000',
|
|
74
|
+
contratos: {
|
|
75
|
+
cartoes_postage: {
|
|
76
|
+
codigo_administrativo: '000000000',
|
|
77
|
+
numero: '000000000',
|
|
78
|
+
servicos: [
|
|
73
79
|
{
|
|
74
|
-
:
|
|
75
|
-
:
|
|
76
|
-
:
|
|
80
|
+
codigo: '40096',
|
|
81
|
+
descricao: 'SEDEX - CONTRATO',
|
|
82
|
+
id: '104625'
|
|
77
83
|
},
|
|
78
84
|
...
|
|
79
85
|
]
|
|
@@ -84,6 +90,7 @@ The method will return something like this
|
|
|
84
90
|
```
|
|
85
91
|
|
|
86
92
|
#### Zip Query
|
|
93
|
+
|
|
87
94
|
This method return the address based on zip code
|
|
88
95
|
|
|
89
96
|
``` ruby
|
|
@@ -94,22 +101,107 @@ This method will return a hash like this
|
|
|
94
101
|
|
|
95
102
|
``` ruby
|
|
96
103
|
{
|
|
97
|
-
:
|
|
98
|
-
:
|
|
99
|
-
:
|
|
100
|
-
:
|
|
101
|
-
:
|
|
102
|
-
:
|
|
103
|
-
:
|
|
104
|
-
:
|
|
105
|
-
:
|
|
106
|
-
:
|
|
104
|
+
success: true,
|
|
105
|
+
response: {
|
|
106
|
+
bairro: 'Asa Norte',
|
|
107
|
+
cep: '70002900',
|
|
108
|
+
cidade: 'Brasília',
|
|
109
|
+
complemento: nil,
|
|
110
|
+
complemento2: nil,
|
|
111
|
+
end: 'SBN Quadra 1 Bloco A',
|
|
112
|
+
id: '0',
|
|
113
|
+
uf: 'DF'
|
|
107
114
|
}
|
|
108
115
|
}
|
|
109
116
|
```
|
|
110
117
|
|
|
111
118
|
#### Request Labels For Posts
|
|
119
|
+
|
|
112
120
|
Return one label or a range of labels to use for posts
|
|
121
|
+
|
|
113
122
|
``` ruby
|
|
114
|
-
SigepWeb.request_labels(receiver_type:
|
|
123
|
+
SigepWeb.request_labels(receiver_type: 'C', identifier: '00000000000000',
|
|
124
|
+
id_service: '104625', qt_labels: 1)
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
return:
|
|
128
|
+
|
|
129
|
+
```ruby
|
|
130
|
+
{ success: true, response: ['DL61145929 BR'] }
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
#### Request verifying digit
|
|
134
|
+
|
|
135
|
+
to generate the verifying digit for a specific label use:
|
|
136
|
+
|
|
137
|
+
```ruby
|
|
138
|
+
SigepWeb.generate_labels_digit_verifier(labels: 'DL61145929 BR')
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
return:
|
|
142
|
+
|
|
143
|
+
```ruby
|
|
144
|
+
{ success: true, response: 6 }
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
#### Create receiver structure
|
|
148
|
+
|
|
149
|
+
use the _SigepWeb::Models::Receiver_ to create receiver structure:
|
|
150
|
+
|
|
151
|
+
```ruby
|
|
152
|
+
SigepWeb::Models::Receiver.new(name: 'Josefina', email: 'josefina@foo.com',
|
|
153
|
+
number: '10', address: 'Rua X',
|
|
154
|
+
complement: 'Perto da rua X+1',
|
|
155
|
+
neighborhood: 'Bairro X-1',
|
|
156
|
+
city: 'Cidade Y', uf: 'SP', amount: '0,0',
|
|
157
|
+
cep: '04105-070')
|
|
158
|
+
```
|
|
159
|
+
#### Create post object dimensions
|
|
160
|
+
|
|
161
|
+
use the _SigepWeb::Models::DimensionObject_ to create object dimensions:
|
|
162
|
+
|
|
163
|
+
```ruby
|
|
164
|
+
SigepWeb::Models::DimensionObject.new(object_type: '002', height: '20',
|
|
165
|
+
width: '30', length: '38',
|
|
166
|
+
diameter: '0')
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
* object_type: use 001 to letter envelope, 002 to package/ box and 003 to roll/ cylinder
|
|
170
|
+
|
|
171
|
+
#### Create post object
|
|
172
|
+
|
|
173
|
+
use the _SigepWeb::Models::PostalObject_ to create post object:
|
|
174
|
+
|
|
175
|
+
```ruby
|
|
176
|
+
SigepWeb::Models::PostalObject.new(label_number: 'DL611459296BR',
|
|
177
|
+
postage_code_service: '40096',
|
|
178
|
+
cubage: 0.0, weight: '400',
|
|
179
|
+
receiver: receiver,
|
|
180
|
+
dimension_object: dimension_object,
|
|
181
|
+
processing_status: '0')
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
* label_number: tracking code with verifying digit
|
|
185
|
+
* postage_code: service code to use (SEDEX, PAC, etc.), for this example was used SEDEX, to get all available codes use _SigepWeb.search_client_
|
|
186
|
+
* receiver: object instance of _SigepWeb::Models::Receiver_ class
|
|
187
|
+
* dimension_object: object instance of _SigepWeb::Models::DimensionObject_ class
|
|
188
|
+
* processing_status: default value is '0'
|
|
189
|
+
|
|
190
|
+
#### Create sender
|
|
191
|
+
|
|
192
|
+
```ruby
|
|
193
|
+
SigepWeb::Models::Sender.new(directorship_number: '16', name: 'Loja X',
|
|
194
|
+
address: 'Rua X', number: '10',
|
|
195
|
+
complement: 'perto da rua X+1',
|
|
196
|
+
neighborhood: 'Bairro Y',
|
|
197
|
+
zip_code: '7400000', city: 'Goiânia',
|
|
198
|
+
uf: 'GO', email: 'contato@loja_x.com.br',
|
|
199
|
+
postal_objects: postal_objects)
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
#### Submit the plp
|
|
203
|
+
|
|
204
|
+
```ruby
|
|
205
|
+
SigepWeb.request_plp_services(plp: sender, id_plp_client: 00_000_000,
|
|
206
|
+
labels: labels)
|
|
115
207
|
```
|
data/lib/sigep_web/version.rb
CHANGED
|
@@ -8,16 +8,21 @@ module SigepWeb
|
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
def process(method, message)
|
|
11
|
-
@client.call(method, soap_action:
|
|
11
|
+
@client.call(method, soap_action: '', message: message)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
private
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
|
|
16
|
+
def url
|
|
17
|
+
if test_env?
|
|
18
|
+
'https://apphom.correios.com.br/SigepMasterJPA/AtendeClienteService/AtendeCliente?wsdl'
|
|
19
|
+
else
|
|
20
|
+
'https://apps.correios.com.br/SigepMasterJPA/AtendeClienteService/AtendeCliente?wsdl'
|
|
21
21
|
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def test_env?
|
|
25
|
+
(defined?(Rails) && ENV['RAILS_ENV'] == 'test') || ENV['GEM_ENV'] == 'test'
|
|
26
|
+
end
|
|
22
27
|
end
|
|
23
28
|
end
|
data/sigep_web.gemspec
CHANGED
|
@@ -6,33 +6,28 @@ require 'sigep_web/version'
|
|
|
6
6
|
Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = 'sigep_web'
|
|
8
8
|
spec.version = SigepWeb::VERSION
|
|
9
|
-
spec.authors = ['Marcelo Perini Veloso
|
|
9
|
+
spec.authors = ['Marcelo Perini Veloso']
|
|
10
10
|
spec.email = ['marcelo.perini.veloso@gmail.com']
|
|
11
11
|
|
|
12
12
|
spec.summary = %q{A gem to integrate Sigep Web API}
|
|
13
13
|
spec.description = %q{This gem provide a easy way to integrate an application to Correios Sigep Web API}
|
|
14
|
-
spec.homepage = 'https://github.com/
|
|
14
|
+
spec.homepage = 'https://github.com/marceloperini/sigep_web'
|
|
15
15
|
spec.license = 'MIT'
|
|
16
16
|
|
|
17
17
|
spec.rubyforge_project = 'sigep_web'
|
|
18
18
|
|
|
19
|
-
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
|
20
|
-
# delete this section to allow pushing this gem to any host.
|
|
21
|
-
# if spec.respond_to?(:metadata)
|
|
22
|
-
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
|
23
|
-
# else
|
|
24
|
-
# raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
|
25
|
-
# end
|
|
26
|
-
|
|
27
19
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
28
20
|
spec.bindir = 'exe'
|
|
29
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
30
22
|
spec.require_paths = ['lib']
|
|
31
23
|
|
|
32
24
|
spec.add_dependency 'savon', '~> 2.10', '>= 2.10.0'
|
|
33
|
-
spec.add_dependency 'nokogiri', '~> 1.
|
|
25
|
+
spec.add_dependency 'nokogiri', '~> 1.8', '>= 1.8.1'
|
|
34
26
|
|
|
35
27
|
spec.add_development_dependency 'bundler', '~> 1.11'
|
|
36
28
|
spec.add_development_dependency 'rake', '~> 10.0'
|
|
37
29
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
|
30
|
+
spec.add_development_dependency 'simplecov', '~> 0.15.1'
|
|
31
|
+
spec.add_development_dependency 'coveralls', '~> 0.8.21'
|
|
32
|
+
spec.add_development_dependency 'rubocop', '~> 0.52.1'
|
|
38
33
|
end
|
metadata
CHANGED
|
@@ -1,91 +1,139 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sigep_web
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
- Marcelo Perini Veloso
|
|
7
|
+
- Marcelo Perini Veloso
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-01-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: savon
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- -
|
|
17
|
+
- - ~>
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '2.10'
|
|
20
|
-
- -
|
|
20
|
+
- - '>='
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
22
|
version: 2.10.0
|
|
23
23
|
type: :runtime
|
|
24
24
|
prerelease: false
|
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
26
26
|
requirements:
|
|
27
|
-
- -
|
|
27
|
+
- - ~>
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
29
|
version: '2.10'
|
|
30
|
-
- -
|
|
30
|
+
- - '>='
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: 2.10.0
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
34
|
name: nokogiri
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
|
-
- -
|
|
37
|
+
- - ~>
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: '1.
|
|
39
|
+
version: '1.8'
|
|
40
|
+
- - '>='
|
|
41
|
+
- !ruby/object:Gem::Version
|
|
42
|
+
version: 1.8.1
|
|
40
43
|
type: :runtime
|
|
41
44
|
prerelease: false
|
|
42
45
|
version_requirements: !ruby/object:Gem::Requirement
|
|
43
46
|
requirements:
|
|
44
|
-
- -
|
|
47
|
+
- - ~>
|
|
48
|
+
- !ruby/object:Gem::Version
|
|
49
|
+
version: '1.8'
|
|
50
|
+
- - '>='
|
|
45
51
|
- !ruby/object:Gem::Version
|
|
46
|
-
version:
|
|
52
|
+
version: 1.8.1
|
|
47
53
|
- !ruby/object:Gem::Dependency
|
|
48
54
|
name: bundler
|
|
49
55
|
requirement: !ruby/object:Gem::Requirement
|
|
50
56
|
requirements:
|
|
51
|
-
- -
|
|
57
|
+
- - ~>
|
|
52
58
|
- !ruby/object:Gem::Version
|
|
53
59
|
version: '1.11'
|
|
54
60
|
type: :development
|
|
55
61
|
prerelease: false
|
|
56
62
|
version_requirements: !ruby/object:Gem::Requirement
|
|
57
63
|
requirements:
|
|
58
|
-
- -
|
|
64
|
+
- - ~>
|
|
59
65
|
- !ruby/object:Gem::Version
|
|
60
66
|
version: '1.11'
|
|
61
67
|
- !ruby/object:Gem::Dependency
|
|
62
68
|
name: rake
|
|
63
69
|
requirement: !ruby/object:Gem::Requirement
|
|
64
70
|
requirements:
|
|
65
|
-
- -
|
|
71
|
+
- - ~>
|
|
66
72
|
- !ruby/object:Gem::Version
|
|
67
73
|
version: '10.0'
|
|
68
74
|
type: :development
|
|
69
75
|
prerelease: false
|
|
70
76
|
version_requirements: !ruby/object:Gem::Requirement
|
|
71
77
|
requirements:
|
|
72
|
-
- -
|
|
78
|
+
- - ~>
|
|
73
79
|
- !ruby/object:Gem::Version
|
|
74
80
|
version: '10.0'
|
|
75
81
|
- !ruby/object:Gem::Dependency
|
|
76
82
|
name: rspec
|
|
77
83
|
requirement: !ruby/object:Gem::Requirement
|
|
78
84
|
requirements:
|
|
79
|
-
- -
|
|
85
|
+
- - ~>
|
|
80
86
|
- !ruby/object:Gem::Version
|
|
81
87
|
version: '3.0'
|
|
82
88
|
type: :development
|
|
83
89
|
prerelease: false
|
|
84
90
|
version_requirements: !ruby/object:Gem::Requirement
|
|
85
91
|
requirements:
|
|
86
|
-
- -
|
|
92
|
+
- - ~>
|
|
87
93
|
- !ruby/object:Gem::Version
|
|
88
94
|
version: '3.0'
|
|
95
|
+
- !ruby/object:Gem::Dependency
|
|
96
|
+
name: simplecov
|
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
|
98
|
+
requirements:
|
|
99
|
+
- - ~>
|
|
100
|
+
- !ruby/object:Gem::Version
|
|
101
|
+
version: 0.15.1
|
|
102
|
+
type: :development
|
|
103
|
+
prerelease: false
|
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
105
|
+
requirements:
|
|
106
|
+
- - ~>
|
|
107
|
+
- !ruby/object:Gem::Version
|
|
108
|
+
version: 0.15.1
|
|
109
|
+
- !ruby/object:Gem::Dependency
|
|
110
|
+
name: coveralls
|
|
111
|
+
requirement: !ruby/object:Gem::Requirement
|
|
112
|
+
requirements:
|
|
113
|
+
- - ~>
|
|
114
|
+
- !ruby/object:Gem::Version
|
|
115
|
+
version: 0.8.21
|
|
116
|
+
type: :development
|
|
117
|
+
prerelease: false
|
|
118
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
119
|
+
requirements:
|
|
120
|
+
- - ~>
|
|
121
|
+
- !ruby/object:Gem::Version
|
|
122
|
+
version: 0.8.21
|
|
123
|
+
- !ruby/object:Gem::Dependency
|
|
124
|
+
name: rubocop
|
|
125
|
+
requirement: !ruby/object:Gem::Requirement
|
|
126
|
+
requirements:
|
|
127
|
+
- - ~>
|
|
128
|
+
- !ruby/object:Gem::Version
|
|
129
|
+
version: 0.52.1
|
|
130
|
+
type: :development
|
|
131
|
+
prerelease: false
|
|
132
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
133
|
+
requirements:
|
|
134
|
+
- - ~>
|
|
135
|
+
- !ruby/object:Gem::Version
|
|
136
|
+
version: 0.52.1
|
|
89
137
|
description: This gem provide a easy way to integrate an application to Correios Sigep
|
|
90
138
|
Web API
|
|
91
139
|
email:
|
|
@@ -94,11 +142,11 @@ executables: []
|
|
|
94
142
|
extensions: []
|
|
95
143
|
extra_rdoc_files: []
|
|
96
144
|
files:
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
-
|
|
101
|
-
-
|
|
145
|
+
- .codeclimate.yml
|
|
146
|
+
- .gitignore
|
|
147
|
+
- .rspec
|
|
148
|
+
- .rubocop.yml
|
|
149
|
+
- .travis.yml
|
|
102
150
|
- CODE_OF_CONDUCT.md
|
|
103
151
|
- Gemfile
|
|
104
152
|
- Gemfile.lock
|
|
@@ -134,7 +182,7 @@ files:
|
|
|
134
182
|
- lib/sigep_web/web_service_reverse_logistic_api.rb
|
|
135
183
|
- lib/sigep_web/zip_query.rb
|
|
136
184
|
- sigep_web.gemspec
|
|
137
|
-
homepage: https://github.com/
|
|
185
|
+
homepage: https://github.com/marceloperini/sigep_web
|
|
138
186
|
licenses:
|
|
139
187
|
- MIT
|
|
140
188
|
metadata: {}
|
|
@@ -144,17 +192,17 @@ require_paths:
|
|
|
144
192
|
- lib
|
|
145
193
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
146
194
|
requirements:
|
|
147
|
-
- -
|
|
195
|
+
- - '>='
|
|
148
196
|
- !ruby/object:Gem::Version
|
|
149
197
|
version: '0'
|
|
150
198
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
199
|
requirements:
|
|
152
|
-
- -
|
|
200
|
+
- - '>='
|
|
153
201
|
- !ruby/object:Gem::Version
|
|
154
202
|
version: '0'
|
|
155
203
|
requirements: []
|
|
156
204
|
rubyforge_project: sigep_web
|
|
157
|
-
rubygems_version: 2.
|
|
205
|
+
rubygems_version: 2.4.8
|
|
158
206
|
signing_key:
|
|
159
207
|
specification_version: 4
|
|
160
208
|
summary: A gem to integrate Sigep Web API
|