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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 024c9fecee85e2dc3b6766849603adb8204f4c7d
4
- data.tar.gz: 097520a1a9cffc137319248cd3758cf6c60b2b57
3
+ metadata.gz: 17a10fe02260cc0fbf859e981557580ca70f95d7
4
+ data.tar.gz: 773d6ff73aa1740e1781c10a178f119124113b75
5
5
  SHA512:
6
- metadata.gz: 14e7a001292bd5f6bf7525ce1695fc5f203ff690ef254d6cc92a3c880958e22aa6a0974b41aefcaaa7f3fc5f52e36c7c6545eb3ec18bb11f8383720e4322b27e
7
- data.tar.gz: 701372977fe6d08811fd50f4f9d990df8a9ca220ec5fa7d3d1571029ead06a358fd88baa5f45e1dda7cb73166702927a6cad23bc7659499353c952b98d5c2b37
6
+ metadata.gz: e4f1a7c76a716f3d45ba49e15a98b7a4683a3807aed8459e6984c9e0bd8546329797763f8825398b81a0d418f72e486d0ebf68cf1fec1d244dee849d781ec794
7
+ data.tar.gz: ca81c6448520f16d9a9297085914b9ec12d060b02661ecf175c11444816546c07f10ce72d312a917fcdeefa6242c1a2ebd2e47f2aa7cf8c442c69700f7e130fc
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- traitify (1.6.3)
4
+ traitify (1.7.0)
5
5
  faraday (~> 0.9)
6
6
  faraday_middleware (~> 0.9)
7
7
  hashie (~> 3.0)
@@ -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) }
@@ -1,3 +1,3 @@
1
1
  module Traitify
2
- VERSION = "1.7.0"
2
+ VERSION = "1.8.0"
3
3
  end
@@ -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.secret = "secret"
7
- tom.api_host = "https://example.com"
8
- tom.api_version = "v1"
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.7.0
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-18 00:00:00.000000000 Z
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: