warden-github 1.3.0 → 1.3.1

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: ea7be457e43d5d73595605d0f6107797007b36f0
4
- data.tar.gz: 39e3ccc8f12771f33e456a7d2609bf9b810d0ddb
3
+ metadata.gz: c67b01bbd594201720d597739d548d7d3cdfa0f1
4
+ data.tar.gz: d2579092f8f208ad1595601bd64b9d1a830a3c79
5
5
  SHA512:
6
- metadata.gz: 223429bf4759f89e7eedccea6724c7a9f50526517302386cf63f11d2fcdfcbebd73a96eaab044ac388867cd3f7bfca9cbf241377aeb98eabd6bf6192e5d2e3c2
7
- data.tar.gz: 30bc47e8d9762afe87fdf58567005a605a8381cc71bfc9904a04d5d258f27f44a64696dd7db71ded800672b8f1ea3715dcf92c943094a9b3d5e4783dc4cf9dec
6
+ metadata.gz: 770c694827a511d2184f716bc2815f841ca0030425069d4ec44cdcfafde8951a0ee1d4e4a4986af7a9f20bc32534346e9e30f5832be0f2bcaaa6c53eabb9e986
7
+ data.tar.gz: e4b0dc2d35df3101eb3537dd734a1b6ec29a5b578856ae41eca29613d6dd4a60b5fb12bd8e6fabd3e7a524d590c615978c3abaf9405d99849109cad39f53dafe
@@ -1,4 +1,3 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.3.0
4
- - ruby-head
@@ -16,7 +16,7 @@ module Warden
16
16
  # cached for e certain time.
17
17
  def fetch_membership(type, id)
18
18
  type = type.to_s
19
- id = id.to_s if id.is_a?(Symbol)
19
+ id = id.to_s
20
20
 
21
21
  if cached_membership_valid?(type, id)
22
22
  true
@@ -1,5 +1,5 @@
1
1
  module Warden
2
2
  module GitHub
3
- VERSION = "1.3.0"
3
+ VERSION = "1.3.1"
4
4
  end
5
5
  end
@@ -22,6 +22,10 @@ describe Warden::GitHub::MembershipCache do
22
22
  expect { |b| cache.fetch_membership('foo', 'bar', &b) }.
23
23
  to_not yield_control
24
24
  end
25
+
26
+ it 'converts type and id to strings' do
27
+ cache.fetch_membership(:foo, :bar).should be_truthy
28
+ end
25
29
  end
26
30
 
27
31
  context 'when cache expired' do
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.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corey Donohoe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-20 00:00:00.000000000 Z
11
+ date: 2016-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: warden