slack-smart-bot 1.12.0 → 1.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/slack/smart-bot/commands/general_bot_commands.rb +2 -3
- data/whats_new.txt +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc9fd817bfe7cb103d2f7e36ff695f6fc3784773ad6ad6f2b09b3a23dc5ac9a5
|
4
|
+
data.tar.gz: 17a672f5844a78dd8542690bb84fc154d85f9aaca9e9cb4e1973f64abcc1a1f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 501f2eeeae3ab81dc44bb468010aa08080f26adee77b3092e4f16e5a17f4d10ab611962279d7da2b0b8ecd92870cfd586206e61e232b5fa38f317221a94fbdd1
|
7
|
+
data.tar.gz: 5ed19d0cb973d1e21ab8cc9b8646153ce0c821ed47850a50d1cfe16bd26dbbfd6903253bdb50780e3d7ab01d5f943739369d536b849f21e46d991c3ea48567bd
|
@@ -10,7 +10,6 @@ def general_bot_commands(user, command, dest, files = [])
|
|
10
10
|
end
|
11
11
|
display_name = user.profile.display_name
|
12
12
|
end
|
13
|
-
|
14
13
|
case command
|
15
14
|
|
16
15
|
|
@@ -557,9 +556,9 @@ def general_bot_commands(user, command, dest, files = [])
|
|
557
556
|
type = $1.downcase.to_sym
|
558
557
|
name = $2.downcase
|
559
558
|
member_type = $3.downcase
|
560
|
-
message = Thread.current[:command_orig].to_s.gsub("\u00A0", " ").scan(/\A\s*[
|
559
|
+
message = Thread.current[:command_orig].to_s.gsub("\u00A0", " ").scan(/\A\s*[\w]+\s+\w+\s+team\s+[\w\-]+\s+(.+)\s*\z/im).join
|
561
560
|
if message == ''
|
562
|
-
message = Thread.current[:command_orig].to_s.gsub("\u00A0", " ").scan(/\A\s*[
|
561
|
+
message = Thread.current[:command_orig].to_s.gsub("\u00A0", " ").scan(/\A\s*[\w]+\s+team\s+\w+\s+[\w\-]+\s+(.+)\s*\z/im).join
|
563
562
|
end
|
564
563
|
ping_team(user, type, name, member_type, message)
|
565
564
|
|
data/whats_new.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
*Version 1.12.
|
1
|
+
*Version 1.12.1* Released 2022-Oct-06
|
2
2
|
|
3
3
|
*For General users*
|
4
4
|
- `run repl` accepts local parameters and precode to be supplied (<https://github.com/MarioRuiz/slack-smart-bot/issues/60|#60>).
|
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
*For Admin users*
|
14
14
|
- Bot Stats is now saving the time_zone of the user (<https://github.com/MarioRuiz/slack-smart-bot/issues/66|#66>)
|
15
|
-
- Announcements won't be published if no activity on channel. (<https://github.com/MarioRuiz/slack-smart-bot/issues/74|#74)
|
15
|
+
- Announcements won't be published if no activity on channel. (<https://github.com/MarioRuiz/slack-smart-bot/issues/74|#74>)
|
16
16
|
------------------------------
|
17
17
|
|
18
18
|
*Previous*: <https://github.com/MarioRuiz/slack-smart-bot/blob/b1a368c3342094e886f53d96dc4d12ecd81ab04b/whats_new.txt|1.11.0>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slack-smart-bot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.12.
|
4
|
+
version: 1.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mario Ruiz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slack-ruby-client
|