warden-github 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3253b3f6a99f849e5248da93800fd0b46a5a609
4
- data.tar.gz: c41a59433f76a330521d1922522cb78e70b3576e
3
+ metadata.gz: 224cc683e53b8c9473f283a08b8e1fe055c5731f
4
+ data.tar.gz: c7d9b17f19afd74236dbaeb9e14a1598e2bd3761
5
5
  SHA512:
6
- metadata.gz: b19892de611ca4a6cefb72788a302011ec4e12531e535ddf2498bc4aac3eefbc95977a3798b147dbf4806feca18f0cff266ab3ad813b2d65748453fc62527123
7
- data.tar.gz: 025d7c2e4525996ed5bcbd7157fd134793d49c6870da45e68ef7de602a48a4b025bcabb6d1d7b7f6f0f3e9c3b35540ea2385266fdc97d6233ebd997c81c0c5ee
6
+ metadata.gz: 3bc465c114cce993843b36b8c9d5273ae3bd6084babb0ac7f04d79cdaa15c45dda22c96b5246b7e91f1a6d818923acff2dfc8aa7bfa07764faf62ac48585eb6f
7
+ data.tar.gz: ea076c77866bc95683a747c63493ce020dd3a4c98349c7f27de81d6b8c651255961bf87df30fd539cc5f846f361ea17f4ee40e851269e9fa896d22ffa83887d6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ v1.0.3 2014/12/13
2
+
3
+ * Reintroduce membership caching to reduce API hits for validating team membership.
4
+
1
5
  v1.0.1 2014/03/24
2
6
  -----------------
3
7
 
@@ -59,7 +59,9 @@ module Warden
59
59
  #
60
60
  # Returns: true if the user has access, false otherwise
61
61
  def team_member?(team_id)
62
- api.team_member?(team_id, login)
62
+ memberships.fetch_membership(:team, team_id) do
63
+ api.team_member?(team_id, login)
64
+ end
63
65
  end
64
66
 
65
67
  # Identify GitHub employees/staff members.
@@ -1,5 +1,5 @@
1
1
  module Warden
2
2
  module GitHub
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: warden-github
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corey Donohoe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-01 00:00:00.000000000 Z
11
+ date: 2014-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: warden