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 +4 -4
- data/CHANGELOG.rdoc +5 -0
- data/lib/cancan/matchers.rb +2 -2
- data/lib/cancan/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: 819e93ed0b90294960a5cf198d9b2b706bb92102
|
|
4
|
+
data.tar.gz: d172cc5b2b9a84c5c16a984bf4f7a736b7972a56
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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)
|
data/lib/cancan/matchers.rb
CHANGED
|
@@ -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
|
-
|
|
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
|
data/lib/cancan/version.rb
CHANGED