greenhouse_io-gitlab 2.5.6 → 2.5.7
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/bin/console +26 -0
- data/bin/setup +8 -0
- data/lib/greenhouse_io/api.rb +1 -0
- data/lib/greenhouse_io/api/client.rb +4 -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: 9cab2766ea46a0929a7e1bb415005df363686b4d0c4ccc084d58d8232757b25f
|
4
|
+
data.tar.gz: 7c296d1ea1ac9ebdc9564f4ab454dd13dbb04a2f65631bc7e97e955e30e1e969
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8aadda45efd3fa7f3a4726aec81bc346af80838bd3f6aa112695a91050e3bd8994b3beed6b298ddceecc94602372003a6fdd29e4a306b7ec6b353b74545b267
|
7
|
+
data.tar.gz: 51b232adb0ba740f35c70391d4e2aa1685aa25523f2d03ef6a05bac280d02995f593de4d6ba82e6ba95b4959c6019f2b7c469f0a7eb1910e9e791f5f82668f67
|
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
data/lib/greenhouse_io/api.rb
CHANGED
@@ -79,6 +79,10 @@ module GreenhouseIo
|
|
79
79
|
get_from_harvest_api "#{BASE_URL}/jobs/#{id}/job_post", options
|
80
80
|
end
|
81
81
|
|
82
|
+
def job_posts(options = {})
|
83
|
+
get_from_harvest_api "#{BASE_URL}/job_posts", options
|
84
|
+
end
|
85
|
+
|
82
86
|
def users(id = nil, options = {})
|
83
87
|
get_from_harvest_api "#{BASE_URL}/users#{path_id(id)}", options
|
84
88
|
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.
|
4
|
+
version: 2.5.7
|
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-
|
12
|
+
date: 2021-07-26 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.
|
179
|
+
rubygems_version: 3.0.1
|
176
180
|
signing_key:
|
177
181
|
specification_version: 4
|
178
182
|
summary: Ruby bindings for the greenhouse.io Harvest API and Job Board API
|