restful_controller 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +5 -5
  2. data/Rakefile +13 -28
  3. data/lib/restful.rb +3 -3
  4. data/lib/restful/actions.rb +8 -8
  5. data/lib/restful/base.rb +32 -30
  6. data/lib/restful/dummy_responder.rb +7 -1
  7. data/lib/restful/version.rb +1 -1
  8. data/test/actions_definition_test.rb +90 -102
  9. data/test/alternates_controller_test.rb +3 -3
  10. data/test/base_controller_test.rb +3 -3
  11. data/test/blocks_controller_test.rb +21 -19
  12. data/test/custom_notices_controller_test.rb +15 -15
  13. data/test/dummy/Rakefile +1 -1
  14. data/test/dummy/app/controllers/admin/prefix_controller.rb +1 -2
  15. data/test/dummy/app/controllers/alternates_controller.rb +1 -0
  16. data/test/dummy/app/controllers/blocks_controller.rb +1 -0
  17. data/test/dummy/app/controllers/custom_notices_controller.rb +3 -2
  18. data/test/dummy/app/controllers/documents_controller.rb +1 -0
  19. data/test/dummy/app/controllers/home_controller.rb +1 -1
  20. data/test/dummy/bin/bundle +2 -2
  21. data/test/dummy/bin/rails +3 -3
  22. data/test/dummy/bin/rake +2 -2
  23. data/test/dummy/bin/setup +9 -9
  24. data/test/dummy/bin/update +9 -9
  25. data/test/dummy/config.ru +1 -1
  26. data/test/dummy/config/application.rb +2 -2
  27. data/test/dummy/config/boot.rb +2 -2
  28. data/test/dummy/config/environment.rb +1 -1
  29. data/test/dummy/config/environments/development.rb +2 -2
  30. data/test/dummy/config/environments/production.rb +2 -2
  31. data/test/dummy/config/environments/test.rb +1 -1
  32. data/test/dummy/config/initializers/assets.rb +1 -1
  33. data/test/dummy/config/initializers/new_framework_defaults.rb +0 -3
  34. data/test/dummy/config/initializers/secret_token.rb +1 -1
  35. data/test/dummy/config/initializers/session_store.rb +1 -1
  36. data/test/dummy/config/routes.rb +7 -7
  37. data/test/dummy/config/spring.rb +2 -2
  38. data/test/dummy/db/schema.rb +0 -3
  39. data/test/dummy/db/test.sqlite3 +0 -0
  40. data/test/dummy/log/test.log +8594 -10176
  41. data/test/dummy/test/fixtures/documents.yml +0 -1
  42. data/test/dummy/test/models/document_test.rb +1 -1
  43. data/test/dummy/tmp/cache/assets/sprockets/v3.0/6J/6JkRVOkWfpJgVdKJvc1Pw_0hopmCAb8LywBOAgbTxPY.cache +0 -0
  44. data/test/dummy/tmp/cache/assets/sprockets/v3.0/7C/7CBb8IrKtRa1tAFouXDuh69wf5M06FA1kGvLkb2rHhY.cache +0 -0
  45. data/test/dummy/tmp/cache/assets/sprockets/v3.0/8c/8cL_BBqA8ZjvsO8Qr4y_QwPuT4zY3k9Q9fMic6AyjN4.cache +1 -0
  46. data/test/dummy/tmp/cache/assets/sprockets/v3.0/AA/AA4BDcLoeiNWhgY32FTQ__Sr3wut5WWRnqftFgs6HqA.cache +1 -0
  47. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Fb/fBhPDroIt06Go-FnHxcjidNjJDKR034ZPsNs7oBfVLQ.cache +1 -0
  48. data/test/dummy/tmp/cache/assets/sprockets/v3.0/K3/K3gWPcnFXATaCRmXOiumXOa1X07zA5D6dmFexyOpZEg.cache +1 -0
  49. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Mx/MxcniQVVd54UqFgKOAgwMU27DUDTLRNqbGUi3VXisf0.cache +1 -0
  50. data/test/dummy/tmp/cache/assets/sprockets/v3.0/PS/PS_LEWVle-SdbOI5lVVO7nThhXYrlos5PIdBhuOpLhc.cache +0 -0
  51. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Sp/SpEnq27QAQ0Li1vhxbAKlA33LXAQAnMiJJWPd83x8Ak.cache +1 -0
  52. data/test/dummy/tmp/cache/assets/sprockets/v3.0/cn/cnx0JDK2DwkXAXAchod20Tv0QD0mugtgHIm2tQjgElE.cache +0 -0
  53. data/test/dummy/tmp/cache/assets/sprockets/v3.0/dF/dFunnXYtuyxPw2A4Z33UaEfLNGNvYfZDVJHW2OJtiK4.cache +0 -0
  54. data/test/dummy/tmp/cache/assets/sprockets/v3.0/gT/gT4D8n7iBAqnfdzwUO999860TnF3meQhBBQ6JC7vfdQ.cache +0 -0
  55. data/test/dummy/tmp/cache/assets/sprockets/v3.0/hj/hj8Ir9wcVSy1KYrnWu9bpD24vDhCG3tvt-nKbNxb1Wg.cache +0 -0
  56. data/test/dummy/tmp/cache/assets/sprockets/v3.0/oC/oCsZTGZyV4kH8Y4OeSDUdrwfkJFPzTODZjuBKZB8oGQ.cache +0 -0
  57. data/test/dummy/tmp/cache/assets/sprockets/v3.0/op/opx04YlnioOc0nGwDSqFh0tpSqmnUr0EmTdwAiRhO6Y.cache +1 -0
  58. data/test/dummy/tmp/cache/assets/sprockets/v3.0/q6/q6BYa32YJF11eGVapO4ouNl6gayPIsARgMavlzZmoi0.cache +0 -0
  59. data/test/dummy/tmp/cache/assets/sprockets/v3.0/sT/sTqWjekGJXt3YciElxAQDbFO3BP9xe1PvjaHnQZPUnc.cache +1 -0
  60. data/test/dummy/tmp/cache/assets/sprockets/v3.0/u2/u2rh3TQBtssLxkixwJPY8KX4qWgNmCCawH5FVfY73gY.cache +0 -0
  61. data/test/dummy/tmp/cache/assets/sprockets/v3.0/x7/x7KkTV3ibfIEysLB_ug5bfmnn2VLV_BldukPR3EoPBk.cache +0 -0
  62. data/test/dummy/tmp/cache/assets/sprockets/v3.0/yU/yUT_twoB3H2TPF6vxGkWJTz0YEE8DxpwPOQNnIT_8Cc.cache +0 -0
  63. data/test/prefix_controller_test.rb +29 -31
  64. data/test/resourceful_test.rb +4 -5
  65. data/test/support/base_actions.rb +90 -88
  66. data/test/test_helper.rb +9 -16
  67. metadata +100 -113
  68. data/test/dummy/log/development.log +0 -0
