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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b415b47ad9b4f9b8537c5e7b1f2fd2b67c71881
4
- data.tar.gz: 38472d085b311ecf000a1661fe3e935a6696bb0f
3
+ metadata.gz: 2930aeb492a72c4c004d342094676f63a9e8a1f9
4
+ data.tar.gz: 0d54baaba50d45f73d5f546cc07e9a4798a59e09
5
5
  SHA512:
6
- metadata.gz: 9fa0b1ced73e87c192131a06623268591bb68904405677305badbd32f0a90fd9ad2b8df95c7c01f952a21e380489574baecdf0d42b2ffb363886406603773449
7
- data.tar.gz: 073aae65c3f49fd11f63e83c089ec52ce54b7f944659c6f2b32afd84c2d4309bcf92887d5a87a296f6ca15b36c195ba4793711a93b15402a55679829ca840477
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
- - 2.3.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
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2017 Hugo Duksis
3
+ Copyright (c) 2017 MindMatch GmbH
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -4,14 +4,14 @@ require 'json'
4
4
  module MindMatch
5
5
  class Client
6
6
 
7
- DEFAULT_ENDPOINT = 'https://api.mindmatch.ai/graphql'
7
+ DEFAULT_ENDPOINT = 'https://api.mindmatch.ai'
8
+ PATH = '/graphql'
8
9
 
9
10
  def initialize(token:, endpoint: DEFAULT_ENDPOINT)
10
- @conn = Faraday.new(:url => endpoint, :headers => {
11
- "Authorization": "Bearer #{token}",
12
- "Accept": "application/json",
13
- "Content-Type": "application/json"
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
@@ -1,3 +1,3 @@
1
1
  module MindMatch
2
- VERSION = "0.0.1-alpha2"
2
+ VERSION = "0.0.1-alpha3"
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.alpha2
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-20 00:00:00.000000000 Z
13
+ date: 2017-09-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday