br_zip_code 1.0.4 → 1.0.5

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: 567a4f749b336e3799edc738a69599bb235aacb5
4
- data.tar.gz: 2a2d786629077505d41b9e8442680ab0f66b6816
3
+ metadata.gz: 4e150cfe55ee004e4938f6aaf0ee9724e4809c4b
4
+ data.tar.gz: 17c5ec9528b8e976761e623756bcfa28314514d4
5
5
  SHA512:
6
- metadata.gz: fa1cc6c7cece3a5ddbad709cf5e94ed24e680e0997298f1d538f9bf1f43b700795abf0a64c02c440f7ac3826175d21787aa6e8d46859d3cd4fdd103e27ae056c
7
- data.tar.gz: fe6b95765443fa00a49c00aac2c25554872fd193bc950d55fa109e38ccbef98bd9a63fc0af39912ea8dce9309a26314365ed7d8ee2da968dd7d1d3815c30d408
6
+ metadata.gz: f81a7b925085e3b8c2e130fcb8bca8f10d2358cb13732da681323e52483498ee46ac2627528725ae2b9396c1638daf5277d674ac79481e0d692e4bfc234be158
7
+ data.tar.gz: ed81f25fc6bd476a95234b589341fca27a048667f9093d0576c60fec3f5537b2434e1c4830afdd54144af792d16950a488f5294bc6ea05093edf508d98dfa097
data/Gemfile CHANGED
@@ -3,6 +3,6 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in br_zip_code.gemspec
4
4
  gemspec
5
5
 
6
- gem 'dotenv'
6
+ gem 'dotenv-rails'
7
7
  gem 'httparty'
8
8
  gem 'nokogiri'
data/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # BrZipCode
2
2
 
3
- This gem helps you to find an address based on a brazilian zip code. For that, 3 webservices are used:
3
+ This gem helps you to find an address based on a brazilian zip code. For that, 5 webservices are used:
4
4
 
5
5
  * [Postmon](http://postmon.com.br/ "Postmon")
6
6
  * [Via CEP](http://viacep.com.br/ "Via CEP")
7
- * [Correio Control](http://cep.correiocontrol.com.br "Correio Control")
8
7
  * [República Virtual](http://republicavirtual.com.br/cep/ "República Virtual")
9
- * [CEP Livre](http://ceplivre.com.br/ "CEP Livre")
8
+ * [CEP Livre](http://ceplivre.com.br/ "CEP Livre") - This one needs an API KEY set as an environment variable.
9
+ * [Correio Control](http://cep.correiocontrol.com.br "Correio Control")
10
10
 
11
11
  The webservices are searched in order. If one is not available, the next is tested until one is available or none.
12
12
 
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.require_paths = ["lib"]
25
25
 
26
26
  spec.add_dependency "rails"
27
- spec.add_dependency "dotenv", "~> 2.0"
27
+ spec.add_dependency "dotenv-rails"
28
28
 
29
29
  spec.add_development_dependency "bundler", "~> 1.8"
30
30
  spec.add_development_dependency "rake", "~> 10.0"
@@ -29,7 +29,7 @@ module BrZipCode
29
29
  end
30
30
 
31
31
  def self.timeout
32
- self.configuration.timeout || 5
32
+ self.configuration.timeout || 3
33
33
  end
34
34
 
35
35
  def self.attempts
@@ -1,3 +1,3 @@
1
1
  module BrZipCode
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: br_zip_code
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ariel Schvartz
@@ -25,19 +25,19 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: dotenv
28
+ name: dotenv-rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '2.0'
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '2.0'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -135,5 +135,5 @@ rubyforge_project:
135
135
  rubygems_version: 2.4.6
136
136
  signing_key:
137
137
  specification_version: 4
138
- summary: BR Zip Code - 1.0.4
138
+ summary: BR Zip Code - 1.0.5
139
139
  test_files: []