entitlements-app 1.2.9 → 1.2.11
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: 818e69daf99d90337415063f3d17ce109739eafbbb7114f708e9a21186826cfd
|
|
4
|
+
data.tar.gz: dbb843bad39ac3db66ad824f14f7fde164adbf8327a013d0e4d8aab8d9109c79
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cf6987a46b238eae111fe5ef9d290b6ae4b6f464f7853107066a4804011e7b426ca2080558f950c2c0976a0105cf26aedc3683bac4e72a3b24e3894be0999239
|
|
7
|
+
data.tar.gz: 71395936262a5f88e3fd5ffafc1653cbd8c05ca59a4606f0473b4637594c192a4308ab4a3bdf56561d75df0deee167260666aa56ae5c10a6a9793d374ced5f4f
|
|
@@ -107,7 +107,7 @@ module Entitlements
|
|
|
107
107
|
# members_in - Optionally a set of Entitlements::Models::Person with the currently calculated member set.
|
|
108
108
|
#
|
|
109
109
|
# Returns Set[Entitlements::Models::Person] of all matching members.
|
|
110
|
-
Contract C::None => C::Or[:calculating,
|
|
110
|
+
Contract C::None => C::Or[:calculating, Set]
|
|
111
111
|
def filtered_members
|
|
112
112
|
return :calculating if members == :calculating
|
|
113
113
|
|
|
@@ -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