openopus-core-people 1.1.15 → 1.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/person.rb +1 -1
- data/app/models/user.rb +1 -3
- data/lib/openopus/core/people/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78440c4aed642d7b5e9a54b06b785e428ec50c9f07b084ea6a9a16700ed0b643
|
4
|
+
data.tar.gz: 169b2a40f65448d0e3ceb24ba436d7644452e7f56971abc1efd78f7e14d4744b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8fff596df50a2b7668dbaa66d4327263966c0568c601a500236346eb358583c20ec850499032e437b95e114c628fdb7effa9ca935ac8cdb621b036d0116c65b
|
7
|
+
data.tar.gz: 90236013ef5ec10601ef68d3bae26523bb138b139022e9f898072d957c184817d6eabb680bfcd5b5650877cc57947e5d05c797a12a42eeb5558d6120aa616819
|
data/app/models/person.rb
CHANGED
@@ -55,7 +55,7 @@ class Person < ApplicationRecord
|
|
55
55
|
|
56
56
|
def email=(address)
|
57
57
|
e = self.emails.where(address: Email.canonicalize(address)).first_or_initialize() if not address.blank?
|
58
|
-
self.emails << e if not emails.include?(e)
|
58
|
+
self.emails << e if e and not emails.include?(e)
|
59
59
|
e
|
60
60
|
end
|
61
61
|
|
data/app/models/user.rb
CHANGED
@@ -24,9 +24,7 @@ class User < ApplicationRecord
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def assign_attributes(attr)
|
27
|
-
if not attr.keys.to_set.intersection(PERSON_SET).empty?
|
28
|
-
self.person = Person.new
|
29
|
-
end
|
27
|
+
self.person ||= Person.new if not attr.keys.to_set.intersection(PERSON_SET).empty?
|
30
28
|
super(attr)
|
31
29
|
end
|
32
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openopus-core-people
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian J. Fox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|