slack-messenger 2.3.3 → 2.3.4

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: f07dd2e13c155464bd8d99c0cbba74ff48da2d8e84a19ccbd5026070e9c95a78
4
- data.tar.gz: 723e2b2a499ce27ab08b1d1920a20e6473802cba49232edcabc936ab5dbdd434
3
+ metadata.gz: 41159ac77b2c985abcaa10646004e458f34b0542a68c907b93fcb9bde162944e
4
+ data.tar.gz: fc6b0fbc4d3c2d6764a18b6aa06e1d8002328e1653e18e94d64656655f35df04
5
5
  SHA512:
6
- metadata.gz: db2415864731bdc11c27c691c0d7ee70d6157517234fd6c7aa426b26824198818cfddc093e89851b17efbc9cd2262decfb0b4fba5fe18692a4d2d94b7ad07929
7
- data.tar.gz: 834a3ba19a3919b8ea1faac84372077f98c5c4a8ba28ca6e6b0a3d310a80099b3184beeb16ec12b70b8690f4dea2542f79c718b82264358dadd839920f8c4c34
6
+ metadata.gz: 0af8745e8984db10f54f1fb373a6eccab3d5bf106655d5189b1281147be8a0fb0d0d1ed3b57a16c11a555f7bf5f9dbf103cfd38684c0e0bd1d4c6b0a6330a636
7
+ data.tar.gz: 129722ffe887ddc8434086ef159ed14068bd8d8045c2c3651d2d37eff25770ad3d6fca34a5939b7b82aa482f023904b00495222e3b98913a99566a50027834b2
@@ -16,7 +16,7 @@ module Slack
16
16
  attachments = wrap_array(attachments).map do |attachment|
17
17
  ["text", :text].each do |key|
18
18
  if attachment.key?(key)
19
- attachment[key] = Util::LinkFormatter.format(attachment[key], options)
19
+ attachment[key] = Util::LinkFormatter.format(attachment[key], **options)
20
20
  end
21
21
  end
22
22
 
@@ -10,7 +10,7 @@ module Slack
10
10
 
11
11
  def call payload={}
12
12
  return payload unless payload[:text]
13
- payload[:text] = Util::LinkFormatter.format(payload[:text], options)
13
+ payload[:text] = Util::LinkFormatter.format(payload[:text], **options)
14
14
 
15
15
  payload
16
16
  end
@@ -29,8 +29,8 @@ module Slack
29
29
  }x
30
30
 
31
31
  class << self
32
- def format string, opts={}
33
- LinkFormatter.new(string, opts).formatted
32
+ def format string, **opts
33
+ LinkFormatter.new(string, **opts).formatted
34
34
  end
35
35
  end
36
36
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Slack
4
4
  class Messenger
5
- VERSION = "2.3.3".freeze # rubocop:disable Style/RedundantFreeze
5
+ VERSION = "2.3.4".freeze # rubocop:disable Style/RedundantFreeze
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slack-messenger
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.3
4
+ version: 2.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Sloan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-09 00:00:00.000000000 Z
11
+ date: 2020-10-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: " A slim ruby wrapper for posting to slack webhooks "
14
14
  email:
@@ -44,7 +44,7 @@ files:
44
44
  - spec/lib/slack-messenger/util/link_formatter_spec.rb
45
45
  - spec/lib/slack-messenger_spec.rb
46
46
  - spec/spec_helper.rb
47
- homepage: http://github.com/stevenosloan/slack-messenger
47
+ homepage: https://gitlab.com/gitlab-org/slack-notifier
48
48
  licenses:
49
49
  - MIT
50
50
  metadata: {}
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  - !ruby/object:Gem::Version
64
64
  version: '0'
65
65
  requirements: []
66
- rubygems_version: 3.0.3
66
+ rubygems_version: 3.1.2
67
67
  signing_key:
68
68
  specification_version: 4
69
69
  summary: A slim ruby wrapper for posting to slack webhooks