bumeran 0.2.3 → 0.2.4
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/bumeran.rb +4 -4
- data/lib/bumeran/version.rb +1 -1
- data/spec/lib/bumeran_spec.rb +5 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5af83ab6911bcb77e789eb5b541ad9b6221b576
|
4
|
+
data.tar.gz: eb947e1745ed9fcc5c628db3593806f181a1abf1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bdad18145822e47190a8e41c43061d400e7d7e304cf263483b6bffcfca5c0e1a2e579970ceac1451ff4df1e194ce8231b053a89923174e8f08d3afe7ad479b6
|
7
|
+
data.tar.gz: 20dd9e37853cff050b2ece22ef28b313d1fb2dfb446395afa94dbbf175f49377f48dd076202271c268ccc59065f89e0cae6d64adfc37ce18e0061afcd781ad39
|
data/Gemfile.lock
CHANGED
data/lib/bumeran.rb
CHANGED
@@ -349,7 +349,7 @@ module Bumeran
|
|
349
349
|
# Servicios generales asociados a datos de localización
|
350
350
|
def self.get_paises
|
351
351
|
Bumeran.initialize
|
352
|
-
paises_path = "/v0/empresas/
|
352
|
+
paises_path = "/v0/empresas/localizaciones/paises"
|
353
353
|
response = self.get(paises_path, @@options)
|
354
354
|
|
355
355
|
paises_json = Parser.parse_response_to_json(response)
|
@@ -358,7 +358,7 @@ module Bumeran
|
|
358
358
|
|
359
359
|
def self.get_zonas_in(pais_id)
|
360
360
|
Bumeran.initialize
|
361
|
-
zonas_path = "/v0/empresas/
|
361
|
+
zonas_path = "/v0/empresas/localizaciones/paises/#{pais_id}/zonas"
|
362
362
|
response = self.get(zonas_path, @@options)
|
363
363
|
|
364
364
|
json_zonas = Parser.parse_response_to_json(response)
|
@@ -368,7 +368,7 @@ module Bumeran
|
|
368
368
|
|
369
369
|
def self.get_localidades_in(zona_id)
|
370
370
|
Bumeran.initialize
|
371
|
-
localidades_path = "/v0/empresas/
|
371
|
+
localidades_path = "/v0/empresas/localizaciones/zonas/#{zona_id}/localidades"
|
372
372
|
response = self.get(localidades_path, @@options)
|
373
373
|
|
374
374
|
json = Parser.parse_response_to_json(response)
|
@@ -507,7 +507,7 @@ module Bumeran
|
|
507
507
|
# Servicios de la experiencia laboral de los postulantes
|
508
508
|
def self.get_experiencia_laboral(experiencia_laboral_id)
|
509
509
|
Bumeran.initialize
|
510
|
-
experiencia_laboral_path = "/v0/
|
510
|
+
experiencia_laboral_path = "/v0/experienciasLaborales/#{experiencia_laboral_id}"
|
511
511
|
response = self.get(experiencia_laboral_path, @@options)
|
512
512
|
|
513
513
|
return Parser.parse_response_to_json(response)
|
data/lib/bumeran/version.rb
CHANGED
data/spec/lib/bumeran_spec.rb
CHANGED
@@ -54,6 +54,11 @@ describe Bumeran do
|
|
54
54
|
Bumeran.frecuencias_pago.count.should > 0
|
55
55
|
end
|
56
56
|
|
57
|
+
it 'can get paises' do
|
58
|
+
pp Bumeran.paises
|
59
|
+
Bumeran.paises.count.should > 0
|
60
|
+
end
|
61
|
+
|
57
62
|
# localidades gives error! (API problem)
|
58
63
|
it 'can get paises, zonas, localidades, and plan plublicaciones' do
|
59
64
|
pp Bumeran.paises
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bumeran
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Fernandez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
version: '0'
|
124
124
|
requirements: []
|
125
125
|
rubyforge_project:
|
126
|
-
rubygems_version: 2.
|
126
|
+
rubygems_version: 2.2.2
|
127
127
|
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: A gem to access the Bumeran api
|