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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1931dd5c91dc9b27769a94bd81486fa30701b1e69ac3a5b927e3718e780ab4dc
4
- data.tar.gz: 92759f5c90effb4668698593a9c32e28f1a2d8620ef20068441e89f89b03f85e
3
+ metadata.gz: 7a18290be57a4607264892bc00b68b3828152dd004349dd9994178ab81ecec40
4
+ data.tar.gz: 76f3ce4aff84b991607246d88450330984cd1c40a08184abc19eafab6a295e4d
5
5
  SHA512:
6
- metadata.gz: 543e199083ecfd05a3408eac0d99fd59fb39c4befb06d9d4acc70aba43eef06185b946c176a04355e6779fbce735708f71967867972d048a8a046182d18e03bd
7
- data.tar.gz: 6ce0750daa0bc6e14e6ea94abdecdc88057dd16ac8037dd79cf4d76b258099ae9c8613991038c1e5a7adcfaf78ce391226a1be9b52922e0e3e9818035552f145
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-10-30 04:14:18 UTC using RuboCop version 1.22.3.
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: 42
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: 40
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]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SlackMarkdown
4
- VERSION = '0.4.0'
4
+ VERSION = '0.4.1'
5
5
  end
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.0
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-10-30 00:00:00.000000000 Z
11
+ date: 2021-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: escape_utils