samvera-persona 0.1.5 → 0.3.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: d8d4e6ad468b435d973c55e22b3385a9aeef8880832b4d96b2bc8f40e5e725a8
4
- data.tar.gz: 24ac459c50833e19eca11b950fe616e4059a0a44dbccaea250ecf1524c51849e
3
+ metadata.gz: 87bbf07f2e9f598ba75fc1c03cf3671f7e4037199409ec1185d6813ca2aa83b1
4
+ data.tar.gz: f4b0103ef87afa2808395aecdec074e056413e8ec19867338ee43d19dc458c8c
5
5
  SHA512:
6
- metadata.gz: 05a2ce74f143fade51e0e8f512572c9751d353719e4dbded6e01efda6d52d6814b3e3e7d5af1ea03e26c30c9876c652467e30fd9d3668da0a1c04b02ac319bcf
7
- data.tar.gz: b24a733374a09483b627d6a0b8b9a184fe50e8d83ce89f63f555f407dd63325daacc66ce82ff2fc3f731cec7bff01138fad25b58dcb85bfbf25d403df148d32e
6
+ metadata.gz: 49f181a9db4a845cd310e478904a3a59d8c177e915a15420664df70b40e19c3cc4d259643c8bb00585695fcab4f258b77be8e5914519027275450a82581f6bd9
7
+ data.tar.gz: 5cbceb8db7e797abfb24fe8fb946292e1380f0776a283dcad46db2872d8909d34a785fa026aee1d751316e6bb24d73c4e0822abcb12d0dcc8182ff88faf65235
@@ -3,7 +3,7 @@ module Samvera
3
3
  module AvalonAuth
4
4
  extend ActiveSupport::Concern
5
5
  included do
6
- before_action :auth
6
+ before_action :auth, except: [:stop_impersonating]
7
7
  end
8
8
 
9
9
  def auth
@@ -90,7 +90,7 @@ module Samvera
90
90
 
91
91
  def app_view_path
92
92
  my_engine_root = Samvera::Persona::Engine.root.to_s
93
- prepend_view_path "#{my_engine_root}/app/views/#{Rails.application.class.parent_name.downcase}"
93
+ prepend_view_path "#{my_engine_root}/app/views/#{Rails.application.class.module_parent_name.downcase}"
94
94
  end
95
95
 
96
96
  def user_params
@@ -1,4 +1,4 @@
1
- class PersonaDeviseInvitableAddToUsers < ActiveRecord::Migration[5.2]
1
+ class PersonaDeviseInvitableAddToUsers < ActiveRecord::Migration[5.0]
2
2
  def up
3
3
  unless ActiveRecord::Base.connection.column_exists?(:users, :invitation_token)
4
4
  change_table :users do |t|
@@ -19,13 +19,6 @@ module Samvera
19
19
  end
20
20
  end
21
21
 
22
- config.generators do |g|
23
- g.test_framework :rspec, :fixture => false
24
- g.fixture_replacement :factory_bot, :dir => 'spec/factories'
25
- g.assets false
26
- g.helper false
27
- end
28
-
29
22
  config.before_initialize do
30
23
  config.i18n.load_path += Dir["#{config.root}/config/locales/**/*.yml"]
31
24
  end
@@ -48,7 +41,7 @@ module Samvera
48
41
  end
49
42
 
50
43
  config.to_prepare do
51
- User.send :include, Samvera::Persona::SoftDeleteBehavior
44
+ User.send :include, Samvera::Persona::SoftDeleteBehavior if Samvera::Persona.soft_delete
52
45
  User.send :include, Samvera::Persona::UsernameBehavior
53
46
  end
54
47
 
@@ -1,5 +1,5 @@
1
1
  module Samvera
2
2
  module Persona
3
- VERSION = '0.1.5'
3
+ VERSION = '0.3.0'
4
4
  end
5
5
  end
@@ -7,5 +7,14 @@ Gem.loaded_specs['samvera-persona'].dependencies.each do |d|
7
7
 
8
8
  module Samvera
9
9
  module Persona
10
+ class << self
11
+ mattr_accessor :soft_delete
12
+ self.soft_delete = true
13
+
14
+ def setup
15
+ yield self
16
+ end
17
+ end
18
+
10
19
  end
11
20
  end
Binary file
Binary file