bullet_train 1.2.11 → 1.2.13

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: 7d28fd8d3f1e1ce07073cc4aadfd04758fc3a13aab3723577508be2055269211
4
- data.tar.gz: ee5a557dd99c80d925c6f6dcb3c6c4978a71a27ac295b700bb27b854194166b0
3
+ metadata.gz: 3f125a3b2313fc5b94496437cd6e2502f1a484ae4d216a8c0fd2bb0298463f69
4
+ data.tar.gz: 263d0f8cff1ff87477816d730c40c5f9c6098863a3992980435e5cdca83aca5d
5
5
  SHA512:
6
- metadata.gz: d4bf3b8d872805ffbbc916056943eff7999acc6d614b214a4f62cf89633fe487854b659c2aacac24e1dcf39b7c6a6176e7a79999f7be6cb4f2e2574e515b6aa5
7
- data.tar.gz: f7e25e0b2eb89f1af4772e22b4752d0a9d8025b042c78a9b468d8a6c00fea4c08eec8c5c9ac4e51cddd9d91517cb9db5a0bb593b2b81b3eb746ed61bf51b1bc2
6
+ metadata.gz: d61e07c62b0d664473c0b24e69b4a780868a8d4372dc37f9c42614167612f383d375c7b4a517c32e09b244d18a4324809a50cfc53b79cc67efb7ad5c34381e20
7
+ data.tar.gz: 3756d3c5d860e90125a79a62dfc4b349f3e296c41bb1fb62b58c0531883b84d9da701428ccbb0f85388169a0e24e6ef5360b7201fccce56cc2a26014325b2658
@@ -1,23 +1,3 @@
1
- <li class="bg-white shadow overflow-hidden sm:rounded-md dark:bg-slate-400">
2
- <%= link_to [:account, team], class: "group block hover:bg-slate-50 dark:hover:bg-slate-400 dark:text-slate-800" do %>
3
- <div class="px-4 py-4 flex items-center sm:pl-8 sm:pr-6">
4
- <div class="min-w-0 flex-1 sm:flex sm:items-center sm:justify-between">
5
- <div>
6
- <div class="flex text-xl font-semibold text-blue uppercase group-hover:text-blue-800 tracking-widest dark:text-white">
7
- <%= team.name %>
8
- </div>
9
- </div>
10
- <div class="mt-4 flex-shrink-0 sm:mt-0">
11
- <div class="flex overflow-hidden">
12
- <%= render 'account/shared/memberships/photos', memberships: team.memberships.current_and_invited.first(10) %>
13
- </div>
14
- </div>
15
- </div>
16
- <div class="ml-5 flex-shrink-0">
17
- <svg class="h-5 w-5 text-slate-400" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
18
- <path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
19
- </svg>
20
- </div>
21
- </div>
22
- <% end %>
23
- </li>
1
+ <%= render 'account/shared/team', link_url: [:account, team], memberships: team.memberships.current_and_invited.first(10) do |p| %>
2
+ <% p.content_for :name, team.name %>
3
+ <% end %>
@@ -0,0 +1 @@
1
+ <%= stylesheet_link_tag "application", "application.light", "showcase", "showcase.highlights" %>
data/config/routes.rb CHANGED
@@ -1,4 +1,8 @@
1
1
  Rails.application.routes.draw do
2
+ unless Rails.env.production?
3
+ mount Showcase::Engine, at: "/docs/showcase" if defined?(Showcase::Engine)
4
+ end
5
+
2
6
  scope module: "public" do
3
7
  root to: "home#index"
4
8
  get "invitation" => "home#invitation", :as => "invitation"
@@ -126,6 +126,7 @@ Certain form field partials like `buttons` and `super_select` can also have thei
126
126
  | [`super_select`](/docs/field-partials/super-select.md) | `string` | Optionally | `assign_select_options` | [Select2](https://select2.org) | Provides powerful option search, AJAX search, and multi-select functionality. |
127
127
  | `text_area` | `text` | | | | |
128
128
  | `text_field` | `string` | | | | |
129
+ | `number_field` | `integer` | | | | |
129
130
  | `trix_editor` | `text` | | | [Trix](https://github.com/basecamp/trix) | Basic HTML-powered formatting features and support for at-mentions amongst team members. |
130
131
 
131
132
  ## A Note On Data Types
@@ -13,6 +13,12 @@ rescue LoadError
13
13
  # Devise isn't in the Gemfile, and we don't have any other load order dependencies.
14
14
  end
15
15
 
16
+ begin
17
+ # Similarly we need to hoist showcase-rails, so our view paths can override Showcase.
18
+ require "showcase-rails"
19
+ rescue LoadError
20
+ end
21
+
16
22
  module BulletTrain
17
23
  class Engine < ::Rails::Engine
18
24
  end
@@ -1,3 +1,3 @@
1
1
  module BulletTrain
2
- VERSION = "1.2.11"
2
+ VERSION = "1.2.13"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.11
4
+ version: 1.2.13
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-02-15 00:00:00.000000000 Z
11
+ date: 2023-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard
@@ -304,6 +304,20 @@ dependencies:
304
304
  - - "~>"
305
305
  - !ruby/object:Gem::Version
306
306
  version: '0.1'
307
+ - !ruby/object:Gem::Dependency
308
+ name: showcase-rails
309
+ requirement: !ruby/object:Gem::Requirement
310
+ requirements:
311
+ - - ">="
312
+ - !ruby/object:Gem::Version
313
+ version: '0'
314
+ type: :runtime
315
+ prerelease: false
316
+ version_requirements: !ruby/object:Gem::Requirement
317
+ requirements:
318
+ - - ">="
319
+ - !ruby/object:Gem::Version
320
+ version: '0'
307
321
  - !ruby/object:Gem::Dependency
308
322
  name: premailer-rails
309
323
  requirement: !ruby/object:Gem::Requirement
@@ -479,7 +493,6 @@ files:
479
493
  - app/controllers/concerns/sessions/controller_base.rb
480
494
  - app/controllers/registrations_controller.rb
481
495
  - app/controllers/sessions_controller.rb
482
- - app/controllers/turbo_devise_controller.rb
483
496
  - app/helpers/account/buttons_helper.rb
484
497
  - app/helpers/account/dates_helper.rb
485
498
  - app/helpers/account/forms_helper.rb
@@ -584,6 +597,7 @@ files:
584
597
  - app/views/layouts/docs.html.erb
585
598
  - app/views/layouts/mailer.html.erb
586
599
  - app/views/public/home/docs.html.erb
600
+ - app/views/showcase/engine/_stylesheets.html.erb
587
601
  - app/views/user_mailer/invited.html.erb
588
602
  - app/views/user_mailer/welcome.html.erb
589
603
  - config/initializers/concerns/inflections_base.rb
@@ -1,19 +0,0 @@
1
- # NOTE: This is a workaround to get Devise working with Turbo
2
- class TurboDeviseController < ApplicationController
3
- class Responder < ActionController::Responder
4
- def to_turbo_stream
5
- controller.render(options.merge(formats: :html))
6
- rescue ActionView::MissingTemplate => error
7
- if get?
8
- raise error
9
- elsif has_errors? && default_action
10
- render error_rendering_options.merge(formats: :html, status: :unprocessable_entity)
11
- else
12
- redirect_to navigation_location
13
- end
14
- end
15
- end
16
-
17
- self.responder = Responder
18
- respond_to :html, :turbo_stream
19
- end