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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a2b16403f49d6a6b35092001f32e972dab9711e0
4
- data.tar.gz: 8fb8aa2c30dcc671df2bb6ebbe6116711c9d68cd
3
+ metadata.gz: f978f18c15bcfb99347493c00950cbf3db16a072
4
+ data.tar.gz: 04aa7daa32980a92dd311e789a58f131fdf6a85e
5
5
  SHA512:
6
- metadata.gz: 73627b5ed739bf28c1ae5353bcc73d60dc4159108dea95b32c1d935b4eeaef3294779a2a1e7ec422dd6fd71d7e981de1ac1cc75662204bd9c8975d649baff161
7
- data.tar.gz: b85804f3bf44a959c3529ad09b0e79874554bd233600602587b1f9ac8c1d8c69faf0f6f61773ca6dc38879831d46ddb20099a89e869cc0c7e3c4909a2d9e65d6
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
- "data"=>
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
 
@@ -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']
@@ -1,3 +1,3 @@
1
1
  module MindMatch
2
- VERSION = "0.0.1-beta4"
2
+ VERSION = "0.0.1-beta5"
3
3
  end
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.beta4
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-09-29 00:00:00.000000000 Z
13
+ date: 2017-10-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday