discretion 0.4.0.pre.alpha

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5b39ae6911fe8a0aa3da936ad083d93c346af721
4
+ data.tar.gz: 5e34a6059f263690d797e97455777ad7a01cc4ed
5
+ SHA512:
6
+ metadata.gz: b50620eef4fe55b2117695f3aace6a6cb9311d277b7210cc4af07d043947af8b4dbb5b192bc60e505909a433cfce8c5167261c13c778ec7f99b3f70632d87d4e
7
+ data.tar.gz: 98118e6239097bad701fd7de80641eec0f3ebccb6f973bd556e40213fee71aba20b4b00e186f3747e493f883de20d63395517e3ab6693495263a5062ed30c5c3
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
@@ -0,0 +1,46 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ ## Our Standards
8
+
9
+ Examples of behavior that contributes to creating a positive environment include:
10
+
11
+ * Using welcoming and inclusive language
12
+ * Being respectful of differing viewpoints and experiences
13
+ * Gracefully accepting constructive criticism
14
+ * Focusing on what is best for the community
15
+ * Showing empathy towards other community members
16
+
17
+ Examples of unacceptable behavior by participants include:
18
+
19
+ * The use of sexualized language or imagery and unwelcome sexual attention or advances
20
+ * Trolling, insulting/derogatory comments, and personal or political attacks
21
+ * Public or private harassment
22
+ * Publishing others' private information, such as a physical or electronic address, without explicit permission
23
+ * Other conduct which could reasonably be considered inappropriate in a professional setting
24
+
25
+ ## Our Responsibilities
26
+
27
+ Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28
+
29
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30
+
31
+ ## Scope
32
+
33
+ This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34
+
35
+ ## Enforcement
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at codeclimbcoffee@gmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38
+
39
+ Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40
+
41
+ ## Attribution
42
+
43
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44
+
45
+ [homepage]: http://contributor-covenant.org
46
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source "https://rubygems.org"
2
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Abe Land
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,196 @@
1
+ # Discretion
2
+
3
+ ## Installation
4
+
5
+ Add this line to your application's Gemfile:
6
+
7
+ ```ruby
8
+ gem 'discretion'
9
+ ```
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install discretion
18
+
19
+ ## Usage
20
+
21
+ (Please note that currently (and for the foreseeable future), Discretion only works with ActiveRecord)
22
+
23
+
24
+ ### High Level Idea
25
+
26
+ The idea is simple: we colocate the read and write policies with the model definitions themselves by defining `can_see?(viewer)` and optionally `can_write?(viewer)`. The semantics are straightforward: given a `viewer` (typically a `User` but can be anything you want -- more on this below), can that viewer see the record encapsulated by the model class?
27
+
28
+ For example, let's say we have a web app for a large non-profit organization which has staff who have to raise money from donors. So we might have models like `Donor`, `Staff`, and `Donation`s. Below we will describe how we would set up authorization/privacy policies for these models using Discretion.
29
+
30
+ ### Opt-In
31
+
32
+ Discretion uses an Opt-In strategy: you must tell discretion which models should use discretion. To do this, you use the `use_discretion` directive in your model definition. When you do this, you **must** then define a `can_see?(viewer)` method. It can have any visibility (private, protected, or public). So, continuing with our running example of a non-profit organization with `Donor`s, `Staff`, and `Donation`s, we might start with some basic privacy policies like this:
33
+
34
+ ```ruby
35
+ class Staff < ApplicationRecord
36
+ use_discretion
37
+
38
+ ...
39
+
40
+ private
41
+
42
+ def can_see?(viewer)
43
+ # Only Staff of the organization can see Staff members.
44
+ viewer.is_a?(Staff)
45
+ end
46
+ ```
47
+
48
+ ```ruby
49
+ class Donor < ApplicationRecord
50
+ use_discretion
51
+
52
+ ...
53
+
54
+ def can_see?(viewer)
55
+ # Only the Donor herself or Staff of the organization can see the Donor.
56
+ viewer == self || viewer.is_a?(Staff)
57
+ end
58
+ ```
59
+
60
+ ```ruby
61
+ class Donation < ApplicationRecord
62
+ use_discretion
63
+
64
+ belongs_to :donor
65
+ belongs_to :recipient, class_name: 'Staff', foreign_key: 'staff_id'
66
+
67
+ ...
68
+
69
+ def can_see?(viewer)
70
+ # Only the Donor for the donation or the Staff recipient of the donation can see the Donation.
71
+ viewer == donor || viewer == recipient
72
+ end
73
+ end
74
+ ```
75
+
76
+ ### Write policies
77
+
78
+ You can optionally distinguish write policies from read policies. If you don't, then Discretion will assume that if the current viewer `can_see?` the record, that it `can_write?` it as well. So we might edit our running example to only allow the recipient of a `Donation` to edit it (i.e. the recipient staff member recording donations):
79
+
80
+ ```ruby
81
+ class Donation < ApplicationRecord
82
+ use_discretion
83
+
84
+ belongs_to :donor
85
+ belongs_to :recipient, class_name: 'Staff', foreign_key: 'staff_id'
86
+
87
+ ...
88
+
89
+ def can_see?(viewer)
90
+ # Only the Donor for the donation or the Staff recipient of the donation can see the Donation.
91
+ viewer == donor || viewer == recipient
92
+ end
93
+
94
+ def can_write?(viewer)
95
+ # Only the recipient can edit the donation.
96
+ viewer == recipient
97
+ end
98
+ end
99
+ ```
100
+
101
+ ### Wait what's the `viewer` object though?
102
+
103
+ You decide. Since `viewer` is given as an argument to `can_see?` and `can_write?`, it's really for you to help you write privacy/authorization policies without having to store the current viewer elsewhere. Discretion exposes two helper methods for setting and retrieving the current `viewer`, and there is no expectation about what kind of object it is. For example, if you set the `current_user` in your base `ApplicationController` class, you could do something like this:
104
+
105
+ ```ruby
106
+ class ApplicationController < ActionController::Base
107
+ before_action :set_discretion_current_user
108
+
109
+ def current_user
110
+ # I use RequestStore instead of static variables as the latter could persist across requests depending on the server.
111
+ RequestStore[:current_user] ||= current_user_from_cookies
112
+ end
113
+
114
+ private
115
+
116
+ def current_user_from_cookies
117
+ ... fetch user from session cookies ...
118
+ end
119
+
120
+ def set_discretion_current_user
121
+ Discretion.set_current_viewer(current_user)
122
+ end
123
+ ```
124
+
125
+ If you want to retrieve that anywhere later (you may never have to), you can do so by `Discretion.get_current_viewer`.
126
+
127
+ ### Middleware
128
+
129
+ Discretion has a Railtie which adds a middleware which sets the `current_viewer` from [Clearance](https://github.com/thoughtbot/clearance) (I use Clearance). I **might** add functionality to detect the current user from other authentication frameworks in the future. In the meantime, you can add your own middleware to set the `current_viewer` in Discretion, looking something like this:
130
+
131
+ ```ruby
132
+ module MyApp
133
+ class Middleware
134
+ def initialize(app)
135
+ @app = app
136
+ end
137
+
138
+ def call(env)
139
+ Discretion.set_current_viewer(current_user_from_some_other_source)
140
+ @app.call(env)
141
+ end
142
+ end
143
+ end
144
+ ```
145
+
146
+ Again, if you use [Clearance](https://github.com/thoughtbot/clearance), you shouldn't have to do anything and `current_viewer` will be set from the `env[:clearance].current_user` value (exposed by Clearance's middleware) in Discretion's middleware.
147
+
148
+ ### But what about roles and such?
149
+
150
+ Discretion's scope is focused and limited to privacy/authorization. It's a **non-goal** of this project to handle enumeration of roles or permissions or ACLs on actual objects with respect to other objects. There are other gems which do this well. I personally like [Rolify](https://github.com/RolifyCommunity/rolify), and Rolify can be used with Discretion in very nifty ways. Continuing our non-profit organization example, we can use Rolify to create an `admin` role for Staff members, and allow admins of the organization as well as recipients of a donation to edit `Doantion`s:
151
+
152
+ ```ruby
153
+ class Organization < ApplicationRecord
154
+ has_many :donations
155
+ end
156
+
157
+ ...
158
+
159
+ class Donation < ApplicationRecord
160
+ use_discretion
161
+
162
+ belongs_to :organization
163
+ belongs_to :donor
164
+ belongs_to :recipient, class_name: 'Staff', foreign_key: 'staff_id'
165
+
166
+ ...
167
+
168
+ def can_see?(viewer)
169
+ # Only the Donor for the donation or the Staff recipient of the donation can see the Donation.
170
+ viewer == donor || viewer == recipient || viewer.has_role?(:admin, organization) # <- rolify in third disjunct
171
+ end
172
+
173
+ def can_write?(viewer)
174
+ # Only the recipient can edit the donation.
175
+ viewer == recipient || viewer.has_role?(:admin, organization) # <- rolify in second disjunct
176
+ end
177
+ end
178
+ ```
179
+
180
+ ### Querying for and writing records
181
+
182
+ Discretion is totally opaque and should not require any changes in how you query for or write records. That is, you can just query for things normally using `find`, `where`, `limit`, etc. You can also `create`/`update`/`destroy`/`delete` records as you normally would, and Discretion will check your `can_see?` and `can_write?` policies for all of these actions.
183
+
184
+ ## Development
185
+
186
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
187
+
188
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
189
+
190
+ ## Contributing
191
+
192
+ Bug reports and pull requests are welcome on GitHub at https://github.com/abeland/discretion.
193
+
194
+ ## License
195
+
196
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "discretion"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,30 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'discretion/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'discretion'
8
+ spec.version = Discretion::VERSION
9
+ spec.authors = ['Abe Land']
10
+ spec.email = ['codeclimbcoffee@gmail.com']
11
+
12
+ spec.summary = 'A simple privacy/authorization framework for Rails projects.'
13
+ spec.description = spec.summary
14
+ spec.homepage = 'https://github.com/abeland/discretion'
15
+ spec.license = 'MIT'
16
+
17
+ spec.add_dependency 'rails', '~>5'
18
+ spec.add_dependency 'request_store', '~>1.3'
19
+ spec.required_ruby_version = '>= 2.2.2'
20
+
21
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
22
+ f.match(%r{^(test|spec|features)/})
23
+ end
24
+ spec.bindir = 'exe'
25
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
+ spec.require_paths = ['lib']
27
+
28
+ spec.add_development_dependency 'bundler', '~> 1.15'
29
+ spec.add_development_dependency 'rake', '~> 10.0'
30
+ end
data/lib/discretion.rb ADDED
@@ -0,0 +1,11 @@
1
+ require 'discretion/can'
2
+ require 'discretion/current_viewer'
3
+ require 'discretion/discreet_model'
4
+ require 'discretion/errors'
5
+ require 'discretion/helpers'
6
+ require 'discretion/meta'
7
+ require 'discretion/middleware'
8
+ require 'discretion/railtie'
9
+ require 'discretion/version'
10
+
11
+ ActiveRecord::Base.send(:include, Discretion::Meta) if defined?(ActiveRecord)
@@ -0,0 +1,25 @@
1
+ module Discretion
2
+ class << self
3
+ def can_see_record?(viewer, record)
4
+ return true unless record.is_a?(Discretion::DiscreetModel)
5
+
6
+ record.send(:can_see?, viewer)
7
+ end
8
+
9
+ def current_viewer_can_see_record?(record)
10
+ can_see_record?(Discretion.current_viewer, record)
11
+ end
12
+
13
+ def can_write_record?(viewer, record)
14
+ return true unless record.is_a?(Discretion::DiscreetModel)
15
+
16
+ record.respond_to?(:can_write?, true) ?
17
+ record.send(:can_write?, viewer) :
18
+ can_see_record?(viewer, record)
19
+ end
20
+
21
+ def current_viewer_can_write_record?(record)
22
+ can_write_record?(Discretion.current_viewer, record)
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,13 @@
1
+ module Discretion
2
+ class << self
3
+ CURRENT_VIEWER_KEY = :__discretion_current_viewer
4
+
5
+ def current_viewer
6
+ RequestStore[CURRENT_VIEWER_KEY]
7
+ end
8
+
9
+ def set_current_viewer(current_viewer)
10
+ RequestStore[CURRENT_VIEWER_KEY] = current_viewer
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,15 @@
1
+ module Discretion
2
+ module DiscreetModel
3
+ extend ActiveSupport::Concern
4
+
5
+ included do
6
+ after_initialize do |record|
7
+ raise Discretion::CannotSeeError unless Discretion.current_viewer_can_see_record?(record)
8
+ end
9
+
10
+ before_save do |record|
11
+ raise Discretion::CannotWriteError unless Discretion.current_viewer_can_write_record?(record)
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,4 @@
1
+ module Discretion
2
+ class CannotSeeError < StandardError; end
3
+ class CannotWriteError < StandardError; end
4
+ end
@@ -0,0 +1,19 @@
1
+ module Discretion
2
+ class << self
3
+ def in_console?
4
+ defined?(Rails::Console).present?
5
+ end
6
+
7
+ def in_test?
8
+ Rails.env.test?
9
+ end
10
+
11
+ def can_see_records?(viewer, *records)
12
+ records.all? { |record| Discretion.can_see_record?(viewer, record) }
13
+ end
14
+
15
+ def can_write_records?(viewer, *records)
16
+ records.all? { |record| Discretion.can_write_record?(viewer, record) }
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,11 @@
1
+ module Discretion
2
+ module Meta
3
+ extend ActiveSupport::Concern
4
+
5
+ class_methods do
6
+ def use_discretion
7
+ include Discretion::DiscreetModel
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,15 @@
1
+ module Discretion
2
+ class Middleware
3
+ def initialize(app)
4
+ @app = app
5
+ end
6
+
7
+ def call(env)
8
+ # From Clearance
9
+ if env[:clearance]&.signed_in?
10
+ Discretion.set_current_viewer(env[:clearance].current_user)
11
+ end
12
+ @app.call(env)
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,12 @@
1
+ module Discretion
2
+ class Railtie < ::Rails::Railtie
3
+ initializer 'discretion.insert_middleware' do |app|
4
+ if defined?(Clearance::RackSession)
5
+ app.config.middleware.insert_after(
6
+ Clearance::RackSession,
7
+ Discretion::Middleware,
8
+ )
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,3 @@
1
+ module Discretion
2
+ VERSION = '0.4.0.pre.alpha'.freeze
3
+ end
metadata ADDED
@@ -0,0 +1,119 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: discretion
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.0.pre.alpha
5
+ platform: ruby
6
+ authors:
7
+ - Abe Land
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-11-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '5'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: request_store
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.3'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.3'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.15'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.15'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ description: A simple privacy/authorization framework for Rails projects.
70
+ email:
71
+ - codeclimbcoffee@gmail.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - CODE_OF_CONDUCT.md
78
+ - Gemfile
79
+ - LICENSE.txt
80
+ - README.md
81
+ - Rakefile
82
+ - bin/console
83
+ - bin/setup
84
+ - discretion.gemspec
85
+ - lib/discretion.rb
86
+ - lib/discretion/can.rb
87
+ - lib/discretion/current_viewer.rb
88
+ - lib/discretion/discreet_model.rb
89
+ - lib/discretion/errors.rb
90
+ - lib/discretion/helpers.rb
91
+ - lib/discretion/meta.rb
92
+ - lib/discretion/middleware.rb
93
+ - lib/discretion/railtie.rb
94
+ - lib/discretion/version.rb
95
+ homepage: https://github.com/abeland/discretion
96
+ licenses:
97
+ - MIT
98
+ metadata: {}
99
+ post_install_message:
100
+ rdoc_options: []
101
+ require_paths:
102
+ - lib
103
+ required_ruby_version: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: 2.2.2
108
+ required_rubygems_version: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ">"
111
+ - !ruby/object:Gem::Version
112
+ version: 1.3.1
113
+ requirements: []
114
+ rubyforge_project:
115
+ rubygems_version: 2.6.11
116
+ signing_key:
117
+ specification_version: 4
118
+ summary: A simple privacy/authorization framework for Rails projects.
119
+ test_files: []