gamecenter-auth 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gamecenter/auth.rb +2 -1
- data/lib/gamecenter/auth/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 888c7e5a931c6a0cd09e551c7acdc6b04681ec0e
|
4
|
+
data.tar.gz: 819308cb201905a5d7ec099097ca084e76dde576
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbb6abca0db31e2894bd28ee25c165b85bf7a688d4c5f4199c8ac4f8f28e5d5ad55f4b33523439fb55947433a2196ffcf1a3fc2b965dae0f52c0194593f131ee
|
7
|
+
data.tar.gz: daeb7d88dc991b2803c987d161d5e4411356f01004dc2b5a5b66a27bb676c1e94e1830267e76d954cc0ab4b3c64c32f15a59aa87c2395b58e1c91976ad7f99b8
|
data/lib/gamecenter/auth.rb
CHANGED
@@ -132,7 +132,8 @@ EOCACERT
|
|
132
132
|
if @@cache_public_keys
|
133
133
|
# caching is enabled
|
134
134
|
cache = (@@_public_key_cache ||= {})
|
135
|
-
|
135
|
+
cert = cache[public_key_url]
|
136
|
+
unless cert && cert.not_after > Time.now
|
136
137
|
# no cache hit or certificate expired
|
137
138
|
cache.delete public_key_url
|
138
139
|
|