f6aaa581ef
Easier to just do a simple comparison on the object in memory than to search the database. Also this allows method calls and other attributes that might not be found in the database.
26 lines
1.0 KiB
Ruby
26 lines
1.0 KiB
Ruby
Gem::Specification.new do |s|
|
|
s.name = "cancan"
|
|
s.version = "1.4.0"
|
|
s.author = "Ryan Bates"
|
|
s.email = "ryan@railscasts.com"
|
|
s.homepage = "http://github.com/ryanb/cancan"
|
|
s.summary = "Simple authorization solution for Rails."
|
|
s.description = "Simple authorization solution for Rails which is decoupled from user roles. All permissions are stored in a single location."
|
|
|
|
s.files = Dir["{lib,spec}/**/*", "[A-Z]*", "init.rb"] - ["Gemfile.lock"]
|
|
s.require_path = "lib"
|
|
|
|
s.add_development_dependency 'rspec', '~> 2.1.0'
|
|
s.add_development_dependency 'rails', '~> 3.0.0'
|
|
s.add_development_dependency 'rr', '~> 0.10.11' # 1.0.0 has respond_to? issues: http://github.com/btakita/rr/issues/issue/43
|
|
s.add_development_dependency 'supermodel', '~> 0.1.4'
|
|
|
|
s.add_development_dependency 'mongoid', '~> 2.0.0.beta.19'
|
|
s.add_development_dependency 'bson_ext', '~> 1.1'
|
|
|
|
# s.add_development_dependency 'ruby-debug'
|
|
|
|
s.rubyforge_project = s.name
|
|
s.required_rubygems_version = ">= 1.3.4"
|
|
end
|