samvera-persona 0.4.1 → 0.5.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: cef385bcd3bd3987f936d4301f99ab6a0e1a501b10f7a68d855d0fb8b9c7adab
4
- data.tar.gz: 69623aa007302ddd6f86fd7d99dd70e62fdfab3348813f75969dd1f7bcbe8812
3
+ metadata.gz: ddf3f54947771dba72942c0491e7cc9648f47fa04e6c6717b9ca3e581cecb02d
4
+ data.tar.gz: ff71b434034006562cccf85f6082a0ced62cbf173b5c5f20e815b8003514c936
5
5
  SHA512:
6
- metadata.gz: 865675b926c7c0ed6e0c49cb23c50dd96be5a7cbfc2197371660cf8433f1bbc0d38ee4c0f23421f05c05c05b20df8f1bc0ec54a7d5eb67e9909025a77aa187bc
7
- data.tar.gz: 7831d9f34a3bb25c7b4f01a67c41d8093b50c632cbeb301a8b6691d982bc4c3d3f2632f9d5aeb3c9e556577c7b828e4ae2787b1a29d274659e116e22a720e8fc
6
+ metadata.gz: 9eb5d25d5088470b45fe9bf7ceef026ca7ae714f800a39a87224799fde31aae89f233565d0c50674572ccd45193dadcb54347d0d4332c882d0b24fa00a209b90
7
+ data.tar.gz: 64ee485fe062c3d0eabdee3d1e44c6464ed00be3bb9bb2628a2018834c8041707830359759304c27596b1211786989047a0249008dee00a6199133d24de9b1e4
@@ -44,7 +44,7 @@ module Samvera
44
44
  end
45
45
 
46
46
  respond_to do |format|
47
- if @user.update_attributes(user_params)
47
+ if @user.update(user_params)
48
48
  @user.save
49
49
 
50
50
  format.html { redirect_to main_app.persona_users_path, notice: 'User was successfully updated.' }#move to locales
@@ -1,5 +1,5 @@
1
1
  module Samvera
2
2
  module Persona
3
- VERSION = '0.4.1'
3
+ VERSION = '0.5.0'
4
4
  end
5
5
  end
@@ -69,4 +69,14 @@ RSpec.describe Samvera::Persona::UsersController, type: :controller do
69
69
  end
70
70
  end
71
71
  end
72
+
73
+ describe "#update" do
74
+ let(:user) { FactoryBot.create(:user) }
75
+ let(:admin) { FactoryBot.create(:admin) }
76
+ before { sign_in admin }
77
+
78
+ it 'updates email' do
79
+ expect { put :update, params: { id: user.id, user: { email: "new_email@example.com" } } }.to change { user.reload.email }.to("new_email@example.com")
80
+ end
81
+ end
72
82
  end
@@ -10,6 +10,7 @@ module Dummy
10
10
  class Application < Rails::Application
11
11
  # Initialize configuration defaults for originally generated Rails version.
12
12
  config.load_defaults 5.2
13
+ config.active_support.cache_format_version = 7.0
13
14
  config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
14
15
 
15
16
  # Settings in config/environments/* take precedence over those specified here.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: samvera-persona
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Kaufman
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-03-07 00:00:00.000000000 Z
12
+ date: 2024-11-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -20,7 +20,7 @@ dependencies:
20
20
  version: 5.2.4.3
21
21
  - - "<"
22
22
  - !ruby/object:Gem::Version
23
- version: '7.1'
23
+ version: '8.0'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
@@ -30,21 +30,21 @@ dependencies:
30
30
  version: 5.2.4.3
31
31
  - - "<"
32
32
  - !ruby/object:Gem::Version
33
- version: '7.1'
33
+ version: '8.0'
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: paranoia
36
36
  requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.2'
40
+ version: '3.0'
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '2.2'
47
+ version: '3.0'
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: pretender
50
50
  requirement: !ruby/object:Gem::Requirement
@@ -324,7 +324,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
324
324
  - !ruby/object:Gem::Version
325
325
  version: '0'
326
326
  requirements: []
327
- rubygems_version: 3.4.5
327
+ rubygems_version: 3.5.16
328
328
  signing_key:
329
329
  specification_version: 4
330
330
  summary: Summary of Samvera::Persona.