action_control 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +34 -0
  4. data/lib/action_control.rb +12 -0
  5. data/lib/action_control/action_controller/base.rb +8 -0
  6. data/lib/action_control/controller_methods.rb +69 -0
  7. data/lib/action_control/errors.rb +29 -0
  8. data/lib/action_control/version.rb +3 -0
  9. data/lib/tasks/action_control_tasks.rake +4 -0
  10. data/test/action_control_test.rb +43 -0
  11. data/test/dummy/README.rdoc +28 -0
  12. data/test/dummy/Rakefile +6 -0
  13. data/test/dummy/app/assets/javascripts/application.js +13 -0
  14. data/test/dummy/app/assets/javascripts/welcome.js +2 -0
  15. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  16. data/test/dummy/app/assets/stylesheets/welcome.css +4 -0
  17. data/test/dummy/app/controllers/application_controller.rb +7 -0
  18. data/test/dummy/app/controllers/welcome_controller.rb +12 -0
  19. data/test/dummy/app/helpers/application_helper.rb +2 -0
  20. data/test/dummy/app/helpers/welcome_helper.rb +2 -0
  21. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  22. data/test/dummy/app/views/welcome/index.html.erb +2 -0
  23. data/test/dummy/app/views/welcome/other.html.erb +1 -0
  24. data/test/dummy/bin/bundle +3 -0
  25. data/test/dummy/bin/rails +4 -0
  26. data/test/dummy/bin/rake +4 -0
  27. data/test/dummy/bin/setup +29 -0
  28. data/test/dummy/config.ru +4 -0
  29. data/test/dummy/config/application.rb +29 -0
  30. data/test/dummy/config/boot.rb +5 -0
  31. data/test/dummy/config/environment.rb +5 -0
  32. data/test/dummy/config/environments/development.rb +38 -0
  33. data/test/dummy/config/environments/production.rb +76 -0
  34. data/test/dummy/config/environments/test.rb +42 -0
  35. data/test/dummy/config/initializers/assets.rb +11 -0
  36. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  37. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  38. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  39. data/test/dummy/config/initializers/inflections.rb +16 -0
  40. data/test/dummy/config/initializers/mime_types.rb +4 -0
  41. data/test/dummy/config/initializers/session_store.rb +3 -0
  42. data/test/dummy/config/initializers/wrap_parameters.rb +9 -0
  43. data/test/dummy/config/locales/en.yml +23 -0
  44. data/test/dummy/config/routes.rb +4 -0
  45. data/test/dummy/config/secrets.yml +22 -0
  46. data/test/dummy/log/development.log +545 -0
  47. data/test/dummy/log/test.log +77 -0
  48. data/test/dummy/public/404.html +67 -0
  49. data/test/dummy/public/422.html +67 -0
  50. data/test/dummy/public/500.html +66 -0
  51. data/test/dummy/public/favicon.ico +0 -0
  52. data/test/dummy/test/controllers/welcome_controller_test.rb +9 -0
  53. data/test/dummy/tmp/cache/sprockets/v3.0/0l0dzRDrwh8jbgwNcdqbI0eReG4vwBstqHkgAwNKVMI.cache +0 -0
  54. data/test/dummy/tmp/cache/sprockets/v3.0/3JKkanNb216zALB8-924T4VDK6tJjkEFV-Bwgbj9B14.cache +1 -0
  55. data/test/dummy/tmp/cache/sprockets/v3.0/3ggZ0W-Ys5SQS26u_NFEJe14n9nBRhdtzY3kcBWtpu8.cache +1 -0
  56. data/test/dummy/tmp/cache/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +2 -0
  57. data/test/dummy/tmp/cache/sprockets/v3.0/9QE06Hoy-nitPf5xGEddC6zVi0kNWX_1DxmrNe0T2qM.cache +1 -0
  58. data/test/dummy/tmp/cache/sprockets/v3.0/CqS8f-adc43tZVUYwbeYNlaAp68VAND9gSz75EJ_qIk.cache +2 -0
  59. data/test/dummy/tmp/cache/sprockets/v3.0/CuqjeS-2eHHBlkxRvn8u1KzXJexpD4avFhe5otAxzKI.cache +0 -0
  60. data/test/dummy/tmp/cache/sprockets/v3.0/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache +2 -0
  61. data/test/dummy/tmp/cache/sprockets/v3.0/E1OA9yJbW6lMNqFjch4O_Nm972yonIiNtGF4nEgeMgI.cache +0 -0
  62. data/test/dummy/tmp/cache/sprockets/v3.0/EEplIoXGshtrgJgFxcH1B6LgetWrS_RuhCYsTuqiO6s.cache +2 -0
  63. data/test/dummy/tmp/cache/sprockets/v3.0/GFBoWLa7w-AyBQvckeZ0t9KOOannb3LF2nwW6y6YgF8.cache +0 -0
  64. data/test/dummy/tmp/cache/sprockets/v3.0/IaQzQGXFQfBjkrxhDnuTvASIp7dzp5kCcg8w-Csu_IY.cache +1 -0
  65. data/test/dummy/tmp/cache/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +2 -0
  66. data/test/dummy/tmp/cache/sprockets/v3.0/ROPBCmx5V50szmtJZQ1KcVsTqCQelEo0PTleLKnAFXs.cache +1 -0
  67. data/test/dummy/tmp/cache/sprockets/v3.0/UKGBReGXsgsCgfeO31yA5_k496KeznXmPBK5CVgIIqE.cache +0 -0
  68. data/test/dummy/tmp/cache/sprockets/v3.0/Vb2Y-hLNYLDStluCCCj5SSZiiOLy2PO8hcPoz6kT75A.cache +1 -0
  69. data/test/dummy/tmp/cache/sprockets/v3.0/XrVJilAWIg8PWr-zSv8YW0Y-V-myv-Iht2JKCan_ym0.cache +1 -0
  70. data/test/dummy/tmp/cache/sprockets/v3.0/YfxKw2MPxJHBrxMEABBUhvLuuEDSKGrN06FK5Sh3uB4.cache +1 -0
  71. data/test/dummy/tmp/cache/sprockets/v3.0/YzLwjdol-fillzMShjbe2GgKGueXAc1nHbFTKSBo7-Q.cache +1 -0
  72. data/test/dummy/tmp/cache/sprockets/v3.0/_D1t1IyVlDXU4ylfoagfIPFxF1mPsX8ak2RTaDQPUHg.cache +2 -0
  73. data/test/dummy/tmp/cache/sprockets/v3.0/_VRRH7j3ZMxMxKW0Sg9TTTD5jlZh7oqWpZDsuNWCKYM.cache +0 -0
  74. data/test/dummy/tmp/cache/sprockets/v3.0/cJMggEGypPzKwx81E8ea4CvAVxgpobH-q4uvErBv_kg.cache +1 -0
  75. data/test/dummy/tmp/cache/sprockets/v3.0/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache +2 -0
  76. data/test/dummy/tmp/cache/sprockets/v3.0/hQTnMC8F5eeLeiYssSZYLCGx79KLgUj18fUlyt7-HXs.cache +0 -0
  77. data/test/dummy/tmp/cache/sprockets/v3.0/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +2 -0
  78. data/test/dummy/tmp/cache/sprockets/v3.0/kRZh-Br9E6KK0oj2H8xkk_a4sOotGQ3V4x4i1dsN8l8.cache +1 -0
  79. data/test/dummy/tmp/cache/sprockets/v3.0/o6BRWItl0A8KUtdzj8CodRWOSdJBZEZoUwNZWkBIvKE.cache +0 -0
  80. data/test/dummy/tmp/cache/sprockets/v3.0/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +2 -0
  81. data/test/dummy/tmp/cache/sprockets/v3.0/pNLwute95D3t-czgrFvKNRpZACiCXca-o3A806hAIBU.cache +1 -0
  82. data/test/dummy/tmp/cache/sprockets/v3.0/szxi6adMfobVBR3v1xjK3BuVOBK7TW6EONLC0uBTtIs.cache +1 -0
  83. data/test/dummy/tmp/pids/server.pid +1 -0
  84. data/test/test_helper.rb +19 -0
  85. metadata +217 -0
@@ -0,0 +1,77 @@
1
+ ----------------------------------------------------------------------------------------------------
2
+ ActionControlTest: test_should_raise_`AuthorizationNotPerformedError`_if_#authorized?_is_not_defined
3
+ ----------------------------------------------------------------------------------------------------
4
+ ----------------------------------------------------------------------------------------------------
5
+ ActionControlTest: test_should_raise_`AuthorizationNotPerformedError`_if_#authorized?_is_not_defined
6
+ ----------------------------------------------------------------------------------------------------
7
+ ----------------------------------------------------------------------------------------------------
8
+ ActionControlTest: test_should_raise_`AuthorizationNotPerformedError`_if_#authorized?_is_not_defined
9
+ ----------------------------------------------------------------------------------------------------
10
+ ------------------------------------------------------------------------------------------
11
+ ActionControlTest: test_should_raise_`NotAuthorizedError`_if_#authorized?_not_returns_true
12
+ ------------------------------------------------------------------------------------------
13
+ ------------------------------------------------------------------------------
14
+ ActionControlTest: test_should_raise_no_exception_if_#authorized?_returns_true
15
+ ------------------------------------------------------------------------------
16
+ ------------------------------------------------------------------------------
17
+ ActionControlTest: test_should_raise_no_exception_if_#authorized?_returns_true
18
+ ------------------------------------------------------------------------------
19
+ ------------------------------------------------------------------------------------------
20
+ ActionControlTest: test_should_raise_`NotAuthorizedError`_if_#authorized?_not_returns_true
21
+ ------------------------------------------------------------------------------------------
22
+ ----------------------------------------------------------------------------------------------------
23
+ ActionControlTest: test_should_raise_`AuthorizationNotPerformedError`_if_#authorized?_is_not_defined
24
+ ----------------------------------------------------------------------------------------------------
25
+ ------------------------------------------------------------------------------
26
+ ActionControlTest: test_should_raise_no_exception_if_#authorized?_returns_true
27
+ ------------------------------------------------------------------------------
28
+ ------------------------------------------------------------------------------------------
29
+ ActionControlTest: test_should_raise_`NotAuthorizedError`_if_#authorized?_not_returns_true
30
+ ------------------------------------------------------------------------------------------
31
+ ----------------------------------------------------------------------------------------------------
32
+ ActionControlTest: test_should_raise_`AuthorizationNotPerformedError`_if_#authorized?_is_not_defined
33
+ ----------------------------------------------------------------------------------------------------
34
+ ------------------------------------------------------------------------------
35
+ ActionControlTest: test_should_raise_no_exception_if_#authorized?_returns_true
36
+ ------------------------------------------------------------------------------
37
+ ------------------------------------------------------------------------------------------
38
+ ActionControlTest: test_should_raise_`NotAuthorizedError`_if_#authorized?_not_returns_true
39
+ ------------------------------------------------------------------------------------------
40
+ ----------------------------------------------------------------------------------------------------
41
+ ActionControlTest: test_should_raise_`AuthorizationNotPerformedError`_if_#authorized?_is_not_defined
42
+ ----------------------------------------------------------------------------------------------------
43
+ --------------------------------------------
44
+ WelcomeControllerTest: test_should_get_index
45
+ --------------------------------------------
46
+ Processing by WelcomeController#index as HTML
47
+ Rendered welcome/index.html.erb within layouts/application (0.7ms)
48
+ Completed 200 OK in 151ms (Views: 150.5ms)
49
+ --------------------------------------------
50
+ WelcomeControllerTest: test_should_get_index
51
+ --------------------------------------------
52
+ Processing by WelcomeController#index as HTML
53
+ Completed 500 Internal Server Error in 1ms
54
+ ------------------------------------------------------------------------------
55
+ ActionControlTest: test_should_raise_no_exception_if_#authorized?_returns_true
56
+ ------------------------------------------------------------------------------
57
+ ------------------------------------------------------------------------------------------
58
+ ActionControlTest: test_should_raise_`NotAuthorizedError`_if_#authorized?_not_returns_true
59
+ ------------------------------------------------------------------------------------------
60
+ ----------------------------------------------------------------------------------------------------
61
+ ActionControlTest: test_should_raise_`AuthorizationNotPerformedError`_if_#authorized?_is_not_defined
62
+ ----------------------------------------------------------------------------------------------------
63
+ ----------------------------------------------------------------------------------------------------
64
+ ActionControlTest: test_should_raise_`AuthorizationNotPerformedError`_if_#authorized?_is_not_defined
65
+ ----------------------------------------------------------------------------------------------------
66
+ ------------------------------------------------------------------------------
67
+ ActionControlTest: test_should_raise_no_exception_if_#authorized?_returns_true
68
+ ------------------------------------------------------------------------------
69
+ ------------------------------------------------------------------------------------------
70
+ ActionControlTest: test_should_raise_`NotAuthorizedError`_if_#authorized?_not_returns_true
71
+ ------------------------------------------------------------------------------------------
72
+ --------------------------------------------
73
+ WelcomeControllerTest: test_should_get_index
74
+ --------------------------------------------
75
+ Processing by WelcomeController#index as HTML
76
+ Rendered welcome/index.html.erb within layouts/application (0.9ms)
77
+ Completed 200 OK in 151ms (Views: 150.5ms)
@@ -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,9 @@
1
+ require 'test_helper'
2
+
3
+ class WelcomeControllerTest < ActionController::TestCase
4
+ test "should get index" do
5
+ get :index
6
+ assert_response :success
7
+ end
8
+
9
+ end
@@ -0,0 +1 @@
1
+ "%Ѱč@�����6H�uZoX�Z�gbh0W��V
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=e88474469c3f255484afbdf54eaed27ebdcc90488efd99c8a0b9f91a8764a9d4:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"0processors:type=text/css&file_type=text/css;TTI"9file-digest://app/assets/stylesheets/application.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"5file-digest://app/assets/stylesheets/welcome.css;TTI")file-digest://app/assets/stylesheets;TT
@@ -0,0 +1 @@
1
+ I"}app/assets/stylesheets/application.css?type=text/css&id=64dcf56530470d69f284d8ca0168bc9aab865e153160c07925348b910a20171b:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"5file-digest://app/assets/stylesheets/welcome.css;TT
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"?processors:type=text/css&file_type=text/css&pipeline=debug;TTI"9file-digest://app/assets/stylesheets/application.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"5file-digest://app/assets/stylesheets/welcome.css;TTI")file-digest://app/assets/stylesheets;TT
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"4file-digest://app/assets/javascripts/welcome.js;TT
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"9file-digest://app/assets/stylesheets/application.css;TTI")file-digest://app/assets/stylesheets;TTI"5file-digest://app/assets/stylesheets/welcome.css;TT
@@ -0,0 +1 @@
1
+ "%�W\�yho9S���ƫ˥��)|�~���(���
@@ -0,0 +1 @@
1
+ "%O^�UA%���yŕ�dL:\�y��H&W�3�u
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/welcome.css?type=text/css&pipeline=self&id=af5addceb192323b584effa88d602504a38e2787a25695dd018055efb25b4b92:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/welcome.js?type=application/javascript&pipeline=self&id=dd0019429336d7db6c8e0529f850253d5782690538de371209b51e5fac8c0ee3:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=a98c404a66f7c47a12cba370e25c728138cddd4805ffdbb63903a683af02dc9e:ET
@@ -0,0 +1,2 @@
1
+ "%����͹mm�
2
+ a�l�|a56���v�6}��(&5
@@ -0,0 +1 @@
1
+ "%֧�NTZq�בH�L��#p3��Jg!��)
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"[processors:type=application/javascript&file_type=application/javascript&pipeline=debug;TTI"8file-digest://app/assets/javascripts/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"4file-digest://app/assets/javascripts/welcome.js;TTI")file-digest://app/assets/javascripts;TT
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"8file-digest://app/assets/javascripts/application.js;TTI")file-digest://app/assets/javascripts;TTI"4file-digest://app/assets/javascripts/welcome.js;TT
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=2cb3851295eb803b0128821d7626762e478b5fcf19e2245f69a345e650287ddd:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"8file-digest://app/assets/javascripts/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"4file-digest://app/assets/javascripts/welcome.js;TTI")file-digest://app/assets/javascripts;TT
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=debug&id=44b68f616688aa393da04feb463bdea0711505926a659662be29499821fac655:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&id=3ea8534eb4ef2fc3a058d372883c6911fb6ac5624f98f89c61eb0248f6ce29e5:ET
@@ -0,0 +1 @@
1
+ 67112
@@ -0,0 +1,19 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ # Filter out Minitest backtrace while allowing backtrace from other libraries
8
+ # to be shown.
9
+ Minitest.backtrace_filter = Minitest::BacktraceFilter.new
10
+
11
+ # Load support files
12
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
13
+
14
+ # Load fixtures from the engine
15
+ if ActiveSupport::TestCase.respond_to?(:fixture_path=)
16
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
17
+ ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
18
+ ActiveSupport::TestCase.fixtures :all
19
+ end
metadata ADDED
@@ -0,0 +1,217 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: action_control
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Tobias Feistmantl
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-01-01 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.2.5
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 4.2.5
27
+ description: Authorize your users directly in your controllers.
28
+ email:
29
+ - tobias@feistmantl.net
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - MIT-LICENSE
35
+ - Rakefile
36
+ - lib/action_control.rb
37
+ - lib/action_control/action_controller/base.rb
38
+ - lib/action_control/controller_methods.rb
39
+ - lib/action_control/errors.rb
40
+ - lib/action_control/version.rb
41
+ - lib/tasks/action_control_tasks.rake
42
+ - test/action_control_test.rb
43
+ - test/dummy/README.rdoc
44
+ - test/dummy/Rakefile
45
+ - test/dummy/app/assets/javascripts/application.js
46
+ - test/dummy/app/assets/javascripts/welcome.js
47
+ - test/dummy/app/assets/stylesheets/application.css
48
+ - test/dummy/app/assets/stylesheets/welcome.css
49
+ - test/dummy/app/controllers/application_controller.rb
50
+ - test/dummy/app/controllers/welcome_controller.rb
51
+ - test/dummy/app/helpers/application_helper.rb
52
+ - test/dummy/app/helpers/welcome_helper.rb
53
+ - test/dummy/app/views/layouts/application.html.erb
54
+ - test/dummy/app/views/welcome/index.html.erb
55
+ - test/dummy/app/views/welcome/other.html.erb
56
+ - test/dummy/bin/bundle
57
+ - test/dummy/bin/rails
58
+ - test/dummy/bin/rake
59
+ - test/dummy/bin/setup
60
+ - test/dummy/config.ru
61
+ - test/dummy/config/application.rb
62
+ - test/dummy/config/boot.rb
63
+ - test/dummy/config/environment.rb
64
+ - test/dummy/config/environments/development.rb
65
+ - test/dummy/config/environments/production.rb
66
+ - test/dummy/config/environments/test.rb
67
+ - test/dummy/config/initializers/assets.rb
68
+ - test/dummy/config/initializers/backtrace_silencers.rb
69
+ - test/dummy/config/initializers/cookies_serializer.rb
70
+ - test/dummy/config/initializers/filter_parameter_logging.rb
71
+ - test/dummy/config/initializers/inflections.rb
72
+ - test/dummy/config/initializers/mime_types.rb
73
+ - test/dummy/config/initializers/session_store.rb
74
+ - test/dummy/config/initializers/wrap_parameters.rb
75
+ - test/dummy/config/locales/en.yml
76
+ - test/dummy/config/routes.rb
77
+ - test/dummy/config/secrets.yml
78
+ - test/dummy/log/development.log
79
+ - test/dummy/log/test.log
80
+ - test/dummy/public/404.html
81
+ - test/dummy/public/422.html
82
+ - test/dummy/public/500.html
83
+ - test/dummy/public/favicon.ico
84
+ - test/dummy/test/controllers/welcome_controller_test.rb
85
+ - test/dummy/tmp/cache/sprockets/v3.0/0l0dzRDrwh8jbgwNcdqbI0eReG4vwBstqHkgAwNKVMI.cache
86
+ - test/dummy/tmp/cache/sprockets/v3.0/3JKkanNb216zALB8-924T4VDK6tJjkEFV-Bwgbj9B14.cache
87
+ - test/dummy/tmp/cache/sprockets/v3.0/3ggZ0W-Ys5SQS26u_NFEJe14n9nBRhdtzY3kcBWtpu8.cache
88
+ - test/dummy/tmp/cache/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
89
+ - test/dummy/tmp/cache/sprockets/v3.0/9QE06Hoy-nitPf5xGEddC6zVi0kNWX_1DxmrNe0T2qM.cache
90
+ - test/dummy/tmp/cache/sprockets/v3.0/CqS8f-adc43tZVUYwbeYNlaAp68VAND9gSz75EJ_qIk.cache
91
+ - test/dummy/tmp/cache/sprockets/v3.0/CuqjeS-2eHHBlkxRvn8u1KzXJexpD4avFhe5otAxzKI.cache
92
+ - test/dummy/tmp/cache/sprockets/v3.0/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache
93
+ - test/dummy/tmp/cache/sprockets/v3.0/E1OA9yJbW6lMNqFjch4O_Nm972yonIiNtGF4nEgeMgI.cache
94
+ - test/dummy/tmp/cache/sprockets/v3.0/EEplIoXGshtrgJgFxcH1B6LgetWrS_RuhCYsTuqiO6s.cache
95
+ - test/dummy/tmp/cache/sprockets/v3.0/GFBoWLa7w-AyBQvckeZ0t9KOOannb3LF2nwW6y6YgF8.cache
96
+ - test/dummy/tmp/cache/sprockets/v3.0/IaQzQGXFQfBjkrxhDnuTvASIp7dzp5kCcg8w-Csu_IY.cache
97
+ - test/dummy/tmp/cache/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
98
+ - test/dummy/tmp/cache/sprockets/v3.0/ROPBCmx5V50szmtJZQ1KcVsTqCQelEo0PTleLKnAFXs.cache
99
+ - test/dummy/tmp/cache/sprockets/v3.0/UKGBReGXsgsCgfeO31yA5_k496KeznXmPBK5CVgIIqE.cache
100
+ - test/dummy/tmp/cache/sprockets/v3.0/Vb2Y-hLNYLDStluCCCj5SSZiiOLy2PO8hcPoz6kT75A.cache
101
+ - test/dummy/tmp/cache/sprockets/v3.0/XrVJilAWIg8PWr-zSv8YW0Y-V-myv-Iht2JKCan_ym0.cache
102
+ - test/dummy/tmp/cache/sprockets/v3.0/YfxKw2MPxJHBrxMEABBUhvLuuEDSKGrN06FK5Sh3uB4.cache
103
+ - test/dummy/tmp/cache/sprockets/v3.0/YzLwjdol-fillzMShjbe2GgKGueXAc1nHbFTKSBo7-Q.cache
104
+ - test/dummy/tmp/cache/sprockets/v3.0/_D1t1IyVlDXU4ylfoagfIPFxF1mPsX8ak2RTaDQPUHg.cache
105
+ - test/dummy/tmp/cache/sprockets/v3.0/_VRRH7j3ZMxMxKW0Sg9TTTD5jlZh7oqWpZDsuNWCKYM.cache
106
+ - test/dummy/tmp/cache/sprockets/v3.0/cJMggEGypPzKwx81E8ea4CvAVxgpobH-q4uvErBv_kg.cache
107
+ - test/dummy/tmp/cache/sprockets/v3.0/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache
108
+ - test/dummy/tmp/cache/sprockets/v3.0/hQTnMC8F5eeLeiYssSZYLCGx79KLgUj18fUlyt7-HXs.cache
109
+ - test/dummy/tmp/cache/sprockets/v3.0/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
110
+ - test/dummy/tmp/cache/sprockets/v3.0/kRZh-Br9E6KK0oj2H8xkk_a4sOotGQ3V4x4i1dsN8l8.cache
111
+ - test/dummy/tmp/cache/sprockets/v3.0/o6BRWItl0A8KUtdzj8CodRWOSdJBZEZoUwNZWkBIvKE.cache
112
+ - test/dummy/tmp/cache/sprockets/v3.0/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
113
+ - test/dummy/tmp/cache/sprockets/v3.0/pNLwute95D3t-czgrFvKNRpZACiCXca-o3A806hAIBU.cache
114
+ - test/dummy/tmp/cache/sprockets/v3.0/szxi6adMfobVBR3v1xjK3BuVOBK7TW6EONLC0uBTtIs.cache
115
+ - test/dummy/tmp/pids/server.pid
116
+ - test/test_helper.rb
117
+ homepage: https://github.com/tobiasfeistmantl/actioncontrol
118
+ licenses:
119
+ - MIT
120
+ metadata: {}
121
+ post_install_message:
122
+ rdoc_options: []
123
+ require_paths:
124
+ - lib
125
+ required_ruby_version: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ version: 1.9.3
130
+ required_rubygems_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
135
+ requirements: []
136
+ rubyforge_project:
137
+ rubygems_version: 2.4.8
138
+ signing_key:
139
+ specification_version: 4
140
+ summary: An access control system for your app.
141
+ test_files:
142
+ - test/action_control_test.rb
143
+ - test/dummy/app/assets/javascripts/application.js
144
+ - test/dummy/app/assets/javascripts/welcome.js
145
+ - test/dummy/app/assets/stylesheets/application.css
146
+ - test/dummy/app/assets/stylesheets/welcome.css
147
+ - test/dummy/app/controllers/application_controller.rb
148
+ - test/dummy/app/controllers/welcome_controller.rb
149
+ - test/dummy/app/helpers/application_helper.rb
150
+ - test/dummy/app/helpers/welcome_helper.rb
151
+ - test/dummy/app/views/layouts/application.html.erb
152
+ - test/dummy/app/views/welcome/index.html.erb
153
+ - test/dummy/app/views/welcome/other.html.erb
154
+ - test/dummy/bin/bundle
155
+ - test/dummy/bin/rails
156
+ - test/dummy/bin/rake
157
+ - test/dummy/bin/setup
158
+ - test/dummy/config/application.rb
159
+ - test/dummy/config/boot.rb
160
+ - test/dummy/config/environment.rb
161
+ - test/dummy/config/environments/development.rb
162
+ - test/dummy/config/environments/production.rb
163
+ - test/dummy/config/environments/test.rb
164
+ - test/dummy/config/initializers/assets.rb
165
+ - test/dummy/config/initializers/backtrace_silencers.rb
166
+ - test/dummy/config/initializers/cookies_serializer.rb
167
+ - test/dummy/config/initializers/filter_parameter_logging.rb
168
+ - test/dummy/config/initializers/inflections.rb
169
+ - test/dummy/config/initializers/mime_types.rb
170
+ - test/dummy/config/initializers/session_store.rb
171
+ - test/dummy/config/initializers/wrap_parameters.rb
172
+ - test/dummy/config/locales/en.yml
173
+ - test/dummy/config/routes.rb
174
+ - test/dummy/config/secrets.yml
175
+ - test/dummy/config.ru
176
+ - test/dummy/log/development.log
177
+ - test/dummy/log/test.log
178
+ - test/dummy/public/404.html
179
+ - test/dummy/public/422.html
180
+ - test/dummy/public/500.html
181
+ - test/dummy/public/favicon.ico
182
+ - test/dummy/Rakefile
183
+ - test/dummy/README.rdoc
184
+ - test/dummy/test/controllers/welcome_controller_test.rb
185
+ - test/dummy/tmp/cache/sprockets/v3.0/0l0dzRDrwh8jbgwNcdqbI0eReG4vwBstqHkgAwNKVMI.cache
186
+ - test/dummy/tmp/cache/sprockets/v3.0/3ggZ0W-Ys5SQS26u_NFEJe14n9nBRhdtzY3kcBWtpu8.cache
187
+ - test/dummy/tmp/cache/sprockets/v3.0/3JKkanNb216zALB8-924T4VDK6tJjkEFV-Bwgbj9B14.cache
188
+ - test/dummy/tmp/cache/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
189
+ - test/dummy/tmp/cache/sprockets/v3.0/9QE06Hoy-nitPf5xGEddC6zVi0kNWX_1DxmrNe0T2qM.cache
190
+ - test/dummy/tmp/cache/sprockets/v3.0/_D1t1IyVlDXU4ylfoagfIPFxF1mPsX8ak2RTaDQPUHg.cache
191
+ - test/dummy/tmp/cache/sprockets/v3.0/_VRRH7j3ZMxMxKW0Sg9TTTD5jlZh7oqWpZDsuNWCKYM.cache
192
+ - test/dummy/tmp/cache/sprockets/v3.0/cJMggEGypPzKwx81E8ea4CvAVxgpobH-q4uvErBv_kg.cache
193
+ - test/dummy/tmp/cache/sprockets/v3.0/CqS8f-adc43tZVUYwbeYNlaAp68VAND9gSz75EJ_qIk.cache
194
+ - test/dummy/tmp/cache/sprockets/v3.0/CuqjeS-2eHHBlkxRvn8u1KzXJexpD4avFhe5otAxzKI.cache
195
+ - test/dummy/tmp/cache/sprockets/v3.0/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache
196
+ - test/dummy/tmp/cache/sprockets/v3.0/E1OA9yJbW6lMNqFjch4O_Nm972yonIiNtGF4nEgeMgI.cache
197
+ - test/dummy/tmp/cache/sprockets/v3.0/EEplIoXGshtrgJgFxcH1B6LgetWrS_RuhCYsTuqiO6s.cache
198
+ - test/dummy/tmp/cache/sprockets/v3.0/GFBoWLa7w-AyBQvckeZ0t9KOOannb3LF2nwW6y6YgF8.cache
199
+ - test/dummy/tmp/cache/sprockets/v3.0/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache
200
+ - test/dummy/tmp/cache/sprockets/v3.0/hQTnMC8F5eeLeiYssSZYLCGx79KLgUj18fUlyt7-HXs.cache
201
+ - test/dummy/tmp/cache/sprockets/v3.0/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
202
+ - test/dummy/tmp/cache/sprockets/v3.0/IaQzQGXFQfBjkrxhDnuTvASIp7dzp5kCcg8w-Csu_IY.cache
203
+ - test/dummy/tmp/cache/sprockets/v3.0/kRZh-Br9E6KK0oj2H8xkk_a4sOotGQ3V4x4i1dsN8l8.cache
204
+ - test/dummy/tmp/cache/sprockets/v3.0/o6BRWItl0A8KUtdzj8CodRWOSdJBZEZoUwNZWkBIvKE.cache
205
+ - test/dummy/tmp/cache/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
206
+ - test/dummy/tmp/cache/sprockets/v3.0/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
207
+ - test/dummy/tmp/cache/sprockets/v3.0/pNLwute95D3t-czgrFvKNRpZACiCXca-o3A806hAIBU.cache
208
+ - test/dummy/tmp/cache/sprockets/v3.0/ROPBCmx5V50szmtJZQ1KcVsTqCQelEo0PTleLKnAFXs.cache
209
+ - test/dummy/tmp/cache/sprockets/v3.0/szxi6adMfobVBR3v1xjK3BuVOBK7TW6EONLC0uBTtIs.cache
210
+ - test/dummy/tmp/cache/sprockets/v3.0/UKGBReGXsgsCgfeO31yA5_k496KeznXmPBK5CVgIIqE.cache
211
+ - test/dummy/tmp/cache/sprockets/v3.0/Vb2Y-hLNYLDStluCCCj5SSZiiOLy2PO8hcPoz6kT75A.cache
212
+ - test/dummy/tmp/cache/sprockets/v3.0/XrVJilAWIg8PWr-zSv8YW0Y-V-myv-Iht2JKCan_ym0.cache
213
+ - test/dummy/tmp/cache/sprockets/v3.0/YfxKw2MPxJHBrxMEABBUhvLuuEDSKGrN06FK5Sh3uB4.cache
214
+ - test/dummy/tmp/cache/sprockets/v3.0/YzLwjdol-fillzMShjbe2GgKGueXAc1nHbFTKSBo7-Q.cache
215
+ - test/dummy/tmp/pids/server.pid
216
+ - test/test_helper.rb
217
+ has_rdoc: