talentio-notifier 0.1.0 → 0.2.0

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: df54217a77db2ecd1a6f947a2a3de15f26a70db283d69d1194c644ffbc4c82c7
4
- data.tar.gz: a353b6d1a5c6ac07cceebea855212a40bad188502fbfdbdf998723bb0cf643c4
3
+ metadata.gz: 1a336b1af38d8f513dadbd506d1c56dda99bd06244241669714b2f6135d0ed5d
4
+ data.tar.gz: b07859f3085e5232ae36e2e4125f15a551ae07328369ee5cca13a7d70ccfe4a3
5
5
  SHA512:
6
- metadata.gz: cfff5175d7ae302a191d10efc1bcb8fa6cd49179f62d4e427506c4e0b0dddd6845647f33be40647d9856ba104f40a6b0464b110e8fdb472833402176cc17b783
7
- data.tar.gz: 43acca98a0e68f0a09efe0cf3953bca2b12e45559126d5d27c0681b824a762c24fb54732b7694b3e5217b0228231d04d365a64e5591550fbd0119aae89ec2415
6
+ metadata.gz: 22291b73914d53966bcac589bd5cf3a77e42b7efac34023d532430c0db92670988890c8c423b70fd99163ce55a8eb320236b5728ef9b65aa532577d987bf2467
7
+ data.tar.gz: 60359000cb941b894ce94c45a8275bd87eb345aaba17cc02ec67a2d07b077c193c64a9b8ae8f2fda3d147dbef527f3f932fb05c745e8d365e4e0c739ec2cc8a6
data/Makefile CHANGED
@@ -5,4 +5,3 @@ build:
5
5
  push: build
6
6
  docker tag talentio-notifier pyama/talentio-notifier:$(VERSION)
7
7
  docker push pyama/talentio-notifier:$(VERSION)
8
- sed -i 's/talentio-notifier:*/talentio-notifier:$(VERSION)/g' manifests/cron.yml
data/README.md CHANGED
@@ -39,6 +39,8 @@ talentioのAPIキーを指定してください。
39
39
  インタビュー通知のcron間隔に合わせて秒で指定してください。デフォルトで600(10分)です。
40
40
  - TELENTIO_SLACK_CHANNEL
41
41
  トークで通知したことを通知するチャンネル指定です。デフォルトは `#recruiting` です。
42
+ - TALENTIO_TEST
43
+ 何かしらの値を設定するとSlack通知を行わずに、標準出力を行います。動作確認したいときにご利用ください。
42
44
 
43
45
  ## Contributing
44
46
 
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "talentio-notifier"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'talentio'
4
+ require 'talentio/cli'
5
+
6
+ Talentio::CLI.start(ARGV)
@@ -46,6 +46,25 @@ module Talentio
46
46
  conf.token = ENV['SLACK_APIKEY']
47
47
  end
48
48
  @client = ::Slack::Web::Client.new
49
+ @client.chat_postMessage(
50
+ channel: "U03Q3PPSX",
51
+ as_user: false,
52
+ text: "2020/07/27 15:00からの面接よろしくお願いします!!1",
53
+ attachments: [{
54
+ fields: [
55
+ {
56
+ title: '区分',
57
+ value: "圧倒的P山採用"
58
+ },
59
+ {
60
+ title: 'url',
61
+ value: "dummy"
62
+ }
63
+ ],
64
+ color: 'warning'
65
+ }]
66
+ )
67
+
49
68
  if ENV['TALENTIO_TEST']
50
69
  @client.define_singleton_method(:chat_postMessage) do |m|
51
70
  puts m
@@ -1,5 +1,5 @@
1
1
  module Talentio
2
2
  module Notifier
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -47,7 +47,7 @@ spec:
47
47
  image: pyama/talentio-notifier:0.0.1
48
48
  env:
49
49
  - name: TALENTIO_SKIP_STAGE
50
- value: 3
50
+ value: "3"
51
51
  - name: LANG
52
52
  value: C.UTF-8
53
53
  - name: TALENTIO_APIKEY
@@ -19,7 +19,6 @@ Gem::Specification.new do |spec|
19
19
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
20
20
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
21
  end
22
- spec.bindir = "bin"
23
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
23
  spec.require_paths = ["lib"]
25
24
  spec.add_dependency "thor"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: talentio-notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - pyama86
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-22 00:00:00.000000000 Z
11
+ date: 2020-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -83,7 +83,8 @@ dependencies:
83
83
  description: nofity command for talentio.
84
84
  email:
85
85
  - pyama@pepabo.com
86
- executables: []
86
+ executables:
87
+ - talentio-notifier
87
88
  extensions: []
88
89
  extra_rdoc_files: []
89
90
  files:
@@ -97,7 +98,10 @@ files:
97
98
  - Makefile
98
99
  - README.md
99
100
  - Rakefile
101
+ - bin/console
102
+ - bin/setup
100
103
  - bin/talentio-notifier
104
+ - exe/talentio-notifier
101
105
  - lib/talentio.rb
102
106
  - lib/talentio/cli.rb
103
107
  - lib/talentio/client.rb