waylon-slack 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.roxanne.yml +4 -0
- data/.rubocop.yml +1 -1
- data/.ruby-version +1 -1
- data/Gemfile.lock +39 -41
- data/lib/waylon/senses/slack.rb +5 -5
- data/lib/waylon/slack/version.rb +1 -1
- data/lib/waylon/slack.rb +1 -1
- data/scripts/release.sh +7 -0
- data/waylon-slack.gemspec +1 -1
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 289f72080f0aa389679806018c4dd27ef23000b514e1c8641c50a7949cecf88d
|
4
|
+
data.tar.gz: f450aa3cc618f334a027cd04b0dd5c95baf690522a0da38c80199c928b17b1a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 990149e52cdfcd179ef20c2df4b90c8a1b5498f141bc6582c87e132e594d765dadd91770848a0d4608933014b80478f827b137e0e5aa144019eb90a81ff97dd1
|
7
|
+
data.tar.gz: e964f0f201916edb7bd56119740a0b33a194d32e086afa9706a28598d6b7bc5623c384b57d1d97a52a98f6ae2481f1fef5e9134cf81b5cfd6de2bf6301714b4c
|
data/.roxanne.yml
CHANGED
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.
|
1
|
+
3.1.2
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
waylon-slack (0.1.
|
4
|
+
waylon-slack (0.1.1)
|
5
5
|
slack-ruby-client (~> 1.0)
|
6
6
|
waylon-core (~> 0.1)
|
7
7
|
|
@@ -11,10 +11,10 @@ GEM
|
|
11
11
|
addressable (2.8.0)
|
12
12
|
public_suffix (>= 2.0.2, < 5.0)
|
13
13
|
ast (2.4.2)
|
14
|
-
concurrent-ruby (1.1.
|
14
|
+
concurrent-ruby (1.1.10)
|
15
15
|
diff-lcs (1.5.0)
|
16
16
|
docile (1.4.0)
|
17
|
-
faraday (1.
|
17
|
+
faraday (1.10.0)
|
18
18
|
faraday-em_http (~> 1.0)
|
19
19
|
faraday-em_synchrony (~> 1.0)
|
20
20
|
faraday-excon (~> 1.1)
|
@@ -41,65 +41,64 @@ GEM
|
|
41
41
|
faraday (~> 1.0)
|
42
42
|
gli (2.21.0)
|
43
43
|
hashie (5.0.0)
|
44
|
-
i18n (1.
|
44
|
+
i18n (1.10.0)
|
45
45
|
concurrent-ruby (~> 1.0)
|
46
|
-
json (2.6.
|
47
|
-
moneta (1.
|
46
|
+
json (2.6.2)
|
47
|
+
moneta (1.5.1)
|
48
48
|
mono_logger (1.1.1)
|
49
49
|
multi_json (1.15.0)
|
50
|
-
multipart-post (2.
|
50
|
+
multipart-post (2.2.0)
|
51
51
|
mustermann (1.1.1)
|
52
52
|
ruby2_keywords (~> 0.0.1)
|
53
53
|
nio4r (2.5.8)
|
54
|
-
parallel (1.
|
55
|
-
parser (3.1.
|
54
|
+
parallel (1.22.1)
|
55
|
+
parser (3.1.2.0)
|
56
56
|
ast (~> 2.4.1)
|
57
|
-
public_suffix (4.0.
|
58
|
-
puma (5.6.
|
57
|
+
public_suffix (4.0.7)
|
58
|
+
puma (5.6.4)
|
59
59
|
nio4r (~> 2.0)
|
60
|
-
rack (2.2.3)
|
61
|
-
rack-protection (2.
|
60
|
+
rack (2.2.3.1)
|
61
|
+
rack-protection (2.2.0)
|
62
62
|
rack
|
63
63
|
rainbow (3.1.1)
|
64
64
|
rake (13.0.6)
|
65
|
-
redis (4.
|
66
|
-
redis-namespace (1.8.
|
65
|
+
redis (4.6.0)
|
66
|
+
redis-namespace (1.8.2)
|
67
67
|
redis (>= 3.0.4)
|
68
|
-
regexp_parser (2.
|
69
|
-
resque (2.2.
|
68
|
+
regexp_parser (2.4.0)
|
69
|
+
resque (2.2.1)
|
70
70
|
mono_logger (~> 1.0)
|
71
71
|
multi_json (~> 1.0)
|
72
72
|
redis-namespace (~> 1.6)
|
73
73
|
sinatra (>= 0.9.2)
|
74
|
-
vegas (~> 0.1.2)
|
75
74
|
rexml (3.2.5)
|
76
|
-
rspec (3.
|
77
|
-
rspec-core (~> 3.
|
78
|
-
rspec-expectations (~> 3.
|
79
|
-
rspec-mocks (~> 3.
|
80
|
-
rspec-core (3.
|
81
|
-
rspec-support (~> 3.
|
82
|
-
rspec-expectations (3.
|
75
|
+
rspec (3.11.0)
|
76
|
+
rspec-core (~> 3.11.0)
|
77
|
+
rspec-expectations (~> 3.11.0)
|
78
|
+
rspec-mocks (~> 3.11.0)
|
79
|
+
rspec-core (3.11.0)
|
80
|
+
rspec-support (~> 3.11.0)
|
81
|
+
rspec-expectations (3.11.0)
|
83
82
|
diff-lcs (>= 1.2.0, < 2.0)
|
84
|
-
rspec-support (~> 3.
|
85
|
-
rspec-mocks (3.
|
83
|
+
rspec-support (~> 3.11.0)
|
84
|
+
rspec-mocks (3.11.1)
|
86
85
|
diff-lcs (>= 1.2.0, < 2.0)
|
87
|
-
rspec-support (~> 3.
|
88
|
-
rspec-support (3.
|
89
|
-
rubocop (1.
|
86
|
+
rspec-support (~> 3.11.0)
|
87
|
+
rspec-support (3.11.0)
|
88
|
+
rubocop (1.29.1)
|
90
89
|
parallel (~> 1.10)
|
91
90
|
parser (>= 3.1.0.0)
|
92
91
|
rainbow (>= 2.2.2, < 4.0)
|
93
92
|
regexp_parser (>= 1.8, < 3.0)
|
94
|
-
rexml
|
95
|
-
rubocop-ast (>= 1.
|
93
|
+
rexml (>= 3.2.5, < 4.0)
|
94
|
+
rubocop-ast (>= 1.17.0, < 2.0)
|
96
95
|
ruby-progressbar (~> 1.7)
|
97
96
|
unicode-display_width (>= 1.4.0, < 3.0)
|
98
|
-
rubocop-ast (1.
|
99
|
-
parser (>= 3.
|
97
|
+
rubocop-ast (1.18.0)
|
98
|
+
parser (>= 3.1.1.0)
|
100
99
|
rubocop-rake (0.6.0)
|
101
100
|
rubocop (~> 1.0)
|
102
|
-
rubocop-rspec (2.
|
101
|
+
rubocop-rspec (2.11.1)
|
103
102
|
rubocop (~> 1.19)
|
104
103
|
ruby-progressbar (1.11.0)
|
105
104
|
ruby2_keywords (0.0.5)
|
@@ -108,11 +107,11 @@ GEM
|
|
108
107
|
simplecov-html (~> 0.11)
|
109
108
|
simplecov_json_formatter (~> 0.1)
|
110
109
|
simplecov-html (0.12.3)
|
111
|
-
simplecov_json_formatter (0.1.
|
112
|
-
sinatra (2.
|
110
|
+
simplecov_json_formatter (0.1.4)
|
111
|
+
sinatra (2.2.0)
|
113
112
|
mustermann (~> 1.0)
|
114
113
|
rack (~> 2.2)
|
115
|
-
rack-protection (= 2.
|
114
|
+
rack-protection (= 2.2.0)
|
116
115
|
tilt (~> 2.0)
|
117
116
|
slack-ruby-client (1.0.0)
|
118
117
|
faraday (>= 1.0)
|
@@ -122,9 +121,7 @@ GEM
|
|
122
121
|
websocket-driver
|
123
122
|
tilt (2.0.10)
|
124
123
|
unicode-display_width (2.1.0)
|
125
|
-
|
126
|
-
rack (>= 1.0.0)
|
127
|
-
waylon-core (0.1.3)
|
124
|
+
waylon-core (0.1.4)
|
128
125
|
addressable (~> 2.8)
|
129
126
|
faraday (~> 1.8)
|
130
127
|
i18n (~> 1.8)
|
@@ -141,6 +138,7 @@ GEM
|
|
141
138
|
|
142
139
|
PLATFORMS
|
143
140
|
arm64-darwin-21
|
141
|
+
x86_64-linux
|
144
142
|
|
145
143
|
DEPENDENCIES
|
146
144
|
bundler (~> 2.3)
|
data/lib/waylon/senses/slack.rb
CHANGED
@@ -39,7 +39,7 @@ module Waylon
|
|
39
39
|
# @return [void]
|
40
40
|
def self.private_reply(request, text)
|
41
41
|
message = message_from_request(request)
|
42
|
-
message.author.dm(text:
|
42
|
+
message.author.dm(text:)
|
43
43
|
end
|
44
44
|
|
45
45
|
# Provides a simple means to privately reply to the author of a Message using Blocks
|
@@ -48,7 +48,7 @@ module Waylon
|
|
48
48
|
# @return [void]
|
49
49
|
def self.private_reply_with_blocks(request, blocks)
|
50
50
|
message = message_from_request(request)
|
51
|
-
message.author.dm(blocks:
|
51
|
+
message.author.dm(blocks:)
|
52
52
|
end
|
53
53
|
|
54
54
|
# Allows reacting to a request via the Sense's own mechanism
|
@@ -66,7 +66,7 @@ module Waylon
|
|
66
66
|
# @return [void]
|
67
67
|
def self.reply(request, text)
|
68
68
|
message = message_from_request(request)
|
69
|
-
message.channel.post(text:
|
69
|
+
message.channel.post(text:)
|
70
70
|
end
|
71
71
|
|
72
72
|
# Reply to a Message in a Channel with some blocks
|
@@ -75,7 +75,7 @@ module Waylon
|
|
75
75
|
# @return [void]
|
76
76
|
def self.reply_with_blocks(request, blocks)
|
77
77
|
message = message_from_request(request)
|
78
|
-
message.channel.post(blocks:
|
78
|
+
message.channel.post(blocks:)
|
79
79
|
end
|
80
80
|
|
81
81
|
# Executed by Resque, this is how this Sense determines what to do with an incoming request
|
@@ -106,7 +106,7 @@ module Waylon
|
|
106
106
|
# @return [void]
|
107
107
|
def self.threaded_reply(request, text)
|
108
108
|
message = message_from_request(request)
|
109
|
-
message.channel.post(text
|
109
|
+
message.channel.post(text:, thread: message.thread_parent)
|
110
110
|
end
|
111
111
|
|
112
112
|
# Required by the Waylon framework, this provides the Sense's own Message class
|
data/lib/waylon/slack/version.rb
CHANGED
data/lib/waylon/slack.rb
CHANGED
data/scripts/release.sh
ADDED
data/waylon-slack.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.description = "Full Slack integration for the Waylon Bot Framework"
|
13
13
|
spec.homepage = "https://github.com/jgnagy/waylon-slack"
|
14
14
|
spec.license = "MIT"
|
15
|
-
spec.required_ruby_version = "~> 3.
|
15
|
+
spec.required_ruby_version = "~> 3.1"
|
16
16
|
|
17
17
|
spec.metadata["homepage_uri"] = spec.homepage
|
18
18
|
spec.metadata["source_code_uri"] = "https://github.com/jgnagy/waylon-slack"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: waylon-slack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Gnagy
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slack-ruby-client
|
@@ -183,6 +183,7 @@ files:
|
|
183
183
|
- lib/waylon/slack/user.rb
|
184
184
|
- lib/waylon/slack/version.rb
|
185
185
|
- lib/waylon/webhooks/slack.rb
|
186
|
+
- scripts/release.sh
|
186
187
|
- scripts/test.sh
|
187
188
|
- waylon-slack.gemspec
|
188
189
|
homepage: https://github.com/jgnagy/waylon-slack
|
@@ -192,7 +193,7 @@ metadata:
|
|
192
193
|
homepage_uri: https://github.com/jgnagy/waylon-slack
|
193
194
|
source_code_uri: https://github.com/jgnagy/waylon-slack
|
194
195
|
changelog_uri: https://github.com/jgnagy/waylon-slack/blob/main/CHANGELOG.md
|
195
|
-
post_install_message:
|
196
|
+
post_install_message:
|
196
197
|
rdoc_options: []
|
197
198
|
require_paths:
|
198
199
|
- lib
|
@@ -200,15 +201,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
200
201
|
requirements:
|
201
202
|
- - "~>"
|
202
203
|
- !ruby/object:Gem::Version
|
203
|
-
version: '3.
|
204
|
+
version: '3.1'
|
204
205
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
205
206
|
requirements:
|
206
207
|
- - ">="
|
207
208
|
- !ruby/object:Gem::Version
|
208
209
|
version: '0'
|
209
210
|
requirements: []
|
210
|
-
rubygems_version: 3.3.
|
211
|
-
signing_key:
|
211
|
+
rubygems_version: 3.3.7
|
212
|
+
signing_key:
|
212
213
|
specification_version: 4
|
213
214
|
summary: Slack Sense for the Waylon Bot Framework
|
214
215
|
test_files: []
|