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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 16943d9f8d0f187364d858f8d0df8bb83e19c5ec
4
- data.tar.gz: 0250306e8ce1b0039d25a6d1c52af6221e0e2229
3
+ metadata.gz: 8d5cdfe03375d8873875308da8de58f4d34fc328
4
+ data.tar.gz: be9a29c3d23a68ade6cd690e03fca7b1ce326a2d
5
5
  SHA512:
6
- metadata.gz: 5b57fd6f6a44b73442094e683d1222e36cc0f9330acb96d08bc94ea0053be22f3b37368bfd34354e8ef78ed4eca7475f029773d69143d27c19ea22a8c49b423d
7
- data.tar.gz: 5dd164f88e74adfcae72e905d1c62d1e7c4acdc421fa4309708c650a7b4c62ad9d8ce041535e96f4aa7e89efdfb3e18771f5e0304dcb8d8bf6189060137b464a
6
+ metadata.gz: 92cb5109666b13723dfda68f4d8ce5d30f3a160a5c3da9cdd937ffdbe203bbe343e86b3ad1c07f75ebb73b8acfb268df22d8dfd9b03c822a0d6e6c1686931702
7
+ data.tar.gz: 5aa48fe8acf7f6df366b59edf5233a6aa66ce45bfc28cae412e9feff1aae43f7670bdf668e9d52ecc314c84698088e8f13515d1184d744987a7807bc3f61cd5a
@@ -1,8 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.2
4
- - 1.9.3
5
3
  - 2.0.0
6
4
  - 2.1.7
7
5
  - 2.2.3
8
6
  script: bundle exec rspec
7
+ cache: bundler
8
+ sudo: false
@@ -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) |
@@ -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('>= 1.9.2')
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'
@@ -1,5 +1,5 @@
1
1
  module Correios
2
2
  module CEP
3
- VERSION = '0.5.1'
3
+ VERSION = '0.6.0'
4
4
  end
5
5
  end
@@ -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
- 'has less than 8 digits' => '1234567',
41
- 'has invalid format' => '1234-5678'
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.5.1
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-03 00:00:00.000000000 Z
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: 1.9.2
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.5.1
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