@@ -4,4 +4,3 @@
4
4
  one:
5
5
  id: 100
6
6
  name: 'Sample document'
7
-
@@ -1,4 +1,4 @@
1
- require 'test_helper'
1
+ require "test_helper"
2
2
 
3
3
  class DocumentTest < ActiveSupport::TestCase
4
4
  # test "the truth" do
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&id=b197ea43c4935d30847c708b28eac8a89385feb98bcc27d165aef6e56e0a38c8:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=ec89cd36e8569a5bd50e72f4efd8371ce090d6f5109dd7d00c8639f413a3f75a:ET
@@ -0,0 +1 @@
1
+ I"}app/assets/stylesheets/application.css?type=text/css&id=be61b687534d97dbdc7b8b1a05d0d98e6cd89314936ec9c7b09e8c1e834802d9:ET
@@ -0,0 +1 @@
1
+ I"}app/assets/stylesheets/application.css?type=text/css&id=a4f2af593fd070e69fa4e413f75b265d3b9f8faed0262e0d00f258a944b75f3f:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=7670a52a3e33e846c21ca92e7025995fcd44ff71914a676a6979df4d54cf23a7:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=12ac67fa32c6d9ddef5716ab529e9fdf3944260d31298c16721a5bdaee1fc605:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&id=93baa7ee9f0b194b54d1db333a5c9f05fd947da2a8d2230be14ee2e4f0d12203:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=ca0345a160a9a42c977b0b086f40270e161abe61b0699038acf3240ddffac257:ET
@@ -1,43 +1,41 @@
1
- require 'test_helper'
1
+ require "test_helper"
2
2
 
3
- describe 'Route prefixes' do
3
+ class Admin::PrefixControllerTest < ActiveSupport::TestCase
4
+ def subject
5
+ controller = Admin::PrefixController.new
4
6
 
