strongmind-auth 1.0.7 → 1.0.9

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: 717208fe25cfb0be9f006445e0e4e6fddcc282c7130f3555e856b7e71eefd19d
4
- data.tar.gz: 0f41a6e97da4ec22a72921b5846fc2313b9f1b47f62fff5092cd41613f404785
3
+ metadata.gz: 306122e7c423973cd711bff6f4802a60e1970aa74b79482d8ac7cace0bb1fd95
4
+ data.tar.gz: 28098227cf9ff1869bdee71dae13dbcdbb5f1d066861c63c75e3e63c749f4825
5
5
  SHA512:
6
- metadata.gz: 0a9312df1eb222957874f91213c4f363be2122beed62f80923db387c015b1777fb81d6074e37e9e4f51306c744de6bfa692a0dd5446499a90375a265add8dd66
7
- data.tar.gz: 50887fc064a25882bb03ca1d42a8338c382f5006394a2fadd2995ba41c5d1fb0996ce588625d25236493ecbab6228536bbe1d344046188d87ceceee7f9823b9d
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 Faraday::TimeoutError
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
@@ -52,6 +52,7 @@ devise_scope :user do
52
52
  gem 'omniauth_openid_connect'
53
53
  gem 'omniauth-rails_csrf_protection'
54
54
  gem 'dotenv-rails'
55
+ gem 'sentry-rails'
55
56
 
56
57
  end
57
58
 
@@ -1,5 +1,5 @@
1
1
  module Strongmind
2
2
  module Auth
3
- VERSION = "1.0.7"
3
+ VERSION = "1.0.9"
4
4
  end
5
5
  end
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.7
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-14 00:00:00.000000000 Z
11
+ date: 2024-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails