talentio-notifier 0.3.7 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a5e1c9678d11c46667ecbeb541795d7b39c09d2f33822634223633fd709b4f9
4
- data.tar.gz: a33a6fb4146bc5d8103adef986c60c75c563902a7a61c9e9979af7f69b159ae4
3
+ metadata.gz: 5acc596f2e9d1f210dc559150c7c4b8c5ed4feb4461e6c5e0a277ffb61c2c3be
4
+ data.tar.gz: 32f61882bab6fa741ca9e5b03fa173f4ea0e9f58dc2bb3245515310288ba9bd8
5
5
  SHA512:
6
- metadata.gz: dec6ec6e1c8a7149913f1436f0f525dea823331d5e1ad5b8c805a46fe035ed910ef8e7e4979d9ff5faeb8b9f3c9d9ec01356514e3616527c339ac2612e7f40eb
7
- data.tar.gz: 44ec474b3d992fd6014878c36f588abe1b0bd9427bfe2e66a5f58705c827c682cd650022c43de10940ac9ffc4b1648f25fb7e279d6caada8c7c2e0cd3b1f64a0
6
+ metadata.gz: d20ee29a72d85b84e3cfc03cc0f2da662d492ee79781cc442f029b6d120f6fcbf35665addb32b48317d7ecbcf142603c4708cb4e8448987e40870a1d6566c214
7
+ data.tar.gz: b509cbb924fc0d54dce6010e03e5a9ef9bfc1e2ec213a9cc7c5d56dd21714315e712db498ba6789e8d254e03952b9dd6974be16bacb17c57266b75736d831a46
data/Dockerfile CHANGED
@@ -10,4 +10,4 @@ RUN useradd talentio && \
10
10
  chown talentio /talentio-notifier
11
11
  USER talentio
12
12
 
13
- RUN gem install talentio-notifier -v "0.3.6"
13
+ RUN gem install talentio-notifier -v "0.3.7"
data/Makefile CHANGED
@@ -1,4 +1,4 @@
1
- VERSION=0.3.6
1
+ VERSION=$(shell git describe --tags --always --dirty)
2
2
  build:
3
3
  docker build --platform linux/amd64 -t talentio-notifier .
4
4
 
@@ -2,7 +2,7 @@ require 'faraday'
2
2
  require 'uri'
3
3
  module Talentio
4
4
  class Client
5
- def candidates(id=nil)
5
+ def candidates(id = nil)
6
6
  res = client.get do |req|
7
7
  if id
8
8
  req.url "candidates/#{id}"
@@ -14,11 +14,14 @@ module Talentio
14
14
  end
15
15
 
16
16
  private
17
+
17
18
  def client
18
- @_client ||= ::Faraday.new(:url => URI.join(::Talentio.url, "/api/v1/").to_s) do |b|
19
- b.headers['Authorization'] = "Bearer #{ENV['TALENTIO_APIKEY']}"
20
- b.adapter Faraday.default_adapter
21
- end
19
+ @_client ||= ::Faraday.new(
20
+ url: URI.join(::Talentio.url, '/api/v1/').to_s,
21
+ headers: {
22
+ Authorization: "Bearer #{ENV['TALENTIO_APIKEY']}"
23
+ }
24
+ )
22
25
  end
23
26
  end
24
27
  end
@@ -1,5 +1,5 @@
1
1
  module Talentio
2
2
  module Notifier
3
- VERSION = '0.3.7'
3
+ VERSION = '0.3.8'
4
4
  end
5
5
  end
data/manifests/cron.yml CHANGED
@@ -17,7 +17,7 @@ spec:
17
17
  limits:
18
18
  cpu: 200m
19
19
  memory: 512M
20
- image: pyama/talentio-notifier:0.3.6
20
+ image: pyama/talentio-notifier:0.3.7
21
21
  imagePullPolicy: Always
22
22
  env:
23
23
  - name: LANG
@@ -50,7 +50,7 @@ spec:
50
50
  spec:
51
51
  containers:
52
52
  - name: talentio-notifier
53
- image: pyama/talentio-notifier:0.3.6
53
+ image: pyama/talentio-notifier:0.3.7
54
54
  resources:
55
55
  requests:
56
56
  cpu: 50m
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: talentio-notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - pyama86