ahoy_captain 1.0.2 → 1.2.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: d8824fa0095690772cce4398a05e430b0eeca49906aa0168d61e9ffd56823956
4
+ data.tar.gz: 70f8db41482d24c7697d4d9911c82381fb0ab83c88ffcfe66231c04287b2fed1
5
5
  SHA512:
6
- metadata.gz: 6fd976bec8aaad1a70c0483d17a38b9d6515e739911e07536b2f9c2687a21ca6dd6bd73a79c494efbf3e6dc5cebb436ea389b266669478a9002bd80c5238341e
7
- data.tar.gz: 90d6c59e6799685b4c4095563121ca48e48d7ded211412d90193988304182e573b612820c6766659e68939d4816aafb524c68e0f46e8d705822769bf01eafee8
6
+ metadata.gz: c66a89ed4096fb6038f06d59c7545d3c5c5c7062f581699ed42b7ac75b9858cc8aa6fc8d7394cf5f2fe9d650308c75601d262c5e74315ae037e93c9679f5204a
7
+ data.tar.gz: 110a00721dd53babc226c4ed5194e1df1fbc7aed658f90526125c39f906d9b4574a0e0c3285421b54317ba1d60521e9dff7a85ab878ffb1609b4e9a127851ef4
@@ -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.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,13 @@
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.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - joshmn
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-10-14 00:00:00.000000000 Z
10
+ date: 2026-01-19 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rails
@@ -58,14 +57,14 @@ dependencies:
58
57
  requirements:
59
58
  - - ">="
60
59
  - !ruby/object:Gem::Version
61
- version: '2'
60
+ version: '3'
62
61
  type: :runtime
63
62
  prerelease: false
64
63
  version_requirements: !ruby/object:Gem::Requirement
65
64
  requirements:
66
65
  - - ">="
67
66
  - !ruby/object:Gem::Version
68
- version: '2'
67
+ version: '3'
69
68
  - !ruby/object:Gem::Dependency
70
69
  name: importmap-rails
71
70
  requirement: !ruby/object:Gem::Requirement
@@ -348,7 +347,6 @@ dependencies:
348
347
  version: '0'
349
348
  description: A full-featured, mountable analytics dashboard for your Rails app, powered
350
349
  by Ahoy.
351
- email:
352
350
  executables: []
353
351
  extensions: []
354
352
  extra_rdoc_files: []
@@ -530,6 +528,8 @@ files:
530
528
  - app/views/ahoy_captain/goals/index.html.erb
531
529
  - app/views/ahoy_captain/layouts/application.html.erb
532
530
  - app/views/ahoy_captain/layouts/shared/_tile_loader.html.erb
531
+ - app/views/ahoy_captain/layouts/shared/_widget_disabled.html+details.erb
532
+ - app/views/ahoy_captain/layouts/shared/_widget_disabled.html.erb
533
533
  - app/views/ahoy_captain/locations/cities/index.html+details.erb
534
534
  - app/views/ahoy_captain/locations/cities/index.html.erb
535
535
  - app/views/ahoy_captain/locations/countries/index.html+details.erb
@@ -569,14 +569,12 @@ files:
569
569
  - lib/generators/ahoy_captain/migration_generator.rb
570
570
  - lib/generators/ahoy_captain/templates/config.rb.tt
571
571
  - lib/generators/ahoy_captain/templates/migration.rb.tt
572
- homepage:
573
572
  licenses:
574
573
  - MIT
575
574
  metadata:
576
575
  homepage_uri: https://github.com/joshmn/ahoy_captain
577
576
  source_code_uri: https://github.com/joshmn/ahoy_captain
578
577
  changelog_uri: https://github.com/joshmn/ahoy_captain
579
- post_install_message:
580
578
  rdoc_options: []
581
579
  require_paths:
582
580
  - lib
@@ -591,8 +589,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
591
589
  - !ruby/object:Gem::Version
592
590
  version: '0'
593
591
  requirements: []
594
- rubygems_version: 3.3.11
595
- signing_key:
592
+ rubygems_version: 3.6.2
596
593
  specification_version: 4
597
594
  summary: A full-featured, mountable analytics dashboard for your Rails app, powered
598
595
  by Ahoy.