ahoy_captain 1.0.2 → 1.1.0

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: bd17be8cc3bb208085b4ea2df7fb025c359d42dc3fc10a857a517b1a477a0720
4
- data.tar.gz: 00e05004ac200af8da967c431f5b68fc0d3ff01dd112977707783f2c0e34bc01
3
+ metadata.gz: c44fd981b9fbb2d42bcc2494bb85a6610f0f46dc412bff5f6f2ad71d3e1d7f9e
4
+ data.tar.gz: 7ce88012a9fdb001ec6c4bdaf8253dd9ce4224e69c3730d1e82ce4fa892daf4b
5
5
  SHA512:
6
- metadata.gz: 6fd976bec8aaad1a70c0483d17a38b9d6515e739911e07536b2f9c2687a21ca6dd6bd73a79c494efbf3e6dc5cebb436ea389b266669478a9002bd80c5238341e
7
- data.tar.gz: 90d6c59e6799685b4c4095563121ca48e48d7ded211412d90193988304182e573b612820c6766659e68939d4816aafb524c68e0f46e8d705822769bf01eafee8
6
+ metadata.gz: 6181e69c70815a29acfcd0aa55ed86590262e9b0e4865c8700322c9657717588b079e5c3521daffd91550abaf91a8440e293e534317a81a15f7d658cb098b709
7
+ data.tar.gz: b1ef9c796a4582282c7629bf360a8b13e463f76ee9f2d45ecab3f0009eca46a42d17621cb0a40e3d9d6e6a9e7891c94faf9fdeba37d9e2072a1ed75a1e17a728
@@ -18,7 +18,14 @@ module AhoyCaptain
18
18
  before_action :act_like_an_spa
19
19
 
20
20
  rescue_from Widget::WidgetDisabled do |e|
21
- render template: 'ahoy_captain/shared/widget_disabled', locals: { frame: e.frame }
21
+ respond_to do |f|
22
+ f.turbo_stream do
23
+ render(partial: "ahoy_captain/layouts/shared/widget_disabled", locals: { frame: e.frame })
24
+ end
25
+ f.html do
26
+ render(partial: "ahoy_captain/layouts/shared/widget_disabled", locals: { frame: e.frame })
27
+ end
28
+ end
22
29
  end
23
30
 
24
31
  private
@@ -0,0 +1,3 @@
1
+ <%= turbo_frame_tag "details" do %>
2
+ <p>Widget disabled.</p>
3
+ <% end %>
@@ -0,0 +1,3 @@
1
+ <%= turbo_frame_tag frame do %>
2
+ <p>Widget disabled.</p>
3
+ <% end %>
@@ -1,3 +1,3 @@
1
1
  module AhoyCaptain
2
- VERSION = "1.0.2"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ahoy_captain
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - joshmn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-14 00:00:00.000000000 Z
11
+ date: 2023-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '2'
61
+ version: '3'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '2'
68
+ version: '3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: importmap-rails
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -530,6 +530,8 @@ files:
530
530
  - app/views/ahoy_captain/goals/index.html.erb
531
531
  - app/views/ahoy_captain/layouts/application.html.erb
532
532
  - app/views/ahoy_captain/layouts/shared/_tile_loader.html.erb
533
+ - app/views/ahoy_captain/layouts/shared/_widget_disabled.html+details.erb
534
+ - app/views/ahoy_captain/layouts/shared/_widget_disabled.html.erb
533
535
  - app/views/ahoy_captain/locations/cities/index.html+details.erb
534
536
  - app/views/ahoy_captain/locations/cities/index.html.erb
535
537
  - app/views/ahoy_captain/locations/countries/index.html+details.erb