cancancan 1.8.1 → 1.8.2

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: b8ae98ee2960d59064addef2385b147001f02a90
4
- data.tar.gz: 6f906603e1573ab3983ec429e0ba0a91b830a486
3
+ metadata.gz: ee08238dc809747b4d8fd583546d8090ae41c388
4
+ data.tar.gz: 07de2fb484baa605dab80da5444378178c7a02c9
5
5
  SHA512:
6
- metadata.gz: e61cfecc5894d707b9f1db24278eb117fae7cec6fac6514ffdfc95eee8ec64db6c2fba872e2a98dc0342520e7aa61256a8453dd8ded1eefd85cf18f91513fa53
7
- data.tar.gz: 36256ef9081035d4eb1b66a79197beeb7e971ed4efc4df96a6f4f039f7d98632ce6b992381bc15234f649989a9f3e64f0d3c45f4aae0d2c2e8cfdc37020d7c0d
6
+ metadata.gz: 306997662a1978541ecc1a851cc779f486e91493ba6270ce708baaae32abc94f5d71d2cb17a4c5396d62ea9a0a35e0043b5f8d572ec48c6b32c36bf9d1727275
7
+ data.tar.gz: fbc981d0af75b1e9ee1888dae3f69542962ca07d566c731188171a5a2978e67a08b290415f18588c24b3950a834a0d5ad859a82142e2e6ded3c8e54ca87aa57f
data/CHANGELOG.rdoc CHANGED
@@ -1,6 +1,11 @@
1
1
  Develop
2
2
 
3
3
 
4
+ 1.8.2 (June 5th, 2014)
5
+
6
+ * Fix cancancan#75 - More specific hash-like object check. (bryanrite)
7
+
8
+
4
9
  1.8.1 (May 27th, 2014)
5
10
 
6
11
  * Fix cancancan#67 - Sequel tests are run properly for JRuby. (bryanrite)
data/README.rdoc CHANGED
@@ -2,7 +2,7 @@
2
2
  {<img src="https://badge.fury.io/rb/cancancan.png" alt="Gem Version" />}[http://badge.fury.io/rb/cancancan]
3
3
  {<img src="https://travis-ci.org/CanCanCommunity/cancancan.png?branch=master" alt="Build Status" />}[https://travis-ci.org/CanCanCommunity/cancancan]
4
4
  {<img src="https://codeclimate.com/github/CanCanCommunity/cancancan.png" />}[https://codeclimate.com/github/CanCanCommunity/cancancan]
5
- {<img src="http://inch-pages.github.io/github/CanCanCommunity/cancancan.png" alt="Inline docs" />}[http://inch-pages.github.io/github/CanCanCommunity/cancancan]
5
+ {<img src="http://inch-ci.org/github/CanCanCommunity/cancancan.png" alt="Inline docs" />}[http://inch-ci.org/github/CanCanCommunity/cancancan]
6
6
 
7
7
  Wiki[https://github.com/bryanrite/cancancan/wiki] | RDocs[http://rdoc.info/projects/ryanb/cancan] | Screencast[http://railscasts.com/episodes/192-authorization-with-cancan]
8
8
 
@@ -285,7 +285,7 @@ module CanCan
285
285
 
286
286
  # It translates to an array the subject or the hash with multiple subjects given to can?.
287
287
  def extract_subjects(subject)
288
- subject = if subject.respond_to?(:key?) && subject.key?(:any)
288
+ subject = if subject.kind_of?(Hash) && subject.key?(:any)
289
289
  subject[:any]
290
290
  else
291
291
  [subject]
@@ -1,3 +1,3 @@
1
1
  module CanCan
2
- VERSION = "1.8.1"
2
+ VERSION = "1.8.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cancancan
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.1
4
+ version: 1.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Rite
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-27 00:00:00.000000000 Z
12
+ date: 2014-06-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler