fountain 0.0.11 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 210b37df4117b80bcc00d37ac66c619c4227fbdb
4
- data.tar.gz: 475ccfc2c690b58b360a5cbd02fc8d8e4432149d
2
+ SHA256:
3
+ metadata.gz: 10955e573502a79fef0792e0784e42223e626ed0f0b203cf06545c75f2dacf8b
4
+ data.tar.gz: ee896766bc863df8d400b1285b8d0674e492ee46ea2c3c3d3b92dc2ff7d9b53e
5
5
  SHA512:
6
- metadata.gz: 10134e36f75790ff739e2a1508be084ff103db70b237916e8a7d8c8cf974d25c3271c5793669bcd4ef0624a8d659c0dc2f22ddcbb16184df93cb77f1d7e406ef
7
- data.tar.gz: 3144aac5bf2f21223ebbd4ca81e8ac458f690e7cd43094cc9f15a118cf169b502dfb58b365ad98d849cba3af3c796d4907539d234294206b23738fbbda920dfa
6
+ metadata.gz: 8f4a092974c4fbc79d573d7b989feb2082246ae5f9c334b2d1056c2f39415a1eddde341d34d5b57c7d4f0c828b1ecfef38f81d0f822da769eb53299fe6d7d6b8
7
+ data.tar.gz: d02cc7baaec15fd06a801b0c3fb7917b0a1a07ef3b4dbc9f4c2d91e9927edf5b3a44485df52cdba1f5c47a5a93e641baff5c8d6a3cf2f52000bfb06c1a43b41d
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  Gemfile.lock
2
2
  *.gem
3
+ coverage/
@@ -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
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  # Specify your gem's dependencies in fountain.gemspec
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler/gem_tasks'
2
4
  require 'rspec/core/rake_task'
3
5
 
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require 'bundler/setup'
4
5
  require 'fountain'
@@ -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', '~> 10.0'
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'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fountain/gem_version'
2
4
 
3
5
  require 'json'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fountain
2
4
  module Api
3
5
  #
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fountain
2
4
  module Api
3
5
  #
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fountain
2
4
  module Api
3
5
  #
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'date'
2
4
  require 'cgi'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fountain
2
4
  module Api
3
5
  #
@@ -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
@@ -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
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fountain
2
4
  #
3
5
  # Fountain Applicant collection
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fountain
2
4
  #
3
5
  # Fountain Background Check
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  #
2
4
  # Fountain configuration
3
5
  #
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fountain
2
4
  #
3
5
  # Fountain Document Signature
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fountain
2
4
  #
3
5
  # Fountain Field
@@ -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
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fountain
2
4
  #
3
5
  # Fountain Funnel collection
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fountain
2
- VERSION = '0.0.11'.freeze
4
+ VERSION = '0.0.12'
3
5
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fountain
2
4
  #
3
5
  # Fountain Label
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fountain
2
4
  #
3
5
  # Fountain Location
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fountain
2
4
  #
3
5
  # Fountain Note
@@ -36,6 +38,7 @@ module Fountain
36
38
  # User
37
39
  def user
38
40
  return unless raw_data['user'].is_a? Hash
41
+
39
42
  User.new raw_data['user']
40
43
  end
41
44
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fountain
2
4
  #
3
5
  # Fountain Secure Document
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fountain
2
4
  #
3
5
  # Fountain Slot
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fountain
2
4
  #
3
5
  # Fountain Slot collection
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fountain
2
4
  #
3
5
  # Fountain Stage
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fountain
2
4
  #
3
5
  # Fountain Transition
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fountain
2
4
  #
3
5
  # Fountain User
@@ -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.11
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: 2018-06-02 00:00:00.000000000 Z
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: '10.0'
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: '10.0'
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
- rubyforge_project:
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