releasing version 1.3.4

This commit is contained in:
Ryan Bates 2010-08-31 15:46:26 -07:00
parent 5a353c1cba
commit 04b523eea4
3 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
1.3.4 (August 31, 2010)
* Don't stop at +cannot+ with hash conditions when checking class (thanks tamoya) - see issue #131
1.3.3 (August 20, 2010) 1.3.3 (August 20, 2010)
* Switching to Rspec namespace to remove deprecation warning in Rspec 2 - see issue #119 * Switching to Rspec namespace to remove deprecation warning in Rspec 2 - see issue #119

View File

@ -1,6 +1,6 @@
Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = "cancan" s.name = "cancan"
s.version = "1.3.3" s.version = "1.3.4"
s.author = "Ryan Bates" s.author = "Ryan Bates"
s.email = "ryan@railscasts.com" s.email = "ryan@railscasts.com"
s.homepage = "http://github.com/ryanb/cancan" s.homepage = "http://github.com/ryanb/cancan"

View File

@ -249,8 +249,8 @@ describe CanCan::Ability do
it "should not stop at cannot definition when comparing class" do it "should not stop at cannot definition when comparing class" do
@ability.can :read, Array @ability.can :read, Array
@ability.cannot :read, Array, :first => 1 @ability.cannot :read, Array, :first => 1
@ability.can?(:read, [2,3,5]).should be_true @ability.can?(:read, [2, 3, 5]).should be_true
@ability.can?(:read, [1,3,5]).should be_false @ability.can?(:read, [1, 3, 5]).should be_false
@ability.can?(:read, Array).should be_true @ability.can?(:read, Array).should be_true
end end