nuntius 1.3.5 → 1.3.6

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: b0dd9ea6a32009f0a48a394de12275c119aa73c5dc72a4b21f749867b89797a1
4
- data.tar.gz: 01f2c695d6487875583d1e08f239beb110bf196dcc0820c13e48b97f7a6cef19
3
+ metadata.gz: 11b30e0625c1b47a70a22803a0bdec45d92faf881b1e83ae72e00582d95b36f4
4
+ data.tar.gz: ec9251af770d4b3cd4ae58b75968bddc4e4917dc1ba01d8073eb73df56c9fe4e
5
5
  SHA512:
6
- metadata.gz: 9c46fcdb21224720c3df7cc4d6c12a45a0a76a40d188a5f44bceafe75e56e476407d8e60d87bee00688010aea0385ac7dcd0c846efa04823caf60ec5251658de
7
- data.tar.gz: 1418023705add396e631737b239e4da268e3dc81d8bea01b5679520036868fb42da0f15a9f0632c9560a2d1da49aa65cbbc76e2b97d794752e0cbf5d3dfae6b2
6
+ metadata.gz: a8dd4831dcbb7c4e8440e4a1ebf281a712959de7a47323e2590a24d71bf039c5a7c7b5899e3427832949a061f1bed2ac72b3f70acdc86b534aafe16f7d364689
7
+ data.tar.gz: 1c5e6ad9964622533dad4c91df0ff7bcdf05299bbaddcdf81efcfee6eeea02f9b50bc7ad662b174e8433e422d040dda57b8e9f627fd2c8360cc27575653735c8
@@ -43,7 +43,9 @@ module Nuntius
43
43
  private
44
44
 
45
45
  def layout_params
46
- params.require(:layout).permit(:name, :data, :metadata_yaml, attachments: [])
46
+ permitted = %i[name data metadata_yaml]
47
+ permitted += [attachments: []] if params[:layout][:attachments].compact_blank.present?
48
+ params.require(:layout).permit(permitted)
47
49
  end
48
50
  end
49
51
  end
@@ -1,6 +1,8 @@
1
1
  - if @campaign.draft?
2
2
  = sts.form_for [:admin, @campaign] do |f|
3
3
  = sts.card :nuntius_admin_campaigns, icon: 'fal fa-megaphone' do |card|
4
+ - card.with_action
5
+ = f.continue
4
6
  - card.with_action
5
7
  = f.submit
6
8
 
@@ -1,5 +1,7 @@
1
1
  = sts.form_for([:admin, @layout]) do |f|
2
2
  = sts.card :nuntius_admin_layouts, icon: 'fal fa-table-layout' do |card|
3
+ - card.with_action
4
+ = f.continue
3
5
  - card.with_action
4
6
  = f.submit
5
7
 
@@ -55,16 +55,16 @@
55
55
  .col-span-12
56
56
  = f.association :layout, collection: @layouts, include_blank: true
57
57
  .col-span-12
58
- = f.input :html, as: :editor, mode: 'text/markdown'
58
+ = f.input :html, as: :editor, mode: 'text/markdown', height: '400px'
59
59
 
60
60
  template data-toggle-target='toggleable' data-toggle-value='voice'
61
61
  .col-span-12
62
- = f.input :text, as: :editor, mode: 'text/plain'
62
+ = f.input :text, as: :editor, mode: 'text/plain', height: '400px'
63
63
  template data-toggle-target='toggleable' data-toggle-value='slack'
64
64
  .col-span-12
65
- = f.input :text, as: :editor, mode: 'text/plain'
65
+ = f.input :text, as: :editor, mode: 'text/plain', height: '400px'
66
66
  .col-span-12
67
- = f.input :payload, as: :editor, mode: 'application/yaml', hint: 'See here for more information: https://app.slack.com/block-kit-builder/'
67
+ = f.input :payload, as: :editor, mode: 'application/yaml', hint: 'See here for more information: https://app.slack.com/block-kit-builder/', height: '400px'
68
68
 
69
69
  template data-toggle-target='toggleable' data-toggle-value='sms'
70
70
  .col-span-12
@@ -72,7 +72,11 @@
72
72
  template data-toggle-target='toggleable' data-toggle-value='push'
73
73
  .col-span-12
74
74
  = f.input :text, as: :editor, mode: 'text/plain'
75
- template data-toggle-target='toggleable' data-toggle-value='slack'
75
+ template data-toggle-target='toggleable' data-toggle-value='teams'
76
+ .col-span-12
77
+ = f.input :text, as: :editor, mode: 'text/plain', height: '400px'
78
+ .col-span-12
79
+ = f.input :payload, as: :editor, mode: 'application/yaml', hint: 'See here for more information: https://www.adaptivecards.io/designer/', height: '400px'
76
80
 
77
81
 
78
82
  - if @template.messages.exists?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nuntius
4
- VERSION = "1.3.5"
4
+ VERSION = "1.3.6"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nuntius
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.5
4
+ version: 1.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom de Grunt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-26 00:00:00.000000000 Z
11
+ date: 2024-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apnotic