Skip to content

Commit 770f2bd

Browse files
Merge pull request #30 from chrisgavin/fix-team-cache-for-multiple-instances
2 parents 1111936 + 9785e42 commit 770f2bd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
entitlements-github-plugin (0.5.2)
4+
entitlements-github-plugin (0.5.3)
55
contracts (~> 0.17.0)
66
faraday (~> 2.0)
77
faraday-retry (~> 2.0)

lib/entitlements/backend/github_team/service.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ class TeamNotFound < RuntimeError; end
3535
def initialize(addr: nil, org:, token:, ou:, ignore_not_found: false)
3636
super
3737
Entitlements.cache[:github_team_members] ||= {}
38-
Entitlements.cache[:github_team_members][org] ||= {}
39-
@team_cache = Entitlements.cache[:github_team_members][org]
38+
Entitlements.cache[:github_team_members][org_signature] ||= {}
39+
@team_cache = Entitlements.cache[:github_team_members][org_signature]
4040
end
4141

4242
# Read a single team identified by its slug and return a team object.

lib/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module Entitlements
44
module Version
5-
VERSION = "0.5.2"
5+
VERSION = "0.5.3"
66
end
77
end

0 commit comments

Comments
 (0)