Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shotengai
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
shotengai
Commits
3a79b749
Commit
3a79b749
authored
Sep 12, 2017
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add carts_controller to controller generator
parent
970bb3d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
21 deletions
+22
-21
.rspec_status
.rspec_status
+20
-20
controllers_generator.rb
lib/generators/shotengai/controllers_generator.rb
+2
-1
No files found.
.rspec_status
View file @
3a79b749
example_id | status
| run_time |
------------------------------------------ | ------
-
| --------------- |
./spec/shotengai/models_spec.rb[1:1:1:1] | passed
| 0.58762
seconds |
./spec/shotengai/models_spec.rb[1:1:1:2] | passed
| 0.3368 seconds
|
./spec/shotengai/models_spec.rb[1:1:2:1] |
failed | 0.68851
seconds |
./spec/shotengai/models_spec.rb[1:1:2:2] | passed
| 0.70395
seconds |
./spec/shotengai/models_spec.rb[1:1:2:3] | passed
| 0.6569 seconds
|
./spec/shotengai/models_spec.rb[1:1:2:4] |
unknown |
|
./spec/shotengai/models_spec.rb[1:1:3:1] | passed
| 0.32973
seconds |
./spec/shotengai/models_spec.rb[1:1:3:2] | passed
| 0.33056 seconds
|
./spec/shotengai/models_spec.rb[1:1:3:3] | passed
| 0.33828
seconds |
./spec/shotengai/models_spec.rb[1:1:4:1] |
passed | 0.3582
2 seconds |
./spec/shotengai/models_spec.rb[1:1:5:1] | passed
| 0.33872
seconds |
./spec/shotengai/models_spec.rb[1:1:5:2:1] | passed
| 0.36586
seconds |
./spec/shotengai/models_spec.rb[1:1:5:2:2] |
passed | 0.36069
seconds |
./spec/shotengai/models_spec.rb[1:2:1:1] | passed
| 0.34614
seconds |
./spec/shotengai/models_spec.rb[1:2:1:2] | passed
| 0.3256
seconds |
./spec/shotengai/models_spec.rb[1:2:2:1] | passed
| 0.62601
seconds |
./spec/shotengai/models_spec.rb[1:2:2:2] | passed
| 0.45201
seconds |
./spec/shotengai/models_spec.rb[1:3:1] | passed
| 0.4830
8 seconds |
example_id | status | run_time |
------------------------------------------ | ------ | --------------- |
./spec/shotengai/models_spec.rb[1:1:1:1] | passed
| 0.76841
seconds |
./spec/shotengai/models_spec.rb[1:1:1:2] | passed
| 0.39895 seconds
|
./spec/shotengai/models_spec.rb[1:1:2:1] |
passed | 0.40877
seconds |
./spec/shotengai/models_spec.rb[1:1:2:2] | passed
| 0.40292
seconds |
./spec/shotengai/models_spec.rb[1:1:2:3] | passed
| 0.40936 seconds
|
./spec/shotengai/models_spec.rb[1:1:2:4] |
passed | 0.39549 seconds
|
./spec/shotengai/models_spec.rb[1:1:3:1] | passed
| 0.36859
seconds |
./spec/shotengai/models_spec.rb[1:1:3:2] | passed
| 0.3979 seconds
|
./spec/shotengai/models_spec.rb[1:1:3:3] | passed
| 0.40805
seconds |
./spec/shotengai/models_spec.rb[1:1:4:1] |
failed | 0.6693
2 seconds |
./spec/shotengai/models_spec.rb[1:1:5:1] | passed
| 0.38994
seconds |
./spec/shotengai/models_spec.rb[1:1:5:2:1] | passed
| 0.48448
seconds |
./spec/shotengai/models_spec.rb[1:1:5:2:2] |
failed | 0.56715
seconds |
./spec/shotengai/models_spec.rb[1:2:1:1] | passed
| 0.40297
seconds |
./spec/shotengai/models_spec.rb[1:2:1:2] | passed
| 0.3698
seconds |
./spec/shotengai/models_spec.rb[1:2:2:1] | passed
| 0.66138
seconds |
./spec/shotengai/models_spec.rb[1:2:2:2] | passed
| 0.48194
seconds |
./spec/shotengai/models_spec.rb[1:3:1] | passed
| 0.3749
8 seconds |
lib/generators/shotengai/controllers_generator.rb
View file @
3a79b749
...
...
@@ -49,11 +49,12 @@ module Shotengai
'orders'
=>
@order
,
'product_series'
=>
"
#{
@product
}
Series"
,
'product_snapshots'
=>
"
#{
@product
}
Snapshot"
,
'carts'
=>
'::Order::Cart'
,
}.
each
do
|
key
,
klass_name
|
@key
,
@klass_name
=
key
,
klass_name
template
"template_controller.rb"
,
"app/controllers/
#{
@namespace
}
/
#{
@k
lass_name
.
underscore
.
pluralize
}
_controller.rb"
"app/controllers/
#{
@namespace
}
/
#{
@k
ey
}
_controller.rb"
end
create_routes
create_factory
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment