action_access 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/CONTRIBUTING.md +23 -0
- data/Gemfile +14 -0
- data/Gemfile.lock +87 -0
- data/LICENSE.txt +20 -0
- data/README.md +283 -0
- data/Rakefile +28 -0
- data/action_access.gemspec +24 -0
- data/lib/action_access.rb +14 -0
- data/lib/action_access/controller_additions.rb +75 -0
- data/lib/action_access/keeper.rb +90 -0
- data/lib/action_access/model_additions.rb +14 -0
- data/lib/action_access/railtie.rb +19 -0
- data/lib/action_access/user_utilities.rb +39 -0
- data/lib/action_access/version.rb +3 -0
- data/test/action_access_test.rb +21 -0
- data/test/controllers/articles_controller_test.rb +41 -0
- data/test/controllers/secrets_controller_test.rb +10 -0
- data/test/controllers/static_controller_test.rb +15 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/images/.keep +0 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +15 -0
- data/test/dummy/app/controllers/articles_controller.rb +36 -0
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/controllers/secrets_controller.rb +4 -0
- data/test/dummy/app/controllers/static_controller.rb +6 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/mailers/.keep +0 -0
- data/test/dummy/app/models/.keep +0 -0
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/models/user.rb +7 -0
- data/test/dummy/app/views/articles/edit.html.erb +1 -0
- data/test/dummy/app/views/articles/index.html.erb +1 -0
- data/test/dummy/app/views/articles/new.html.erb +1 -0
- data/test/dummy/app/views/articles/show.html.erb +3 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/static/home.html.erb +1 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +78 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/assets.rb +8 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +6 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/db/migrate/20140926071026_create_users.rb +10 -0
- data/test/dummy/db/schema.rb +23 -0
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/dummy/log/.keep +0 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/models/user_test.rb +22 -0
- data/test/support/compact_environment.rb +9 -0
- data/test/test_helper.rb +8 -0
- metadata +203 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
4
|
+
# are locale specific, and you may define rules for as many different
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
9
|
+
# inflect.irregular 'person', 'people'
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
11
|
+
# end
|
12
|
+
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
+
# inflect.acronym 'RESTful'
|
16
|
+
# end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
+
end
|
10
|
+
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
13
|
+
# self.include_root_in_json = true
|
14
|
+
# end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
+
|
22
|
+
en:
|
23
|
+
hello: "Hello world"
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure the secrets in this file are kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
|
13
|
+
development:
|
14
|
+
secret_key_base: a8b9a299200d9b4be59fa1f6056731fcf28f0b7faa7a4406fef080628d5940ce69aa644e11e4a8f1413a6b2630232a195db18e2f17ce5cfd5826c761bc4a8a05
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: 7345b677d0e603133055f04b30aff7e2526c5926a58889f11b5af5c0da2bc4396fdb111113ecf6880748b0ae424c3602e72b8ec9c624de81a21169062016bd09
|
18
|
+
|
19
|
+
# Do not keep production secrets in the repository,
|
20
|
+
# instead read values from the environment.
|
21
|
+
production:
|
22
|
+
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(version: 20140926071026) do
|
15
|
+
|
16
|
+
create_table "users", force: true do |t|
|
17
|
+
t.string "username"
|
18
|
+
t.string "role"
|
19
|
+
t.datetime "created_at"
|
20
|
+
t.datetime "updated_at"
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
File without changes
|
File without changes
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/404.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class UserTest < ActiveSupport::TestCase
|
4
|
+
setup do
|
5
|
+
@admin ||= User.where({ username: 'flynn', role: 'admin' }).first_or_create
|
6
|
+
@user ||= User.where({ username: 'sam', role: 'user' }).first_or_create
|
7
|
+
end
|
8
|
+
|
9
|
+
test "the model gets extended" do
|
10
|
+
assert @user.respond_to? :can?
|
11
|
+
end
|
12
|
+
|
13
|
+
test "it allows to check permissions" do
|
14
|
+
# User
|
15
|
+
assert @user.can?(:show, :articles)
|
16
|
+
assert_not @user.can?(:create, :articles)
|
17
|
+
|
18
|
+
# Admin
|
19
|
+
assert @admin.can?(:create, :articles)
|
20
|
+
assert @admin.can?(:edit, :articles)
|
21
|
+
end
|
22
|
+
end
|
data/test/test_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,203 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: action_access
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Matías A. Gagliano
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-09-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: '4.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: sqlite3
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: Easy and modular way to secure applications and handle permissions.
|
42
|
+
email:
|
43
|
+
- matias.gagliano@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- ".gitignore"
|
49
|
+
- CONTRIBUTING.md
|
50
|
+
- Gemfile
|
51
|
+
- Gemfile.lock
|
52
|
+
- LICENSE.txt
|
53
|
+
- README.md
|
54
|
+
- Rakefile
|
55
|
+
- action_access.gemspec
|
56
|
+
- lib/action_access.rb
|
57
|
+
- lib/action_access/controller_additions.rb
|
58
|
+
- lib/action_access/keeper.rb
|
59
|
+
- lib/action_access/model_additions.rb
|
60
|
+
- lib/action_access/railtie.rb
|
61
|
+
- lib/action_access/user_utilities.rb
|
62
|
+
- lib/action_access/version.rb
|
63
|
+
- test/action_access_test.rb
|
64
|
+
- test/controllers/articles_controller_test.rb
|
65
|
+
- test/controllers/secrets_controller_test.rb
|
66
|
+
- test/controllers/static_controller_test.rb
|
67
|
+
- test/dummy/README.rdoc
|
68
|
+
- test/dummy/Rakefile
|
69
|
+
- test/dummy/app/assets/images/.keep
|
70
|
+
- test/dummy/app/assets/javascripts/application.js
|
71
|
+
- test/dummy/app/assets/stylesheets/application.css
|
72
|
+
- test/dummy/app/controllers/application_controller.rb
|
73
|
+
- test/dummy/app/controllers/articles_controller.rb
|
74
|
+
- test/dummy/app/controllers/concerns/.keep
|
75
|
+
- test/dummy/app/controllers/secrets_controller.rb
|
76
|
+
- test/dummy/app/controllers/static_controller.rb
|
77
|
+
- test/dummy/app/helpers/application_helper.rb
|
78
|
+
- test/dummy/app/mailers/.keep
|
79
|
+
- test/dummy/app/models/.keep
|
80
|
+
- test/dummy/app/models/concerns/.keep
|
81
|
+
- test/dummy/app/models/user.rb
|
82
|
+
- test/dummy/app/views/articles/edit.html.erb
|
83
|
+
- test/dummy/app/views/articles/index.html.erb
|
84
|
+
- test/dummy/app/views/articles/new.html.erb
|
85
|
+
- test/dummy/app/views/articles/show.html.erb
|
86
|
+
- test/dummy/app/views/layouts/application.html.erb
|
87
|
+
- test/dummy/app/views/static/home.html.erb
|
88
|
+
- test/dummy/bin/bundle
|
89
|
+
- test/dummy/bin/rails
|
90
|
+
- test/dummy/bin/rake
|
91
|
+
- test/dummy/config.ru
|
92
|
+
- test/dummy/config/application.rb
|
93
|
+
- test/dummy/config/boot.rb
|
94
|
+
- test/dummy/config/database.yml
|
95
|
+
- test/dummy/config/environment.rb
|
96
|
+
- test/dummy/config/environments/development.rb
|
97
|
+
- test/dummy/config/environments/production.rb
|
98
|
+
- test/dummy/config/environments/test.rb
|
99
|
+
- test/dummy/config/initializers/assets.rb
|
100
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
101
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
102
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
103
|
+
- test/dummy/config/initializers/inflections.rb
|
104
|
+
- test/dummy/config/initializers/mime_types.rb
|
105
|
+
- test/dummy/config/initializers/session_store.rb
|
106
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
107
|
+
- test/dummy/config/locales/en.yml
|
108
|
+
- test/dummy/config/routes.rb
|
109
|
+
- test/dummy/config/secrets.yml
|
110
|
+
- test/dummy/db/migrate/20140926071026_create_users.rb
|
111
|
+
- test/dummy/db/schema.rb
|
112
|
+
- test/dummy/lib/assets/.keep
|
113
|
+
- test/dummy/log/.keep
|
114
|
+
- test/dummy/public/404.html
|
115
|
+
- test/dummy/public/422.html
|
116
|
+
- test/dummy/public/500.html
|
117
|
+
- test/dummy/public/favicon.ico
|
118
|
+
- test/models/user_test.rb
|
119
|
+
- test/support/compact_environment.rb
|
120
|
+
- test/test_helper.rb
|
121
|
+
homepage: https://github.com/matiasgagliano/action_access
|
122
|
+
licenses:
|
123
|
+
- MIT
|
124
|
+
metadata: {}
|
125
|
+
post_install_message:
|
126
|
+
rdoc_options: []
|
127
|
+
require_paths:
|
128
|
+
- lib
|
129
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - ">="
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
requirements: []
|
140
|
+
rubyforge_project:
|
141
|
+
rubygems_version: 2.2.2
|
142
|
+
signing_key:
|
143
|
+
specification_version: 4
|
144
|
+
summary: Access control system for Ruby on Rails.
|
145
|
+
test_files:
|
146
|
+
- test/action_access_test.rb
|
147
|
+
- test/controllers/articles_controller_test.rb
|
148
|
+
- test/controllers/secrets_controller_test.rb
|
149
|
+
- test/controllers/static_controller_test.rb
|
150
|
+
- test/dummy/README.rdoc
|
151
|
+
- test/dummy/Rakefile
|
152
|
+
- test/dummy/app/assets/images/.keep
|
153
|
+
- test/dummy/app/assets/javascripts/application.js
|
154
|
+
- test/dummy/app/assets/stylesheets/application.css
|
155
|
+
- test/dummy/app/controllers/application_controller.rb
|
156
|
+
- test/dummy/app/controllers/articles_controller.rb
|
157
|
+
- test/dummy/app/controllers/concerns/.keep
|
158
|
+
- test/dummy/app/controllers/secrets_controller.rb
|
159
|
+
- test/dummy/app/controllers/static_controller.rb
|
160
|
+
- test/dummy/app/helpers/application_helper.rb
|
161
|
+
- test/dummy/app/mailers/.keep
|
162
|
+
- test/dummy/app/models/.keep
|
163
|
+
- test/dummy/app/models/concerns/.keep
|
164
|
+
- test/dummy/app/models/user.rb
|
165
|
+
- test/dummy/app/views/articles/edit.html.erb
|
166
|
+
- test/dummy/app/views/articles/index.html.erb
|
167
|
+
- test/dummy/app/views/articles/new.html.erb
|
168
|
+
- test/dummy/app/views/articles/show.html.erb
|
169
|
+
- test/dummy/app/views/layouts/application.html.erb
|
170
|
+
- test/dummy/app/views/static/home.html.erb
|
171
|
+
- test/dummy/bin/bundle
|
172
|
+
- test/dummy/bin/rails
|
173
|
+
- test/dummy/bin/rake
|
174
|
+
- test/dummy/config.ru
|
175
|
+
- test/dummy/config/application.rb
|
176
|
+
- test/dummy/config/boot.rb
|
177
|
+
- test/dummy/config/database.yml
|
178
|
+
- test/dummy/config/environment.rb
|
179
|
+
- test/dummy/config/environments/development.rb
|
180
|
+
- test/dummy/config/environments/production.rb
|
181
|
+
- test/dummy/config/environments/test.rb
|
182
|
+
- test/dummy/config/initializers/assets.rb
|
183
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
184
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
185
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
186
|
+
- test/dummy/config/initializers/inflections.rb
|
187
|
+
- test/dummy/config/initializers/mime_types.rb
|
188
|
+
- test/dummy/config/initializers/session_store.rb
|
189
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
190
|
+
- test/dummy/config/locales/en.yml
|
191
|
+
- test/dummy/config/routes.rb
|
192
|
+
- test/dummy/config/secrets.yml
|
193
|
+
- test/dummy/db/migrate/20140926071026_create_users.rb
|
194
|
+
- test/dummy/db/schema.rb
|
195
|
+
- test/dummy/lib/assets/.keep
|
196
|
+
- test/dummy/log/.keep
|
197
|
+
- test/dummy/public/404.html
|
198
|
+
- test/dummy/public/422.html
|
199
|
+
- test/dummy/public/500.html
|
200
|
+
- test/dummy/public/favicon.ico
|
201
|
+
- test/models/user_test.rb
|
202
|
+
- test/support/compact_environment.rb
|
203
|
+
- test/test_helper.rb
|