fountain 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/CHANGELOG.md +57 -0
- data/Gemfile +2 -0
- data/Rakefile +2 -0
- data/bin/console +1 -0
- data/fountain.gemspec +3 -1
- data/lib/fountain.rb +2 -0
- data/lib/fountain/api/applicants.rb +2 -0
- data/lib/fountain/api/available_slots.rb +2 -0
- data/lib/fountain/api/funnels.rb +2 -0
- data/lib/fountain/api/labels.rb +2 -0
- data/lib/fountain/api/notes.rb +2 -0
- data/lib/fountain/api/request_helper.rb +3 -0
- data/lib/fountain/applicant.rb +4 -0
- data/lib/fountain/applicants.rb +2 -0
- data/lib/fountain/background_check.rb +2 -0
- data/lib/fountain/configuration.rb +2 -0
- data/lib/fountain/document_signature.rb +2 -0
- data/lib/fountain/field.rb +2 -0
- data/lib/fountain/funnel.rb +5 -0
- data/lib/fountain/funnels.rb +2 -0
- data/lib/fountain/gem_version.rb +3 -1
- data/lib/fountain/label.rb +2 -0
- data/lib/fountain/location.rb +2 -0
- data/lib/fountain/note.rb +3 -0
- data/lib/fountain/secure_document.rb +2 -0
- data/lib/fountain/slot.rb +2 -0
- data/lib/fountain/slots.rb +2 -0
- data/lib/fountain/stage.rb +2 -0
- data/lib/fountain/transition.rb +2 -0
- data/lib/fountain/user.rb +2 -0
- data/lib/fountain/util.rb +4 -2
- metadata +12 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 10955e573502a79fef0792e0784e42223e626ed0f0b203cf06545c75f2dacf8b
|
4
|
+
data.tar.gz: ee896766bc863df8d400b1285b8d0674e492ee46ea2c3c3d3b92dc2ff7d9b53e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f4a092974c4fbc79d573d7b989feb2082246ae5f9c334b2d1056c2f39415a1eddde341d34d5b57c7d4f0c828b1ecfef38f81d0f822da769eb53299fe6d7d6b8
|
7
|
+
data.tar.gz: d02cc7baaec15fd06a801b0c3fb7917b0a1a07ef3b4dbc9f4c2d91e9927edf5b3a44485df52cdba1f5c47a5a93e641baff5c8d6a3cf2f52000bfb06c1a43b41d
|
data/.gitignore
CHANGED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## Unreleased
|
4
|
+
- None
|
5
|
+
|
6
|
+
## [0.0.12](releases/tag/v0.0.12) - 2020-03-01
|
7
|
+
### Fixed
|
8
|
+
- Address CVE-2020-8130 - `rake` OS command injection vulnerability
|
9
|
+
|
10
|
+
## [0.0.11](releases/tag/v0.0.11) - 2018-06-02
|
11
|
+
### Fixed
|
12
|
+
- Update applicants and notes APIs to check correct return status for create actions
|
13
|
+
|
14
|
+
## [0.0.10](releases/tag/v0.0.10) - 2018-03-24
|
15
|
+
### Added
|
16
|
+
- Funnel management API support
|
17
|
+
|
18
|
+
## [0.0.9](releases/tag/v0.0.9) - 2018-03-24
|
19
|
+
### Added
|
20
|
+
- Session/slot management API support
|
21
|
+
|
22
|
+
## [0.0.8](releases/tag/v0.0.8) - 2018-03-24
|
23
|
+
### Added
|
24
|
+
- Note management API support
|
25
|
+
### Fixed
|
26
|
+
- Replace deprecated URI.encode with CGI.escape
|
27
|
+
|
28
|
+
## [0.0.7](releases/tag/v0.0.7) - 2018-03-24
|
29
|
+
### Added
|
30
|
+
- Label management API support
|
31
|
+
|
32
|
+
## [0.0.6](releases/tag/v0.0.6) - 2018-03-22
|
33
|
+
### Added
|
34
|
+
- Create applicant support
|
35
|
+
- Delete applicant support
|
36
|
+
- Get applicant support
|
37
|
+
- get_secure_documents applicant support
|
38
|
+
- Secure document type
|
39
|
+
- Advance applicant support
|
40
|
+
- Interview sessions for applicant support
|
41
|
+
- Transition history for applicant support
|
42
|
+
|
43
|
+
## [0.0.5](releases/tag/v0.0.5) - 2018-03-20
|
44
|
+
### Fixed
|
45
|
+
- Applicants inspect method
|
46
|
+
|
47
|
+
## [0.0.4](releases/tag/v0.0.4) - 2018-03-20
|
48
|
+
### Added
|
49
|
+
- Applicants inspect method
|
50
|
+
|
51
|
+
## [0.0.3](releases/tag/v0.0.3) - 2018-03-20
|
52
|
+
### Added
|
53
|
+
- Applicants wrapper to contain pagination cursors
|
54
|
+
|
55
|
+
## [0.0.2](releases/tag/v0.0.2) - 2018-03-19
|
56
|
+
### Added
|
57
|
+
- Support for applicant list and update
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
data/bin/console
CHANGED
data/fountain.gemspec
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
lib = File.expand_path('lib', __dir__)
|
2
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
5
|
|
@@ -19,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
19
21
|
spec.require_paths = ['lib']
|
20
22
|
|
21
23
|
spec.add_development_dependency 'bundler', '~> 1.11'
|
22
|
-
spec.add_development_dependency 'rake', '~>
|
24
|
+
spec.add_development_dependency 'rake', '~> 12.3', '>= 12.3.3'
|
23
25
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
24
26
|
spec.add_development_dependency 'rubocop', '~> 0.53'
|
25
27
|
spec.add_development_dependency 'simplecov', '~> 0.16'
|
data/lib/fountain.rb
CHANGED
data/lib/fountain/api/funnels.rb
CHANGED
data/lib/fountain/api/labels.rb
CHANGED
data/lib/fountain/api/notes.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'uri'
|
2
4
|
require 'openssl'
|
3
5
|
require 'net/http'
|
@@ -101,6 +103,7 @@ module Fountain
|
|
101
103
|
headers = options[:headers]
|
102
104
|
headers ||= {}
|
103
105
|
raise Fountain::MissingApiKeyError if Fountain.api_token.nil?
|
106
|
+
|
104
107
|
headers['X-ACCESS-TOKEN'] = Fountain.api_token
|
105
108
|
headers
|
106
109
|
end
|
data/lib/fountain/applicant.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Fountain
|
2
4
|
#
|
3
5
|
# Fountain Applicant
|
@@ -56,12 +58,14 @@ module Fountain
|
|
56
58
|
# Background checks
|
57
59
|
def background_checks
|
58
60
|
return [] unless raw_data['background_checks'].is_a? Array
|
61
|
+
|
59
62
|
raw_data['background_checks'].map { |check| BackgroundCheck.new check }
|
60
63
|
end
|
61
64
|
|
62
65
|
# Document signatures
|
63
66
|
def document_signatures
|
64
67
|
return [] unless raw_data['document_signatures'].is_a? Array
|
68
|
+
|
65
69
|
raw_data['document_signatures'].map { |signature| DocumentSignature.new signature }
|
66
70
|
end
|
67
71
|
|
data/lib/fountain/applicants.rb
CHANGED
data/lib/fountain/field.rb
CHANGED
data/lib/fountain/funnel.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Fountain
|
2
4
|
#
|
3
5
|
# Fountain Funnel
|
@@ -51,12 +53,14 @@ module Fountain
|
|
51
53
|
# Fields
|
52
54
|
def fields
|
53
55
|
return [] unless raw_data['fields'].is_a? Array
|
56
|
+
|
54
57
|
raw_data['fields'].map { |hash| Field.new hash }
|
55
58
|
end
|
56
59
|
|
57
60
|
# Stages
|
58
61
|
def stages
|
59
62
|
return [] unless raw_data['stages'].is_a? Array
|
63
|
+
|
60
64
|
raw_data['stages'].map { |hash| Stage.new hash }
|
61
65
|
end
|
62
66
|
|
@@ -73,6 +77,7 @@ module Fountain
|
|
73
77
|
# Location
|
74
78
|
def location
|
75
79
|
return unless raw_data['location'].is_a? Hash
|
80
|
+
|
76
81
|
Location.new raw_data['location']
|
77
82
|
end
|
78
83
|
|
data/lib/fountain/funnels.rb
CHANGED
data/lib/fountain/gem_version.rb
CHANGED
data/lib/fountain/label.rb
CHANGED
data/lib/fountain/location.rb
CHANGED
data/lib/fountain/note.rb
CHANGED
data/lib/fountain/slot.rb
CHANGED
data/lib/fountain/slots.rb
CHANGED
data/lib/fountain/stage.rb
CHANGED
data/lib/fountain/transition.rb
CHANGED
data/lib/fountain/user.rb
CHANGED
data/lib/fountain/util.rb
CHANGED
@@ -1,8 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Fountain
|
2
4
|
#
|
3
5
|
# Fountain generic utility functions
|
4
6
|
#
|
5
7
|
module Util
|
8
|
+
module_function
|
9
|
+
|
6
10
|
#
|
7
11
|
# Stringify symbolized hash keys
|
8
12
|
# @param [Hash] hash A string/symbol keyed hash
|
@@ -20,7 +24,6 @@ module Fountain
|
|
20
24
|
end
|
21
25
|
new_hash
|
22
26
|
end
|
23
|
-
module_function :stringify_hash_keys
|
24
27
|
|
25
28
|
#
|
26
29
|
# Slice keys from hash
|
@@ -37,6 +40,5 @@ module Fountain
|
|
37
40
|
end
|
38
41
|
new_hash
|
39
42
|
end
|
40
|
-
module_function :slice_hash
|
41
43
|
end
|
42
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fountain
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- abrom
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -30,14 +30,20 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '12.3'
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 12.3.3
|
34
37
|
type: :development
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
41
|
- - "~>"
|
39
42
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
43
|
+
version: '12.3'
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 12.3.3
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: rspec
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -105,6 +111,7 @@ files:
|
|
105
111
|
- ".gitignore"
|
106
112
|
- ".rubocop.yml"
|
107
113
|
- ".travis.yml"
|
114
|
+
- CHANGELOG.md
|
108
115
|
- Gemfile
|
109
116
|
- LICENSE
|
110
117
|
- README.md
|
@@ -156,8 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
163
|
- !ruby/object:Gem::Version
|
157
164
|
version: '0'
|
158
165
|
requirements: []
|
159
|
-
|
160
|
-
rubygems_version: 2.6.14.1
|
166
|
+
rubygems_version: 3.0.6
|
161
167
|
signing_key:
|
162
168
|
specification_version: 4
|
163
169
|
summary: Fountain REST API v2 wrapper for Ruby
|