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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ffad7d5d1ccee961e66630d593e590a3165fb9b24cf42c67e5a3755552dc6088
4
- data.tar.gz: 3c868a257c3842d7901a625741ead3e2a5190b28f59139866fdb3358a788bf9c
3
+ metadata.gz: 3fe9d031ed749b618c0823ace75e671b4ce9c084ac59db052bb460bba9d71e9d
4
+ data.tar.gz: 4ace0bef99bb67d17c679b621049e52c9682c2a38a4b0335ec6b3ba04e8d743a
5
5
  SHA512:
6
- metadata.gz: eaba6f630f8d0948aa4657b3810c504f2ce1eb212979f794bd771cb784764992536dbe21aacf1460ef725c39326143d2dc5a2aa8e0462e54446b03aedb3883f4
7
- data.tar.gz: f213ef837d7abb67c4c89a0a508f0ce4e8205af71627e388cb3a52252020236b9b1e0e54a16d5ff6a2fdd049ed3b7ae29a701d516ed021b9e6917f5716775035
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
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -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
@@ -1,4 +1,5 @@
1
1
  require 'rest-client'
2
+ require 'base64'
2
3
 
3
4
  module GreenhouseIo
4
5
  module API
@@ -1,3 +1,3 @@
1
1
  module GreenhouseIo
2
- VERSION = "2.5.6"
2
+ VERSION = "2.5.8"
3
3
  end
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.6
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: 2021-03-25 00:00:00.000000000 Z
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.0.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