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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a1ac51805ee09f6ed331ba93a2a3bf83cceb1aff
4
- data.tar.gz: 5d97e36a26b6dc76fdb16683e5e73bd8abc73075
3
+ metadata.gz: dc429960d23c97c76958fdc45d22993deef902e8
4
+ data.tar.gz: d22c8bd81dffd60a0ab63e28df7250122940d01b
5
5
  SHA512:
6
- metadata.gz: 7bc72ea3b6c3dd3b5ae7bd01e14baadc4cca05b253223b5464f57faa4c1375cbc8b421a69397181de846dfa48afa1624b1d8b8895890cd001cbcf45c28900c66
7
- data.tar.gz: 77b8db81f0a0a85b2bec60a32084c1a467802787fc5b57645cd47bd650a8888c708d7eca7ca5fe9e8cbb4f0a2d0ff2b52f8f09227c3e449f034ea4456ab312dd
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
@@ -2,7 +2,7 @@
2
2
  #encoding: UTF-8
3
3
 
4
4
  require 'optparse'
5
- require './lib/postmon_ruby'
5
+ require 'postmon_ruby'
6
6
 
7
7
  options = {}
8
8
 
@@ -1,3 +1,3 @@
1
1
  module PostmonRuby
2
- VERSION = "2.1.2"
2
+ VERSION = "2.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postmon_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Ribeiro