5
- describe Admin::PrefixController do
6
- subject {
7
- controller = Admin::PrefixController.new
7
+ request = ActionDispatch::TestRequest.create
8
+ request.host = "www.example.org"
9
+ controller.request = request
8
10
 
9
- request = ActionController::TestRequest.create
10
- request.host = "www.example.org"
11
- controller.request = request
12
- controller
13
- }
14
-
15
- let(:model) { Document.new.tap{|document| document.id = 1} }
16
-
17
- it 'respond to edit path helper' do
18
- subject.edit_resource_path(model).must_match(/^\/admin\//)
19
- end
11
+ controller
12
+ end
20
13
 
21
- it 'respond to edit url helper' do
22
- subject.edit_resource_url(model).must_match(/\.org\/admin\//)
23
- end
14
+ def model
15
+ Document.new.tap { |document| document.id = 1 }
16
+ end
24
17
 
25
- it 'respond to new path helper' do
26
- subject.new_resource_path.must_match(/^\/admin\//)
27
- end
18
+ def test_respond_to_edit_path_helper
19
+ assert_match(/^\/admin\//, subject.edit_resource_path(model))
20
+ end
28
21
 
29
- it 'respond to new url helper' do
30
- subject.new_resource_url.must_match(/\.org\/admin\//)
31
- end
22
+ def test_respond_to_edit_url_helper
23
+ assert_match(/\.org\/admin\//, subject.edit_resource_url(model))
24
+ end
32
25
 
33
- it 'respond to collection path helper' do
34
- subject.collection_path.must_match(/^\/admin/)
35
- end
26
+ def test_respond_to_new_path_helper
27
+ assert_match(/^\/admin\//, subject.new_resource_path)
28
+ end
36
29
 
37
- it 'respond to collection url helper' do
38
- subject.collection_url.must_match(/\.org\/admin/)
39
- end
30
+ def test_respond_to_new_url_helper
31
+ assert_match(/\.org\/admin\//, subject.new_resource_url)
40
32
  end
41
33
 
34
+ def test_respond_to_collection_path_helper
35
+ assert_match(/^\/admin/, subject.collection_path)
36
+ end
42
37
 
38
+ def test_respond_to_collection_url_helper
39
+ assert_match(/\.org\/admin/, subject.collection_url)
40
+ end
43
41
  end
@@ -1,8 +1,7 @@
1
- require 'test_helper'
1
+ require "test_helper"
2
2
 
3
- describe Restful do
4
- it 'is a module' do
5
- Restful.must_be_kind_of Module
3
+ class RestfulTest < ActiveSupport::TestCase
4
+ def test_is_a_module
5
+ assert_kind_of Module, Restful
6
6
  end
7
7
  end
8
-
@@ -1,119 +1,121 @@
1
1
  ##
2
2
  # This module allow to add common tests for a REST controller,
3
- # allowing to eliminate test repetitions
3
+ # allowing to eliminate test repetdefions
4
4
  module BaseActions
5
5
  def test_base_actions(base_url: nil, model: nil, with_id: nil, for_params: {}) # rubocop:disable MethodLength, LineLength
6
- self.class_eval do
7
- let(:base_url) { base_url }
8
- let(:resource) { model }
9
- let(:resources) { model.to_s.pluralize.to_sym }
10
- let(:id) { with_id }
11
- let(:valid_params) { for_params }
12
-
13
- context 'base actions' do
14
- context 'index' do
15
- it 'render list' do
16
- get base_url
17
-
18
- must_respond_with :success
19
- end
20
- end
6
+ @@base_url = base_url
7
+ @@for_params = for_params
8
+ @@with_id = with_id
9
+ @@model = model
10
+
11
+ class_eval do
12
+ def resource
13
+ @@model
14
+ end
21
15
 
22
- context 'new' do
23
- it 'render form' do
24
- get "#{base_url}/new"
16
+ def resources
17
+ resource.to_s.pluralize.to_sym
18
+ end
25
19
 
26
- must_respond_with :success
27
- end
28
- end
20
+ def id
21
+ @@with_id
22
+ end
29
23
 
30
- context 'create' do
31
- it 'redirects' do
32
- post "#{base_url}", params: valid_params
24
+ def valid_params
25
+ @@for_params
26
+ end
33
27
 
34
- must_redirect_to documents_path
35
- end
28
+ def url
29
+ @@base_url
30
+ end
36
31
 
37
- it 'display errors' do
38
- invalid_params = generate_invalid_params
39
- post "#{base_url}", params: invalid_params
32
+ def test_render_list
33
+ get url
40
34
 
41
- must_respond_with :success
42
- end
43
- end
35
+ assert_response :success
36
+ end
44
37
 
45
- context 'edit' do
46
- it 'render form' do
47
- get "#{base_url}/#{id}/edit"
38
+ def test_render_form_when_new
39
+ get "#{url}/new"
48
40
 
49
- must_respond_with :success
50
- end
41
+ assert_response :success
42
+ end
51
43
 
52
- it 'raise exception on not found' do
53
- proc { get "#{base_url}/1/edit" }
54
- .must_raise ActiveRecord::RecordNotFound
55
- end
56
- end
44
+ def test_redirects_when_created
45
+ post url, params: valid_params
57
46
 
58
- context 'update' do
59
- it 'redirects' do
60
- params = valid_params.merge id: id
61
- put "#{base_url}/#{id}", params: params
47
+ assert_redirected_to documents_path
48
+ end
62
49
 
63
- must_redirect_to documents_path
64
- end
50
+ def test_display_errors_when_new_invalid
51
+ invalid_params = generate_invalid_params
52
+ post url, params: invalid_params
65
53
 
66
- it 'display errors' do
67
- invalid_params = generate_invalid_params
68
- invalid_params.merge! id: id
69
- put "#{base_url}/#{id}", params: invalid_params
54
+ assert_response :success
55
+ end
70
56
 
71
- must_respond_with :success
72
- end
57
+ def test_render_form_when_edit
58
+ get "#{url}/#{id}/edit"
73
59
 
74
- it 'raise exception on not found' do
75
- proc { put "#{base_url}/1" }
76
- .must_raise ActiveRecord::RecordNotFound
77
- end
78
- end
60
+ assert_response :success
61
+ end
79
62
 
80
- context 'show' do
81
- it 'render view' do
82
- get "#{base_url}/#{id}"
63
+ def test_raise_exception_on_edit_not_found
64
+ assert_raises(ActiveRecord::RecordNotFound) { get "#{url}/1/edit" }
65
+ end
83
66
 
84
- must_respond_with :success
85
- end
67
+ def test_redirects_when_updated
68
+ params = valid_params.merge id: id
69
+ put "#{url}/#{id}", params: params
86
70
 
87
- it 'raise exception on not found' do
88
- proc { get "#{base_url}/1" }
89
- .must_raise ActiveRecord::RecordNotFound
90
- end
91
- end
71
+ assert_redirected_to documents_path
72
+ end
92
73
 
93
- context 'destroy' do
94
- it 'redirects' do
95
- delete "#{base_url}/#{id}"
74
+ def test_display_errors_when_edit_invalid
75
+ invalid_params = generate_invalid_params
76
+ invalid_params[:id] = id
77
+ put "#{url}/#{id}", params: invalid_params
96
78
 
97
- must_redirect_to documents_path
98
- end
79
+ assert_response :success
80
+ end
99
81
 
100
- it 'raise exception on not found' do
101
- proc { delete "#{base_url}/1" }
102
- .must_raise ActiveRecord::RecordNotFound
103
- end
104
- end
82
+ def test_raise_exception_on_updated_not_found
83
+ assert_raises(ActiveRecord::RecordNotFound) { put "#{url}/1" }
84
+ end
85
+
86
+ def test_render_show
87
+ get "#{url}/#{id}"
105
88
 
106
- def generate_invalid_params # rubocop:disable EmptyLineBetweenDefs
107
- invalid_params = valid_params.deep_dup
108
- invalid_params.keys.each do |top_key|
109
- invalid_params[top_key].keys.each do |key|
110
- invalid_params[top_key][key] = ''
111
- end
89
+ assert_response :success
90
+ end
91
+
92
+ def raise_exception_on_show_not_found
93
+ assert_raises(ActiveRecord::RecordNotFound) { get "#{url}/1" }
94
+ end
95
+
96
+ def test_redirects_when_deleted
97
+ delete "#{url}/#{id}"
98
+
99
+ assert_redirected_to documents_path
100
+ end
101
+
102
+ def raise_exception_on_deleted_not_found
103
+ assert_raises(ActiveRecord::RecordNotFound) { delete "#{url}/1" }
104
+ end
105
+
106
+ def generate_invalid_params
107
+ invalid_params = valid_params.deep_dup
108
+
109
+ invalid_params.keys.each do |top_key|
110
+ invalid_params[top_key].keys.each do |key|
111
+ invalid_params[top_key][key] = ""
112
112
  end
113
- invalid_params
114
113
  end
115
- protected :generate_invalid_params
114
+
115
+ invalid_params
116
116
  end
117
+
118
+ protected :generate_invalid_params
117
119
  end
118
120
  end
119
121
  end
@@ -1,30 +1,23 @@
1
1
  # Configure Rails Environment
2
- ENV['RAILS_ENV'] = 'test'
2
+ ENV["RAILS_ENV"] = "test"
3
3
 
4
- require File.expand_path('../dummy/config/environment.rb', __FILE__)
5
- require 'rails/test_help'
6
- require 'minitest/rails'
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ ActiveRecord::Migrator.migrations_paths = File.expand_path("../dummy/db/migrate", __FILE__)
6
+ require "rails/test_help"
7
7
 
8
- Rails.backtrace_cleaner.remove_silencers!
8
+ Minitest.backtrace_filter = Minitest::BacktraceFilter.new
9
9
 
10
10
  # Load support files
11
11
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
12
12
 
13
13
  # Load fixtures from the engine
14
14
  if ActiveSupport::TestCase.method_defined?(:fixture_path=)
15
- ActiveSupport::TestCase.fixture_path =
16
- File.expand_path('../fixtures', __FILE__)
15
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
16
+ ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
17
+ ActiveSupport::TestCase.file_fixture_path = ActiveSupport::TestCase.fixture_path + "/files"
18
+ ActiveSupport::TestCase.fixtures :all
17
19
  end
18
20
 
19
- ##
20
- # Base class for Tests
21
21
  class ActiveSupport::TestCase
22
- migrations_path = File.expand_path('../dummy/db/migrate', __FILE__)
23
- ActiveRecord::Migrator.migrate migrations_path
24
-
25
22
  fixtures :all
26
-
27
- class << self
28
- alias_method :context, :describe
29
- end
30
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restful_controller
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
- - Mario Alberto Chavez
7
+ - Mario Alberto Chávez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-22 00:00:00.000000000 Z
11
+ date: 2019-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 5.0.0
19
+ version: 6.0.0.rc2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 5.0.0
26
+ version: 6.0.0.rc2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sqlite3
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -39,49 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
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
42
+ name: standard
85
43
  requirement: !ruby/object:Gem::Requirement
86
44
  requirements:
87
45
  - - ">="
@@ -169,7 +127,6 @@ files:
169
127
  - test/dummy/db/migrate/20130703024719_create_documents.rb
170
128
  - test/dummy/db/schema.rb
171
129
  - test/dummy/db/test.sqlite3
172
- - test/dummy/log/development.log
173
130
  - test/dummy/log/test.log
174
131
  - test/dummy/public/404.html
175
132
  - test/dummy/public/422.html
@@ -178,34 +135,50 @@ files:
178
135
  - test/dummy/test/fixtures/documents.yml
179
136
  - test/dummy/test/models/document_test.rb
180
137
  - test/dummy/tmp/cache/assets/sprockets/v3.0/0Q/0QppU-9EhYT7x4BnYZD_titkxF30LmbOn7NEVZk8Yo4.cache
138
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/6J/6JkRVOkWfpJgVdKJvc1Pw_0hopmCAb8LywBOAgbTxPY.cache
139
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/7C/7CBb8IrKtRa1tAFouXDuh69wf5M06FA1kGvLkb2rHhY.cache
181
140
  - test/dummy/tmp/cache/assets/sprockets/v3.0/7E/7ENv2BQvPsGd83J_e6ddH5FrgCnDX6iBxy2WDFc7xWI.cache
182
141
  - test/dummy/tmp/cache/assets/sprockets/v3.0/8M/8McQnwxVQ-W4VBf4Lg-RKBLEsOSnTBeMLwxwGwU6Mr0.cache
142
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/8c/8cL_BBqA8ZjvsO8Qr4y_QwPuT4zY3k9Q9fMic6AyjN4.cache
183
143
  - test/dummy/tmp/cache/assets/sprockets/v3.0/99/99RXuREqkVrlX_fspL_j2Mzxc3E9GKBSfahbI-Wouro.cache
184
144
  - test/dummy/tmp/cache/assets/sprockets/v3.0/9r/9ryO-j4fsAK10KK2WOeTMoSpBDI8QFF0X-AOBKK4sCg.cache
145
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/AA/AA4BDcLoeiNWhgY32FTQ__Sr3wut5WWRnqftFgs6HqA.cache
185
146
  - test/dummy/tmp/cache/assets/sprockets/v3.0/EU/EUoN0mqGWGDaRelMCH25zmw4ckyxbrY9l5e_pXBL0XE.cache
186
147
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Fb/Fba9qfpGSWE4JxgH5gqjKXNCd_llg-AmZI2oFXb5wVw.cache
148
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Fb/fBhPDroIt06Go-FnHxcjidNjJDKR034ZPsNs7oBfVLQ.cache
187
149
  - test/dummy/tmp/cache/assets/sprockets/v3.0/HG/HGyLsbSq14FKLTeV3N2F7B7Zrxl_OvloSlV2wtkVUl0.cache
150
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/K3/K3gWPcnFXATaCRmXOiumXOa1X07zA5D6dmFexyOpZEg.cache
151
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Mx/MxcniQVVd54UqFgKOAgwMU27DUDTLRNqbGUi3VXisf0.cache
152
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/PS/PS_LEWVle-SdbOI5lVVO7nThhXYrlos5PIdBhuOpLhc.cache
188
153
  - test/dummy/tmp/cache/assets/sprockets/v3.0/QH/QHonD6yuQdHuTnML3LDGymUooGQj_APHbaX3Kzno-KI.cache
189
154
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Qm/QmgbH9wFqeM2N4ET4GLEFzCNJp5-jM0YLOx9jPoKnTw.cache
155
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Sp/SpEnq27QAQ0Li1vhxbAKlA33LXAQAnMiJJWPd83x8Ak.cache
190
156
  - test/dummy/tmp/cache/assets/sprockets/v3.0/V7/V7XDDUN0LzPu2IADecQJYYu1Um0RBqyWchERlECdPZc.cache
191
157
  - test/dummy/tmp/cache/assets/sprockets/v3.0/ZG/ZGSFoIVIr1KBkHxxWDz1bBtkz0KadfweIFjWqeTty9k.cache
192
158
  - test/dummy/tmp/cache/assets/sprockets/v3.0/_6/_6ClsWjX8jjRbPAU8R0QXQMqb98DMAWN3h7VaZYU_zs.cache
193
159
  - test/dummy/tmp/cache/assets/sprockets/v3.0/ak/akSvUGUaxnoVGDWdSTnvrgDQRtEiEipDI3gbMG9ORr4.cache
160
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/cn/cnx0JDK2DwkXAXAchod20Tv0QD0mugtgHIm2tQjgElE.cache
161
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/dF/dFunnXYtuyxPw2A4Z33UaEfLNGNvYfZDVJHW2OJtiK4.cache
162
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/gT/gT4D8n7iBAqnfdzwUO999860TnF3meQhBBQ6JC7vfdQ.cache
194
163
  - test/dummy/tmp/cache/assets/sprockets/v3.0/gW/gWP-FIIzxpctJPRtn79MYxNJ9rMsX0bnEtFKDqsx1Pc.cache
195
164
  - test/dummy/tmp/cache/assets/sprockets/v3.0/hj/hj8Ir9wcVSy1KYrnWu9bpD24vDhCG3tvt-nKbNxb1Wg.cache
196
165
  - test/dummy/tmp/cache/assets/sprockets/v3.0/jE/jETDB5GxGzfVBEJ_-U0TVAzA24QtG8pRXXf5yaoMBnU.cache
197
166
  - test/dummy/tmp/cache/assets/sprockets/v3.0/lm/lmPl08zo5wLyVwMJjvMqEdjT2q9x4xn0hcnN8ycXA5Q.cache
198
167
  - test/dummy/tmp/cache/assets/sprockets/v3.0/nU/nUlbBaGaCfa72Mj9xnbOCnkKHHOt-JQVqufhpYYdvns.cache
199
168
  - test/dummy/tmp/cache/assets/sprockets/v3.0/oC/oCsZTGZyV4kH8Y4OeSDUdrwfkJFPzTODZjuBKZB8oGQ.cache
169
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/op/opx04YlnioOc0nGwDSqFh0tpSqmnUr0EmTdwAiRhO6Y.cache
200
170
  - test/dummy/tmp/cache/assets/sprockets/v3.0/q6/q6BYa32YJF11eGVapO4ouNl6gayPIsARgMavlzZmoi0.cache
201
171
  - test/dummy/tmp/cache/assets/sprockets/v3.0/sH/sHrKkHl6SYOhHWH6F-guhFIo6QPeiF_lJXwhFpUHYjE.cache
172
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/sT/sTqWjekGJXt3YciElxAQDbFO3BP9xe1PvjaHnQZPUnc.cache
173
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/u2/u2rh3TQBtssLxkixwJPY8KX4qWgNmCCawH5FVfY73gY.cache
202
174
  - test/dummy/tmp/cache/assets/sprockets/v3.0/x7/x7KkTV3ibfIEysLB_ug5bfmnn2VLV_BldukPR3EoPBk.cache
175
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/yU/yUT_twoB3H2TPF6vxGkWJTz0YEE8DxpwPOQNnIT_8Cc.cache
203
176
  - test/dummy/tmp/cache/assets/sprockets/v3.0/zz/zzMAmHN5Sf7GBPaZG3P3axOLofCau19RjhhsipNigfs.cache
204
177
  - test/prefix_controller_test.rb
205
178
  - test/resourceful_test.rb
206
179
  - test/support/base_actions.rb
207
180
  - test/test_helper.rb
208
- homepage: http://blog.decisionesinteligentes.com
181
+ homepage: https://mariochavez.io
209
182
  licenses:
210
183
  - MIT
211
184
  metadata: {}
@@ -224,104 +197,118 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
197
  - !ruby/object:Gem::Version
225
198
  version: '0'
226
199
  requirements: []
227
- rubyforge_project:
228
- rubygems_version: 2.5.1
200
+ rubygems_version: 3.0.3
229
201
  signing_key:
230
202
  specification_version: 4
231
203
  summary: Restful helps to keep Controllers DRY, removing repetitive code from basic
232
204
  REST actions.
233
205
  test_files:
234
- - test/actions_definition_test.rb
235
- - test/alternates_controller_test.rb
236
- - test/base_controller_test.rb
237
- - test/blocks_controller_test.rb
238
- - test/custom_notices_controller_test.rb
239
- - test/dummy/app/assets/javascripts/application.js
240
- - test/dummy/app/assets/stylesheets/application.css
241
- - test/dummy/app/controllers/admin/prefix_controller.rb
242
- - test/dummy/app/controllers/alternates_controller.rb
206
+ - test/dummy/app/models/document.rb
207
+ - test/dummy/app/controllers/documents_controller.rb
243
208
  - test/dummy/app/controllers/application_controller.rb
244
209
  - test/dummy/app/controllers/base_controller.rb
245
- - test/dummy/app/controllers/blocks_controller.rb
246
210
  - test/dummy/app/controllers/custom_notices_controller.rb
247
- - test/dummy/app/controllers/documents_controller.rb
211
+ - test/dummy/app/controllers/admin/prefix_controller.rb
212
+ - test/dummy/app/controllers/blocks_controller.rb
248
213
  - test/dummy/app/controllers/home_controller.rb
249
- - test/dummy/app/helpers/application_helper.rb
250
- - test/dummy/app/models/document.rb
251
- - test/dummy/app/views/base/edit.html.erb
214
+ - test/dummy/app/controllers/alternates_controller.rb
215
+ - test/dummy/app/views/layouts/application.html.erb
252
216
  - test/dummy/app/views/base/index.html.erb
253
- - test/dummy/app/views/base/new.html.erb
217
+ - test/dummy/app/views/base/edit.html.erb
254
218
  - test/dummy/app/views/base/show.html.erb
255
- - test/dummy/app/views/layouts/application.html.erb
256
- - test/dummy/bin/bundle
257
- - test/dummy/bin/rails
219
+ - test/dummy/app/views/base/new.html.erb
220
+ - test/dummy/app/assets/javascripts/application.js
221
+ - test/dummy/app/assets/stylesheets/application.css
222
+ - test/dummy/app/helpers/application_helper.rb
223
+ - test/dummy/test/models/document_test.rb
224
+ - test/dummy/test/fixtures/documents.yml
225
+ - test/dummy/bin/update
258
226
  - test/dummy/bin/rake
259
227
  - test/dummy/bin/setup
260
- - test/dummy/bin/update
261
- - test/dummy/config/application.rb
262
- - test/dummy/config/boot.rb
228
+ - test/dummy/bin/bundle
229
+ - test/dummy/bin/rails
230
+ - test/dummy/config/secrets.yml
231
+ - test/dummy/config/routes.rb
232
+ - test/dummy/config/locales/en.yml
263
233
  - test/dummy/config/cable.yml
264
- - test/dummy/config/database.yml
265
- - test/dummy/config/environment.rb
266
- - test/dummy/config/environments/development.rb
267
234
  - test/dummy/config/environments/production.rb
235
+ - test/dummy/config/environments/development.rb
268
236
  - test/dummy/config/environments/test.rb
237
+ - test/dummy/config/spring.rb
238
+ - test/dummy/config/environment.rb
239
+ - test/dummy/config/application.rb
240
+ - test/dummy/config/puma.rb
241
+ - test/dummy/config/database.yml
242
+ - test/dummy/config/boot.rb
269
243
  - test/dummy/config/initializers/application_controller_renderer.rb
270
- - test/dummy/config/initializers/assets.rb
271
244
  - test/dummy/config/initializers/backtrace_silencers.rb
272
- - test/dummy/config/initializers/cookies_serializer.rb
273
- - test/dummy/config/initializers/filter_parameter_logging.rb
274
- - test/dummy/config/initializers/generators.rb
275
- - test/dummy/config/initializers/inflections.rb
276
245
  - test/dummy/config/initializers/mime_types.rb
277
- - test/dummy/config/initializers/new_framework_defaults.rb
278
- - test/dummy/config/initializers/secret_token.rb
246
+ - test/dummy/config/initializers/filter_parameter_logging.rb
279
247
  - test/dummy/config/initializers/session_store.rb
280
248
  - test/dummy/config/initializers/wrap_parameters.rb
281
- - test/dummy/config/locales/en.yml
282
- - test/dummy/config/puma.rb
283
- - test/dummy/config/routes.rb
284
- - test/dummy/config/secrets.yml
285
- - test/dummy/config/spring.rb
249
+ - test/dummy/config/initializers/new_framework_defaults.rb
250
+ - test/dummy/config/initializers/assets.rb
251
+ - test/dummy/config/initializers/cookies_serializer.rb
252
+ - test/dummy/config/initializers/generators.rb
253
+ - test/dummy/config/initializers/secret_token.rb
254
+ - test/dummy/config/initializers/inflections.rb
286
255
  - test/dummy/config.ru
287
- - test/dummy/db/migrate/20130703024719_create_documents.rb
256
+ - test/dummy/Rakefile
257
+ - test/dummy/public/favicon.ico
258
+ - test/dummy/public/422.html
259
+ - test/dummy/public/500.html
260
+ - test/dummy/public/404.html
288
261
  - test/dummy/db/schema.rb
289
262
  - test/dummy/db/test.sqlite3
290
- - test/dummy/log/development.log
263
+ - test/dummy/db/migrate/20130703024719_create_documents.rb
291
264
  - test/dummy/log/test.log
292
- - test/dummy/public/404.html
293
- - test/dummy/public/422.html
294
- - test/dummy/public/500.html
295
- - test/dummy/public/favicon.ico
296
- - test/dummy/Rakefile
297
- - test/dummy/README.rdoc
298
- - test/dummy/test/fixtures/documents.yml
299
- - test/dummy/test/models/document_test.rb
265
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Sp/SpEnq27QAQ0Li1vhxbAKlA33LXAQAnMiJJWPd83x8Ak.cache
300
266
  - test/dummy/tmp/cache/assets/sprockets/v3.0/0Q/0QppU-9EhYT7x4BnYZD_titkxF30LmbOn7NEVZk8Yo4.cache
301
- - test/dummy/tmp/cache/assets/sprockets/v3.0/7E/7ENv2BQvPsGd83J_e6ddH5FrgCnDX6iBxy2WDFc7xWI.cache
302
- - test/dummy/tmp/cache/assets/sprockets/v3.0/8M/8McQnwxVQ-W4VBf4Lg-RKBLEsOSnTBeMLwxwGwU6Mr0.cache
303
- - test/dummy/tmp/cache/assets/sprockets/v3.0/99/99RXuREqkVrlX_fspL_j2Mzxc3E9GKBSfahbI-Wouro.cache
304
- - test/dummy/tmp/cache/assets/sprockets/v3.0/9r/9ryO-j4fsAK10KK2WOeTMoSpBDI8QFF0X-AOBKK4sCg.cache
267
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/V7/V7XDDUN0LzPu2IADecQJYYu1Um0RBqyWchERlECdPZc.cache
305
268
  - test/dummy/tmp/cache/assets/sprockets/v3.0/_6/_6ClsWjX8jjRbPAU8R0QXQMqb98DMAWN3h7VaZYU_zs.cache
306
- - test/dummy/tmp/cache/assets/sprockets/v3.0/ak/akSvUGUaxnoVGDWdSTnvrgDQRtEiEipDI3gbMG9ORr4.cache
307
- - test/dummy/tmp/cache/assets/sprockets/v3.0/EU/EUoN0mqGWGDaRelMCH25zmw4ckyxbrY9l5e_pXBL0XE.cache
308
- - test/dummy/tmp/cache/assets/sprockets/v3.0/Fb/Fba9qfpGSWE4JxgH5gqjKXNCd_llg-AmZI2oFXb5wVw.cache
309
- - test/dummy/tmp/cache/assets/sprockets/v3.0/gW/gWP-FIIzxpctJPRtn79MYxNJ9rMsX0bnEtFKDqsx1Pc.cache
310
- - test/dummy/tmp/cache/assets/sprockets/v3.0/HG/HGyLsbSq14FKLTeV3N2F7B7Zrxl_OvloSlV2wtkVUl0.cache
269
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/nU/nUlbBaGaCfa72Mj9xnbOCnkKHHOt-JQVqufhpYYdvns.cache
270
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/gT/gT4D8n7iBAqnfdzwUO999860TnF3meQhBBQ6JC7vfdQ.cache
271
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/K3/K3gWPcnFXATaCRmXOiumXOa1X07zA5D6dmFexyOpZEg.cache
272
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/dF/dFunnXYtuyxPw2A4Z33UaEfLNGNvYfZDVJHW2OJtiK4.cache
311
273
  - test/dummy/tmp/cache/assets/sprockets/v3.0/hj/hj8Ir9wcVSy1KYrnWu9bpD24vDhCG3tvt-nKbNxb1Wg.cache
312
- - test/dummy/tmp/cache/assets/sprockets/v3.0/jE/jETDB5GxGzfVBEJ_-U0TVAzA24QtG8pRXXf5yaoMBnU.cache
274
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/ak/akSvUGUaxnoVGDWdSTnvrgDQRtEiEipDI3gbMG9ORr4.cache
275
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/cn/cnx0JDK2DwkXAXAchod20Tv0QD0mugtgHIm2tQjgElE.cache
313
276
  - test/dummy/tmp/cache/assets/sprockets/v3.0/lm/lmPl08zo5wLyVwMJjvMqEdjT2q9x4xn0hcnN8ycXA5Q.cache
314
- - test/dummy/tmp/cache/assets/sprockets/v3.0/nU/nUlbBaGaCfa72Mj9xnbOCnkKHHOt-JQVqufhpYYdvns.cache
277
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/op/opx04YlnioOc0nGwDSqFh0tpSqmnUr0EmTdwAiRhO6Y.cache
315
278
  - test/dummy/tmp/cache/assets/sprockets/v3.0/oC/oCsZTGZyV4kH8Y4OeSDUdrwfkJFPzTODZjuBKZB8oGQ.cache
279
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Fb/fBhPDroIt06Go-FnHxcjidNjJDKR034ZPsNs7oBfVLQ.cache
280
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Fb/Fba9qfpGSWE4JxgH5gqjKXNCd_llg-AmZI2oFXb5wVw.cache
316
281
  - test/dummy/tmp/cache/assets/sprockets/v3.0/q6/q6BYa32YJF11eGVapO4ouNl6gayPIsARgMavlzZmoi0.cache
282
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/7C/7CBb8IrKtRa1tAFouXDuh69wf5M06FA1kGvLkb2rHhY.cache
317
283
  - test/dummy/tmp/cache/assets/sprockets/v3.0/QH/QHonD6yuQdHuTnML3LDGymUooGQj_APHbaX3Kzno-KI.cache
318
- - test/dummy/tmp/cache/assets/sprockets/v3.0/Qm/QmgbH9wFqeM2N4ET4GLEFzCNJp5-jM0YLOx9jPoKnTw.cache
319
- - test/dummy/tmp/cache/assets/sprockets/v3.0/sH/sHrKkHl6SYOhHWH6F-guhFIo6QPeiF_lJXwhFpUHYjE.cache
320
- - test/dummy/tmp/cache/assets/sprockets/v3.0/V7/V7XDDUN0LzPu2IADecQJYYu1Um0RBqyWchERlECdPZc.cache
321
284
  - test/dummy/tmp/cache/assets/sprockets/v3.0/x7/x7KkTV3ibfIEysLB_ug5bfmnn2VLV_BldukPR3EoPBk.cache
285
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/7E/7ENv2BQvPsGd83J_e6ddH5FrgCnDX6iBxy2WDFc7xWI.cache
286
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/sT/sTqWjekGJXt3YciElxAQDbFO3BP9xe1PvjaHnQZPUnc.cache
322
287
  - test/dummy/tmp/cache/assets/sprockets/v3.0/ZG/ZGSFoIVIr1KBkHxxWDz1bBtkz0KadfweIFjWqeTty9k.cache
288
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/sH/sHrKkHl6SYOhHWH6F-guhFIo6QPeiF_lJXwhFpUHYjE.cache
289
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/6J/6JkRVOkWfpJgVdKJvc1Pw_0hopmCAb8LywBOAgbTxPY.cache
290
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/PS/PS_LEWVle-SdbOI5lVVO7nThhXYrlos5PIdBhuOpLhc.cache
291
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/99/99RXuREqkVrlX_fspL_j2Mzxc3E9GKBSfahbI-Wouro.cache
292
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/9r/9ryO-j4fsAK10KK2WOeTMoSpBDI8QFF0X-AOBKK4sCg.cache
293
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/u2/u2rh3TQBtssLxkixwJPY8KX4qWgNmCCawH5FVfY73gY.cache
323
294
  - test/dummy/tmp/cache/assets/sprockets/v3.0/zz/zzMAmHN5Sf7GBPaZG3P3axOLofCau19RjhhsipNigfs.cache
295
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/yU/yUT_twoB3H2TPF6vxGkWJTz0YEE8DxpwPOQNnIT_8Cc.cache
296
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/gW/gWP-FIIzxpctJPRtn79MYxNJ9rMsX0bnEtFKDqsx1Pc.cache
297
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/AA/AA4BDcLoeiNWhgY32FTQ__Sr3wut5WWRnqftFgs6HqA.cache
298
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Mx/MxcniQVVd54UqFgKOAgwMU27DUDTLRNqbGUi3VXisf0.cache
299
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/HG/HGyLsbSq14FKLTeV3N2F7B7Zrxl_OvloSlV2wtkVUl0.cache
300
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/jE/jETDB5GxGzfVBEJ_-U0TVAzA24QtG8pRXXf5yaoMBnU.cache
301
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/EU/EUoN0mqGWGDaRelMCH25zmw4ckyxbrY9l5e_pXBL0XE.cache
302
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/8M/8McQnwxVQ-W4VBf4Lg-RKBLEsOSnTBeMLwxwGwU6Mr0.cache
303
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/8c/8cL_BBqA8ZjvsO8Qr4y_QwPuT4zY3k9Q9fMic6AyjN4.cache
304
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Qm/QmgbH9wFqeM2N4ET4GLEFzCNJp5-jM0YLOx9jPoKnTw.cache
305
+ - test/dummy/README.rdoc
324
306
  - test/prefix_controller_test.rb
325
- - test/resourceful_test.rb
326
307
  - test/support/base_actions.rb
308
+ - test/alternates_controller_test.rb
309
+ - test/actions_definition_test.rb
327
310
  - test/test_helper.rb
311
+ - test/base_controller_test.rb
312
+ - test/blocks_controller_test.rb
313
+ - test/resourceful_test.rb
314
+ - test/custom_notices_controller_test.rb