bullet_train-outgoing_webhooks 1.2.20 → 1.2.21

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: 5a3d69ed3e97cb7a2d43852acc6ac4488f8be5baedcbf28cd9e9c4470a565163
4
- data.tar.gz: f9a5e07c0b02bac7df4b5babd021d955f3689a4f4f5be0b2074f19b095329b62
3
+ metadata.gz: 4a1893efb4249f57ea9ce43205fd8e1a85167498e528c99f03a7dbd5da60a910
4
+ data.tar.gz: d6a8b69ec8547ba89927ae45b1f3a630a0dc293fcf6f5e1a21a066fdf65a6834
5
5
  SHA512:
6
- metadata.gz: e50314e5675c3806aac0d8474c3b84908a40eaf4c50fb01d4958b64607c08f79dbbd946688f8247b47041b1b35285ae37cb33ee27854deb5b75b548c8b13894d
7
- data.tar.gz: d5cd3552a160730bea6fe93021912bc373a78db4b16bbac3f87e30aac631f40242becc40ea497800d5e0723064502b1807c64d2ec22567af654f30776650386c
6
+ metadata.gz: a98a312db63031ae377ef21aa111ff8590423020f76004c74823ceb6b9ef2e3f8e86e52e51f66ffb322fb649c29a9b7d24daec79298ce034e4e4790e0907206d
7
+ data.tar.gz: a7816aafb5c507a87c902e9cd931c3f75843b6b4da51e8a37f38e2ee7defbc0b80cf3a6e6631511cb46ba6528ee2aec11eac472e3a95d7d517b0c8fbc24bb879
@@ -4,13 +4,11 @@
4
4
  <% hide_actions ||= false %>
5
5
  <% hide_back ||= false %>
6
6
 
7
- <%= render 'account/shared/box' do |p| %>
8
- <% p.content_for :title, t(".contexts.#{context.class.name.underscore}.header") %>
9
- <% p.content_for :description do %>
10
- <%= t(".contexts.#{context.class.name.underscore}.description") %>
11
- <% end %>
7
+ <%= render 'account/shared/box' do |box| %>
8
+ <% box.title t(".contexts.#{context.class.name.underscore}.header") %>
9
+ <% box.description t(".contexts.#{context.class.name.underscore}.description") %>
12
10
 
13
- <% p.content_for :table do %>
11
+ <% box.table do %>
14
12
  <% if deliveries.any? %>
15
13
  <table class="table">
16
14
  <thead>
@@ -57,7 +55,7 @@
57
55
  <% end %>
58
56
  <% end %>
59
57
 
60
- <% p.content_for :actions do %>
58
+ <% box.actions do %>
61
59
  <% unless hide_actions %>
62
60
  <% if context == endpoint %>
63
61
  <% if can? :create, Webhooks::Outgoing::Delivery.new(endpoint: endpoint) %>
@@ -3,7 +3,7 @@
3
3
  url: main_app.polymorphic_path([:account, send(BulletTrain::OutgoingWebhooks.current_parent_method), :webhooks_outgoing_deliveries]),
4
4
  label: t('webhooks/outgoing/deliveries.navigation.label'),
5
5
  } do |p| %>
6
- <% p.content_for :icon do %>
6
+ <% p.icon do %>
7
7
  <i class="<%= t('webhooks/outgoing/deliveries.navigation.icon') %>"></i>
8
8
  <% end %>
9
9
  <% end %>
@@ -1,12 +1,7 @@
1
- <%= render 'account/shared/page' do |p| %>
2
- <% p.content_for :title, t('.section') %>
3
- <% p.content_for :body do %>
4
- <%= render 'account/shared/box', divider: true do |p| %>
5
- <% p.content_for :title, t('.header') %>
6
- <% p.content_for :description, t('.description') %>
7
- <% p.content_for :body do %>
8
- <%= render 'form', delivery: @delivery %>
9
- <% end %>
10
- <% end %>
1
+ <%= render 'account/shared/page' do |page| %>
2
+ <% page.title t('.section') %>
3
+ <% page.body.render 'account/shared/box', divider: true do |box| %>
4
+ <% box.t :description, title: '.header' %>
5
+ <% box.body.render 'form', delivery: @delivery %>
11
6
  <% end %>
