entitlements-app 1.2.9 → 1.2.10
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a782de54803d00a4afb8383789c796efbe8375eb92641c5537507f77eb4fb192
|
|
4
|
+
data.tar.gz: 2a53134a1ec22d96647f1739f6263a381d42d3a10620588d9c7561ff49a79e08
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 24254d8ce6d94b3c9b011effa5334c173db77dda656b72ce9bf40f82990a32328892b775d150642430d05c23cf0d4c114d4fe63b7455eab07c25465fed873369
|
|
7
|
+
data.tar.gz: 95e6dc2fafc0df322a9817a245e0c2131daa117a4dc919b4efbcd72d289e8349a09403b2111982e19c9db11c67b8d38090e091d3a71f8cc15168e83d3c118cac
|
|
@@ -80,7 +80,7 @@ module Entitlements
|
|
|
80
80
|
member_set = Entitlements::Data::Groups::Calculated::Rules::Group.matches(
|
|
81
81
|
value: group_ref,
|
|
82
82
|
)
|
|
83
|
-
member_set.map { |person| person.uid.downcase }
|
|
83
|
+
member_set.map { |person| person.uid.downcase }.to_set
|
|
84
84
|
end
|
|
85
85
|
|
|
86
86
|
Entitlements.cache[:member_of_named_group][group_ref].include?(member.uid.downcase)
|
|
@@ -73,7 +73,7 @@ module Entitlements
|
|
|
73
73
|
# uid - Optionally a uid to return. If not specified, returns the entire hash.
|
|
74
74
|
#
|
|
75
75
|
# Returns Hash of { uid => Entitlements::Models::Person } or one Entitlements::Models::Person.
|
|
76
|
-
Contract C::Maybe[String] => C::Or[Entitlements::Models::Person,
|
|
76
|
+
Contract C::Maybe[String] => C::Or[Entitlements::Models::Person, Hash]
|
|
77
77
|
def read(uid = nil)
|
|
78
78
|
@people ||= begin
|
|
79
79
|
Entitlements.logger.debug "Loading people from #{filename.inspect}"
|
data/lib/version.rb
CHANGED