psychometric 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.rspec +3 -0
- data/.travis.yml +7 -0
- data/CHANGELOG.md +6 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +43 -0
- data/LICENSE.txt +21 -0
- data/README.md +70 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/psychometric.rb +10 -0
- data/lib/psychometric/assessment.rb +27 -0
- data/lib/psychometric/provider.rb +33 -0
- data/lib/psychometric/providers/top_talent_solutions.rb +100 -0
- data/lib/psychometric/result.rb +17 -0
- data/lib/psychometric/subject.rb +23 -0
- data/lib/psychometric/version.rb +3 -0
- data/psychometric.gemspec +44 -0
- metadata +124 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0ab5ab210acd9d806c972dc385a4b1ff2f322468
|
4
|
+
data.tar.gz: 4337cc2c2e865b321080233f2f5d557647dbbaa3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8dee1dc17cc3746c5d624f38b64ac117cd615a3d7634df14971b9c9d29575aaf341c1a05b657b78ad3a25884e6497e3ec68208b9de9b3daa1e35a34082b8c108
|
7
|
+
data.tar.gz: 9abc82d90902dbe3bf6aee9f44a46660885e9fce0d39d5109fcded87c3e472801696cc5f4778265a3cc9b148a3a6ec3d40038e66b3050fd53700f1d853cd2b8b
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at michael.prins@me.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
psychometric (0.1.0)
|
5
|
+
httparty (~> 0.16.4)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
diff-lcs (1.3)
|
11
|
+
httparty (0.16.4)
|
12
|
+
mime-types (~> 3.0)
|
13
|
+
multi_xml (>= 0.5.2)
|
14
|
+
mime-types (3.2.2)
|
15
|
+
mime-types-data (~> 3.2015)
|
16
|
+
mime-types-data (3.2018.0812)
|
17
|
+
multi_xml (0.6.0)
|
18
|
+
rake (10.5.0)
|
19
|
+
rspec (3.8.0)
|
20
|
+
rspec-core (~> 3.8.0)
|
21
|
+
rspec-expectations (~> 3.8.0)
|
22
|
+
rspec-mocks (~> 3.8.0)
|
23
|
+
rspec-core (3.8.0)
|
24
|
+
rspec-support (~> 3.8.0)
|
25
|
+
rspec-expectations (3.8.2)
|
26
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
27
|
+
rspec-support (~> 3.8.0)
|
28
|
+
rspec-mocks (3.8.0)
|
29
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
30
|
+
rspec-support (~> 3.8.0)
|
31
|
+
rspec-support (3.8.0)
|
32
|
+
|
33
|
+
PLATFORMS
|
34
|
+
ruby
|
35
|
+
|
36
|
+
DEPENDENCIES
|
37
|
+
bundler (~> 2.0)
|
38
|
+
psychometric!
|
39
|
+
rake (~> 10.0)
|
40
|
+
rspec (~> 3.0)
|
41
|
+
|
42
|
+
BUNDLED WITH
|
43
|
+
2.0.1
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Michael Prins
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
# Psychometric
|
2
|
+
|
3
|
+
This gem attempts to create a simple uniform structure for results of
|
4
|
+
psychometric assessments from various providers. It also implements methods to
|
5
|
+
request those results from the providers' APIs.
|
6
|
+
|
7
|
+
Persisting the results is left to the consumer.
|
8
|
+
|
9
|
+
It has been extracted from the [Leaply](https://leap.ly) recruitment platform.
|
10
|
+
|
11
|
+
### Currently Supported Providers
|
12
|
+
|
13
|
+
* [Top Talent Solutions](https://www.tts-talent.com/)
|
14
|
+
|
15
|
+
## Installation
|
16
|
+
|
17
|
+
Add this line to your application's Gemfile:
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
gem 'psychometric'
|
21
|
+
```
|
22
|
+
|
23
|
+
And then execute:
|
24
|
+
|
25
|
+
$ bundle
|
26
|
+
|
27
|
+
Or install it yourself as:
|
28
|
+
|
29
|
+
$ gem install psychometric
|
30
|
+
|
31
|
+
## Usage
|
32
|
+
|
33
|
+
* Require the gem and the provider(s) you need.
|
34
|
+
* Provide your authentication and assessment requirements.
|
35
|
+
* Request the results.
|
36
|
+
|
37
|
+
```ruby
|
38
|
+
# All providers are not required by default
|
39
|
+
require "psychometric"
|
40
|
+
require "psychometric/providers/top_talent_solutions"
|
41
|
+
|
42
|
+
# Create an instance of the Provider
|
43
|
+
provider = Psychometric::Providers::TopTalentSolutions.new username: 'psycho@metric.com', password: 'insecure'
|
44
|
+
# Authenticate the instance (most will need this step)
|
45
|
+
provider.authenticate!
|
46
|
+
# Indicate which Assessment (params needed specific to provider)
|
47
|
+
assessment = Psychometric::Providers::TopTalentSolutions.assessment project_id: 1234, model_id: 5678
|
48
|
+
# Fetch the results
|
49
|
+
results = provider.results assessment
|
50
|
+
|
51
|
+
results #=> [#<Psychometric::Result subject: "#<Psychometric::Subject name: "John Doe" identity: "8801235111088">" values: {"Numbers"=>"5", "Letters"=>"7", "Shapes"=>"3"}>]
|
52
|
+
```
|
53
|
+
|
54
|
+
## Development
|
55
|
+
|
56
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
57
|
+
|
58
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
59
|
+
|
60
|
+
## Contributing
|
61
|
+
|
62
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/Leaply/psychometric. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
63
|
+
|
64
|
+
## License
|
65
|
+
|
66
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
67
|
+
|
68
|
+
## Code of Conduct
|
69
|
+
|
70
|
+
Everyone interacting in the Psychometric project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/Leaply/psychometric/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "psychometric"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/lib/psychometric.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
module Psychometric
|
2
|
+
# # Assessment
|
3
|
+
#
|
4
|
+
# This represents the various assessments a Subject can undertake with a
|
5
|
+
# Provider. Since different providers have different ways of identifying and
|
6
|
+
# organizing their assessments, we give them a dynamic identity.
|
7
|
+
class Assessment
|
8
|
+
class IdentityError < StandardError
|
9
|
+
def message
|
10
|
+
'Incorrect or missing identity, check the Provider configuration'
|
11
|
+
end
|
12
|
+
end
|
13
|
+
class ProviderError < StandardError
|
14
|
+
def message
|
15
|
+
'Assessment needs a subclass of Provider as the first argument for identity checking'
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
attr_reader :identity
|
20
|
+
|
21
|
+
def initialize(provider, identity = {})
|
22
|
+
raise IdentityError if identity.empty?
|
23
|
+
raise ProviderError unless provider.ancestors.include? Psychometric::Provider
|
24
|
+
@identity = identity
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'psychometric/assessment'
|
2
|
+
|
3
|
+
module Psychometric
|
4
|
+
# # Provider
|
5
|
+
#
|
6
|
+
# This is the standardized API that individual provider implementations
|
7
|
+
# must conform to. It abstracts the constructs from the provider into those
|
8
|
+
# used by Psychometric.
|
9
|
+
class Provider
|
10
|
+
class AuthenticationError < StandardError; end
|
11
|
+
# raise NotImplementedError, 'Subclasses must define `resolved?`.'
|
12
|
+
|
13
|
+
def initialize(authentication)
|
14
|
+
raise AuthenticationError unless authentication.keys.to_set == @@authentication_keys.to_set
|
15
|
+
@authentication = authentication
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.assessment(identity)
|
19
|
+
raise Assessment::IdentityError unless identity.keys.to_set == @@assessment_identifiers.to_set
|
20
|
+
Assessment.new self, identity
|
21
|
+
end
|
22
|
+
|
23
|
+
protected
|
24
|
+
|
25
|
+
def self.authenticate_with(*args)
|
26
|
+
@@authentication_keys = args
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.assessments_identified_with(*args)
|
30
|
+
@@assessment_identifiers = args
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,100 @@
|
|
1
|
+
require 'httparty'
|
2
|
+
require 'psychometric/provider'
|
3
|
+
|
4
|
+
module Psychometric
|
5
|
+
module Providers
|
6
|
+
class TopTalentSolutions < Psychometric::Provider
|
7
|
+
# Configuration
|
8
|
+
authenticate_with :username, :password
|
9
|
+
assessments_identified_with :project_id, :model_id
|
10
|
+
|
11
|
+
# API Implementation
|
12
|
+
include HTTParty
|
13
|
+
base_uri 'https://www.tts-assess.com/api'
|
14
|
+
# base_uri(ENV['RACK_ENV'] == 'production' ? 'https://www.tts-assess.com/api' : 'https://www.tts-assessments.com/api')
|
15
|
+
|
16
|
+
def authenticate!
|
17
|
+
response = self.class.post '/generateToken', headers: { 'Accept' => 'application/json' }, body: { 'username' => @authentication[:username], 'password' => @authentication[:password] }.to_json
|
18
|
+
|
19
|
+
# Response Code - 401 {"result": "error", "errors": "Bad credentials exception!"}
|
20
|
+
raise response['errors'].to_json if response['result'] == 'error'
|
21
|
+
|
22
|
+
# Response Code - 200 { "result": "success", "token": "YknYEjMRjVMaIGUTJQ8cWO9xAXSyK0awlQzGpk6_nzhM0n140dUMn-Ja- S9BYKbWc5HIj8LA" }
|
23
|
+
@token = response['token'] if response.code == 200 && response['result'] == 'success'
|
24
|
+
end
|
25
|
+
|
26
|
+
def authenticated?
|
27
|
+
!@token.nil? && !@token.empty?
|
28
|
+
end
|
29
|
+
|
30
|
+
# Returns assessments linked to this account once authenticated
|
31
|
+
#
|
32
|
+
# NOTE: This is not currently possible with the TTS API
|
33
|
+
def assessments
|
34
|
+
raise Psychometric::Provider::AuthenticationError.new('You need to authenticate first') unless authenticated?
|
35
|
+
raise NotImplementedError # API does not expose Model IDs
|
36
|
+
|
37
|
+
response = self.class.get '/getProjectList/en_ZA', headers: { 'Authorization' => "Bearer #{@token}", 'Accept' => 'application/json' }
|
38
|
+
|
39
|
+
# Response Code - 401 {'result': "error", 'errors': {"Not enough permission for this request."}}
|
40
|
+
raise response['errors'].to_json if response['result'] == 'error'
|
41
|
+
|
42
|
+
# Response Code - 200 { 'result': "success", 'data': [{ 'id': 5, 'internalName': "Internal Project Name 1", 'completedCandidate': 10, 'status': "In Progress", 'costcode': "free" }]
|
43
|
+
if response.code == 200 && response['result'] == 'success'
|
44
|
+
response['data'].map do |hash|
|
45
|
+
# hash
|
46
|
+
end
|
47
|
+
else
|
48
|
+
raise 'Unknown error'
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
# Given an Assessment returns the Results recorded for that Assessment
|
53
|
+
def results(assessment)
|
54
|
+
raise Psychometric::Provider::AuthenticationError.new('You need to authenticate first') unless authenticated?
|
55
|
+
|
56
|
+
response = self.class.post '/getDataExtract', headers: { 'Authorization' => "Bearer #{@token}", 'Accept' => 'application/json' }, body: {
|
57
|
+
'projectId' => assessment.identity[:project_id],
|
58
|
+
'modelId' => assessment.identity[:model_id],
|
59
|
+
'locale' => 'en_ZA',
|
60
|
+
}.to_json
|
61
|
+
|
62
|
+
# Response Code - 400 { 'result': 'error', 'errors': ['No instrument norm combination found']}
|
63
|
+
raise response['errors'].to_json if response['result'] == 'error'
|
64
|
+
|
65
|
+
# Response Code - 200 { 'result': 'success', 'data': [{ 'participantId': 12, 'name': "john", 'surname': "doe", 'testCompleted': "05 July 2016 14:25:00", 'variable1': 2, 'variable2': 4, 'variable3': 5 }, ...] }
|
66
|
+
if response['result'] == 'success'
|
67
|
+
response['data'].map do |item|
|
68
|
+
Psychometric::Result.new.tap do |result|
|
69
|
+
result.subject = Psychometric::Subject.new(
|
70
|
+
country: 'ZA',
|
71
|
+
identity: item['participantId'],
|
72
|
+
email: item['email'],
|
73
|
+
name: "#{item['name']} #{item['surname']}",
|
74
|
+
gender: item['Gender|gender|Raw|Raw score'],
|
75
|
+
title: item['Title|title|Raw|Raw score'],
|
76
|
+
)
|
77
|
+
|
78
|
+
values = item.reject do |key, _v|
|
79
|
+
[
|
80
|
+
'participantGUID',
|
81
|
+
'participantId',
|
82
|
+
'email',
|
83
|
+
'name',
|
84
|
+
'surname',
|
85
|
+
'Gender|gender|Raw|Raw score',
|
86
|
+
'Title|title|Raw|Raw score',
|
87
|
+
'OverAll',
|
88
|
+
].include? key
|
89
|
+
end
|
90
|
+
|
91
|
+
result.values = Hash[values.map { |k, v| [k.split('|').first, v] }]
|
92
|
+
end
|
93
|
+
end
|
94
|
+
else
|
95
|
+
raise 'Unknown error'
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Psychometric
|
2
|
+
# # Result
|
3
|
+
#
|
4
|
+
# A Result respresents a Subject undergoing an Assessment by a Provider and
|
5
|
+
# will typically contain one or more Values.
|
6
|
+
class Result
|
7
|
+
attr_accessor :values, :subject, :assessment
|
8
|
+
|
9
|
+
def initialize(values = {})
|
10
|
+
@values = values
|
11
|
+
end
|
12
|
+
|
13
|
+
def to_s
|
14
|
+
"\#<Psychometric::Result subject: \"#{@subject}\" values: #{@values}>"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Psychometric
|
2
|
+
# # Subject
|
3
|
+
#
|
4
|
+
# This represents someone who undergoes the psychometric assessment. Since
|
5
|
+
# different providers identify subjects differently this class can be used
|
6
|
+
# to map subjects to your users.
|
7
|
+
class Subject
|
8
|
+
attr_accessor :country, :identity, :email, :name, :gender, :title
|
9
|
+
|
10
|
+
def initialize(args)
|
11
|
+
@country = args[:country]
|
12
|
+
@identity = args[:identity]
|
13
|
+
@email = args[:email]
|
14
|
+
@name = args[:name]
|
15
|
+
@gender = args[:gender]
|
16
|
+
@title = args[:title]
|
17
|
+
end
|
18
|
+
|
19
|
+
def to_s
|
20
|
+
"\#<Psychometric::Subject name: \"#{@name}\" identity: \"#{@identity}\">"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "psychometric/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "psychometric"
|
8
|
+
spec.version = Psychometric::VERSION
|
9
|
+
spec.authors = ["Michael Prins"]
|
10
|
+
spec.email = ["michael.prins@me.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Uniform psychometric assessment results}
|
13
|
+
spec.description = %q{A tool to abstract API access to psychometric providers and return uniform results for use in candidate reviews.}
|
14
|
+
spec.homepage = "https://github.com/Leaply/psychometric"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
# spec.metadata["allowed_push_host"] = "http://mygemserver.com"
|
21
|
+
|
22
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
23
|
+
spec.metadata["source_code_uri"] = "https://github.com/Leaply/psychometric"
|
24
|
+
spec.metadata["changelog_uri"] = "https://github.com/Leaply/psychometric/blob/master/CHANGELOG.md"
|
25
|
+
else
|
26
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
27
|
+
"public gem pushes."
|
28
|
+
end
|
29
|
+
|
30
|
+
# Specify which files should be added to the gem when it is released.
|
31
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
32
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
33
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
34
|
+
end
|
35
|
+
spec.bindir = "exe"
|
36
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
37
|
+
spec.require_paths = ["lib"]
|
38
|
+
|
39
|
+
spec.add_dependency "httparty", "~> 0.16.4"
|
40
|
+
|
41
|
+
spec.add_development_dependency "bundler", "~> 2.0"
|
42
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
43
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
44
|
+
end
|
metadata
ADDED
@@ -0,0 +1,124 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: psychometric
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Michael Prins
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-02-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: httparty
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.16.4
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.16.4
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.0'
|
69
|
+
description: A tool to abstract API access to psychometric providers and return uniform
|
70
|
+
results for use in candidate reviews.
|
71
|
+
email:
|
72
|
+
- michael.prins@me.com
|
73
|
+
executables: []
|
74
|
+
extensions: []
|
75
|
+
extra_rdoc_files: []
|
76
|
+
files:
|
77
|
+
- ".gitignore"
|
78
|
+
- ".rspec"
|
79
|
+
- ".travis.yml"
|
80
|
+
- CHANGELOG.md
|
81
|
+
- CODE_OF_CONDUCT.md
|
82
|
+
- Gemfile
|
83
|
+
- Gemfile.lock
|
84
|
+
- LICENSE.txt
|
85
|
+
- README.md
|
86
|
+
- Rakefile
|
87
|
+
- bin/console
|
88
|
+
- bin/setup
|
89
|
+
- lib/psychometric.rb
|
90
|
+
- lib/psychometric/assessment.rb
|
91
|
+
- lib/psychometric/provider.rb
|
92
|
+
- lib/psychometric/providers/top_talent_solutions.rb
|
93
|
+
- lib/psychometric/result.rb
|
94
|
+
- lib/psychometric/subject.rb
|
95
|
+
- lib/psychometric/version.rb
|
96
|
+
- psychometric.gemspec
|
97
|
+
homepage: https://github.com/Leaply/psychometric
|
98
|
+
licenses:
|
99
|
+
- MIT
|
100
|
+
metadata:
|
101
|
+
homepage_uri: https://github.com/Leaply/psychometric
|
102
|
+
source_code_uri: https://github.com/Leaply/psychometric
|
103
|
+
changelog_uri: https://github.com/Leaply/psychometric/blob/master/CHANGELOG.md
|
104
|
+
post_install_message:
|
105
|
+
rdoc_options: []
|
106
|
+
require_paths:
|
107
|
+
- lib
|
108
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '0'
|
113
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
requirements: []
|
119
|
+
rubyforge_project:
|
120
|
+
rubygems_version: 2.5.2.3
|
121
|
+
signing_key:
|
122
|
+
specification_version: 4
|
123
|
+
summary: Uniform psychometric assessment results
|
124
|
+
test_files: []
|