mindmatch 0.0.1.pre.beta4 → 0.0.1.pre.beta5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -3
- data/lib/mind_match/client.rb +2 -2
- data/lib/mind_match/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f978f18c15bcfb99347493c00950cbf3db16a072
|
4
|
+
data.tar.gz: 04aa7daa32980a92dd311e789a58f131fdf6a85e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65d603edb50a123147eb72fc693fde93ef94fc15bb323e745b52419c739cbff26fcd01a07e2c8a05ece4cdb9175c7c0e34639e92972772805229301e3619e824
|
7
|
+
data.tar.gz: d2224dbbbf6ac4b402b94ea356ef525d018d181d89764386de551b6c360cf7c7d62d254d7229b5d2acb0964f2ea8949d1178709b620b4dd5b7204eb05ac5fd91
|
data/README.md
CHANGED
@@ -34,13 +34,12 @@ match_id = mindmatch.create_match(
|
|
34
34
|
mindmatch.query_match(id: match_id)
|
35
35
|
#=> {"id"=>"53b03dc2-07dd-40a2-91fe-7bff24c86574",
|
36
36
|
"status"=>"fulfilled",
|
37
|
-
"
|
38
|
-
{"results"=>
|
37
|
+
"results"=>
|
39
38
|
[{"score"=>0.1436655436,
|
40
39
|
"personId"=>"7dedffb3-c41e-4046-aa3d-73979d7ec1c2",
|
41
40
|
"positionId"=>"6214ab8d26e3f79571d922ca269d5743"}],
|
42
41
|
"people"=>[{"id"=>"7dedffb3-c41e-4046-aa3d-73979d7ec1c2", "refId"=>"2"}],
|
43
|
-
"positions"=>[{"id"=>"6214ab8d26e3f79571d922ca269d5743", "refId"=>"324"}]}
|
42
|
+
"positions"=>[{"id"=>"6214ab8d26e3f79571d922ca269d5743", "refId"=>"324"}]}
|
44
43
|
```
|
45
44
|
|
46
45
|
|
data/lib/mind_match/client.rb
CHANGED
@@ -60,7 +60,7 @@ module MindMatch
|
|
60
60
|
response = JSON.parse(raw_response.body)
|
61
61
|
match = response.dig('data', 'match')
|
62
62
|
if match&.has_key?('data') # FIX: remove data namespece in mindmatch api
|
63
|
-
match = match.merge(match['data'])
|
63
|
+
match = match.merge(match['data'] || {'results'=>[], 'people'=>[], 'positions'=>[]})
|
64
64
|
match.delete('data')
|
65
65
|
end
|
66
66
|
match
|
@@ -92,7 +92,7 @@ module MindMatch
|
|
92
92
|
response = JSON.parse(raw_response.body)
|
93
93
|
match = response.dig('data', 'match')
|
94
94
|
if match&.has_key?('data') # FIX: remove data namespece in mindmatch api
|
95
|
-
match = match.merge(match['data'])
|
95
|
+
match = match.merge(match['data'] || {'results'=>[], 'people'=>[], 'positions'=>[]})
|
96
96
|
match.delete('data')
|
97
97
|
end
|
98
98
|
match['id']
|
data/lib/mind_match/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mindmatch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.pre.
|
4
|
+
version: 0.0.1.pre.beta5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MindMatch
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-
|
13
|
+
date: 2017-10-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: faraday
|