bullet_train-api 1.2.19 → 1.2.21

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: 1bf980f7cc60f357774ea37c403117ae615e4cde46cf7ccb0bdc4069307d5f3c
4
- data.tar.gz: f5cb8ecb5a16d6e964dd7b2058911db7082cb43df017ab76293e4fdb4b723ff8
3
+ metadata.gz: 1f3e205a97ef3263b6f1ca2831e3605eadb1a17be395406be42b28c3bc1d5df1
4
+ data.tar.gz: d439c2e3684065f4dfe6cbb618f0b3b95f4b8782db5d2099bc5795f4a9a064e7
5
5
  SHA512:
6
- metadata.gz: 54887e4c3e1244ebf3182e14bfc78a4663a0bfe94a36d515e7b1cada33440e6829dd1b5f8d51bcfc0ed9f28890479a5cd6609f89d224c6834492521bd459824a
7
- data.tar.gz: a5cf538e7a158a2f680246aaec0e1a297d36e0fbc5a9600c7989cdb1e56aec027701873bfb7ed6fceecb76c38a0169c123c94a8a5e1ebbf752be6ed9a6a73a26
6
+ metadata.gz: 0057a9c7f59b3a18d6f7d4f6bfe857caf7bf963453f58679d0f7a7c903bb5705b1837f0387f7ca68043ef2aee38ac07793f19468504497c42dec8545eff3d48b
7
+ data.tar.gz: 3eced895547cc8bd04668ee89f88a68404b31498db91f2e9d4b53c33d17ec15497deee45fbfcc9e599e41f93239facc04f7f8cfd6dde3b9034f5e34cd5f4e09d
@@ -9,13 +9,11 @@
9
9
 
10
10
  <%= action_model_select_controller do %>
11
11
  <%= updates_for context, collection do %>
12
- <%= render 'account/shared/box', pagy: pagy do |p| %>
13
- <% p.content_for :title, t(".contexts.#{context.class.name.underscore}.header") %>
14
- <% p.content_for :description do %>
15
- <%= t(".contexts.#{context.class.name.underscore}.description") %>
16
- <% end %>
12
+ <%= render 'account/shared/box', pagy: pagy do |box| %>
13
+ <% box.title t(".contexts.#{context.class.name.underscore}.header") %>
14
+ <% box.description t(".contexts.#{context.class.name.underscore}.description") %>
17
15
 
18
- <% p.content_for :table do %>
16
+ <% box.table do %>
19
17
  <% if access_tokens.any? %>
20
18
  <table class="table">
21
19
  <thead>
@@ -58,7 +56,7 @@
58
56
  <% end %>
59
57
  <% end %>
60
58
 
61
- <% p.content_for :actions do %>
59
+ <% box.actions do %>
62
60
  <% unless hide_actions %>
63
61
  <% if context == application %>
64
62
  <% if can? :create, Platform::AccessToken.new(application: application, provisioned: true) %>
@@ -76,7 +74,7 @@
76
74
  <% end %>
77
75
  <% end %>
78
76
 
79
- <% p.content_for :raw_footer do %>
77
+ <% box.raw_footer do %>
80
78
  <%# 🚅 super scaffolding will insert new action model index views above this line. %>
81
79
  <% end %>
82
80
  <% end %>
@@ -3,7 +3,7 @@
3
3
  url: main_app.polymorphic_path([:account, current_team, :platform_access_tokens]),
4
4
  label: t('platform/access_tokens.navigation.label'),
5
5
  } do |p| %>
6
- <% p.content_for :icon do %>
6
+ <% p.icon do %>
7
7
  <i class="<%= t('platform/access_tokens.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', access_token: @access_token %>
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', access_token: @access_token %>
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', access_tokens: @access_tokens %>
5
- <% end %>
1
+ <%= render 'account/shared/page' do |page| %>
2
+ <% page.title t('.section') %>
3
+ <% page.body.render 'index', access_tokens: @access_tokens %>
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', access_token: @access_token %>
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: t('.header') %>
5
+ <% box.body.render 'form', access_token: @access_token %>
11
6
  <% end %>
12
7
  <% end %>
@@ -1,15 +1,15 @@
1
- <%= render 'account/shared/page' do |p| %>
2
- <% p.content_for :title, t('.section') %>
3
- <% p.content_for :body do %>
1
+ <%= render 'account/shared/page' do |page| %>
2
+ <% page.title t('.section') %>
3
+ <% page.body do %>
4
4
  <%= updates_for @access_token do %>
5
- <%= render 'account/shared/box', divider: true do |p| %>
6
- <% p.content_for :title, t('.header') %>
7
- <% p.content_for :description do %>
5
+ <%= render 'account/shared/box', divider: true do |box| %>
6
+ <% box.title t('.header') %>
7
+ <% box.description do %>
8
8
  <%= t('.description') %>
