controller_scaffolding 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -8
- data/lib/controller_scaffolding.rb +1 -2
- data/lib/controller_scaffolding/add_generator.rb +1 -0
- data/lib/controller_scaffolding/version.rb +1 -1
- data/lib/generators/controller/controller_scaffolding_generator.rb +2 -0
- data/lib/generators/controller_generator_base.rb +213 -0
- data/lib/generators/erb/controller/controller_scaffolding_generator.rb +16 -0
- data/lib/generators/erb/controller/partials/_flash_messages.html.erb +3 -0
- data/lib/generators/erb/controller/partials/_pagination.html.erb +21 -0
- data/lib/generators/erb/controller/partials/_validation_errors.html.erb +11 -0
- data/lib/generators/haml/controller/controller_scaffolding_generator.rb +4 -216
- data/lib/templates/erb/controller/_form.html.erb +27 -0
- data/lib/templates/erb/controller/edit.html.erb +2 -0
- data/lib/templates/erb/controller/index.html.erb +59 -0
- data/lib/templates/erb/controller/new.html.erb +2 -0
- data/lib/templates/erb/controller/view.html.erb +4 -0
- data/test/dummy/config/environments/development.rb +1 -1
- data/test/dummy/config/routes.rb +1 -2
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +1258 -0
- data/test/dummy/log/test.log +13295 -0
- data/test/dummy/spec/requests/fellows_spec.rb +2 -2
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- metadata +12 -4
- data/test/dummy/tmp/pids/server.pid +0 -1
@@ -12,14 +12,14 @@ RSpec.describe "Fellows", :type => :request do
|
|
12
12
|
|
13
13
|
before(:all) do
|
14
14
|
cmd_str = 'rails g controller_scaffolding fellows index '
|
15
|
-
cmd_str << ' --template-engine=
|
15
|
+
cmd_str << ' --template-engine=erb --quiet --force --skip-assets --skip-test-framework --skip-helper'
|
16
16
|
puts "\n#{cmd_str}"
|
17
17
|
%x(#{cmd_str})
|
18
18
|
Rails.application.reload_routes!
|
19
19
|
end
|
20
20
|
after(:all) do
|
21
21
|
cmd_str = 'rails d controller_scaffolding fellows index '
|
22
|
-
cmd_str << ' --template-engine=
|
22
|
+
cmd_str << ' --template-engine=erb --quiet --force --skip-assets --skip-test-framework --skip-helper'
|
23
23
|
puts "\n#{cmd_str}"
|
24
24
|
%x(#{cmd_str})
|
25
25
|
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: controller_scaffolding
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John O'Malley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -254,10 +254,20 @@ files:
|
|
254
254
|
- lib/generators/controller/concerns/ext_form_submit.rb
|
255
255
|
- lib/generators/controller/concerns/ext_index_nav.rb
|
256
256
|
- lib/generators/controller/controller_scaffolding_generator.rb
|
257
|
+
- lib/generators/controller_generator_base.rb
|
258
|
+
- lib/generators/erb/controller/controller_scaffolding_generator.rb
|
259
|
+
- lib/generators/erb/controller/partials/_flash_messages.html.erb
|
260
|
+
- lib/generators/erb/controller/partials/_pagination.html.erb
|
261
|
+
- lib/generators/erb/controller/partials/_validation_errors.html.erb
|
257
262
|
- lib/generators/haml/controller/controller_scaffolding_generator.rb
|
258
263
|
- lib/generators/haml/controller/partials/_flash_messages.html.haml
|
259
264
|
- lib/generators/haml/controller/partials/_pagination.html.haml
|
260
265
|
- lib/generators/haml/controller/partials/_validation_errors.html.haml
|
266
|
+
- lib/templates/erb/controller/_form.html.erb
|
267
|
+
- lib/templates/erb/controller/edit.html.erb
|
268
|
+
- lib/templates/erb/controller/index.html.erb
|
269
|
+
- lib/templates/erb/controller/new.html.erb
|
270
|
+
- lib/templates/erb/controller/view.html.erb
|
261
271
|
- lib/templates/haml/controller/_form.html.haml
|
262
272
|
- lib/templates/haml/controller/edit.html.haml
|
263
273
|
- lib/templates/haml/controller/index.html.haml
|
@@ -616,7 +626,6 @@ files:
|
|
616
626
|
- test/dummy/tmp/cache/assets/test/sprockets/fce704a83c20a7376508e727036c20ad
|
617
627
|
- test/dummy/tmp/cache/assets/test/sprockets/fdc27f9ce3865c2f49fedbdf3f0b061b
|
618
628
|
- test/dummy/tmp/cache/assets/test/sprockets/fea130b674bca41b352f8e716a7651c9
|
619
|
-
- test/dummy/tmp/pids/server.pid
|
620
629
|
- test/lib/generators/all_actions_generator_test.rb
|
621
630
|
- test/lib/generators/controller_scaffolding_generator_test.rb
|
622
631
|
- test/lib/generators/destroy_cs_test.rb
|
@@ -1020,7 +1029,6 @@ test_files:
|
|
1020
1029
|
- test/dummy/tmp/cache/assets/test/sprockets/fce704a83c20a7376508e727036c20ad
|
1021
1030
|
- test/dummy/tmp/cache/assets/test/sprockets/fdc27f9ce3865c2f49fedbdf3f0b061b
|
1022
1031
|
- test/dummy/tmp/cache/assets/test/sprockets/fea130b674bca41b352f8e716a7651c9
|
1023
|
-
- test/dummy/tmp/pids/server.pid
|
1024
1032
|
- test/lib/generators/all_actions_generator_test.rb
|
1025
1033
|
- test/lib/generators/controller_scaffolding_generator_test.rb
|
1026
1034
|
- test/lib/generators/destroy_cs_test.rb
|
@@ -1 +0,0 @@
|
|
1
|
-
60948
|