slack-smart-bot 1.12.0 → 1.12.1

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: 1b862b6537e267ad0582f3ca4e60eefa63ef9513a6e2b4d0bf0dd05ac5689ef4
4
- data.tar.gz: 1f08183c3eb4e33f63f1b1b4a1fc1e078ceb4835655d03435eca27aa2491f749
3
+ metadata.gz: cc9fd817bfe7cb103d2f7e36ff695f6fc3784773ad6ad6f2b09b3a23dc5ac9a5
4
+ data.tar.gz: 17a672f5844a78dd8542690bb84fc154d85f9aaca9e9cb4e1973f64abcc1a1f8
5
5
  SHA512:
6
- metadata.gz: 286cc08cac4c0f4cc7dbb32583a2d1f27d7b41bfa2e53330a407850ed80ce993ec63c036c0b1c88a6113b4261701315bd8b2a34eac91e1a9d156eadd029e50de
7
- data.tar.gz: a7b84c3d33cb1eda1a59d2d677b091f3b7aab488824d7ee7ba62af1eaa71a2311bb9decd3f7844baedf2fc569bc9f72b9baad023d50393627d70e40c8ba7be6e
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*[^\s]+\s*\w+\s+team\s+[\w\-]+\s+[\w\-]+\s+(.+)\s*\z/im).join
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*[^\s]+\s*\w+\s+[\w\-]+\s+team\s+[\w\-]+\s+(.+)\s*\z/im).join
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.0* Released 2022-Sep-28
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.0
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-09-29 00:00:00.000000000 Z
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