greenhouse_io 2.2.0 → 2.3.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
  SHA1:
3
- metadata.gz: 2c096b1bb7f6c152e7a1c189791cdb962bcf6188
4
- data.tar.gz: 26723c9efc5e6f049ea28f992d6b447d51191d14
3
+ metadata.gz: 49c8386a45c7b5482cf1a4df48efdf410207e8b3
4
+ data.tar.gz: c252b865695cb9945d0c17540765c79ae5ff98f5
5
5
  SHA512:
6
- metadata.gz: 1ed79b98c1056815a11642df2a83da6e7c710a3135a9fd2c2f5421b70758a5caac53cf7f80951906bc59cdf7152a8daf147cd96e898dcbdba4852c775b2ef0d7
7
- data.tar.gz: 66e6afa7ac721cfdf1426194f20d80c387ce570cb25d0d1fb1bb9040330746288e96ffa645448d53e93fbda9e4cc3345ca5e1ce6744435e79c35b2902e2d6e48
6
+ metadata.gz: 9b94a10545b93f7ef797f9b4b4f345c47df0a00fa5ca6d4faf3ddc82078f74985b0441e95c6fe29669f61996bc1becab8f66d82623eea9e830faf4dd08a5167c
7
+ data.tar.gz: d09df4cd029729e6c22b367e36759b32ef1dce96057574b990ca874f5d2c030a805474a25eef0232ccba71d5dd7389e96b8a9269ac1ea2c2027cad6871405aeb
data/CHANGES.md CHANGED
@@ -2,7 +2,13 @@
2
2
 
