kristianmandrup / cancan-permits

Role specific Permits for use with CanCan permission system
MIT License
21 stars 1 forks source link

running rspec - Gemfile dependencies conflict. #10

Closed stanislaw closed 13 years ago

stanislaw commented 13 years ago

Forked repository. Trying to run rspec spec/ in plugins directory.

Have dependencies conflict:

Fetching source index for http://rubygems.org/ Bundler could not find compatible versions for gem "sugar-high": In Gemfile: code-spec (~> 0.2.9) depends on sugar-high (~> 0.3.0)

sugar-high (0.4.0)
kristianmandrup commented 13 years ago

latest code-spec release (0.2.11) should fix this dependency bug!

stanislaw commented 13 years ago

Thanks for the answer, but the latest gem version is 0.2.9.

stanislaw commented 13 years ago

Sorry, i'll use repository version for a while.

stanislaw commented 13 years ago

Repository version also don't have 0.2.11.

kristianmandrup commented 13 years ago

Sorry, I did a fire and forget. The gemspec had not been added to git so it never pushed or released the gem. Moving too fast!

BTW: I just made a commit to the rails_31 branch of cancan_permits with some logic for loading categories and some logic for role group permits. Even included an example in the README. Check it out when you get there...

stanislaw commented 13 years ago

Yeah I see commit. Branch master ;) Already looking at it. Thank you.

kristianmandrup commented 13 years ago

Also, you are more than welcome to do some refactorings in this branch to reduce the modules/classes into smaller, more logical parts, create smaller API methods with private and protected helper methods and so on... Fx the base_permit.rb class is now waaaaay too big and has too much varied responsibility in one place. All the load logic could be put in a seperate module and included. Same goes for the #can, #cannot and #owns. Have fun!