restful_controller 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 (76) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +151 -0
  4. data/Rakefile +44 -0
  5. data/lib/restful/actions.rb +168 -0
  6. data/lib/restful/base.rb +321 -0
  7. data/lib/restful/dummy_responder.rb +11 -0
  8. data/lib/restful/version.rb +7 -0
  9. data/lib/restful.rb +7 -0
  10. data/lib/tasks/resourceful_tasks.rake +4 -0
  11. data/test/actions_definition_test.rb +104 -0
  12. data/test/alternates_controller_test.rb +8 -0
  13. data/test/base_controller_test.rb +8 -0
  14. data/test/blocks_controller_test.rb +28 -0
  15. data/test/custom_notices_controller_test.rb +22 -0
  16. data/test/dummy/README.rdoc +28 -0
  17. data/test/dummy/Rakefile +6 -0
  18. data/test/dummy/app/assets/javascripts/application.js +13 -0
  19. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  20. data/test/dummy/app/controllers/alternates_controller.rb +49 -0
  21. data/test/dummy/app/controllers/application_controller.rb +5 -0
  22. data/test/dummy/app/controllers/base_controller.rb +5 -0
  23. data/test/dummy/app/controllers/blocks_controller.rb +19 -0
  24. data/test/dummy/app/controllers/custom_notices_controller.rb +14 -0
  25. data/test/dummy/app/controllers/documents_controller.rb +11 -0
  26. data/test/dummy/app/controllers/home_controller.rb +5 -0
  27. data/test/dummy/app/helpers/application_helper.rb +2 -0
  28. data/test/dummy/app/models/document.rb +3 -0
  29. data/test/dummy/app/views/base/edit.html.erb +3 -0
  30. data/test/dummy/app/views/base/index.html.erb +3 -0
  31. data/test/dummy/app/views/base/new.html.erb +3 -0
  32. data/test/dummy/app/views/base/show.html.erb +1 -0
  33. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  34. data/test/dummy/bin/bundle +3 -0
  35. data/test/dummy/bin/rails +4 -0
  36. data/test/dummy/bin/rake +4 -0
  37. data/test/dummy/config/application.rb +29 -0
  38. data/test/dummy/config/boot.rb +5 -0
  39. data/test/dummy/config/database.yml +25 -0
  40. data/test/dummy/config/environment.rb +5 -0
  41. data/test/dummy/config/environments/development.rb +29 -0
  42. data/test/dummy/config/environments/production.rb +80 -0
  43. data/test/dummy/config/environments/test.rb +36 -0
  44. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  45. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  46. data/test/dummy/config/initializers/generators.rb +6 -0
  47. data/test/dummy/config/initializers/inflections.rb +16 -0
  48. data/test/dummy/config/initializers/mime_types.rb +5 -0
  49. data/test/dummy/config/initializers/secret_token.rb +12 -0
  50. data/test/dummy/config/initializers/session_store.rb +3 -0
  51. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  52. data/test/dummy/config/locales/en.yml +23 -0
  53. data/test/dummy/config/routes.rb +62 -0
  54. data/test/dummy/config.ru +4 -0
  55. data/test/dummy/db/development.sqlite3 +0 -0
  56. data/test/dummy/db/migrate/20130703024719_create_documents.rb +9 -0
  57. data/test/dummy/db/schema.rb +22 -0
  58. data/test/dummy/db/test.sqlite3 +0 -0
  59. data/test/dummy/log/development.log +11 -0
  60. data/test/dummy/log/test.log +75091 -0
  61. data/test/dummy/public/404.html +58 -0
  62. data/test/dummy/public/422.html +58 -0
  63. data/test/dummy/public/500.html +57 -0
  64. data/test/dummy/public/favicon.ico +0 -0
  65. data/test/dummy/test/fixtures/documents.yml +7 -0
  66. data/test/dummy/test/models/document_test.rb +7 -0
  67. data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  68. data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  69. data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  70. data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  71. data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  72. data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  73. data/test/resourceful_test.rb +8 -0
  74. data/test/support/base_actions.rb +130 -0
  75. data/test/test_helper.rb +39 -0
  76. metadata +268 -0
