postmon_ruby 2.1.2 → 2.1.3
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/README.md +49 -1
- data/bin/postmon-ruby +1 -1
- data/lib/postmon_ruby/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dc429960d23c97c76958fdc45d22993deef902e8
|
|
4
|
+
data.tar.gz: d22c8bd81dffd60a0ab63e28df7250122940d01b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cc78ea2b3bcf34e1bec7470b9444b5ef46d2dc0ba2c0603c86ca42cb4adfa53271f51bf28d90ce43fd4931857b5eb9be585f9bc383673e32eab91332a7fa83db
|
|
7
|
+
data.tar.gz: e03683ff296935ceeb5dd86e0f91c67c3a00a553dc4f716e376059f03773b8c553d6fc463523d0b83f07e2d55020abd347e99d5274f4ec8cea36596390e0acfe
|
data/README.md
CHANGED
|
@@ -44,10 +44,58 @@ puts resultado.codigo_ibge
|
|
|
44
44
|
puts resultado.nome
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
+
###Para consultar pelo terminal
|
|
48
|
+
#### Consultar pelo CEP:
|
|
49
|
+
|
|
50
|
+
$ postmon-ruby --cep 49015040
|
|
51
|
+
|
|
52
|
+
Complemento: lado ímpar
|
|
53
|
+
Bairro: São José
|
|
54
|
+
Cidade: Aracaju
|
|
55
|
+
Logradouro: Avenida Barão de Maruim
|
|
56
|
+
Estado: SE
|
|
57
|
+
Cep: 49015040
|
|
58
|
+
|
|
59
|
+
#### Consultar informações de uma cidade:
|
|
60
|
+
|
|
61
|
+
$ postmon-ruby --cidade SE,Aracaju
|
|
62
|
+
|
|
63
|
+
Area_km2: 181,857
|
|
64
|
+
Codigo_ibge: 2800308
|
|
65
|
+
|
|
66
|
+
#### Consultar informações de um estado:
|
|
67
|
+
|
|
68
|
+
$ postmon-ruby --estado SE
|
|
69
|
+
|
|
70
|
+
Area_km2: 21.915,116
|
|
71
|
+
Codigo_ibge: 28
|
|
72
|
+
Nome: Sergipe
|
|
73
|
+
|
|
74
|
+
#### Consultar informações de rastreio de um pacote:
|
|
75
|
+
|
|
76
|
+
$ postmon-ruby --rastreio RF223325059SG
|
|
77
|
+
|
|
78
|
+
Codigo: RF223325059SG
|
|
79
|
+
Servico: ect
|
|
80
|
+
detalhes: Em trвnsito para UNIDADE DE TRATAMENTO INTERNACIONAL - BRASIL
|
|
81
|
+
local: CINGAPURA
|
|
82
|
+
data: 11/04/2014 14:04
|
|
83
|
+
situacao: Encaminhado
|
|
84
|
+
|
|
85
|
+
#### Menu de opções:
|
|
86
|
+
|
|
87
|
+
$ postmon-ruby -h
|
|
88
|
+
|
|
89
|
+
Usage postmon [options]
|
|
90
|
+
--cep CEP Consultar CEP
|
|
91
|
+
--cidade UF,Cidade Consultar informações de uma cidade
|
|
92
|
+
--estado UF Consultar informações de um estado
|
|
93
|
+
--rastreio CODIGO_POSTAGEM Consultar informações de rastreio de um pacote
|
|
94
|
+
|
|
47
95
|
## Contributing
|
|
48
96
|
|
|
49
97
|
1. Fork it
|
|
50
98
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
51
99
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
52
100
|
4. Push to the branch (`git push origin my-new-feature`)
|
|
53
|
-
5. Create new Pull Request
|
|
101
|
+
5. Create new Pull Request
|
data/bin/postmon-ruby
CHANGED
data/lib/postmon_ruby/version.rb
CHANGED