fountain 0.0.15 → 0.0.17

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: 3868db66d0394dff234e43bd0846028a6ce3e42ccb3b13e66079993abc0445ea
4
- data.tar.gz: 3418f45e396fe4759bef2100c23116dea473528a5a218ba1e1c2d426720ba05d
3
+ metadata.gz: 686718bf0e8c60da329a3b3efed0a3bf6204d48fff02b9c21dfb6b7c05b72377
4
+ data.tar.gz: 032f5c9bb0b81f8f476f90e7ea24b89965ea0731a9345d0d9862db60c8f49a10
5
5
  SHA512:
6
- metadata.gz: abfae0d0e4a8cf1e9d72284c0c2ae23470bc0b4a1aa42984ccc2aa5537258b3f0b2785d6fa54ffc2d71992d71d43ecb7d2e31fcbf048839c750f686cfbf69ea4
7
- data.tar.gz: 68c8b87074ddbba9f7a52cdbb69151f3772790b1adf5411791fd9286736585725ff98c002eb0f793f77edc6c59e2503ab5a3d0ad41a0874b6eb08fd23347fea3
6
+ metadata.gz: 58412a9d1e10d46794d3f902a7f2e9489dadc3c835669efcdecce52055f927550e56e2ba465a3601430d7dc6c7aaa0ba4862455bbf6458491a093abb4a0251b1
7
+ data.tar.gz: a0a91fa1aa308587b7264e81f1a4b12092946e5d100c2cc0418acec9e0a0bb430b53f8302ed9e2ef26043b171719f812909335fc0ede589fc5c3275c99bd1520
data/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  ## Unreleased
4
4
  - None
5
5
 
