strongmind-auth 1.0.13 → 1.0.15

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: 5f8024e8a6ede6f16c3ab5a900c19e0aa736a703ac36d6668287b2a27ec61928
4
- data.tar.gz: 7d63c841f85f811124902d077989ea5bc683923258048164f10d85f79ca41b06
3
+ metadata.gz: b1a86df146b5b48ff39388a216c4c6f04c64af68d805d181a406dbb50166c141
4
+ data.tar.gz: c4993a26e025d3de3bfc756fe3e1d845a1ae802a0ed3231e112f0c43b2a922d4
5
5
  SHA512:
6
- metadata.gz: 836af65fff974d2ec9b16166a72e0203f41eb7a3b59cee6054bd32b53fb7e1980b6e9f4295586731a54ab20c20d5205ba4a91687cdfe68c01d269d979d74bbd3
7
- data.tar.gz: d4195a3e2c67eeb856e6374d0d9386af87001fa730708ba578b3f3a92ee7a15b26fd3965df6597f91680ce660744d1642f2cb1b931937e3bdc609229fe905e93
6
+ metadata.gz: f5eebbdeea7157d04ab238a5978a2a5ba443d7527521f7321bbf8cc5dfef3561a7f23f2918284896af902ab0191dc7666249f49b987d4b919b90977b32bf7d60
7
+ data.tar.gz: 840b288e4be11809e7f528a1df36a803e5c108a2375ba6ac8d85a3740f8faa49e88b0f78b6d16d5dac8ef3abb06bb8baba558174b71b056a6f7e42e53282c8ae
@@ -26,7 +26,7 @@ module StrongMindNav
26
26
 
27
27
  def menu_items
28
28
  [
29
- { name: 'Home', icon: 'fa-solid fa-house', path_method: :root_path }
29
+ { name: 'Home', icon: 'fa-solid fa-house', url: root_path }
30
30
  ]
31
31
  end
32
32
 
@@ -12,12 +12,15 @@ module Strongmind
12
12
  end
13
13
 
14
14
  def protect_app_files_and_add_nav
15
+ inject_into_file "app/controllers/application_controller.rb", before: "class ApplicationController < ActionController::Base\n" do
16
+ "require \"strongmind/exceptions\"\n\n"
17
+ end
15
18
  inject_into_file "app/controllers/application_controller.rb", after: "class ApplicationController < ActionController::Base\n" do
16
19
  " include StrongMindNav
17
20
  before_action :authenticate_user!
18
21
  before_action :fetch_common_nav
19
22
 
20
- rescue_from Exceptions::RefreshTokenExpiredError do
23
+ rescue_from Strongmind::Exceptions::RefreshTokenExpiredError do
21
24
  current_user&.invalidate_all_sessions!
22
25
  redirect_to \"#{ENV['IDENTITY_BASE_URL']}/connect/endsession\", headers: {
23
26
  'Content-Type' => 'application/json'
@@ -27,7 +30,7 @@ module Strongmind
27
30
  # Implement the list of menu items for the application
28
31
  # def menu_items
29
32
  # [
30
- # { name: 'Home', icon: 'fa-solid fa-house', path_method: :root_path }
33
+ # { name: 'Home', icon: 'fa-solid fa-house', url: root_path }
31
34
  # ]
32
35
  # end
33
36
 
@@ -1,5 +1,5 @@
1
1
  module Strongmind
2
2
  module Auth
3
- VERSION = "1.0.13"
3
+ VERSION = "1.0.15"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strongmind-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.13
4
+ version: 1.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Team Belding