correios-cep 0.5.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/CHANGELOG.md +1 -0
- data/correios-cep.gemspec +1 -1
- data/lib/correios/cep/version.rb +1 -1
- data/spec/correios/cep/address_finder_spec.rb +4 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d5cdfe03375d8873875308da8de58f4d34fc328
|
4
|
+
data.tar.gz: be9a29c3d23a68ade6cd690e03fca7b1ce326a2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92cb5109666b13723dfda68f4d8ce5d30f3a160a5c3da9cdd937ffdbe203bbe343e86b3ad1c07f75ebb73b8acfb268df22d8dfd9b03c822a0d6e6c1686931702
|
7
|
+
data.tar.gz: 5aa48fe8acf7f6df366b59edf5233a6aa66ce45bfc28cae412e9feff1aae43f7670bdf668e9d52ecc314c84698088e8f13515d1184d744987a7807bc3f61cd5a
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
| Version | Changes |
|
2
2
|
| ------- | ------- |
|
3
|
+
| 0.6.0 | Minimal required Ruby version from now is 2.0.0. |
|
3
4
|
| 0.5.1 | Zipcode input validation improvement. |
|
4
5
|
| 0.5.0 | Handle errors returned from Correios web service. [Issue #10](https://github.com/prodis/correios-cep/issues/10); Zipcode input validation. |
|
5
6
|
| 0.4.0 | Replace Nokogiri by Ox. [Issue #3](https://github.com/prodis/correios-cep/issues/3) |
|
data/correios-cep.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.require_paths = ['lib']
|
19
19
|
|
20
20
|
spec.platform = Gem::Platform::RUBY
|
21
|
-
spec.required_ruby_version = Gem::Requirement.new('>=
|
21
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.0.0')
|
22
22
|
|
23
23
|
spec.add_dependency 'log-me', '= 0.0.8'
|
24
24
|
spec.add_dependency 'ox', '~> 2.2.2'
|
data/lib/correios/cep/version.rb
CHANGED
@@ -37,8 +37,10 @@ describe Correios::CEP::AddressFinder do
|
|
37
37
|
'is empty' => ''
|
38
38
|
},
|
39
39
|
'zipcode in invalid format (valid format: 00000-000)' => {
|
40
|
-
'
|
41
|
-
'
|
40
|
+
'is less than 8 digits' => '1234567',
|
41
|
+
'is greather than 8 digits' => '123456789',
|
42
|
+
'is in invalid format' => '1234-5678',
|
43
|
+
'is not numeric' => 'abcdefgh'
|
42
44
|
}
|
43
45
|
}.each do |error_message, values|
|
44
46
|
values.each do |text, value|
|
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.
|
4
|
+
version: 0.6.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: 2015-11-
|
11
|
+
date: 2015-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: log-me
|
@@ -163,7 +163,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
163
163
|
requirements:
|
164
164
|
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
166
|
+
version: 2.0.0
|
167
167
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
168
168
|
requirements:
|
169
169
|
- - ">="
|
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
171
|
version: '0'
|
172
172
|
requirements: []
|
173
173
|
rubyforge_project:
|
174
|
-
rubygems_version: 2.4.
|
174
|
+
rubygems_version: 2.4.8
|
175
175
|
signing_key:
|
176
176
|
specification_version: 4
|
177
177
|
summary: Correios CEP gem gets updated Brazilian address from a zipcode, directly
|