6
+ ## [0.0.16](releases/tag/v0.0.16) - 2022-06-16
7
+ ### Added
8
+ - [#7] First/last name accessor methods to the Applicant class ([@noahkconley][])
9
+
6
10
  ## [0.0.15](releases/tag/v0.0.15) - 2022-06-15
7
11
  ### Added
8
12
  - [#6] Additional accessor methods to the Applicant class ([@noahkconley][])
data/Gemfile CHANGED
@@ -4,3 +4,11 @@ source 'https://rubygems.org'
4
4
 
5
5
  # Specify your gem's dependencies in fountain.gemspec
6
6
  gemspec
7
+
8
+ gem 'rake', '~> 12.3', '>= 12.3.3'
9
+ gem 'rspec', '~> 3.0'
10
+ gem 'rubocop', '~> 1.21'
11
+ gem 'rubocop-rake', '~> 0.6'
12
+ gem 'rubocop-rspec', '~> 2.5'
13
+ gem 'simplecov', '~> 0.16', '< 0.18'
14
+ gem 'webmock', '~> 2.3'
data/fountain.gemspec CHANGED
@@ -21,12 +21,4 @@ Gem::Specification.new do |spec|
21
21
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ['lib']
23
23
  spec.metadata['rubygems_mfa_required'] = 'true'
24
-
25
- spec.add_development_dependency 'rake', '~> 12.3', '>= 12.3.3'
26
- spec.add_development_dependency 'rspec', '~> 3.0'
27
- spec.add_development_dependency 'rubocop', '~> 1.21'
28
- spec.add_development_dependency 'rubocop-rake', '~> 0.6'
29
- spec.add_development_dependency 'rubocop-rspec', '~> 2.5'
30
- spec.add_development_dependency 'simplecov', '~> 0.16', '< 0.18'
31
- spec.add_development_dependency 'webmock', '~> 2.3'
32
24
  end
@@ -137,6 +137,27 @@ module Fountain
137
137
  true
138
138
  end
139
139
 
140
+ #
141
+ # Advance multiple Applicants
142
+ # @param [String] applicant_id IDs of the Fountain applicants
143
+ # @param [String] Destination stage's ID
144
+ # @param [Hash] advance_options A hash of options to advance applicant
145
+ # skip_automated_actions - `true` if you want to skip automated
146
+ # actions when advancing the applicant
147
+ # funnel_id - Used for bulk advancing applicants to a workflow-based funnel
148
+ def self.advance_applicants(applicant_ids, stage_id, advance_options = {})
149
+ response = request(
150
+ "/v2/applicants/advance?#{stage_id}",
151
+ method: :post,
152
+ body: Util.slice_hash(
153
+ advance_options,
154
+ :skip_automated_actions, :funnel_id
155
+ ).merge(ids: applicant_ids)
156
+ )
157
+ check_response response, Net::HTTPNoContent
158
+ true
159
+ end
160
+
140
161
  #
141
162
  # Get Interview Sessions
142
163
  # @param [String] applicant_id ID of the Fountain applicant
@@ -45,6 +45,16 @@ module Fountain
45
45
  raw_data['name']
46
46
  end
47
47
 
48
+ # First name
49
+ def first_name
50
+ raw_data['first_name']
51
+ end
52
+
53
+ # Last name
54
+ def last_name
55
+ raw_data['last_name']
56
+ end
57
+
48
58
  # Phone number
49
59
  def phone_number
50
60
  raw_data['phone_number']
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fountain
4
- VERSION = '0.0.15'
4
+ VERSION = '0.0.17'
5
5
  end
data/lib/fountain/util.rb CHANGED
@@ -32,7 +32,7 @@ module Fountain
32
32
  # @return Hash filtered by keys
33
33
  #
34
34
  def slice_hash(hash, *keys)
35
- return {} if keys.length.zero?
35
+ return {} if keys.empty?
36
36
 
37
37
  new_hash = {}
38
38
  hash.each do |key, value|
metadata CHANGED
@@ -1,125 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fountain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - abrom
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-15 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: rake
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '12.3'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 12.3.3
23
- type: :development
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '12.3'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 12.3.3
33
- - !ruby/object:Gem::Dependency
34
- name: rspec
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '3.0'
40
- type: :development
41
- prerelease: false
42
- version_requirements: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - "~>"
45
- - !ruby/object:Gem::Version
46
- version: '3.0'
47
- - !ruby/object:Gem::Dependency
48
- name: rubocop
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: '1.21'
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - "~>"
59
- - !ruby/object:Gem::Version
60
- version: '1.21'
61
- - !ruby/object:Gem::Dependency
62
- name: rubocop-rake
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '0.6'
68
- type: :development
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: '0.6'
75
- - !ruby/object:Gem::Dependency
76
- name: rubocop-rspec
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - "~>"
80
- - !ruby/object:Gem::Version
81
- version: '2.5'
82
- type: :development
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - "~>"
87
- - !ruby/object:Gem::Version
88
- version: '2.5'
89
- - !ruby/object:Gem::Dependency
90
- name: simplecov
91
- requirement: !ruby/object:Gem::Requirement
92
- requirements:
93
- - - "~>"
94
- - !ruby/object:Gem::Version
95
- version: '0.16'
96
- - - "<"
97
- - !ruby/object:Gem::Version
98
- version: '0.18'
99
- type: :development
100
- prerelease: false
101
- version_requirements: !ruby/object:Gem::Requirement
102
- requirements:
103
- - - "~>"
104
- - !ruby/object:Gem::Version
105
- version: '0.16'
106
- - - "<"
107
- - !ruby/object:Gem::Version
108
- version: '0.18'
109
- - !ruby/object:Gem::Dependency
110
- name: webmock
111
- requirement: !ruby/object:Gem::Requirement
112
- requirements:
113
- - - "~>"
114
- - !ruby/object:Gem::Version
115
- version: '2.3'
116
- type: :development
117
- prerelease: false
118
- version_requirements: !ruby/object:Gem::Requirement
119
- requirements:
120
- - - "~>"
121
- - !ruby/object:Gem::Version
122
- version: '2.3'
11
+ date: 2023-05-18 00:00:00.000000000 Z
12
+ dependencies: []
123
13
  description: Fountain REST API v2 wrapper for Ruby
124
14
  email:
125
15
  - a.bromwich@gmail.com
@@ -188,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
78
  - !ruby/object:Gem::Version
189
79
  version: '0'
190
80
  requirements: []
191
- rubygems_version: 3.0.9
81
+ rubygems_version: 3.3.7
192
82
  signing_key:
193
83
  specification_version: 4
194
84
  summary: Fountain REST API v2 wrapper for Ruby