mindmatch 0.0.1.pre.alpha2 → 0.0.1.pre.alpha3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +9 -1
- data/LICENSE.txt +1 -1
- data/lib/mind_match/client.rb +15 -7
- 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: 2930aeb492a72c4c004d342094676f63a9e8a1f9
|
4
|
+
data.tar.gz: 0d54baaba50d45f73d5f546cc07e9a4798a59e09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c1d3743dd2d4257888813aa5b5908151fc28a7d0378bc9c979271d0f2a7d30d73bf9bf083ae1415e7935d03c45d2c663153991f2da564d27c63c298fcffe26a
|
7
|
+
data.tar.gz: 9a5d6096dd3b30e88eca17cc2fb55d09c4e797a3d09f845d83bf869c112f7e808aeb9eb80efe22b8b47e69fa171be3a9579623ab3ccb5deeea737166ae8fe0b7
|
data/.travis.yml
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
sudo: false
|
2
2
|
language: ruby
|
3
3
|
rvm:
|
4
|
-
|
4
|
+
- 2.3.4
|
5
5
|
before_install: gem install bundler -v 1.15.3
|
6
|
+
deploy:
|
7
|
+
provider: rubygems
|
8
|
+
api_key:
|
9
|
+
secure: gcFsDKucukPtOeMMdhyBqdmvEz1Trtm/2ydVsJNR8KED/yR7vunfXhtC2/z1ICwrpiUQUwMGQIjx0Odi9gAhuWRL5tj4MHpqwa7CRCgj+MLJFQFAAR7kTpO5MLDPBmV1PO5fZFkOPEu5tQB0LlW1rQSWy1fZW3E1Zsej5OnCqr52j/qIT2wffyTFSnnF8+ijX5xbJ6UMVTXMrLQ8yPZwye5pJU7b+TZajKUFj3GAKw857FQRfEY3ta1S8QQ8dyO+pq/Mp8/y2GsX2owvM4yakehXH3YYe2U8bXuRqaPM5+HU9ndKR+XohUNa7zVoy4kdhNhEMW+eWFHHM8OQ0yMfaaD8EJDpPeKYAxTp7gLBxZckJGAQ+Q5vPubKSjLrnoi7EhpDJfApdStTFYwMLQ9MBX7rhyrz2WZ5+KrZBmuf1LcWH6DIs/+A4A8UJrY5nM/TwfwdgewLr2SX0KUCqnn40zFiZu7uEU0EPzCKgOEYBK+9rtCa33r82oZ7M+xdz2CsgJTqgOcc2J3EOATWjHCDhlD8K/co12ED51NvR06T2UnQwKaRPeHjTqmUFVLmh6wMxyUSwC20q1JMM00mIK0MkxroDpNlsu9FF8ekTGbe7RJDxaqsqGQBsN2gFjT01I4yBLv/M1JS81M62JeyLcTJbG21m2Qpb/4U1JrO9bi49vU=
|
10
|
+
gem: mindmatch
|
11
|
+
on:
|
12
|
+
tags: true
|
13
|
+
repo: mindmatch/mindmatch-ruby
|
data/LICENSE.txt
CHANGED
data/lib/mind_match/client.rb
CHANGED
@@ -4,14 +4,14 @@ require 'json'
|
|
4
4
|
module MindMatch
|
5
5
|
class Client
|
6
6
|
|
7
|
-
DEFAULT_ENDPOINT = 'https://api.mindmatch.ai
|
7
|
+
DEFAULT_ENDPOINT = 'https://api.mindmatch.ai'
|
8
|
+
PATH = '/graphql'
|
8
9
|
|
9
10
|
def initialize(token:, endpoint: DEFAULT_ENDPOINT)
|
10
|
-
@
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
})
|
11
|
+
@token = token
|
12
|
+
uri = URI(endpoint)
|
13
|
+
uri.path = PATH
|
14
|
+
@conn = Faraday.new(url: uri.to_s, headers: headers)
|
15
15
|
end
|
16
16
|
|
17
17
|
def create_match(talents:, position:)
|
@@ -68,7 +68,7 @@ module MindMatch
|
|
68
68
|
end
|
69
69
|
|
70
70
|
private
|
71
|
-
attr_reader :conn
|
71
|
+
attr_reader :conn, :token
|
72
72
|
|
73
73
|
def positionql(position)
|
74
74
|
<<-EOS.split.join(" ")
|
@@ -92,5 +92,13 @@ module MindMatch
|
|
92
92
|
}
|
93
93
|
EOS
|
94
94
|
end
|
95
|
+
|
96
|
+
def headers
|
97
|
+
{
|
98
|
+
"Authorization": "Bearer #{token}",
|
99
|
+
"Accept": "application/json",
|
100
|
+
"Content-Type": "application/json"
|
101
|
+
}
|
102
|
+
end
|
95
103
|
end
|
96
104
|
end
|
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.alpha3
|
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-
|
13
|
+
date: 2017-09-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: faraday
|