fountain 0.0.13 → 0.0.14

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: 5d78d33209aa2c3222155ea3643333a0df696466b1589d503adcaa28ded7aeea
4
- data.tar.gz: 4a6ff22d217ee2cae43e6093fa218c450ea673924a71ffcec4bb2b9bd73ebc2b
3
+ metadata.gz: d776c086bfff984cadcc66f4ea7898dc434dbeb239be346d88e50b2e9b969d79
4
+ data.tar.gz: f38a2ff38e7f0805519013ac3d4808200451b449e3874eb101f3658c40b6f077
5
5
  SHA512:
6
- metadata.gz: 957fe69e2f9b464fe77bf245f4778e931d071febb8178e476de852c0beb606d2adf49aac0a7c2d1b6c8b926125fa3873f0d66f7119033994137437be0c366fee
7
- data.tar.gz: e227563179603e1f2e571f22369616bdd3915e58cb8362f195101e53c63325002933d1cb3419eedd12cc476c1d449f639d9b8f235862509182754c5249c0e683
6
+ metadata.gz: e82ba7e512bfa3892c54d127f4de4e02b0beb9388bc1c43b305d07d99798f57f5c4527dd8c2a80171482730b0914d79780c2b09c32527c5752ec4df0bc53017f
7
+ data.tar.gz: ad10b59cf556f5224e4d641cece6ea3404394d4468281cd492292b5ff6c59951f1856dc7c4e042ba42065e38d07203d699510090a546bfd60c9dcb5902f07a9a
@@ -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,14 @@
3
3
  ## Unreleased
4
4
  - None
5
5
 
6
+ ## [0.0.14](releases/tag/v0.0.14) - 2022-06-12
7
+ ### Fixed
8
+ - [#5] Add get funnel and get stage to API ([@noahkconley][])
9
+
10
+ ## [0.0.13](releases/tag/v0.0.13) - 2021-09-24
11
+ ### Fixed
12
+ - [#3] Update applicants and notes APIs to use *new* expected return statuses from create actions
13
+
6
14
  ## [0.0.12](releases/tag/v0.0.12) - 2020-03-01
7
15
  ### Fixed
8
16
  - Address CVE-2020-8130 - `rake` OS command injection vulnerability
@@ -55,3 +63,5 @@
55
63
  ## [0.0.2](releases/tag/v0.0.2) - 2018-03-19
56
64
  ### Added
57
65
  - Support for applicant list and update
66
+
67
+ [@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.1.0']
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
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fountain
4
- VERSION = '0.0.13'
4
+ VERSION = '0.0.14'
5
5
  end
data/lib/fountain.rb CHANGED
@@ -48,3 +48,4 @@ require 'fountain/api/available_slots'
48
48
  require 'fountain/api/funnels'
49
49
  require 'fountain/api/labels'
50
50
  require 'fountain/api/notes'
51
+ require 'fountain/api/stages'
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.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - abrom
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-24 00:00:00.000000000 Z
11
+ date: 2022-06-12 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
- post_install_message:
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.1.0
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.6
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