taleo 0.5.0 → 0.6.0

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
  SHA256:
3
- metadata.gz: cd4fec5e0d2a14d04ab90f064af405c15898122a347e4dc6d0b91c53f2cdc28f
4
- data.tar.gz: ef1866763aa1bfa84b10ab3aaacd927b98fc946cbc7186e63e475cce31282d92
3
+ metadata.gz: a6324fb24d7887a2ce1b64e78be566b5166a0176351a4eb06fcbe9204f5c9bed
4
+ data.tar.gz: e817de316ddfa86c845c3cc7bb3ce5634851d2beadf541d717554941bb31f5a9
5
5
  SHA512:
6
- metadata.gz: ba23feae74468c2fadfd157d6ea0d480426348b7a748f3c170a469ad529f7642337a922e587dbf52a489d1c9db078cf690cedc704d0a0cfc571d5177870f77a2
7
- data.tar.gz: 1c6fb9a4ec19a95cfbdade25a39c2f6db8441d4634a2c6ad20a76ef1e3e1df01040cb232fbe4c260f77aa734ce99a53f4b39f5b233b65d5118f834b862f0f080
6
+ metadata.gz: 14b52d69ffe8a05775e360aa975c3876bcce1176fae2ff3442c9b5c71c8c1be81dd735d092772aa26d4deab2c3bc5ade0b626afb3f7da429cc297712f8421126
7
+ data.tar.gz: 7dc5324f2c20119468ccbae40962d72ec753ab88dced758e7572ad056f79727789789c6e3485fba0b3bbba61d4ccf650a2a54ff4926765e8cc7dad94ffdf19a3
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- taleo (0.5.0)
4
+ taleo (0.6.0)
5
5
  faraday (~> 1.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -4,6 +4,14 @@
4
4
 
5
5
  A library for using the Taleo REST API.
6
6
 
7
+ **Note**: A Nov 2020 change to the Taleo API requires at least one search
8
+ criteria be passed to employee searches (performed by `client#employees` to
9
+ retrieve paged results). Versions prior to 0.6 do not support passing search
10
+ parameters, and as such you should not use them if you need to utilize
11
+ employee searches. See the Taleo REST API guide
12
+ [here](https://www.oracle.com/technical-resources/documentation/taleobusiness.html)
13
+ for more information.
14
+
7
15
  ## Installation
8
16
 
9
17
  Add this line to your application's Gemfile:
@@ -34,14 +34,16 @@ module Taleo
34
34
  Activity.new(show('activity', id), self)
35
35
  end
36
36
 
37
- def employees(start = 1, limit = 10)
38
- cursor('employee', Employee, start, limit)
37
+ def employees(start = 1, limit = 10, params: {})
38
+ raise ArgumentError, "At least one query parameter is required " \
39
+ "for employee search" if params.keys.size.zero?
40
+ cursor('employee', Employee, start, limit, params: params)
39
41
  end
40
42
 
41
- def cursor(resource, klass, start = 1, limit = 10)
43
+ def cursor(resource, klass, start = 1, limit = 10, params: {})
42
44
  res = connection.get do |req|
43
45
  req.url "object/#{resource}/search"
44
- req.params.merge!({
46
+ req.params.merge!(params).merge!({
45
47
  'start' => start,
46
48
  'limit' => limit
47
49
  })
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Taleo
4
- VERSION = '0.5.0'
4
+ VERSION = '0.6.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taleo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Holden
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-29 00:00:00.000000000 Z
11
+ date: 2020-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday