adeia 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/lib/adeia/controller_methods.rb +14 -1
  3. data/lib/adeia/controller_resource.rb +1 -11
  4. data/lib/adeia/version.rb +1 -1
  5. data/spec/adeia/controller_methods_spec.rb +20 -1
  6. data/spec/features/redirect_back_or_spec.rb +32 -0
  7. data/spec/spec_helper.rb +1 -0
  8. data/spec/test_app/app/controllers/application_controller.rb +3 -0
  9. data/spec/test_app/app/controllers/articles_controller.rb +2 -3
  10. data/spec/test_app/app/controllers/comments_controller.rb +17 -0
  11. data/spec/test_app/app/controllers/pages_controller.rb +6 -0
  12. data/spec/test_app/app/controllers/sessions_controller.rb +2 -1
  13. data/spec/test_app/app/views/comments/new.html.erb +7 -0
  14. data/spec/test_app/app/views/pages/dashboard.html.erb +3 -0
  15. data/spec/test_app/config/application.rb +8 -0
  16. data/spec/test_app/config/routes.rb +5 -3
  17. data/spec/test_app/log/development.log +38 -0
  18. data/spec/test_app/log/test.log +4960 -0
  19. data/spec/test_app/tmp/cache/assets/test/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +2 -0
  20. data/spec/test_app/tmp/cache/assets/test/sprockets/v3.0/9Fw_WnCC15QnXUQZ4eYTYLOBv20at5Z5gL-WJx_QsR4.cache +1 -0
  21. data/spec/test_app/tmp/cache/assets/test/sprockets/v3.0/B52YLhAHmH3YmcdKcLjsgEEptVLsyy70mdivlMhWpwo.cache +0 -0
  22. data/spec/test_app/tmp/cache/assets/test/sprockets/v3.0/DmmfrCpXtt74Hr6NO54lxyOCDv6klnDyBqeDFR7oDU8.cache +2 -0
  23. data/spec/test_app/tmp/cache/assets/test/sprockets/v3.0/HAZ0ouG4bMq-xhCNwwW1_zHW_Xrv2dmE5rM7dNa0j6g.cache +1 -0
  24. data/spec/test_app/tmp/cache/assets/test/sprockets/v3.0/HggfmBmV-rmvrvzJjqvjmDpwB2BTEQvh6krp0CcrI0U.cache +1 -0
  25. data/spec/test_app/tmp/cache/assets/test/sprockets/v3.0/Jq-mhdojMq1WOqRn6VTdZrYcFFO9W88GGYnNBOCQ5fs.cache +1 -0
  26. data/spec/test_app/tmp/cache/assets/test/sprockets/v3.0/M_KUTj7by27gLcyqVc2Uz9gtnUzDPo-cc9fw5-cB79M.cache +0 -0
  27. data/spec/test_app/tmp/cache/assets/test/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +2 -0
  28. data/spec/test_app/tmp/cache/assets/test/sprockets/v3.0/OqW-GtebPfTCjTjUqLDAjq59TfMSUnr0yXwjZqaH1ZY.cache +0 -0
  29. data/spec/test_app/tmp/cache/assets/test/sprockets/v3.0/T_LATULiY1B-VdlBm543JXK-rMpAu3gMzKReRQXWhrs.cache +0 -0
  30. data/spec/test_app/tmp/cache/assets/test/sprockets/v3.0/XHwHkIYxBrF9dqrLA7cltux80RMtB5uP7Thdx6p-J8s.cache +1 -0
  31. data/spec/test_app/tmp/cache/assets/test/sprockets/v3.0/azllX2USS3pIkqwWCoUFuar1sOvmJG85PIO0jGpkjg8.cache +0 -0
  32. data/spec/test_app/tmp/cache/assets/test/sprockets/v3.0/b9C_dpG2bL0B4PAVraluQxLpi87exSZXpMXfcQAdcTA.cache +1 -0
  33. data/spec/test_app/tmp/cache/assets/test/sprockets/v3.0/fhCTdpSf2dKxcXFkBZy81w65UX0HZUzJnPqLF0eXe1c.cache +0 -0
  34. data/spec/test_app/tmp/cache/assets/test/sprockets/v3.0/gj7jbeiYIdeoQeoh9p96r2xSlkLhFW4cqQeFKrzZJDc.cache +0 -0
  35. data/spec/test_app/tmp/cache/assets/test/sprockets/v3.0/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +3 -0
  36. data/spec/test_app/tmp/cache/assets/test/sprockets/v3.0/m36EDdApBppvyoX6m8cNCOm1eyt7pipkfASRya0sKqM.cache +1 -0
  37. data/spec/test_app/tmp/cache/assets/test/sprockets/v3.0/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +2 -0
  38. data/spec/test_app/tmp/cache/assets/test/sprockets/v3.0/s0IFRa_BOyV2VUH7-DBuslcZPbZHrQxu1NvUN3I4O88.cache +1 -0
  39. data/spec/test_app/tmp/cache/assets/test/sprockets/v3.0/w8wDbJ9a5U-rSRVsy6KWOVuPXk5LnbSkSpP4bMFj1q0.cache +1 -0
  40. data/spec/test_app/tmp/cache/assets/test/sprockets/v3.0/xjR7NEbTIbdnGQSxICRALdQtl8j_HoPOKkS5gwE2Jw0.cache +1 -0
  41. metadata +70 -2
@@ -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"6file-digest://app/assets/stylesheets/scaffold.css;TTI")file-digest://app/assets/stylesheets;TT
@@ -0,0 +1 @@
1
+ "%��A�I8���߅�u7�!��H���j���\��|x
@@ -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"6file-digest://app/assets/stylesheets/scaffold.css;TT
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=d38562990f67c891a31842ff4becfd9a6b0239cc52cda13acca2d63c372c537c:ET
@@ -0,0 +1 @@
1
+ "%Ѱč@�����6H�uZoX�Z�gbh0W��V
@@ -0,0 +1 @@
1
+ "%���[�RH!Cܥ4ihvd�xA�o��N(� �
@@ -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"6file-digest://app/assets/stylesheets/scaffold.css;TT
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/scaffold.css?type=text/css&pipeline=self&id=e92798c0bf52b7cabf050f898f9f1ed694706ee4aab2206d786bc35f8f619329:ET
@@ -0,0 +1 @@
1
+ I"}app/assets/stylesheets/application.css?type=text/css&id=cc9faa340d3ec2f6c98b816a5f63af4b829ead5f0496f2c6a313cc017a5044b4:ET
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash{
3
+ 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;TT
@@ -0,0 +1 @@
1
+ "%�W\�yho9S���ƫ˥��)|�~���(���
@@ -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")file-digest://app/assets/javascripts;TT
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&id=bebfb6660f5e71b4b33cdbdaab7d662e5420f22e19fd461b8c6e38adc45951f7:ET
@@ -0,0 +1 @@
1
+ "%���[�RH!Cܥ4ihvd�xA�o��N(� �
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=7f3c6c80b244e0527bcaf804a8a10ecd738d376be7045c4158f6743fa74ba4d6:ET
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adeia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - khcr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-06 00:00:00.000000000 Z
11
+ date: 2015-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: capybara
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
111
125
  description: An authorization gem for Rails that allows you to have the complete control
112
126
  of your app.
113
127
  email:
@@ -183,6 +197,7 @@ files:
183
197
  - spec/controllers/adeia/tokens_controller_spec.rb
184
198
  - spec/controllers/articles_controller_spec.rb
185
199
  - spec/factories.rb
200
+ - spec/features/redirect_back_or_spec.rb
186
201
  - spec/models/adeia/permission_spec.rb
187
202
  - spec/rails_helper.rb
188
203
  - spec/spec_helper.rb
@@ -193,6 +208,8 @@ files:
193
208
  - spec/test_app/app/assets/stylesheets/scaffold.css
194
209
  - spec/test_app/app/controllers/application_controller.rb
195
210
  - spec/test_app/app/controllers/articles_controller.rb
211
+ - spec/test_app/app/controllers/comments_controller.rb
212
+ - spec/test_app/app/controllers/pages_controller.rb
196
213
  - spec/test_app/app/controllers/sessions_controller.rb
197
214
  - spec/test_app/app/helpers/application_helper.rb
198
215
  - spec/test_app/app/models/article.rb
@@ -202,7 +219,9 @@ files:
202
219
  - spec/test_app/app/views/articles/index.html.erb
203
220
  - spec/test_app/app/views/articles/new.html.erb
204
221
  - spec/test_app/app/views/articles/show.html.erb
222
+ - spec/test_app/app/views/comments/new.html.erb
205
223
  - spec/test_app/app/views/layouts/application.html.erb
224
+ - spec/test_app/app/views/pages/dashboard.html.erb
206
225
  - spec/test_app/app/views/sessions/new.html.erb
207
226
  - spec/test_app/bin/bundle
208
227
  - spec/test_app/bin/rails
@@ -525,6 +544,28 @@ files:
525
544
  - spec/test_app/tmp/cache/assets/development/sprockets/v3.0/zcyD-V47b_trIpkAjr7WtbWP8s8OXJ8PJf4wYAgu3Uw.cache
526
545
  - spec/test_app/tmp/cache/assets/development/sprockets/v3.0/zhva7YheNRRcXE2lbFu_AxBGPFepRkVpivTXwOrnYaI.cache
527
546
  - spec/test_app/tmp/cache/assets/development/sprockets/v3.0/zp2A-AOphpw-oj1D-oi3FvvslsJHNvCVuY6cP2kYuK8.cache
547
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
548
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/9Fw_WnCC15QnXUQZ4eYTYLOBv20at5Z5gL-WJx_QsR4.cache
549
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/B52YLhAHmH3YmcdKcLjsgEEptVLsyy70mdivlMhWpwo.cache
550
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/DmmfrCpXtt74Hr6NO54lxyOCDv6klnDyBqeDFR7oDU8.cache
551
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/HAZ0ouG4bMq-xhCNwwW1_zHW_Xrv2dmE5rM7dNa0j6g.cache
552
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/HggfmBmV-rmvrvzJjqvjmDpwB2BTEQvh6krp0CcrI0U.cache
553
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/Jq-mhdojMq1WOqRn6VTdZrYcFFO9W88GGYnNBOCQ5fs.cache
554
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/M_KUTj7by27gLcyqVc2Uz9gtnUzDPo-cc9fw5-cB79M.cache
555
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
556
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/OqW-GtebPfTCjTjUqLDAjq59TfMSUnr0yXwjZqaH1ZY.cache
557
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/T_LATULiY1B-VdlBm543JXK-rMpAu3gMzKReRQXWhrs.cache
558
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/XHwHkIYxBrF9dqrLA7cltux80RMtB5uP7Thdx6p-J8s.cache
559
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/azllX2USS3pIkqwWCoUFuar1sOvmJG85PIO0jGpkjg8.cache
560
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/b9C_dpG2bL0B4PAVraluQxLpi87exSZXpMXfcQAdcTA.cache
561
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/fhCTdpSf2dKxcXFkBZy81w65UX0HZUzJnPqLF0eXe1c.cache
562
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/gj7jbeiYIdeoQeoh9p96r2xSlkLhFW4cqQeFKrzZJDc.cache
563
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
564
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/m36EDdApBppvyoX6m8cNCOm1eyt7pipkfASRya0sKqM.cache
565
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
566
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/s0IFRa_BOyV2VUH7-DBuslcZPbZHrQxu1NvUN3I4O88.cache
567
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/w8wDbJ9a5U-rSRVsy6KWOVuPXk5LnbSkSpP4bMFj1q0.cache
568
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/xjR7NEbTIbdnGQSxICRALdQtl8j_HoPOKkS5gwE2Jw0.cache
528
569
  homepage: http://github.com/JS-Tech/adeia
529
570
  licenses:
530
571
  - MIT
@@ -559,6 +600,7 @@ test_files:
559
600
  - spec/controllers/adeia/tokens_controller_spec.rb
560
601
  - spec/controllers/articles_controller_spec.rb
561
602
  - spec/factories.rb
603
+ - spec/features/redirect_back_or_spec.rb
562
604
  - spec/models/adeia/permission_spec.rb
563
605
  - spec/rails_helper.rb
564
606
  - spec/spec_helper.rb
@@ -568,6 +610,8 @@ test_files:
568
610
  - spec/test_app/app/assets/stylesheets/scaffold.css
569
611
  - spec/test_app/app/controllers/application_controller.rb
570
612
  - spec/test_app/app/controllers/articles_controller.rb
613
+ - spec/test_app/app/controllers/comments_controller.rb
614
+ - spec/test_app/app/controllers/pages_controller.rb
571
615
  - spec/test_app/app/controllers/sessions_controller.rb
572
616
  - spec/test_app/app/helpers/application_helper.rb
573
617
  - spec/test_app/app/models/article.rb
@@ -577,7 +621,9 @@ test_files:
577
621
  - spec/test_app/app/views/articles/index.html.erb
578
622
  - spec/test_app/app/views/articles/new.html.erb
579
623
  - spec/test_app/app/views/articles/show.html.erb
624
+ - spec/test_app/app/views/comments/new.html.erb
580
625
  - spec/test_app/app/views/layouts/application.html.erb
626
+ - spec/test_app/app/views/pages/dashboard.html.erb
581
627
  - spec/test_app/app/views/sessions/new.html.erb
582
628
  - spec/test_app/bin/bundle
583
629
  - spec/test_app/bin/rails
@@ -901,3 +947,25 @@ test_files:
901
947
  - spec/test_app/tmp/cache/assets/development/sprockets/v3.0/ZmzWckpwiTXGs82UmJGgCv0tf0EsAVbVpYDJwfuOTcw.cache
902
948
  - spec/test_app/tmp/cache/assets/development/sprockets/v3.0/zp2A-AOphpw-oj1D-oi3FvvslsJHNvCVuY6cP2kYuK8.cache
903
949
  - spec/test_app/tmp/cache/assets/development/sprockets/v3.0/ZVfH6U-tlYcqHspQcoJhqPo3cLJQgT9o8gwLInSBFRI.cache
950
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
951
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/9Fw_WnCC15QnXUQZ4eYTYLOBv20at5Z5gL-WJx_QsR4.cache
952
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/azllX2USS3pIkqwWCoUFuar1sOvmJG85PIO0jGpkjg8.cache
953
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/B52YLhAHmH3YmcdKcLjsgEEptVLsyy70mdivlMhWpwo.cache
954
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/b9C_dpG2bL0B4PAVraluQxLpi87exSZXpMXfcQAdcTA.cache
955
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/DmmfrCpXtt74Hr6NO54lxyOCDv6klnDyBqeDFR7oDU8.cache
956
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/fhCTdpSf2dKxcXFkBZy81w65UX0HZUzJnPqLF0eXe1c.cache
957
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/gj7jbeiYIdeoQeoh9p96r2xSlkLhFW4cqQeFKrzZJDc.cache
958
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/HAZ0ouG4bMq-xhCNwwW1_zHW_Xrv2dmE5rM7dNa0j6g.cache
959
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/HggfmBmV-rmvrvzJjqvjmDpwB2BTEQvh6krp0CcrI0U.cache
960
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
961
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/Jq-mhdojMq1WOqRn6VTdZrYcFFO9W88GGYnNBOCQ5fs.cache
962
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/m36EDdApBppvyoX6m8cNCOm1eyt7pipkfASRya0sKqM.cache
963
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/M_KUTj7by27gLcyqVc2Uz9gtnUzDPo-cc9fw5-cB79M.cache
964
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
965
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/OqW-GtebPfTCjTjUqLDAjq59TfMSUnr0yXwjZqaH1ZY.cache
966
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
967
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/s0IFRa_BOyV2VUH7-DBuslcZPbZHrQxu1NvUN3I4O88.cache
968
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/T_LATULiY1B-VdlBm543JXK-rMpAu3gMzKReRQXWhrs.cache
969
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/w8wDbJ9a5U-rSRVsy6KWOVuPXk5LnbSkSpP4bMFj1q0.cache
970
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/XHwHkIYxBrF9dqrLA7cltux80RMtB5uP7Thdx6p-J8s.cache
971
+ - spec/test_app/tmp/cache/assets/test/sprockets/v3.0/xjR7NEbTIbdnGQSxICRALdQtl8j_HoPOKkS5gwE2Jw0.cache