talentio-notifier 0.3.8 → 0.3.9
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 +4 -4
- data/.dockerignore +8 -0
- data/.gitignore +1 -1
- data/Dockerfile +3 -2
- data/Gemfile.lock +15 -24
- data/Makefile +7 -3
- data/lib/talentio/notifier/slack.rb +1 -1
- data/lib/talentio/notifier/version.rb +1 -1
- data/manifests/cron.yml +4 -4
- data/talentio-notifier.gemspec +0 -3
- metadata +2 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b94c484abd1666cc38de9e4dc38a5c0791f7e11aa3602cc2c5d4f7e964acf0a4
|
|
4
|
+
data.tar.gz: 58e9a36d375150e7918d4d59176941eccf33b159e4fc83a1a1e8e8158302f763
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a56759547ff841ba22999c5fe1b3bf95ffe597c1095bae3253f9ff3e7304e7dbc2e0c893e7e71baea6d3084aa313e4e78e42ef4815c6c81dbcafe16f47269894
|
|
7
|
+
data.tar.gz: 7daaa1bca262d48018edd0f8eb426881df0fb1b4597ef89788e6d28ff810739ac409e4828c72ae65a6ceb12884c4c68f24a123514392b3b5a55bdd00b9505feb
|
data/.dockerignore
ADDED
data/.gitignore
CHANGED
data/Dockerfile
CHANGED
|
@@ -9,5 +9,6 @@ RUN apt update -qqy && apt upgrade -qqy && \
|
|
|
9
9
|
RUN useradd talentio && \
|
|
10
10
|
chown talentio /talentio-notifier
|
|
11
11
|
USER talentio
|
|
12
|
-
|
|
13
|
-
RUN
|
|
12
|
+
COPY . /talentio-notifier
|
|
13
|
+
RUN bundle install
|
|
14
|
+
CMD ["bundle", "exec", "bin/talentio-notifier"]
|
data/Gemfile.lock
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
talentio-notifier (0.3.
|
|
4
|
+
talentio-notifier (0.3.8)
|
|
5
5
|
activesupport
|
|
6
6
|
faraday
|
|
7
7
|
holiday_jp
|
|
8
|
-
slack-api
|
|
9
8
|
slack-ruby-client
|
|
10
9
|
thor
|
|
11
10
|
|
|
@@ -19,21 +18,21 @@ GEM
|
|
|
19
18
|
tzinfo (~> 2.0)
|
|
20
19
|
concurrent-ruby (1.2.2)
|
|
21
20
|
diff-lcs (1.5.0)
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
faraday (
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
faraday (2.7.9)
|
|
22
|
+
faraday-net_http (>= 2.0, < 3.1)
|
|
23
|
+
ruby2_keywords (>= 0.0.4)
|
|
24
|
+
faraday-mashify (0.1.1)
|
|
25
|
+
faraday (~> 2.0)
|
|
26
|
+
hashie
|
|
27
|
+
faraday-multipart (1.0.4)
|
|
28
|
+
multipart-post (~> 2)
|
|
29
|
+
faraday-net_http (3.0.2)
|
|
30
30
|
gli (2.21.0)
|
|
31
31
|
hashie (5.0.0)
|
|
32
32
|
holiday_jp (0.8.1)
|
|
33
33
|
i18n (1.14.1)
|
|
34
34
|
concurrent-ruby (~> 1.0)
|
|
35
35
|
minitest (5.18.1)
|
|
36
|
-
multi_json (1.15.0)
|
|
37
36
|
multipart-post (2.3.0)
|
|
38
37
|
rake (12.3.3)
|
|
39
38
|
rspec (3.12.0)
|
|
@@ -49,24 +48,16 @@ GEM
|
|
|
49
48
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
50
49
|
rspec-support (~> 3.12.0)
|
|
51
50
|
rspec-support (3.12.1)
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
slack-ruby-client (0.14.6)
|
|
58
|
-
activesupport
|
|
59
|
-
faraday (>= 0.9)
|
|
60
|
-
faraday_middleware
|
|
51
|
+
ruby2_keywords (0.0.5)
|
|
52
|
+
slack-ruby-client (2.1.0)
|
|
53
|
+
faraday (>= 2.0)
|
|
54
|
+
faraday-mashify
|
|
55
|
+
faraday-multipart
|
|
61
56
|
gli
|
|
62
57
|
hashie
|
|
63
|
-
websocket-driver
|
|
64
58
|
thor (1.2.2)
|
|
65
59
|
tzinfo (2.0.6)
|
|
66
60
|
concurrent-ruby (~> 1.0)
|
|
67
|
-
websocket-driver (0.7.5)
|
|
68
|
-
websocket-extensions (>= 0.1.0)
|
|
69
|
-
websocket-extensions (0.1.5)
|
|
70
61
|
|
|
71
62
|
PLATFORMS
|
|
72
63
|
ruby
|
data/Makefile
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
VERSION=$(shell
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
VERSION=$(shell cat version)
|
|
2
|
+
version:
|
|
3
|
+
@git describe --tags --always | sed -e 's/v//g' > version
|
|
4
|
+
build: version
|
|
5
|
+
docker build --platform linux/amd64 --build-arg VERSION=$(VERSION) -t talentio-notifier .
|
|
4
6
|
|
|
5
7
|
push: build
|
|
6
8
|
docker tag talentio-notifier pyama/talentio-notifier:$(VERSION)
|
|
9
|
+
docker tag talentio-notifier pyama/talentio-notifier:latest
|
|
7
10
|
docker push pyama/talentio-notifier:$(VERSION)
|
|
11
|
+
docker push pyama/talentio-notifier:latest
|
|
@@ -18,7 +18,7 @@ module Talentio
|
|
|
18
18
|
def mention_id_from_evaluations(evaluations)
|
|
19
19
|
members.map do |sm|
|
|
20
20
|
evaluations.select { |e| !e['finished'] }.map do |m|
|
|
21
|
-
next unless sm['email']
|
|
21
|
+
next unless sm['email'] != m['email']
|
|
22
22
|
|
|
23
23
|
{ id: "@#{sm['id']}",
|
|
24
24
|
name: sm['name'] }
|
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:
|
|
20
|
+
image: pyama/talentio-notifier:latest
|
|
21
21
|
imagePullPolicy: Always
|
|
22
22
|
env:
|
|
23
23
|
- name: LANG
|
|
@@ -35,7 +35,7 @@ spec:
|
|
|
35
35
|
args:
|
|
36
36
|
- "/bin/bash"
|
|
37
37
|
- "-c"
|
|
38
|
-
- "holiday_jp-go || talentio-notifier remind-result"
|
|
38
|
+
- "holiday_jp-go || bundle exec bin/talentio-notifier remind-result"
|
|
39
39
|
restartPolicy: Never
|
|
40
40
|
---
|
|
41
41
|
apiVersion: batch/v1
|
|
@@ -50,7 +50,7 @@ spec:
|
|
|
50
50
|
spec:
|
|
51
51
|
containers:
|
|
52
52
|
- name: talentio-notifier
|
|
53
|
-
image: pyama/talentio-notifier:
|
|
53
|
+
image: pyama/talentio-notifier:latest
|
|
54
54
|
resources:
|
|
55
55
|
requests:
|
|
56
56
|
cpu: 50m
|
|
@@ -76,5 +76,5 @@ spec:
|
|
|
76
76
|
args:
|
|
77
77
|
- "/bin/bash"
|
|
78
78
|
- "-c"
|
|
79
|
-
- "holiday_jp-go || talentio-notifier remind-interview"
|
|
79
|
+
- "holiday_jp-go || bundle exec bin/talentio-notifier remind-interview"
|
|
80
80
|
restartPolicy: Never
|
data/talentio-notifier.gemspec
CHANGED
|
@@ -14,8 +14,6 @@ Gem::Specification.new do |spec|
|
|
|
14
14
|
|
|
15
15
|
spec.metadata['homepage_uri'] = spec.homepage
|
|
16
16
|
|
|
17
|
-
# Specify which files should be added to the gem when it is released.
|
|
18
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
19
17
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
|
20
18
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
21
19
|
end
|
|
@@ -24,7 +22,6 @@ Gem::Specification.new do |spec|
|
|
|
24
22
|
spec.add_dependency 'activesupport'
|
|
25
23
|
spec.add_dependency 'faraday'
|
|
26
24
|
spec.add_dependency 'holiday_jp'
|
|
27
|
-
spec.add_dependency 'slack-api'
|
|
28
25
|
spec.add_dependency 'slack-ruby-client'
|
|
29
26
|
spec.add_dependency 'thor'
|
|
30
27
|
end
|
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.
|
|
4
|
+
version: 0.3.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- pyama86
|
|
@@ -52,20 +52,6 @@ dependencies:
|
|
|
52
52
|
- - ">="
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '0'
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: slack-api
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - ">="
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: '0'
|
|
62
|
-
type: :runtime
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - ">="
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: '0'
|
|
69
55
|
- !ruby/object:Gem::Dependency
|
|
70
56
|
name: slack-ruby-client
|
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -102,6 +88,7 @@ executables:
|
|
|
102
88
|
extensions: []
|
|
103
89
|
extra_rdoc_files: []
|
|
104
90
|
files:
|
|
91
|
+
- ".dockerignore"
|
|
105
92
|
- ".gitignore"
|
|
106
93
|
- ".rspec"
|
|
107
94
|
- ".travis.yml"
|