greenhouse_io-gitlab 2.5.6 → 2.5.8
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/CHANGES.md +4 -0
- data/bin/console +26 -0
- data/bin/setup +8 -0
- data/lib/greenhouse_io/api/client.rb +7 -2
- data/lib/greenhouse_io/api.rb +1 -0
- data/lib/greenhouse_io/version.rb +1 -1
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fe9d031ed749b618c0823ace75e671b4ce9c084ac59db052bb460bba9d71e9d
|
4
|
+
data.tar.gz: 4ace0bef99bb67d17c679b621049e52c9682c2a38a4b0335ec6b3ba04e8d743a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5325f3416854bf2e5ebc379fccd149d676bd70933cc5561a72ac6b52ed4e5aec8e331cc5fc4d9535acf6b98725b5722c86f8022b43309344bef1b618ff145370
|
7
|
+
data.tar.gz: b4f8e745928dd20a65d2593ea20eb4cf4785e9c88ac047902ff3708217736c02230ab60e35913d39c33e93ebe751636812d00023e275e8429fafc85c439dec0d
|
data/CHANGES.md
CHANGED
@@ -2,6 +2,10 @@
|
|
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.5.8
|
6
|
+
|
7
|
+
- Allows `:created_after`, `:created_before`, `:updated_after`, `:updated_before`, `skip_count`, query parameters for `client#all_scorecards`.
|
8
|
+
|
5
9
|
## Version 2.5.0
|
6
10
|
Released 2016-05-31. Contributed by [@theshanx](https://github.com/theshanx). Thanks! :)
|
7
11
|
|
data/bin/console
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require 'bundler/setup'
|
5
|
+
require_relative '../lib/greenhouse_io'
|
6
|
+
|
7
|
+
def reload!(print: true)
|
8
|
+
puts 'Reloading ...' if print
|
9
|
+
# Main project directory.
|
10
|
+
root_dir = File.expand_path('..', __dir__)
|
11
|
+
# Directories within the project that should be reloaded.
|
12
|
+
reload_dirs = %w[lib]
|
13
|
+
# Loop through and reload every file in all relevant project directories.
|
14
|
+
reload_dirs.each do |dir|
|
15
|
+
Dir.glob("#{root_dir}/#{dir}/**/*.rb").each { |f| load(f) }
|
16
|
+
end
|
17
|
+
# Return true when complete.
|
18
|
+
true
|
19
|
+
end
|
20
|
+
|
21
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
22
|
+
# require "pry"
|
23
|
+
# Pry.start
|
24
|
+
|
25
|
+
require 'irb'
|
26
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -5,7 +5,8 @@ module GreenhouseIo
|
|
5
5
|
PERMITTED_OPTIONS = [:page, :per_page, :job_id]
|
6
6
|
PERMITTED_OPTIONS_PER_ENDPOINT = {
|
7
7
|
'offers' => [:status, :resolved_after],
|
8
|
-
'candidates' => [:updated_after, :email]
|
8
|
+
'candidates' => [:updated_after, :email],
|
9
|
+
'all_scorecards' => [:created_after, :created_before, :updated_after, :updated_before, :skip_count]
|
9
10
|
}
|
10
11
|
|
11
12
|
attr_accessor :api_token, :rate_limit, :rate_limit_remaining, :link
|
@@ -60,7 +61,7 @@ module GreenhouseIo
|
|
60
61
|
end
|
61
62
|
|
62
63
|
def all_scorecards(id = nil, options = {})
|
63
|
-
get_from_harvest_api "#{BASE_URL}/scorecards/#{id}", options
|
64
|
+
get_from_harvest_api "#{BASE_URL}/scorecards/#{id}", options, "all_scorecards"
|
64
65
|
end
|
65
66
|
|
66
67
|
def scheduled_interviews(id, options = {})
|
@@ -79,6 +80,10 @@ module GreenhouseIo
|
|
79
80
|
get_from_harvest_api "#{BASE_URL}/jobs/#{id}/job_post", options
|
80
81
|
end
|
81
82
|
|
83
|
+
def job_posts(options = {})
|
84
|
+
get_from_harvest_api "#{BASE_URL}/job_posts", options
|
85
|
+
end
|
86
|
+
|
82
87
|
def users(id = nil, options = {})
|
83
88
|
get_from_harvest_api "#{BASE_URL}/users#{path_id(id)}", options
|
84
89
|
end
|
data/lib/greenhouse_io/api.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: greenhouse_io-gitlab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.8
|
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:
|
12
|
+
date: 2025-01-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|
@@ -85,7 +85,9 @@ description: Ruby bindings for the greenhouse.io Harvest API and Job Board API
|
|
85
85
|
email:
|
86
86
|
- support@greenhouse.io
|
87
87
|
- adrianbautista8@gmail.com
|
88
|
-
executables:
|
88
|
+
executables:
|
89
|
+
- console
|
90
|
+
- setup
|
89
91
|
extensions: []
|
90
92
|
extra_rdoc_files: []
|
91
93
|
files:
|
@@ -96,6 +98,8 @@ files:
|
|
96
98
|
- LICENSE.txt
|
97
99
|
- README.md
|
98
100
|
- Rakefile
|
101
|
+
- bin/console
|
102
|
+
- bin/setup
|
99
103
|
- greenhouse_io.gemspec
|
100
104
|
- lib/greenhouse_io.rb
|
101
105
|
- lib/greenhouse_io/api.rb
|
@@ -172,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
176
|
- !ruby/object:Gem::Version
|
173
177
|
version: '0'
|
174
178
|
requirements: []
|
175
|
-
rubygems_version: 3.
|
179
|
+
rubygems_version: 3.5.22
|
176
180
|
signing_key:
|
177
181
|
specification_version: 4
|
178
182
|
summary: Ruby bindings for the greenhouse.io Harvest API and Job Board API
|