Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/nexmo_developer/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ gem 'newrelic_rpm'
# A/B Testing
gem 'split', '~> 3.4.1', require: 'split/dashboard'

gem 'greenhouse_io'
gem 'greenhouse_io', github: 'grnhse/greenhouse_io'

# For truncating HTML strings
gem 'truncato'
Expand Down
55 changes: 30 additions & 25 deletions lib/nexmo_developer/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
GIT
remote: https://github.com/grnhse/greenhouse_io.git
revision: dda7ea197d1ad5e4f3ccbd06e0379db3e3f54d9e
specs:
greenhouse_io (2.5.2)
httmultiparty (~> 0.3.16)

GIT
remote: https://github.com/oscardelben/rawler.git
revision: f2909b135fce7d35167f98026ac481926c94423e
Expand Down Expand Up @@ -106,6 +113,8 @@ GEM
coderay (>= 1.0.0)
erubi (>= 1.0.0)
rack (>= 0.9.0)
bigdecimal (4.1.1)
bigdecimal (4.1.1-java)
bindex (0.8.1)
binding_of_caller (1.0.0)
debug_inspector (>= 0.0.1)
Expand Down Expand Up @@ -144,6 +153,7 @@ GEM
crack (0.4.5)
rexml
crass (1.0.6)
csv (3.3.5)
debug_inspector (1.0.0)
deep_merge (1.2.1)
devise (4.8.0)
Expand Down Expand Up @@ -202,8 +212,6 @@ GEM
globalid (0.4.2)
activesupport (>= 4.2.0)
gmaps4rails (2.1.2)
greenhouse_io (2.5.0)
httmultiparty (~> 0.3.16)
groupdate (5.2.2)
activesupport (>= 5)
guard (2.16.2)
Expand Down Expand Up @@ -241,8 +249,9 @@ GEM
domain_name (~> 0.5)
http_parser.rb (0.6.0)
http_parser.rb (0.6.0-java)
httparty (0.18.1)
mime-types (~> 3.0)
httparty (0.24.2)
csv
mini_mime (>= 1.0.0)
multi_xml (>= 0.5.2)
httpclient (2.8.3)
i18n (1.10.0)
Expand Down Expand Up @@ -279,6 +288,7 @@ GEM
listen (3.4.1)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
logger (1.7.0)
lograge (0.11.2)
actionpack (>= 4)
activesupport (>= 4)
Expand All @@ -292,20 +302,22 @@ GEM
mini_mime (>= 0.1.1)
marcel (1.0.1)
method_source (1.0.0)
mime-types (3.3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2021.0212)
mime-types (3.7.0)
logger
mime-types-data (~> 3.2025, >= 3.2025.0507)
mime-types-data (3.2026.0407)
mimemagic (0.4.3)
nokogiri (~> 1)
rake
mini_mime (1.1.0)
mini_portile2 (2.8.0)
mini_portile2 (2.8.9)
minitest (5.15.0)
msgpack (1.4.2)
msgpack (1.4.2-java)
multi_json (1.15.0)
multi_xml (0.6.0)
multipart-post (2.1.1)
multi_xml (0.8.1)
bigdecimal (>= 3.1, < 5)
multipart-post (2.4.1)
mustermann (1.1.1)
ruby2_keywords (~> 0.0.1)
mustermann-contrib (1.1.1)
Expand Down Expand Up @@ -337,14 +349,10 @@ GEM
rouge (~> 2.0.7)
nio4r (2.5.7)
nio4r (2.5.7-java)
nokogiri (1.13.4)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
nokogiri (1.13.4-java)
nokogiri (1.19.2)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogiri (1.13.4-x64-mingw32)
racc (~> 1.4)
nokogiri (1.13.4-x86-mingw32)
nokogiri (1.19.2-java)
racc (~> 1.4)
notiffany (0.1.3)
nenv (~> 0.1)
Expand Down Expand Up @@ -378,8 +386,8 @@ GEM
nio4r (~> 2.0)
puma (5.3.2-java)
nio4r (~> 2.0)
racc (1.6.0)
racc (1.6.0-java)
racc (1.8.1)
racc (1.8.1-java)
rack (2.2.3)
rack-protection (2.1.0)
rack
Expand Down Expand Up @@ -418,7 +426,7 @@ GEM
rake (>= 0.13)
thor (~> 1.0)
rainbow (3.0.0)
rake (13.0.3)
rake (13.3.1)
ransack (2.4.2)
activerecord (>= 5.2.4)
activesupport (>= 5.2.4)
Expand Down Expand Up @@ -639,7 +647,7 @@ DEPENDENCIES
ffi (>= 1.9.24)
geocoder
gmaps4rails (= 2.1.2)
greenhouse_io
greenhouse_io!
groupdate (= 5.2.2)
guard-livereload (~> 2.5)
guard-rspec
Expand Down Expand Up @@ -683,8 +691,5 @@ DEPENDENCIES
webpacker
woothee

RUBY VERSION
ruby 3.0.0p0

BUNDLED WITH
2.2.3
2.5.22
10 changes: 10 additions & 0 deletions lib/nexmo_developer/app/services/greenhouse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,25 @@ class Greenhouse
DEPARTMENT_ID = 4019731002
TITLES = ['sdk', 'advocate', 'community manager', 'education', 'dashboard', 'documentation'].freeze

def self.available?
defined?(GreenhouseIo)
end

def self.devrel_careers
return [] unless available?

new.devrel_positions
end

def self.careers
return [] unless available?

new.jobs
end

def self.offices
return [] unless available?

new.offices
end

Expand Down
12 changes: 6 additions & 6 deletions lib/nexmo_developer/config/initializers/greenhouse_io.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'greenhouse_io'

GreenhouseIo.configure do |config|
config.symbolize_keys = true
config.organization = 'Vonage'
config.api_token = ENV['GREENHOUSE_API_TOKEN']
if defined?(GreenhouseIo)
GreenhouseIo.configure do |config|
config.symbolize_keys = true
config.organization = 'Vonage'
config.api_token = ENV['GREENHOUSE_API_TOKEN']
end
end
6 changes: 5 additions & 1 deletion lib/nexmo_developer/nexmo_developer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
require 'bugsnag'
require 'devise'
require 'geocoder'
require 'greenhouse_io'
begin
require 'greenhouse_io'
rescue LoadError
nil
end
require 'recaptcha'
require 'split/dashboard'
require 'listen'
Expand Down
2 changes: 1 addition & 1 deletion station.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency('devise', '~> 4.7')
spec.add_runtime_dependency('geocoder', '~> 1.6')
spec.add_runtime_dependency('gravatar_image_tag', '~> 1.2')
spec.add_runtime_dependency('greenhouse_io', '~> 2.5')

spec.add_runtime_dependency('recaptcha', '~> 5.3')
spec.add_runtime_dependency('split', '~> 3.4')
spec.add_runtime_dependency('listen', '~> 3.2')
Expand Down
Loading