cancancan 1.8.3 → 1.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b834aa0ca99b2b6ab4c5b731ab3f80163b4cf502
4
- data.tar.gz: 0e52c52dca9331cd0f99d26f16b804c3669dd796
3
+ metadata.gz: 819e93ed0b90294960a5cf198d9b2b706bb92102
4
+ data.tar.gz: d172cc5b2b9a84c5c16a984bf4f7a736b7972a56
5
5
  SHA512:
6
- metadata.gz: 46d18d924b8eae0a1ef18b9991adc41e1a781a4885554a2a3badb3f60dc9dca8ced9ccec84d2c92150558fddb189e1c56664167fcca71316ffed92c25e13c02c
7
- data.tar.gz: 8b4382876b82ed5c5826da510b6baebca02ef9c60da24dcdd6682e888e02bd44eb8990f45ca22381d5ddef91749a4f82b8753147be30ef2819aeda96b8def805
6
+ metadata.gz: 0561f92075412910012056ba8de57554d093bf19d8b4d8453a79b322e46fac3a5cd55683312505afd85c6d910fd55ca6ea787f1db1f57d4debd8e91e89adefce
7
+ data.tar.gz: e241a95106dd3ee46df19a7808368fbcfb970798e8e87bc0836e4f88df3b032a4f1462e698b0a739ff57ff37b90661c598bc96ebf89f824bc025dc68e09070c0
data/CHANGELOG.rdoc CHANGED
@@ -1,6 +1,11 @@
1
1
  Develop
2
2
 
3
3
 
4
+ 1.8.4 (June 24th, 2014)
5
+
6
+ * Fix cancancan#86 - Fixes previous RSpec 3 update as there was a bug in the fix for RSpec 2.99. (bryanrite)
7
+
8
+
4
9
  1.8.3 (June 24th, 2014)
5
10
 
6
11
  * Fix cancancan#85 - Remove deprecation notices for RSpec 3 and continue backwards compatibility. (andypike, bryanrite, porteta)
@@ -12,7 +12,8 @@ Kernel.const_get(rspec_module)::Matchers.define :be_able_to do |*args|
12
12
  ability.can?(*args)
13
13
  end
14
14
 
15
- unless defined?(failure_message) # RSpec < 3
15
+ # Check that RSpec is < 2.99
16
+ if !respond_to?(:failure_message) && respond_to?(:failure_message_for_should)
16
17
  alias :failure_message :failure_message_for_should
17
18
  alias :failure_message_when_negated :failure_message_for_should_not
18
19
  end
@@ -24,5 +25,4 @@ Kernel.const_get(rspec_module)::Matchers.define :be_able_to do |*args|
24
25
  failure_message_when_negated do |ability|
25
26
  "expected not to be able to #{args.map(&:inspect).join(" ")}"
26
27
  end
27
-
28
28
  end
@@ -1,3 +1,3 @@
1
1
  module CanCan
2
- VERSION = "1.8.3"
2
+ VERSION = "1.8.4"
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.3
4
+ version: 1.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Rite