12
7
  <% end %>
@@ -1,6 +1,4 @@
1
- <%= render 'account/shared/page' do |p| %>
2
- <% p.content_for :title, t('.section') %>
3
- <% p.content_for :body do %>
4
- <%= render 'index', deliveries: @deliveries %>
5
- <% end %>
1
+ <%= render 'account/shared/page' do |page| %>
2
+ <% page.title t('.section') %>
3
+ <% page.body.render 'index', deliveries: @deliveries %>
6
4
  <% end %>
@@ -1,12 +1,7 @@
1
- <%= render 'account/shared/page' do |p| %>
2
- <% p.content_for :title, t('.section') %>
3
- <% p.content_for :body do %>
4
- <%= render 'account/shared/box', divider: true do |p| %>
5
- <% p.content_for :title, t('.header') %>
6
- <% p.content_for :description, t('.description') %>
7
- <% p.content_for :body do %>
8
- <%= render 'form', delivery: @delivery %>
9
- <% end %>
10
- <% end %>
1
+ <%= render 'account/shared/page' do |page| %>
2
+ <% page.title t('.section') %>
3
+ <% page.body.render 'account/shared/box', divider: true do |box| %>
4
+ <% box.t :description, title: '.header' %>
5
+ <% box.body.render 'form', delivery: @delivery %>
11
6
  <% end %>
12
7
  <% end %>
@@ -1,14 +1,14 @@
1
- <%= render 'account/shared/page' do |p| %>
2
- <% p.content_for :title, t('.section').html_safe %>
3
- <% p.content_for :body do %>
4
- <%= render 'account/shared/box', divider: true do |p| %>
5
- <% p.content_for :title, t('.header') %>
6
- <% p.content_for :description do %>
1
+ <%= render 'account/shared/page' do |page| %>
2
+ <% page.title t('.section').html_safe %>
3
+ <% page.body do %>
4
+ <%= render 'account/shared/box', divider: true do |box| %>
5
+ <% box.title t('.header') %>
6
+ <% box.description do %>
7
7
  <%= t('.description').html_safe %>
8
8
  <%= t('.manage_description') if can? :manage, @delivery %>
9
9
  <% end %>
10
10
 
11
- <% p.content_for :body do %>
11
+ <% box.body do %>
12
12
  <% with_attribute_settings object: @delivery, strategy: :label do %>
13
13
  <% with_attribute_settings object: @delivery.event do %>
14
14
  <%= render 'shared/attributes/code', attribute: :uuid %>
@@ -24,7 +24,7 @@
24
24
  <% end %>
25
25
  <% end %>
26
26
 
27
- <% p.content_for :actions do %>
27
+ <% box.actions do %>
28
28
  <%= link_to t('.buttons.edit'), [:edit, :account, @delivery], class: first_button_primary if can? :edit, @delivery %>
29
29
  <%= button_to t('.buttons.destroy'), [:account, @delivery], method: :delete, class: first_button_primary, data: { confirm: t('.buttons.confirmations.destroy', model_locales(@delivery)) } if can? :destroy, @delivery %>
30
30
  <%= link_to t('global.buttons.back'), [:account, @endpoint, :deliveries], class: first_button_primary %>
@@ -4,13 +4,11 @@
4
4
  <% hide_actions ||= false %>
5
5
  <% hide_back ||= false %>
6
6
 
7
- <%= render 'account/shared/box' do |p| %>
8
- <% p.content_for :title, t(".contexts.#{context.class.name.underscore}.header") %>
9
- <% p.content_for :description do %>
10
- <%= t(".contexts.#{context.class.name.underscore}.description") %>
11
- <% end %>
7
+ <%= render 'account/shared/box' do |box| %>
8
+ <% box.title t(".contexts.#{context.class.name.underscore}.header") %>
9
+ <% box.description t(".contexts.#{context.class.name.underscore}.description") %>
12
10
 
13
- <% p.content_for :table do %>
11
+ <% box.table do %>
14
12
  <% if delivery_attempts.any? %>
15
13
  <table class="table">
16
14
  <thead>
@@ -53,7 +51,7 @@
53
51
  <% end %>
54
52
  <% end %>
55
53
 
56
- <% p.content_for :actions do %>
54
+ <% box.actions do %>
57
55
  <% unless hide_actions %>
58
56
  <% if context == delivery %>
59
57
  <% if can? :create, Webhooks::Outgoing::DeliveryAttempt.new(delivery: delivery) %>
@@ -3,7 +3,7 @@
3
3
  url: main_app.polymorphic_path([:account, send(BulletTrain::OutgoingWebhooks.current_parent_method), :webhooks_outgoing_delivery_attempts]),
4
4
  label: t('webhooks/outgoing/delivery_attempts.navigation.label'),
5
5
  } do |p| %>
6
- <% p.content_for :icon do %>
6
+ <% p.icon do %>
7
7
  <i class="<%= t('webhooks/outgoing/delivery_attempts.navigation.icon') %>"></i>
8
8
  <% end %>
9
9
  <% end %>
@@ -1,12 +1,7 @@
1
- <%= render 'account/shared/page' do |p| %>
2
- <% p.content_for :title, t('.section') %>
3
- <% p.content_for :body do %>
4
- <%= render 'account/shared/box', divider: true do |p| %>
5
- <% p.content_for :title, t('.header') %>
6
- <% p.content_for :description, t('.description') %>
7
- <% p.content_for :body do %>
8
- <%= render 'form', delivery_attempt: @delivery_attempt %>
9
- <% end %>
10
- <% end %>
1
+ <%= render 'account/shared/page' do |page| %>
2
+ <% page.title t('.section') %>
3
+ <% page.body.render 'account/shared/box', divider: true do |box| %>
4
+ <% box.t :description, title: '.header' %>
5
+ <% box.body.render 'form', delivery_attempt: @delivery_attempt %>
11
6
  <% end %>
12
7
  <% end %>
@@ -1,6 +1,4 @@
1
- <%= render 'account/shared/page' do |p| %>
2
- <% p.content_for :title, t('.section') %>
3
- <% p.content_for :body do %>
4
- <%= render 'index', delivery_attempts: @delivery_attempts %>
5
- <% end %>
1
+ <%= render 'account/shared/page' do |page| %>
2
+ <% page.title t('.section') %>
3
+ <% page.body.render 'index', delivery_attempts: @delivery_attempts %>
6
4
  <% end %>
@@ -1,12 +1,7 @@
1
- <%= render 'account/shared/page' do |p| %>
2
- <% p.content_for :title, t('.section') %>
3
- <% p.content_for :body do %>
4
- <%= render 'account/shared/box', divider: true do |p| %>
5
- <% p.content_for :title, t('.header') %>
6
- <% p.content_for :description, t('.description') %>
7
- <% p.content_for :body do %>
8
- <%= render 'form', delivery_attempt: @delivery_attempt %>
9
- <% end %>
10
- <% end %>
1
+ <%= render 'account/shared/page' do |page| %>
2
+ <% page.title t('.section') %>
3
+ <% page.body.render 'account/shared/box', divider: true do |box| %>
4
+ <% box.t :description, title: '.header' %>
5
+ <% box.body.render 'form', delivery_attempt: @delivery_attempt %>
11
6
  <% end %>
12
7
  <% end %>
@@ -1,14 +1,14 @@
1
- <%= render 'account/shared/page' do |p| %>
2
- <% p.content_for :title, t('.section').html_safe %>
3
- <% p.content_for :body do %>
4
- <%= render 'account/shared/box', divider: true do |p| %>
5
- <% p.content_for :title, t('.header') %>
6
- <% p.content_for :description do %>
1
+ <%= render 'account/shared/page' do |page| %>
2
+ <% page.title t('.section').html_safe %>
3
+ <% page.body do %>
4
+ <%= render 'account/shared/box', divider: true do |box| %>
5
+ <% box.title t('.header') %>
6
+ <% box.description do %>
7
7
  <%= t('.description') %>
8
8
  <%= t('.manage_description') if can? :manage, @delivery_attempt %>
9
9
  <% end %>
10
10
 
11
- <% p.content_for :body do %>
11
+ <% box.body do %>
12
12
  <% with_attribute_settings object: @delivery_attempt, strategy: :label do %>
13
13
  <%= render 'shared/attributes/text', attribute: :attempt_number %>
14
14
  <%= render 'shared/attributes/attempt', attribute: :status, success_method: :successful?, attempting_method: :still_attempting?, failure_method: :failed? %>
@@ -20,7 +20,7 @@
20
20
  <% end %>
21
21
  <% end %>
22
22
 
23
- <% p.content_for :actions do %>
23
+ <% box.actions do %>
24
24
  <%= link_to t('.buttons.edit'), [:edit, :account, @delivery_attempt], class: first_button_primary if can? :edit, @delivery_attempt %>
25
25
  <%= button_to t('.buttons.destroy'), [:account, @delivery_attempt], method: :delete, class: first_button_primary, data: { confirm: t('.buttons.confirmations.destroy', model_locales(@delivery_attempt)) } if can? :destroy, @delivery_attempt %>
26
26
  <%= link_to t('global.buttons.back'), [:account, @delivery, :delivery_attempts], class: first_button_primary %>
@@ -4,13 +4,11 @@
4
4
  <% hide_actions ||= false %>
5
5
  <% hide_back ||= false %>
6
6
 
7
- <%= render 'account/shared/box' do |p| %>
8
- <% p.content_for :title, t(".contexts.#{context.class.name.underscore}.header") %>
9
- <% p.content_for :description do %>
10
- <%= t(".contexts.#{context.class.name.underscore}.description") %>
11
- <% end %>
7
+ <%= render 'account/shared/box' do |box| %>
8
+ <% box.title t(".contexts.#{context.class.name.underscore}.header") %>
9
+ <% box.description t(".contexts.#{context.class.name.underscore}.description") %>
12
10
 
13
- <% p.content_for :table do %>
11
+ <% box.table do %>
14
12
  <% if endpoints.any? %>
15
13
  <table class="table">
16
14
  <thead>
@@ -46,7 +44,7 @@
46
44
  <% end %>
47
45
  <% end %>
48
46
 
49
- <% p.content_for :actions do %>
47
+ <% box.actions do %>
50
48
  <% unless hide_actions %>
51
49
  <% if context == team %>
52
50
  <% if can? :create, Webhooks::Outgoing::Endpoint.new(BulletTrain::OutgoingWebhooks.parent_association => @parent) %>
@@ -3,7 +3,7 @@
3
3
  url: main_app.polymorphic_path([:account, send(BulletTrain::OutgoingWebhooks.current_parent_method), :webhooks_outgoing_endpoints]),
4
4
  label: t('webhooks/outgoing/endpoints.navigation.label'),
5
5
  } do |p| %>
6
- <% p.content_for :icon do %>
6
+ <% p.icon do %>
7
7
  <i class="<%= t('webhooks/outgoing/endpoints.navigation.icon') %>"></i>
8
8
  <% end %>
9
9
  <% end %>