@@ -0,0 +1,58 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/404.html -->
52
+ <div class="dialog">
53
+ <h1>The page you were looking for doesn't exist.</h1>
54
+ <p>You may have mistyped the address or the page may have moved.</p>
55
+ </div>
56
+ <p>If you are the application owner check the logs for more information.</p>
57
+ </body>
58
+ </html>
@@ -0,0 +1,58 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/422.html -->
52
+ <div class="dialog">
53
+ <h1>The change you wanted was rejected.</h1>
54
+ <p>Maybe you tried to change something you didn't have access to.</p>
55
+ </div>
56
+ <p>If you are the application owner check the logs for more information.</p>
57
+ </body>
58
+ </html>
@@ -0,0 +1,57 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/500.html -->
52
+ <div class="dialog">
53
+ <h1>We're sorry, but something went wrong.</h1>
54
+ </div>
55
+ <p>If you are the application owner check the logs for more information.</p>
56
+ </body>
57
+ </html>
File without changes
@@ -0,0 +1,7 @@
1
+ # Read about fixtures at
2
+ # http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
3
+
4
+ one:
5
+ id: 100
6
+ name: 'Sample document'
7
+
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class DocumentTest < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ describe Restful do
4
+ it 'is a module' do
5
+ Restful.must_be_kind_of Module
6
+ end
7
+ end
8
+
@@ -0,0 +1,130 @@
1
+ ##
2
+ # This module allow to add common tests for a REST controller,
3
+ # allowing to eliminate test repetitions
4
+ module BaseActions
5
+ def test_base_actions(model: nil, with_id: nil, for_params: {}) # rubocop:disable MethodLength, LineLength
6
+ self.class_eval do
7
+ let(:resource) { model }
8
+ let(:resources) { model.to_s.pluralize.to_sym }
9
+ let(:id) { with_id }
10
+ let(:valid_params) { for_params }
11
+
12
+ context 'base actions' do
13
+ context 'index' do
14
+ it 'render list' do
15
+ get :index
16
+
17
+ must_respond_with :success
18
+ must_render_template :index
19
+ assigns[resources].wont_be_nil
20
+ end
21
+ end
22
+
23
+ context 'new' do
24
+ it 'render form' do
25
+ get :new
26
+
27
+ must_respond_with :success
28
+ must_render_template :new
29
+ assigns[resource].wont_be_nil
30
+ end
31
+ end
32
+
33
+ context 'create' do
34
+ it 'redirects' do
35
+ post :create, valid_params
36
+
37
+ must_redirect_to documents_path
38
+ end
39
+
40
+ it 'display errors' do
41
+ invalid_params = generate_invalid_params
42
+ post :create, invalid_params
43
+
44
+ must_respond_with :success
45
+ must_render_template :new
46
+ assigns[resource].wont_be_nil
47
+ end
48
+ end
49
+
50
+ context 'edit' do
51
+ it 'render form' do
52
+ get :edit, id: id
53
+
54
+ must_respond_with :success
55
+ must_render_template :edit
56
+ assigns[resource].wont_be_nil
57
+ end
58
+
59
+ it 'raise exception on not found' do
60
+ proc { get :edit, id: 1 }
61
+ .must_raise ActiveRecord::RecordNotFound
62
+ end
63
+ end
64
+
65
+ context 'update' do
66
+ it 'redirects' do
67
+ params = valid_params.merge id: id
68
+ put :update, params
69
+
70
+ must_redirect_to documents_path
71
+ end
72
+
73
+ it 'display errors' do
74
+ invalid_params = generate_invalid_params
75
+ invalid_params.merge! id: id
76
+ put :update, invalid_params
77
+
78
+ must_respond_with :success
79
+ must_render_template :edit
80
+ assigns[resource].wont_be_nil
81
+ end
82
+
83
+ it 'raise exception on not found' do
84
+ proc { put :update, id: 1 }
85
+ .must_raise ActiveRecord::RecordNotFound
86
+ end
87
+ end
88
+
89
+ context 'show' do
90
+ it 'render view' do
91
+ get :show, id: id
92
+
93
+ must_respond_with :success
94
+ must_render_template :show
95
+ assigns[resource].wont_be_nil
96
+ end
97
+
98
+ it 'raise exception on not found' do
99
+ proc { get :show, id: 1 }
100
+ .must_raise ActiveRecord::RecordNotFound
101
+ end
102
+ end
103
+
104
+ context 'destroy' do
105
+ it 'redirects' do
106
+ delete :destroy, id: id
107
+
108
+ must_redirect_to documents_path
109
+ end
110
+
111
+ it 'raise exception on not found' do
112
+ proc { delete :destroy, id: 1 }
113
+ .must_raise ActiveRecord::RecordNotFound
114
+ end
115
+ end
116
+
117
+ def generate_invalid_params # rubocop:disable EmptyLineBetweenDefs
118
+ invalid_params = valid_params.deep_dup
119
+ invalid_params.keys.each do |top_key|
120
+ invalid_params[top_key].keys.each do |key|
121
+ invalid_params[top_key][key] = ''
122
+ end
123
+ end
124
+ invalid_params
125
+ end
126
+ protected :generate_invalid_params
127
+ end
128
+ end
129
+ end
130
+ end
@@ -0,0 +1,39 @@
1
+ # Configure Rails Environment
2
+ ENV['RAILS_ENV'] = 'test'
3
+
4
+ require File.expand_path('../dummy/config/environment.rb', __FILE__)
5
+ require 'rails/test_help'
6
+ require 'minitest/rails'
7
+
8
+ Rails.backtrace_cleaner.remove_silencers!
9
+
10
+ # Load support files
11
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
12
+
13
+ ##
14
+ # Minitest module to redefine expectations, use it to
15
+ # fine tune your modules
16
+ module MiniTest::Expectations
17
+ infect_an_assertion :assert_redirected_to, :must_redirect_to
18
+ infect_an_assertion :assert_template, :must_render_template
19
+ infect_an_assertion :assert_response, :must_respond_with
20
+ end
21
+
22
+ # Load fixtures from the engine
23
+ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
24
+ ActiveSupport::TestCase.fixture_path =
25
+ File.expand_path('../fixtures', __FILE__)
26
+ end
27
+
28
+ ##
29
+ # Base class for Tests
30
+ class ActiveSupport::TestCase
31
+ migrations_path = File.expand_path('../dummy/db/migrate', __FILE__)
32
+ ActiveRecord::Migrator.migrate migrations_path
33
+
34
+ fixtures :all
35
+
36
+ class << self
37
+ alias_method :context, :describe
38
+ end
39
+ end
metadata ADDED
@@ -0,0 +1,268 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: restful_controller
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Mario Alberto Chavez
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-07-09 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.0.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 4.0.0
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
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: flog
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: flay
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: minitest-rails
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: 0.9.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: 0.9.0
97
+ description: Restful helps you to remove duplicated code from controllers were their
98
+ REST actions are pretty standard and repetitive.
99
+ email:
100
+ - mario.chavez@gmail.com
101
+ executables: []
102
+ extensions: []
103
+ extra_rdoc_files: []
104
+ files:
105
+ - lib/restful/actions.rb
106
+ - lib/restful/base.rb
107
+ - lib/restful/dummy_responder.rb
108
+ - lib/restful/version.rb
109
+ - lib/restful.rb
110
+ - lib/tasks/resourceful_tasks.rake
111
+ - MIT-LICENSE
112
+ - Rakefile
113
+ - README.rdoc
114
+ - test/actions_definition_test.rb
115
+ - test/alternates_controller_test.rb
116
+ - test/base_controller_test.rb
117
+ - test/blocks_controller_test.rb
118
+ - test/custom_notices_controller_test.rb
119
+ - test/dummy/app/assets/javascripts/application.js
120
+ - test/dummy/app/assets/stylesheets/application.css
121
+ - test/dummy/app/controllers/alternates_controller.rb
122
+ - test/dummy/app/controllers/application_controller.rb
123
+ - test/dummy/app/controllers/base_controller.rb
124
+ - test/dummy/app/controllers/blocks_controller.rb
125
+ - test/dummy/app/controllers/custom_notices_controller.rb
126
+ - test/dummy/app/controllers/documents_controller.rb
127
+ - test/dummy/app/controllers/home_controller.rb
128
+ - test/dummy/app/helpers/application_helper.rb
129
+ - test/dummy/app/models/document.rb
130
+ - test/dummy/app/views/base/edit.html.erb
131
+ - test/dummy/app/views/base/index.html.erb
132
+ - test/dummy/app/views/base/new.html.erb
133
+ - test/dummy/app/views/base/show.html.erb
134
+ - test/dummy/app/views/layouts/application.html.erb
135
+ - test/dummy/bin/bundle
136
+ - test/dummy/bin/rails
137
+ - test/dummy/bin/rake
138
+ - test/dummy/config/application.rb
139
+ - test/dummy/config/boot.rb
140
+ - test/dummy/config/database.yml
141
+ - test/dummy/config/environment.rb
142
+ - test/dummy/config/environments/development.rb
143
+ - test/dummy/config/environments/production.rb
144
+ - test/dummy/config/environments/test.rb
145
+ - test/dummy/config/initializers/backtrace_silencers.rb
146
+ - test/dummy/config/initializers/filter_parameter_logging.rb
147
+ - test/dummy/config/initializers/generators.rb
148
+ - test/dummy/config/initializers/inflections.rb
149
+ - test/dummy/config/initializers/mime_types.rb
150
+ - test/dummy/config/initializers/secret_token.rb
151
+ - test/dummy/config/initializers/session_store.rb
152
+ - test/dummy/config/initializers/wrap_parameters.rb
153
+ - test/dummy/config/locales/en.yml
154
+ - test/dummy/config/routes.rb
155
+ - test/dummy/config.ru
156
+ - test/dummy/db/development.sqlite3
157
+ - test/dummy/db/migrate/20130703024719_create_documents.rb
158
+ - test/dummy/db/schema.rb
159
+ - test/dummy/db/test.sqlite3
160
+ - test/dummy/log/development.log
161
+ - test/dummy/log/test.log
162
+ - test/dummy/public/404.html
163
+ - test/dummy/public/422.html
164
+ - test/dummy/public/500.html
165
+ - test/dummy/public/favicon.ico
166
+ - test/dummy/Rakefile
167
+ - test/dummy/README.rdoc
168
+ - test/dummy/test/fixtures/documents.yml
169
+ - test/dummy/test/models/document_test.rb
170
+ - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
171
+ - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
172
+ - test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
173
+ - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
174
+ - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
175
+ - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
176
+ - test/resourceful_test.rb
177
+ - test/support/base_actions.rb
178
+ - test/test_helper.rb
179
+ homepage: http://blog.decisionesinteligentes.com
180
+ licenses: []
181
+ metadata: {}
182
+ post_install_message:
183
+ rdoc_options: []
184
+ require_paths:
185
+ - lib
186
+ required_ruby_version: !ruby/object:Gem::Requirement
187
+ requirements:
188
+ - - '>='
189
+ - !ruby/object:Gem::Version
190
+ version: '0'
191
+ required_rubygems_version: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - '>='
194
+ - !ruby/object:Gem::Version
195
+ version: '0'
196
+ requirements: []
197
+ rubyforge_project:
198
+ rubygems_version: 2.0.2
199
+ signing_key:
200
+ specification_version: 4
201
+ summary: Restful helps to keep Controllers DRY, removing repetitive code from basic
202
+ REST actions.
203
+ test_files:
204
+ - test/actions_definition_test.rb
205
+ - test/alternates_controller_test.rb
206
+ - test/base_controller_test.rb
207
+ - test/blocks_controller_test.rb
208
+ - test/custom_notices_controller_test.rb
209
+ - test/dummy/app/assets/javascripts/application.js
210
+ - test/dummy/app/assets/stylesheets/application.css
211
+ - test/dummy/app/controllers/alternates_controller.rb
212
+ - test/dummy/app/controllers/application_controller.rb
213
+ - test/dummy/app/controllers/base_controller.rb
214
+ - test/dummy/app/controllers/blocks_controller.rb
215
+ - test/dummy/app/controllers/custom_notices_controller.rb
216
+ - test/dummy/app/controllers/documents_controller.rb
217
+ - test/dummy/app/controllers/home_controller.rb
218
+ - test/dummy/app/helpers/application_helper.rb
219
+ - test/dummy/app/models/document.rb
220
+ - test/dummy/app/views/base/edit.html.erb
221
+ - test/dummy/app/views/base/index.html.erb
222
+ - test/dummy/app/views/base/new.html.erb
223
+ - test/dummy/app/views/base/show.html.erb
224
+ - test/dummy/app/views/layouts/application.html.erb
225
+ - test/dummy/bin/bundle
226
+ - test/dummy/bin/rails
227
+ - test/dummy/bin/rake
228
+ - test/dummy/config/application.rb
229
+ - test/dummy/config/boot.rb
230
+ - test/dummy/config/database.yml
231
+ - test/dummy/config/environment.rb
232
+ - test/dummy/config/environments/development.rb
233
+ - test/dummy/config/environments/production.rb
234
+ - test/dummy/config/environments/test.rb
235
+ - test/dummy/config/initializers/backtrace_silencers.rb
236
+ - test/dummy/config/initializers/filter_parameter_logging.rb
237
+ - test/dummy/config/initializers/generators.rb
238
+ - test/dummy/config/initializers/inflections.rb
239
+ - test/dummy/config/initializers/mime_types.rb
240
+ - test/dummy/config/initializers/secret_token.rb
241
+ - test/dummy/config/initializers/session_store.rb
242
+ - test/dummy/config/initializers/wrap_parameters.rb
243
+ - test/dummy/config/locales/en.yml
244
+ - test/dummy/config/routes.rb
245
+ - test/dummy/config.ru
246
+ - test/dummy/db/development.sqlite3
247
+ - test/dummy/db/migrate/20130703024719_create_documents.rb
248
+ - test/dummy/db/schema.rb
249
+ - test/dummy/db/test.sqlite3
250
+ - test/dummy/log/development.log
251
+ - test/dummy/log/test.log
252
+ - test/dummy/public/404.html
253
+ - test/dummy/public/422.html
254
+ - test/dummy/public/500.html
255
+ - test/dummy/public/favicon.ico
256
+ - test/dummy/Rakefile
257
+ - test/dummy/README.rdoc
258
+ - test/dummy/test/fixtures/documents.yml
259
+ - test/dummy/test/models/document_test.rb
260
+ - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
261
+ - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
262
+ - test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
263
+ - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
264
+ - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
265
+ - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
266
+ - test/resourceful_test.rb
267
+ - test/support/base_actions.rb
268
+ - test/test_helper.rb