br_zip_code 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/br_zip_code/zip_code_controller.rb +1 -3
- data/lib/br_zip_code.rb +6 -2
- data/lib/br_zip_code/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e79ef9c1f531d2282eb08fd11b2fe38adceef8d
|
4
|
+
data.tar.gz: 944ff38d24c9906ff34094dcaf060ac7fe6f5e80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41e98cc17f1b208db793b303066df1e65119eeed29eed641ae2ed36d35266777beea4fb84ebff84661abecf9875e524d75e94163e24bc47c0b27b36ee5031ac3
|
7
|
+
data.tar.gz: fb93eeb12e8c44f5c38b3f7e6ee122aab9ef445249eef59619a862049ac7271bd7b36a263835825f226fa2e51c05ff93aa466785a539f6962cbfc2874c3ab826
|
data/lib/br_zip_code.rb
CHANGED
@@ -63,13 +63,17 @@ module BrZipCode
|
|
63
63
|
|
64
64
|
@services = []
|
65
65
|
|
66
|
-
[
|
66
|
+
class_names = [
|
67
67
|
'Postmon',
|
68
68
|
'Viacep',
|
69
69
|
'CorreioControl',
|
70
70
|
'RepublicaVirtual',
|
71
71
|
'CepLivre'
|
72
|
-
]
|
72
|
+
]
|
73
|
+
|
74
|
+
class_names.delete('CepLivre') if ENV['CEP_LIVRE_TOKEN'].nil?
|
75
|
+
|
76
|
+
class_names.each do |class_name|
|
73
77
|
@services.push Module.const_get("BrZipCode::Service::#{class_name}")
|
74
78
|
end
|
75
79
|
|
data/lib/br_zip_code/version.rb
CHANGED
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
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ariel Schvartz
|
@@ -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.
|
138
|
+
summary: BR Zip Code - 1.0.2
|
139
139
|
test_files: []
|