taleo 0.5.0 → 0.6.0
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/README.md +8 -0
- data/lib/taleo/client.rb +6 -4
- data/lib/taleo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6324fb24d7887a2ce1b64e78be566b5166a0176351a4eb06fcbe9204f5c9bed
|
4
|
+
data.tar.gz: e817de316ddfa86c845c3cc7bb3ce5634851d2beadf541d717554941bb31f5a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14b52d69ffe8a05775e360aa975c3876bcce1176fae2ff3442c9b5c71c8c1be81dd735d092772aa26d4deab2c3bc5ade0b626afb3f7da429cc297712f8421126
|
7
|
+
data.tar.gz: 7dc5324f2c20119468ccbae40962d72ec753ab88dced758e7572ad056f79727789789c6e3485fba0b3bbba61d4ccf650a2a54ff4926765e8cc7dad94ffdf19a3
|
data/Gemfile.lock
CHANGED
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:
|
data/lib/taleo/client.rb
CHANGED
@@ -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
|
-
|
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
|
})
|
data/lib/taleo/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2020-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|