greenhouse_io-gitlab 2.5.6 → 2.5.7

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: ffad7d5d1ccee961e66630d593e590a3165fb9b24cf42c67e5a3755552dc6088
4
- data.tar.gz: 3c868a257c3842d7901a625741ead3e2a5190b28f59139866fdb3358a788bf9c
3
+ metadata.gz: 9cab2766ea46a0929a7e1bb415005df363686b4d0c4ccc084d58d8232757b25f
4
+ data.tar.gz: 7c296d1ea1ac9ebdc9564f4ab454dd13dbb04a2f65631bc7e97e955e30e1e969
5
5
  SHA512:
6
- metadata.gz: eaba6f630f8d0948aa4657b3810c504f2ce1eb212979f794bd771cb784764992536dbe21aacf1460ef725c39326143d2dc5a2aa8e0462e54446b03aedb3883f4
7
- data.tar.gz: f213ef837d7abb67c4c89a0a508f0ce4e8205af71627e388cb3a52252020236b9b1e0e54a16d5ff6a2fdd049ed3b7ae29a701d516ed021b9e6917f5716775035
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
@@ -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
@@ -1,4 +1,5 @@
1
1
  require 'rest-client'
2
+ require 'base64'
2
3
 
3
4
  module GreenhouseIo
4
5
  module API
@@ -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
@@ -1,3 +1,3 @@
1
1
  module GreenhouseIo
2
- VERSION = "2.5.6"
2
+ VERSION = "2.5.7"
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.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-03-25 00:00:00.000000000 Z
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.3
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