peoplegroup-connectors 2.0.0 → 2.1.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: 561d0cf562f003fd466dd9b9bec4494308228b046ea7e6d1af0a65f44c296acb
4
- data.tar.gz: c1faf7bfa314dfb8bbbfe36aad665140aa6f357e97efa01a8e378d68e8ef6be8
3
+ metadata.gz: 53e75844f42c51cd533f4a52159f7ff5f37579fbbfe61c709e115e20b2ce45e7
4
+ data.tar.gz: 9d082f640c3458e8b6c65781fafeb87011b942fab5f91b28bd15f894f20410c6
5
5
  SHA512:
6
- metadata.gz: ba0f3f958eabdc082033844c7e3341298606d901333bdd46f6e452e04195ccde1809bc8b388453c4400b60b41febb1ab7e2763ab57c3208ba16b14b86a404fdf
7
- data.tar.gz: 331d056805178a2335b47a9b4768295da89c4ff403c019edaf5c3bea452cbf6aa5d415a5701350401ff5dacdd0b5057b66ed0ac6d2260461e589092accdccec0
6
+ metadata.gz: 5c863185fbee4c1d453c8f7d46611eb6e1e8c26ddb31f75ff27d43ea1a007047c4b61476141b3aec02ce9777a886ed448886a3ba8566b0a2b6bcfdcf20e9f1a8
7
+ data.tar.gz: af47b688c53efddae132ee96907b25f53e86b7e997e96879d86f578460a6aa9f8d97ad9e83bebc513b76dae4de761b7b669a9350acd6e8e914e4dd8aef37d864
@@ -108,6 +108,31 @@ module PeopleGroup
108
108
  retry_on_error { @client.candidates(id, options) }
109
109
  end
110
110
 
111
+ # https://developer.greenhouse.io/harvest.html#get-list-scorecards
112
+ # @param id [String|Integer|nil] The ID of the candidate to fetch, if nil fetches all scorecards.
113
+ # @param options [Hash] The options to filter the candidates by.
114
+ # skip_count whether or not to skip the count of records. Defaults to true.
115
+ # created_before Return only scorecards that were created before this timestamp. Timestamp must be in in ISO-8601 format.
116
+ # created_after Return only scorecards that were created at or after this timestamp. Timestamp must be in in ISO-8601 format.
117
+ # updated_before Return only scorecards that were updated before this timestamp. Timestamp must be in in ISO-8601 format.
118
+ # updated_after Return only scorecards that were updated at or after this timestamp. Timestamp must be in in ISO-8601 format.
119
+ # @return [Array<Hash>] candidates matching the specified filter.
120
+ def scorecards(id = nil, options = {})
121
+ options[:skip_count] ||= true
122
+ options[:page] ||= 1
123
+ scorecards = []
124
+
125
+ loop do
126
+ results = retry_on_error { @client.all_scorecards(id, **options) }
127
+ break if results.empty?
128
+
129
+ scorecards += results
130
+ options[:page] += 1
131
+ end
132
+
133
+ scorecards
134
+ end
135
+
111
136
  # Paginate through a list of users in Greenhouse.
112
137
  # @return [Array<Hash>] The users in Greenhouse.
113
138
  # @see https://developers.greenhouse.io/harvest.html#get-list-users
@@ -126,6 +151,11 @@ module PeopleGroup
126
151
  users
127
152
  end
128
153
 
154
+ # https://developers.greenhouse.io/harvest.html#get-retrieve-job
155
+ def jobs(id = nil, options = {})
156
+ retry_on_error { @client.jobs(id, options) }
157
+ end
158
+
129
159
  # Find an application by id.
130
160
  # @param application_id [String|Integer] The ID of the application to fetch.
131
161
  # @return [Hash] The application data.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module PeopleGroup
4
4
  module Connectors
5
- VERSION = '2.0.0'
5
+ VERSION = '2.1.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peoplegroup-connectors
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - lien van den steen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-17 00:00:00.000000000 Z
11
+ date: 2025-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gitlab