talentio-notifier 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Makefile +0 -1
- data/README.md +2 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/exe/talentio-notifier +6 -0
- data/lib/talentio/notifier/slack.rb +19 -0
- data/lib/talentio/notifier/version.rb +1 -1
- data/manifests/cron.yml +1 -1
- data/talentio-notifier.gemspec +0 -1
- metadata +7 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a336b1af38d8f513dadbd506d1c56dda99bd06244241669714b2f6135d0ed5d
|
4
|
+
data.tar.gz: b07859f3085e5232ae36e2e4125f15a551ae07328369ee5cca13a7d70ccfe4a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22291b73914d53966bcac589bd5cf3a77e42b7efac34023d532430c0db92670988890c8c423b70fd99163ce55a8eb320236b5728ef9b65aa532577d987bf2467
|
7
|
+
data.tar.gz: 60359000cb941b894ce94c45a8275bd87eb345aaba17cc02ec67a2d07b077c193c64a9b8ae8f2fda3d147dbef527f3f932fb05c745e8d365e4e0c739ec2cc8a6
|
data/Makefile
CHANGED
data/README.md
CHANGED
data/bin/console
ADDED
@@ -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
|
data/bin/setup
ADDED
@@ -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
|
data/manifests/cron.yml
CHANGED
data/talentio-notifier.gemspec
CHANGED
@@ -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.
|
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-
|
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
|