ahoy_captain 1.0.1 → 1.1.0

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: 7a50b40868852e46c358dcda689f566bca6e38e23b5c76ec4fd3a9691a6ee330
4
- data.tar.gz: e9346fb1c1eac8b1fc9bfd406841a228561465768d2de28d003e909ab4b4503b
3
+ metadata.gz: c44fd981b9fbb2d42bcc2494bb85a6610f0f46dc412bff5f6f2ad71d3e1d7f9e
4
+ data.tar.gz: 7ce88012a9fdb001ec6c4bdaf8253dd9ce4224e69c3730d1e82ce4fa892daf4b
5
5
  SHA512:
6
- metadata.gz: 61b18c3a6c64dba3054c41454daebcf3597b4515ab306c5ae36c6099abf093f0f9923787cae7468e763d21af0e6a412c7b238c61709d8b63502c1dbc1560ea9b
7
- data.tar.gz: e7ab93d2747233a09c8a62b4717e3c1717a6892f4139dc12c883c23eed355503e1c721d56f0edbf06e029a660add55da3bbf3a95e201265a42db741cf07a8d98
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.1"
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.1
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