slack_markdown 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +3 -3
- data/lib/slack_markdown/filters/convert_filter.rb +2 -0
- data/lib/slack_markdown/version.rb +1 -1
- 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: 7a18290be57a4607264892bc00b68b3828152dd004349dd9994178ab81ecec40
|
4
|
+
data.tar.gz: 76f3ce4aff84b991607246d88450330984cd1c40a08184abc19eafab6a295e4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33e3dafcebeee2b96a912cb4155c8ad583f24dbc14b4e48bf45819ee46352d8ed589d63babda58410ea503b61578ed96d5438b9d287517a66d14fc4b718397f1
|
7
|
+
data.tar.gz: bb1b0bb374a11c4416340693bb05ce548b105e3897f49fb7f2bdc47910a7d39e724cccae4da23ccbe6e0b2b9bb7471e1769bdfeaaaf7332b0f28a2e40e89a4b9
|
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on 2021-
|
3
|
+
# on 2021-11-01 14:17:02 UTC using RuboCop version 1.22.3.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
@@ -16,7 +16,7 @@ Gemspec/RequiredRubyVersion:
|
|
16
16
|
# Offense count: 1
|
17
17
|
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
|
18
18
|
Metrics/AbcSize:
|
19
|
-
Max:
|
19
|
+
Max: 43
|
20
20
|
|
21
21
|
# Offense count: 1
|
22
22
|
# Configuration parameters: IgnoredMethods.
|
@@ -26,7 +26,7 @@ Metrics/CyclomaticComplexity:
|
|
26
26
|
# Offense count: 2
|
27
27
|
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
28
28
|
Metrics/MethodLength:
|
29
|
-
Max:
|
29
|
+
Max: 42
|
30
30
|
|
31
31
|
# Offense count: 1
|
32
32
|
# Configuration parameters: IgnoredMethods.
|
@@ -32,6 +32,7 @@ module SlackMarkdown
|
|
32
32
|
when /\A@((?:U|B).+)/ # user or bot
|
33
33
|
user = context.include?(:on_slack_user_id) ? context[:on_slack_user_id].call(Regexp.last_match(1)) : nil
|
34
34
|
if user
|
35
|
+
override_text = nil
|
35
36
|
['mention', user[:url], "@#{user[:text]}"]
|
36
37
|
else
|
37
38
|
['mention', nil, data]
|
@@ -39,6 +40,7 @@ module SlackMarkdown
|
|
39
40
|
when /\A@(.+)/ # user name
|
40
41
|
user = context.include?(:on_slack_user_name) ? context[:on_slack_user_name].call(Regexp.last_match(1)) : nil
|
41
42
|
if user
|
43
|
+
override_text = nil
|
42
44
|
['mention', user[:url], "@#{user[:text]}"]
|
43
45
|
else
|
44
46
|
['mention', nil, data]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slack_markdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ru/MuckRu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: escape_utils
|