traitify 1.7.0 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/traitify/client/results.rb +7 -0
- data/lib/traitify/version.rb +1 -1
- data/spec/traitify-ruby/client/career_spec.rb +3 -3
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17a10fe02260cc0fbf859e981557580ca70f95d7
|
4
|
+
data.tar.gz: 773d6ff73aa1740e1781c10a178f119124113b75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4f1a7c76a716f3d45ba49e15a98b7a4683a3807aed8459e6984c9e0bd8546329797763f8825398b81a0d418f72e486d0ebf68cf1fec1d244dee849d781ec794
|
7
|
+
data.tar.gz: ca81c6448520f16d9a9297085914b9ec12d060b02661ecf175c11444816546c07f10ce72d312a917fcdeefa6242c1a2ebd2e47f2aa7cf8c442c69700f7e130fc
|
data/Gemfile.lock
CHANGED
@@ -21,6 +21,13 @@ module Traitify
|
|
21
21
|
end
|
22
22
|
alias_method :find_assessment_personality_traits, :assessment_personality_traits
|
23
23
|
|
24
|
+
def raw_personality_traits(assessment_id)
|
25
|
+
get("/assessments/#{assessment_id}/personality_traits/raw").collect do |personality_trait|
|
26
|
+
Hashie::Mash.new(personality_trait)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
alias_method :find_personality_traits, :raw_personality_traits
|
30
|
+
|
24
31
|
def career_matches(assessment_id, number_of_matches=10)
|
25
32
|
response = get("/assessments/#{assessment_id}/matches/careers?number_of_matches=#{number_of_matches}")
|
26
33
|
response.collect { |career| Hashie::Mash.new(career) }
|
data/lib/traitify/version.rb
CHANGED
@@ -3,9 +3,9 @@ require "spec_helper"
|
|
3
3
|
describe Traitify::Client do
|
4
4
|
before do
|
5
5
|
Traitify.configure do |tom|
|
6
|
-
tom.
|
7
|
-
tom.
|
8
|
-
tom.
|
6
|
+
tom.secret_key = "secret"
|
7
|
+
tom.host = "https://example.com"
|
8
|
+
tom.version = "v1"
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: traitify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Prats
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-02
|
12
|
+
date: 2015-04-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hashie
|
@@ -221,4 +221,3 @@ test_files:
|
|
221
221
|
- spec/traitify-ruby/client/deck_spec.rb
|
222
222
|
- spec/traitify-ruby/client/result_spec.rb
|
223
223
|
- spec/traitify-ruby/client/slide_spec.rb
|
224
|
-
has_rdoc:
|