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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73277068e5bfa42dedd97c11a5455ba7ba3fd23a
4
- data.tar.gz: a87984ee76063a202eab429d6e1f695fea843b18
3
+ metadata.gz: 3cec720662f354a12dad7938e5d45154771a35c4
4
+ data.tar.gz: 3bbd1148a3348cf83bf3312fb4f90e667f61abd5
5
5
  SHA512:
6
- metadata.gz: 242a2fe2222264b9b0cb44a876ea660d8c28edbb44f83176ace9ffb1b22f92c553957805225a384f1024fbcad952992a425562138f2a46dab6d20d1e3dc50c7b
7
- data.tar.gz: 540a3898d82baf3bd8b340cfe7e6d130124af397ed8fd2b1e431d5a8a3aa2af6d4342c2495a2af73126ac9e42a337924c973161d628e64f3554eca35273cf103
6
+ metadata.gz: 76e3e0eb340b83450674310ccf57d6b87c3cc7d8f714ce4b8bfdb6f93454c338cade5f0ffad068b3c52cd93e542d9a8f448d84fdd51ffee17bde1149402efd8a
7
+ data.tar.gz: 0e577c0d6e3779760dd8f3acb99d4329f4162504e679bba4a25003a8a2371586a052eacd8aead951211c85d45c0679c77200f40a7dfb891f0f762f49a25e19c7
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Bumeran
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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.1
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-05-31 00:00:00.000000000 Z
11
+ date: 2015-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails