bumeran 0.2.1 → 0.2.2
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/lib/bumeran.rb +10 -2
- data/lib/bumeran/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: 3cec720662f354a12dad7938e5d45154771a35c4
|
4
|
+
data.tar.gz: 3bbd1148a3348cf83bf3312fb4f90e667f61abd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76e3e0eb340b83450674310ccf57d6b87c3cc7d8f714ce4b8bfdb6f93454c338cade5f0ffad068b3c52cd93e542d9a8f448d84fdd51ffee17bde1149402efd8a
|
7
|
+
data.tar.gz: 0e577c0d6e3779760dd8f3acb99d4329f4162504e679bba4a25003a8a2371586a052eacd8aead951211c85d45c0679c77200f40a7dfb891f0f762f49a25e19c7
|
data/lib/bumeran.rb
CHANGED
@@ -155,10 +155,18 @@ module Bumeran
|
|
155
155
|
return Parser.parse_response_to_json(response)
|
156
156
|
end
|
157
157
|
|
158
|
-
def self.get_postulations_in_publication(publication_id)
|
158
|
+
def self.get_postulations_in_publication(publication_id, page=0, postulations_per_page=20)
|
159
159
|
Bumeran.initialize
|
160
160
|
get_postulations_in_publication_path = "/v0/empresas/avisos/#{publication_id}/postulaciones"
|
161
|
-
response = self.get(get_postulations_in_publication_path, @@options)
|
161
|
+
response = self.get(get_postulations_in_publication_path, @@options.merge(query: @@options[:query].merge({page: page, perPage: postulations_per_page})))
|
162
|
+
|
163
|
+
return Parser.parse_response_to_json(response)
|
164
|
+
end
|
165
|
+
|
166
|
+
def self.get_postulation(postulation_id)
|
167
|
+
Bumeran.initialize
|
168
|
+
get_postulation_path = "/v0/empresas/postulaciones/#{postulation_id}"
|
169
|
+
response = self.get(get_postulation_path, @@options)
|
162
170
|
|
163
171
|
return Parser.parse_response_to_json(response)
|
164
172
|
end
|
data/lib/bumeran/version.rb
CHANGED
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.2
|
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-
|
11
|
+
date: 2015-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|