slack-notification 0.1.12 → 0.1.14

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: a8b1371494e14956ade076e911beeb23e5c94b619589968917756f384014c2f4
4
- data.tar.gz: eb530e03a812cce743de9c84d862c96740286573efbb846892117027ad791769
3
+ metadata.gz: 889b03ac2ed8632896b2617c859356df9c7e06401595f9c27367ba4e4c292f60
4
+ data.tar.gz: 9b0bc83ca4f1af1d977e36a7f01847e2482084b74585cfdd551a819ada147ae7
5
5
  SHA512:
6
- metadata.gz: 5e8a5b83459e5756b803e5487760421504a39541e633997462c4a9608e3021011e621fc42aff04c5b9f1b12c66e76f42783ef24795235c0e1a4fecb12a1b665d
7
- data.tar.gz: 01233527ee0b494d57306312bd6b90d44282b80f19be7e1ac538f5ed1efce7dfecf0afa5f950abaea0b2c0f0cec010516c365f31bf8cb31b5ade08a231b58267
6
+ metadata.gz: 4ba7138fdbf789eadb487b04219493f3ec83b93e4a75d51faba9641efa394ee2a800ed6b57acf3bf0192160b2db50a8b36a5579e1530278dae91829f6c273d21
7
+ data.tar.gz: 732491e408d36cc0660669c38fd5be762722ca431d892ba5cc60a3b446f8c556ab3cece75e3ac69c918df452f3a50caadeb1c72264481c91e362e86fb85a6612
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- slack-notification (0.1.12)
4
+ slack-notification (0.1.14)
5
5
  slack-notifier (~> 2.3)
6
6
 
7
7
  GEM
@@ -16,7 +16,7 @@ GEM
16
16
  rainbow (3.0.0)
17
17
  rake (12.3.3)
18
18
  regexp_parser (2.0.3)
19
- rexml (3.2.5)
19
+ rexml (3.3.9)
20
20
  rspec (3.9.0)
21
21
  rspec-core (~> 3.9.0)
22
22
  rspec-expectations (~> 3.9.0)
@@ -13,6 +13,7 @@ class SlackNotification
13
13
  @dryrun = options[:dryrun] || (defined?(Rails) && Rails.env.test?)
14
14
  @fields = validated_fields(options[:fields])
15
15
  @blocks = options[:blocks]
16
+ @footer = options[:footer]
16
17
  end
17
18
 
18
19
  def data
@@ -25,8 +26,10 @@ class SlackNotification
25
26
  @data
26
27
  end
27
28
 
28
- def notify!
29
- @dryrun ? data : notifier.post(attachments: [data], blocks: @blocks)
29
+ def notify!(only_blocks: false)
30
+ options = { blocks: @blocks }
31
+ options.merge!(attachments: [data]) unless only_blocks
32
+ @dryrun ? data : notifier.post(**options)
30
33
  end
31
34
 
32
35
  private
@@ -5,8 +5,8 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'slack-notification'
8
- spec.version = '0.1.12'
9
- spec.date = '2023-03-13'
8
+ spec.version = '0.1.14'
9
+ spec.date = '2025-03-05'
10
10
  spec.authors = ['Julian Fiander']
11
11
  spec.email = ['julian@fiander.one']
12
12
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slack-notification
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-13 00:00:00.000000000 Z
11
+ date: 2025-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler