strongmind-auth 1.0.7 → 1.0.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 306122e7c423973cd711bff6f4802a60e1970aa74b79482d8ac7cace0bb1fd95
|
4
|
+
data.tar.gz: 28098227cf9ff1869bdee71dae13dbcdbb5f1d066861c63c75e3e63c749f4825
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0829abe155dc13d7422659d51c684bb4e47fde17b496af7ba19cc5dd40c44b8c3602a62a98aca86b2bb18d16efc0f1148478ca002e8a92efe842ee6fbdd56a6
|
7
|
+
data.tar.gz: 4dd5f8659fde38e46a617afb817e9d350b231b3cb49c6f537af7563669e1ae671c22111fd9339b5bc57b7265a1ca8ce70aaa9541bdbbb2eb7e32bd5b7dd84476
|
@@ -10,9 +10,11 @@ module StrongMindNav
|
|
10
10
|
@top_navbar_html = navbar[:top_navbar_html]
|
11
11
|
@bottom_navbar_html = navbar[:bottom_navbar_html]
|
12
12
|
@theme_css = navbar[:theme_css]
|
13
|
-
rescue Strongmind::CommonNavFetcher::TokenNotFoundError, Strongmind::CommonNavFetcher::UserNotFoundError
|
13
|
+
rescue Strongmind::CommonNavFetcher::TokenNotFoundError, Strongmind::CommonNavFetcher::UserNotFoundError => e
|
14
|
+
Sentry.capture_exception(e)
|
14
15
|
render 'logins/index'
|
15
|
-
rescue
|
16
|
+
rescue Exception => e
|
17
|
+
Sentry.capture_exception(e)
|
16
18
|
@top_navbar_html = render_to_string(partial: 'layouts/loading_navbar').html_safe
|
17
19
|
end
|
18
20
|
end
|
@@ -2,6 +2,14 @@
|
|
2
2
|
|
3
3
|
return if defined? Rails::Generators
|
4
4
|
|
5
|
+
# if Devise is not present in Gemfile
|
6
|
+
unless File.read('Gemfile').include?('devise')
|
7
|
+
`rails g strongmind:install`
|
8
|
+
`rails db:migrate`
|
9
|
+
|
10
|
+
raise "StrongMind Auth and Navigation installed. Please restart your server."
|
11
|
+
end
|
12
|
+
|
5
13
|
# Assuming you have not yet modified this file, each configuration option below
|
6
14
|
# is set to its default value. Note that some are commented out while others
|
7
15
|
# are not: uncommented lines are intended to protect your configuration from
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strongmind-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Team Belding
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|