9
9
  <%= t('.manage_description') if can? :manage, @access_token %>
10
10
  <% end %>
11
11
 
12
- <% p.content_for :body do %>
12
+ <% box.body do %>
13
13
  <% with_attribute_settings object: @access_token, strategy: :label do %>
14
14
  <%= render 'shared/attributes/text', attribute: :token %>
15
15
  <%= render 'shared/attributes/date_and_time', attribute: :last_used_at %>
@@ -18,14 +18,14 @@
18
18
  <% end %>
19
19
  <% end %>
20
20
 
21
- <% p.content_for :actions do %>
21
+ <% box.actions do %>
22
22
  <%= link_to t('.buttons.edit'), [:edit, :account, @access_token], class: first_button_primary if can? :edit, @access_token %>
23
23
  <%# 🚅 super scaffolding will insert new action model buttons above this line. %>
24
24
  <%= button_to t('.buttons.destroy'), [:account, @access_token], method: :delete, class: first_button_primary, data: { confirm: t('.buttons.confirmations.destroy', model_locales(@access_token)) } if can? :destroy, @access_token %>
25
25
  <%= link_to t('global.buttons.back'), [:account, @application, :access_tokens], class: first_button_primary %>
26
26
  <% end %>
27
27
 
28
- <% p.content_for :raw_footer do %>
28
+ <% box.raw_footer do %>
29
29
  <%# 🚅 super scaffolding will insert new action model index views above this line. %>
30
30
  <% end %>
31
31
  <% end %>
@@ -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 applications.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, Platform::Application.new(team: team) %>
@@ -3,7 +3,7 @@
3
3
  url: main_app.polymorphic_path([:account, current_team, :platform_applications]),
4
4
  label: t('platform/applications.navigation.label'),
5
5
  } do |p| %>
6
- <% p.content_for :icon do %>
6
+ <% p.icon do %>
7
7
  <i class="<%= t('platform/applications.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', application: @application %>
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', application: @application %>
11
6
  <% end %>
12
7
  <% end %>
@@ -1,6 +1,6 @@
1
- <%= render 'account/shared/page' do |p| %>
2
- <% p.content_for :title, t('.section') %>
3
- <% p.content_for :body do %>
1
+ <%= render 'account/shared/page' do |page| %>
2
+ <% page.title t('.section') %>
3
+ <% page.body do %>
4
4
  <%= render 'index', applications: @applications %>
5
5
  <%= render 'account/platform/access_tokens/index', access_tokens: @team.platform_agent_access_tokens, context: @team %>
6
6
  <% 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', application: @application %>
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', application: @application %>
11
6
  <% end %>
12
7
  <% end %>
@@ -1,13 +1,10 @@
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 %>
7
- <%= t('.description') %>
8
- <% end %>
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.t :description, title: '.header' %>
9
6
 
10
- <% p.content_for :body do %>
7
+ <% box.body do %>
11
8
  <% with_attribute_settings object: @application, strategy: :label do %>
12
9
  <%= render 'shared/attributes/text', attribute: :name %>
13
10
  <%= render 'shared/attributes/code', attribute: :uid %>
@@ -17,7 +14,7 @@
17
14
  <% end %>
18
15
  <% end %>
19
16
 
20
- <% p.content_for :actions do %>
17
+ <% box.actions do %>
21
18
  <%= link_to t('.buttons.edit'), [:edit, :account, @application], class: first_button_primary if can? :edit, @application %>
22
19
  <%= button_to t('.buttons.destroy'), [:account, @application], method: :delete, class: first_button_primary, data: { confirm: t('.buttons.confirmations.destroy', model_locales(@application)) } if can? :destroy, @application %>
23
20
  <%= link_to t('global.buttons.back'), [:account, @team, :platform_applications], class: first_button_primary %>
@@ -1,6 +1,6 @@
1
- <%= render 'account/shared/workflow/box' do |p| %>
2
- <% p.content_for :title, t('.header', application_name: @application.name) %>
3
- <% p.content_for :body do %>
1
+ <%= render 'account/shared/workflow/box' do |box| %>
2
+ <% box.title t('.header', application_name: @application.name) %>
3
+ <% box.body do %>
4
4
  <ul class="space-y" data-turbo="false">
5
5
  <% @teams.each do |team| %>
6
6
  <li class="bg-white border overflow-hidden sm:rounded-md dark:bg-slate-400">
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module Api
3
- VERSION = "1.2.19"
3
+ VERSION = "1.2.21"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.19
4
+ version: 1.2.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-09 00:00:00.000000000 Z
11
+ date: 2023-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard