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: 3b4d3b6eee9dda4b360514b4fa1c48eb8fbd339061df219caf642f4854f34ef1
4
- data.tar.gz: 661b4481979a23a15ce2e3ce49a018fef925c319ecd845b446196d3e9fc5cff6
3
+ metadata.gz: 818e69daf99d90337415063f3d17ce109739eafbbb7114f708e9a21186826cfd
4
+ data.tar.gz: dbb843bad39ac3db66ad824f14f7fde164adbf8327a013d0e4d8aab8d9109c79
5
5
  SHA512:
6
- metadata.gz: 85036ed3417a905cd5dd0f722c3f0df08856f5be504fe1105dc85ced1954f79dd83ccaee57af175ae40436cad7f7d668ea5948fb814e6b2d4868efc728109ad7
7
- data.tar.gz: bf87abe96278eabe62aace13a812e2b2378620d7093181823c1947cce0e8d81359502d0cef8e7fac8c03d06cb41001f5be7532d8297ef178ba41b396aa0bdacd
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, C::SetOf[Entitlements::Models::Person]]
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, C::HashOf[String => 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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Entitlements
4
4
  module Version
5
- VERSION = "1.2.9"
5
+ VERSION = "1.2.11"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: entitlements-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.9
4
+ version: 1.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub, Inc. Security Ops