3
3
  This project follows [semantic versioning](http://semver.org/). This changelog follows suggestions from [keepachangelog.com](http://keepachangelog.com/).
4
4
 
5
- ## Version 2.1.0
5
+ ## Version 2.3.0
6
+ Released 2016-02-13.
7
+
8
+ ##### Added
9
+ - Added support for listing all scorecards belonging to an organization: `all_scorecards`. Thanks, [@bcoppersmith](https://github.com/bcoppersmith)!
10
+
11
+ ## Version 2.2.0
6
12
  Released 2016-02-03.
7
13
 
8
14
  ##### Added
data/README.md CHANGED
@@ -18,7 +18,11 @@ Add the gem to your application's Gemfile:
18
18
 
19
19
  Or install it yourself as:
20
20
 
21
- $ gem install greenhouse_io
21
+ $ gem install
22
+
23
+ ## API Documentation
24
+
25
+ Documentation for the Harvest and Job Board web APIs can be found at [developers.greenhouse.io](https://developers.greenhouse.io).
22
26
 
23
27
  ## Configuration
24
28
 
@@ -140,6 +144,7 @@ Methods in which an `id` is optional:
140
144
  * `jobs`
141
145
  * `users`
142
146
  * `sources`
147
+ * `all_scorecards`
143
148
  * `offers`
144
149
 
145
150
  Methods in which an `id` is **required**:
@@ -11,6 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.description = %q{Ruby bindings for the greenhouse.io Harvest API and Job Board API}
12
12
  spec.summary = %q{Ruby bindings for the greenhouse.io Harvest API and Job Board API}
13
13
  spec.license = "MIT"
14
+ spec.homepage = "https://github.com/grnhse/greenhouse_io"
14
15
 
15
16
  spec.files = `git ls-files`.split($/)
16
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
@@ -40,6 +40,10 @@ module GreenhouseIo
40
40
  get_from_harvest_api "/applications/#{id}/scorecards", options
41
41
  end
42
42
 
43
+ def all_scorecards(id = nil, options = {})
44
+ get_from_harvest_api "/scorecards/#{id}", options
45
+ end
46
+
43
47
  def scheduled_interviews(id, options = {})
44
48
  get_from_harvest_api "/applications/#{id}/scheduled_interviews", options
45
49
  end
@@ -1,3 +1,3 @@
1
1
  module GreenhouseIo
2
- VERSION = "2.2.0"
2
+ VERSION = "2.3.0"
3
3
  end
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://123FakeToken:@harvest.greenhouse.io/v1/scorecards/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Connection:
16
+ - keep-alive
17
+ Date:
18
+ - Wed, 10 Feb 2016 03:17:48 GMT
19
+ Status:
20
+ - 200 OK
21
+ Content-Type:
22
+ - application/json;charset=utf-8
23
+ Content-Length:
24
+ - '370562'
25
+ X-Ratelimit-Limit:
26
+ - '50'
27
+ X-Ratelimit-Remaining:
28
+ - '49'
29
+ X-Content-Type-Options:
30
+ - nosniff
31
+ Via:
32
+ - 1.1 vegur
33
+ body:
34
+ encoding: UTF-8
35
+ string: '[{"id":123,"interview":"Preliminary Screening Call","candidate_id":123,"interviewed_at":"2015-10-08T19:00:00.000Z","submitted_by":{"id":123,"name":"Test User"},"submitted_at":"2015-10-08T19:11:09.287Z","overall_recommendation":"yes","ratings":{"definitely_not":[],"no":[],"mixed":[],"yes":[],"strong_yes":[]},"questions":[{"id":null,"question":"Key Take-Aways","answer":""},{"id":null,"question":"Private Notes","answer":""}]},{"id":456,"interview":"Application Review","candidate_id":456,"interviewed_at":"2015-10-08T19:00:00.000Z","submitted_by":{"id":456,"name":"Test User"},"submitted_at":"2015-10-08T19:11:09.287Z","overall_recommendation":"yes","ratings":{"definitely_not":[],"no":[],"mixed":[],"yes":[],"strong_yes":[]},"questions":[{"id":null,"question":"Key Take-Aways","answer":""},{"id":null,"question":"Private Notes","answer":""}]}]'
36
+ http_version:
37
+ recorded_at: Wed, 10 Feb 2016 03:17:48 GMT
38
+ recorded_with: VCR 3.0.1
@@ -305,6 +305,26 @@ describe GreenhouseIo::Client do
305
305
  end
306
306
  end
307
307
 
308
+ describe "#all_scorecards" do
309
+ before do
310
+ VCR.use_cassette('client/all_scorecards') do
311
+ @scorecard = @client.all_scorecards
312
+ end
313
+ end
314
+
315
+ it "returns a response" do
316
+ expect(@scorecard).to_not be_nil
317
+ end
318
+
319
+ it "returns an array of scorecards" do
320
+ expect(@scorecard).to be_an_instance_of(Array)
321
+ end
322
+
323
+ it "returns details of the scorecards" do
324
+ expect(@scorecard.first).to have_key(:interview)
325
+ end
326
+ end
327
+
308
328
  describe "#scheduled_interviews" do
309
329
  before do
310
330
  VCR.use_cassette('client/scheduled_interviews') do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: greenhouse_io
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greenhouse Software
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-02-03 00:00:00.000000000 Z
12
+ date: 2016-02-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httmultiparty
@@ -134,6 +134,7 @@ files:
134
134
  - lib/greenhouse_io/version.rb
135
135
  - spec/fixtures/cassettes/apply_to_job.yml
136
136
  - spec/fixtures/cassettes/client/activity_feed.yml
137
+ - spec/fixtures/cassettes/client/all_scorecards.yml
137
138
  - spec/fixtures/cassettes/client/application.yml
138
139
  - spec/fixtures/cassettes/client/application_by_job_id.yml
139
140
  - spec/fixtures/cassettes/client/applications.yml
@@ -172,7 +173,7 @@ files:
172
173
  - spec/greenhouse_io/configuration_spec.rb
173
174
  - spec/greenhouse_io/error_spec.rb
174
175
  - spec/spec_helper.rb
175
- homepage:
176
+ homepage: https://github.com/grnhse/greenhouse_io
176
177
  licenses:
177
178
  - MIT
178
179
  metadata: {}
@@ -199,6 +200,7 @@ summary: Ruby bindings for the greenhouse.io Harvest API and Job Board API
199
200
  test_files:
200
201
  - spec/fixtures/cassettes/apply_to_job.yml
201
202
  - spec/fixtures/cassettes/client/activity_feed.yml
203
+ - spec/fixtures/cassettes/client/all_scorecards.yml
202
204
  - spec/fixtures/cassettes/client/application.yml
203
205
  - spec/fixtures/cassettes/client/application_by_job_id.yml
204
206
  - spec/fixtures/cassettes/client/applications.yml