mirror of
https://github.com/ditkrg/rails-template.git
synced 2026-01-22 22:06:41 +00:00
Add readme
This commit is contained in:
parent
76a6ccadde
commit
0b7a76f525
28
rspec/README.md
Normal file
28
rspec/README.md
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
## DIT RUBY TEMPLATE
|
||||||
|
This is a template for a Rails project.
|
||||||
|
|
||||||
|
## Instructions
|
||||||
|
1. create a new rails app with the template flag like below:
|
||||||
|
```
|
||||||
|
rails new --api your_app_name --template www.github.com/ditkrg/ruby-template/template.rb
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
## Arguments
|
||||||
|
This template by default will create a new rails app with the following:
|
||||||
|
- postgresql
|
||||||
|
- rspec
|
||||||
|
- gemset
|
||||||
|
- dotenv
|
||||||
|
- docker
|
||||||
|
- docker-compose
|
||||||
|
|
||||||
|
* if you want to skip any of the above, you can pass the following arguments:
|
||||||
|
```
|
||||||
|
- postgres: --skip-postgres
|
||||||
|
- rspec: --skip-rspec
|
||||||
|
- gemset: --skip-gemset
|
||||||
|
- dotenv: --skip-dotenv
|
||||||
|
- docker: --skip-docker
|
||||||
|
- docker-compose: --skip-docker-compose
|
||||||
|
```
|
||||||
@ -1,6 +1,6 @@
|
|||||||
module Rspec
|
module Rspec
|
||||||
module Helpers
|
module Helpers
|
||||||
def base_configurations
|
def rspec_base_configurations
|
||||||
file 'spec/helpers/base.rb', <<~CODE
|
file 'spec/helpers/base.rb', <<~CODE
|
||||||
module Helpers
|
module Helpers
|
||||||
def transform_to_translation_attributes(attributes)
|
def transform_to_translation_attributes(attributes)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user