@@ -1,12 +1,7 @@
1
- <%= render 'account/shared/page' do |p| %>
2
- <% p.content_for :title, t('.section') %>
3
- <% p.content_for :body do %>
4
- <%= render 'account/shared/box', divider: true do |p| %>
5
- <% p.content_for :title, t('.header') %>
6
- <% p.content_for :description, t('.description') %>
7
- <% p.content_for :body do %>
8
- <%= render 'form', endpoint: @endpoint %>
9
- <% end %>
10
- <% end %>
1
+ <%= render 'account/shared/page' do |page| %>
2
+ <% page.title t('.section') %>
3
+ <% page.body.render 'account/shared/box', divider: true do |box| %>
4
+ <% box.t :description, title: '.header' %>
5
+ <% box.body.render 'form', endpoint: @endpoint %>
11
6
  <% end %>
12
7
  <% end %>
@@ -1,6 +1,4 @@
1
- <%= render 'account/shared/page' do |p| %>
2
- <% p.content_for :title, t('.section') %>
3
- <% p.content_for :body do %>
4
- <%= render 'index', endpoints: @endpoints %>
5
- <% end %>
1
+ <%= render 'account/shared/page' do |page| %>
2
+ <% page.title t('.section') %>
3
+ <% page.body.render 'index', endpoints: @endpoints %>
6
4
  <% end %>
@@ -1,12 +1,7 @@
1
- <%= render 'account/shared/page' do |p| %>
2
- <% p.content_for :title, t('.section') %>
3
- <% p.content_for :body do %>
4
- <%= render 'account/shared/box', divider: true do |p| %>
5
- <% p.content_for :title, t('.header') %>
6
- <% p.content_for :description, t('.description') %>
7
- <% p.content_for :body do %>
8
- <%= render 'form', endpoint: @endpoint %>
9
- <% end %>
10
- <% end %>
1
+ <%= render 'account/shared/page' do |page| %>
2
+ <% page.title t('.section') %>
3
+ <% page.body.render 'account/shared/box', divider: true do |box| %>
4
+ <% box.t :description, title: '.header' %>
5
+ <% box.body.render 'form', endpoint: @endpoint %>
11
6
  <% end %>
12
7
  <% end %>
@@ -1,14 +1,14 @@
1
- <%= render 'account/shared/page' do |p| %>
2
- <% p.content_for :title, t('.section') %>
3
- <% p.content_for :body do %>
4
- <%= render 'account/shared/box', divider: true do |p| %>
5
- <% p.content_for :title, t('.header') %>
6
- <% p.content_for :description do %>
1
+ <%= render 'account/shared/page' do |page| %>
2
+ <% page.title t('.section') %>
3
+ <% page.body do %>
4
+ <%= render 'account/shared/box', divider: true do |box| %>
5
+ <% box.title t('.header') %>
6
+ <% box.description do %>
7
7
  <%= t('.description') %>
8
8
  <%= t('.manage_description') if can? :manage, @endpoint %>
9
9
  <% end %>
10
10
 
11
- <% p.content_for :body do %>
11
+ <% box.body do %>
12
12
  <% with_attribute_settings object: @endpoint, strategy: :label do %>
13
13
  <%= render 'shared/attributes/text', attribute: :name %>
14
14
  <%= render 'shared/attributes/code', attribute: :url %>
@@ -32,7 +32,7 @@
32
32
  <% end %>
33
33
  <% end %>
34
34
 
35
- <% p.content_for :actions do %>
35
+ <% box.actions do %>
36
36
  <%= link_to t('.buttons.edit'), [:edit, :account, @endpoint], class: first_button_primary if can? :edit, @endpoint %>
37
37
  <%= button_to t('.buttons.destroy'), [:account, @endpoint], method: :delete, class: first_button_primary, data: { confirm: t('.buttons.confirmations.destroy', model_locales(@endpoint)) } if can? :destroy, @endpoint %>
38
38
  <%= link_to t('global.buttons.back'), [:account, @parent, :webhooks_outgoing_endpoints], class: first_button_primary %>
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module OutgoingWebhooks
3
- VERSION = "1.2.20"
3
+ VERSION = "1.2.21"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-outgoing_webhooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.20
4
+ version: 1.2.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver