fountain 0.0.13 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +34 -0
- data/CHANGELOG.md +18 -0
- data/fountain.gemspec +3 -2
- data/lib/fountain/api/funnels.rb +9 -0
- data/lib/fountain/api/stages.rb +21 -0
- data/lib/fountain/applicant.rb +60 -0
- data/lib/fountain/gem_version.rb +1 -1
- data/lib/fountain.rb +1 -0
- metadata +17 -9
- data/.travis.yml +0 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba170f5fc16a47a04613579eb870085fc0571c1c40e27d7f6b63a368099408f3
|
4
|
+
data.tar.gz: 2e1ad449a0248471c4299aa4a445f8a418ab14f705fbe0de9a0be955bf6d5488
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c2d0e5eae2e6d145c5fb7db23a188582c6d508e7841d440ddf8167d2ea6863d2f27dc86a7ce687a0a03a4d678a8171fa1841ba0dbcec15702854b2de367ad56
|
7
|
+
data.tar.gz: 6c81eacdc5106d3003d53a4fb7a874882f579bec4c0bb2da4819b8a96a9c2c7cf1530de16422ed7e4168a5ec94e17793b977a042ebec143f0cd017baf8af5575
|
@@ -0,0 +1,34 @@
|
|
1
|
+
name: Test Fountain Ruby gem
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [main]
|
6
|
+
pull_request:
|
7
|
+
branches: [main]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
ruby-version: ['2.6', '2.7', '3.0', '3.1']
|
15
|
+
|
16
|
+
steps:
|
17
|
+
- uses: actions/checkout@v2
|
18
|
+
|
19
|
+
- name: Set up Ruby
|
20
|
+
uses: ruby/setup-ruby@v1
|
21
|
+
with:
|
22
|
+
ruby-version: ${{ matrix.ruby-version }}
|
23
|
+
bundler-cache: true
|
24
|
+
|
25
|
+
- name: Lint code - Rubocop
|
26
|
+
run: bundle exec rubocop
|
27
|
+
|
28
|
+
- name: Run tests
|
29
|
+
run: bundle exec rspec
|
30
|
+
|
31
|
+
- name: Test & publish code coverage
|
32
|
+
uses: paambaati/codeclimate-action@v3.0.0
|
33
|
+
env:
|
34
|
+
CC_TEST_REPORTER_ID: ced551cb55b574bb553181cb1c7abae8452a4f7f6e92df83633984a03693e284
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,22 @@
|
|
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
|
+
|
10
|
+
## [0.0.15](releases/tag/v0.0.15) - 2022-06-15
|
11
|
+
### Added
|
12
|
+
- [#6] Additional accessor methods to the Applicant class ([@noahkconley][])
|
13
|
+
|
14
|
+
## [0.0.14](releases/tag/v0.0.14) - 2022-06-12
|
15
|
+
### Added
|
16
|
+
- [#5] Get funnel and get stage to API ([@noahkconley][])
|
17
|
+
|
18
|
+
## [0.0.13](releases/tag/v0.0.13) - 2021-09-24
|
19
|
+
### Fixed
|
20
|
+
- [#3] Update applicants and notes APIs to use *new* expected return statuses from create actions
|
21
|
+
|
6
22
|
## [0.0.12](releases/tag/v0.0.12) - 2020-03-01
|
7
23
|
### Fixed
|
8
24
|
- Address CVE-2020-8130 - `rake` OS command injection vulnerability
|
@@ -55,3 +71,5 @@
|
|
55
71
|
## [0.0.2](releases/tag/v0.0.2) - 2018-03-19
|
56
72
|
### Added
|
57
73
|
- Support for applicant list and update
|
74
|
+
|
75
|
+
[@noahkconley]: https://github.com/noahkconley
|
data/fountain.gemspec
CHANGED
@@ -15,17 +15,18 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.description = 'Fountain REST API v2 wrapper for Ruby'
|
16
16
|
spec.homepage = 'https://github.com/Studiosity/fountain-ruby'
|
17
17
|
spec.license = 'MIT'
|
18
|
-
spec.required_ruby_version = ['>= 2.5.0', '< 3.
|
18
|
+
spec.required_ruby_version = ['>= 2.5.0', '< 3.2.0']
|
19
19
|
|
20
20
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec|docs)/}) }
|
21
21
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ['lib']
|
23
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
23
24
|
|
24
25
|
spec.add_development_dependency 'rake', '~> 12.3', '>= 12.3.3'
|
25
26
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
26
27
|
spec.add_development_dependency 'rubocop', '~> 1.21'
|
27
28
|
spec.add_development_dependency 'rubocop-rake', '~> 0.6'
|
28
29
|
spec.add_development_dependency 'rubocop-rspec', '~> 2.5'
|
29
|
-
spec.add_development_dependency 'simplecov', '~> 0.16'
|
30
|
+
spec.add_development_dependency 'simplecov', '~> 0.16', '< 0.18'
|
30
31
|
spec.add_development_dependency 'webmock', '~> 2.3'
|
31
32
|
end
|
data/lib/fountain/api/funnels.rb
CHANGED
@@ -18,6 +18,15 @@ module Fountain
|
|
18
18
|
Fountain::Funnels.new response
|
19
19
|
end
|
20
20
|
|
21
|
+
#
|
22
|
+
# Get Funnel Info
|
23
|
+
# @param [String] funnel_id ID of the Fountain funnel
|
24
|
+
# @return [Fountain::Funnel]
|
25
|
+
def self.get(funnel_id)
|
26
|
+
response = request_json("/v2/funnels/#{funnel_id}")
|
27
|
+
Fountain::Funnel.new response
|
28
|
+
end
|
29
|
+
|
21
30
|
#
|
22
31
|
# Update Funnel
|
23
32
|
# @param [String] funnel_id ID of the Fountain funnel
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Fountain
|
4
|
+
module Api
|
5
|
+
#
|
6
|
+
# Fountain Stage Management API
|
7
|
+
#
|
8
|
+
class Stages
|
9
|
+
extend RequestHelper
|
10
|
+
|
11
|
+
#
|
12
|
+
# Get Stage Info
|
13
|
+
# @param [String] stage_id ID of the Fountain stage
|
14
|
+
# @return [Fountain::Stage]
|
15
|
+
def self.get(stage_id)
|
16
|
+
response = request_json("/v2/stages/#{stage_id}")
|
17
|
+
Fountain::Stage.new response
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/lib/fountain/applicant.rb
CHANGED
@@ -25,6 +25,16 @@ module Fountain
|
|
25
25
|
Time.parse raw_data['created_at']
|
26
26
|
end
|
27
27
|
|
28
|
+
# Updated at
|
29
|
+
def updated_at
|
30
|
+
Time.parse raw_data['updated_at']
|
31
|
+
end
|
32
|
+
|
33
|
+
# Last transitioned at
|
34
|
+
def last_transitioned_at
|
35
|
+
Time.parse raw_data['last_transitioned_at']
|
36
|
+
end
|
37
|
+
|
28
38
|
# Email
|
29
39
|
def email
|
30
40
|
raw_data['email']
|
@@ -35,16 +45,66 @@ module Fountain
|
|
35
45
|
raw_data['name']
|
36
46
|
end
|
37
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
|
+
|
38
58
|
# Phone number
|
39
59
|
def phone_number
|
40
60
|
raw_data['phone_number']
|
41
61
|
end
|
42
62
|
|
63
|
+
# Normalized phone number
|
64
|
+
def normalized_phone_number
|
65
|
+
raw_data['normalized_phone_number']
|
66
|
+
end
|
67
|
+
|
68
|
+
# Is duplicate
|
69
|
+
def duplicate?
|
70
|
+
raw_data['is_duplicate']
|
71
|
+
end
|
72
|
+
|
73
|
+
# Receive automated emails
|
74
|
+
def receive_automated_emails?
|
75
|
+
raw_data['receive_automated_emails']
|
76
|
+
end
|
77
|
+
|
78
|
+
# Can receive sms
|
79
|
+
def can_receive_sms?
|
80
|
+
raw_data['can_receive_sms']
|
81
|
+
end
|
82
|
+
|
83
|
+
# Phone platform
|
84
|
+
def phone_platform
|
85
|
+
raw_data['phone_platform']
|
86
|
+
end
|
87
|
+
|
88
|
+
# Rejection reason
|
89
|
+
def rejection_reason
|
90
|
+
raw_data['rejection_reason']
|
91
|
+
end
|
92
|
+
|
93
|
+
# On hold reason
|
94
|
+
def on_hold_reason
|
95
|
+
raw_data['on_hold_reason']
|
96
|
+
end
|
97
|
+
|
43
98
|
# data
|
44
99
|
def data
|
45
100
|
raw_data['data']
|
46
101
|
end
|
47
102
|
|
103
|
+
# Addresses
|
104
|
+
def addresses
|
105
|
+
raw_data['addresses']
|
106
|
+
end
|
107
|
+
|
48
108
|
# Funnel
|
49
109
|
def funnel
|
50
110
|
Funnel.new raw_data['funnel']
|
data/lib/fountain/gem_version.rb
CHANGED
data/lib/fountain.rb
CHANGED
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.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- abrom
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -93,6 +93,9 @@ dependencies:
|
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: '0.16'
|
96
|
+
- - "<"
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0.18'
|
96
99
|
type: :development
|
97
100
|
prerelease: false
|
98
101
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -100,6 +103,9 @@ dependencies:
|
|
100
103
|
- - "~>"
|
101
104
|
- !ruby/object:Gem::Version
|
102
105
|
version: '0.16'
|
106
|
+
- - "<"
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0.18'
|
103
109
|
- !ruby/object:Gem::Dependency
|
104
110
|
name: webmock
|
105
111
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,9 +128,9 @@ executables:
|
|
122
128
|
extensions: []
|
123
129
|
extra_rdoc_files: []
|
124
130
|
files:
|
131
|
+
- ".github/workflows/test.yml"
|
125
132
|
- ".gitignore"
|
126
133
|
- ".rubocop.yml"
|
127
|
-
- ".travis.yml"
|
128
134
|
- CHANGELOG.md
|
129
135
|
- Gemfile
|
130
136
|
- LICENSE
|
@@ -139,6 +145,7 @@ files:
|
|
139
145
|
- lib/fountain/api/labels.rb
|
140
146
|
- lib/fountain/api/notes.rb
|
141
147
|
- lib/fountain/api/request_helper.rb
|
148
|
+
- lib/fountain/api/stages.rb
|
142
149
|
- lib/fountain/applicant.rb
|
143
150
|
- lib/fountain/applicants.rb
|
144
151
|
- lib/fountain/background_check.rb
|
@@ -161,8 +168,9 @@ files:
|
|
161
168
|
homepage: https://github.com/Studiosity/fountain-ruby
|
162
169
|
licenses:
|
163
170
|
- MIT
|
164
|
-
metadata:
|
165
|
-
|
171
|
+
metadata:
|
172
|
+
rubygems_mfa_required: 'true'
|
173
|
+
post_install_message:
|
166
174
|
rdoc_options: []
|
167
175
|
require_paths:
|
168
176
|
- lib
|
@@ -173,15 +181,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
173
181
|
version: 2.5.0
|
174
182
|
- - "<"
|
175
183
|
- !ruby/object:Gem::Version
|
176
|
-
version: 3.
|
184
|
+
version: 3.2.0
|
177
185
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
178
186
|
requirements:
|
179
187
|
- - ">="
|
180
188
|
- !ruby/object:Gem::Version
|
181
189
|
version: '0'
|
182
190
|
requirements: []
|
183
|
-
rubygems_version: 3.0.
|
184
|
-
signing_key:
|
191
|
+
rubygems_version: 3.0.9
|
192
|
+
signing_key:
|
185
193
|
specification_version: 4
|
186
194
|
summary: Fountain REST API v2 wrapper for Ruby
|
187
195
|
test_files: []
|
data/.travis.yml
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
env:
|
2
|
-
global:
|
3
|
-
- CC_TEST_REPORTER_ID=ced551cb55b574bb553181cb1c7abae8452a4f7f6e92df83633984a03693e284
|
4
|
-
|
5
|
-
language: ruby
|
6
|
-
|
7
|
-
rvm:
|
8
|
-
- 2.5
|
9
|
-
- 2.6
|
10
|
-
- 2.7
|
11
|
-
- 3.0
|
12
|
-
|
13
|
-
before_install:
|
14
|
-
- gem update bundler
|
15
|
-
|
16
|
-
install:
|
17
|
-
- bundle install --jobs=3 --retry=3
|
18
|
-
- gem install rubocop
|
19
|
-
|
20
|
-
before_script:
|
21
|
-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
22
|
-
- chmod +x ./cc-test-reporter
|
23
|
-
- ./cc-test-reporter before-build
|
24
|
-
|
25
|
-
script:
|
26
|
-
- bundle exec rubocop
|
27
|
-
- bundle exec rake
|
28
|
-
|
29
|
-
after_script:
|
30
|
-
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|