james2m / canard

Makes role based authorization in Rails really simple. Wraps CanCan and RoleModel up with a smattering of syntactic sugar, some generators and scopes.
MIT License
125 stars 28 forks source link

Bundler won't install canard unless Rails is already installed #21

Closed jondkinney closed 9 years ago

jondkinney commented 9 years ago

This stems from the require 'rails' on line 4 of the gemspec. I see why you're doing that, so you can check whether to use cancan or cancancan, but it doesn't seem like this is safe. I even added a runtime_dependency to the gemspec for rails and it still didn't try to install rails before trying to install canard. I'm sure there is a way, but I'm not sure what it is. Can you help?

There was a LoadError while loading canard.gemspec:
cannot load such file -- rails from
  /rails/github/canard/canard.gemspec:4:in `<main>'

This is from my local branch, which is why the path is not maybe what you'd expect.

Thanks!

james2m commented 9 years ago

Merged fix. Thanks @jondkinney.