Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Table of contents
+ Clone the repo and cd into it

``` bash
$ docker-compose up
$ docker compose up
```

## Usage
Expand All @@ -49,9 +49,9 @@ To access rails console run.
docker-compose run --rm app sh
```

```bash
```bash
rails c
```
```

More indo on [Rails Guide Command line](https://guides.rubyonrails.org/command_line.html) and [pry doc](http://pry.github.io)

Expand All @@ -63,7 +63,7 @@ It's never too early to begin running unit tests. Tests are run using [RSpec](ht
```
docker-compose run --rm app rake
```
or into sh
or into sh

```
rake
Expand All @@ -81,26 +81,26 @@ rspec spec/{file_path}
This project uses the [rubocop gem](https://guides.rubyonrails.org/testing.html) for linter, that config you can find on `.rubocop.yml`. Access the docker console and run by:

```bash
bundle exec rubocop
bundle exec rubocop
```

> Use `-a` to autofix safe mode and `-A` hardmode
> Use `-a` to autofix safe mode and `-A` hardmode

## Troubleshooting
## Troubleshooting

#### Access Forbidden for edit files create by rails c

On ubuntu:
On ubuntu:

inside de project folder run:
inside de project folder run:

```bash
```bash
sudo chown your-user:your-user -R ./
```

#### rails server error `initialize': getaddrinfo: Name or service not known (SocketError)

On Ubuntu:
On Ubuntu:

On `/etc/host` add `127.0.0.1 localhost`

Expand Down
4 changes: 0 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
version: "3.9"

services:
redis:
image: redis:alpine
container_name: redis_mcu_core
expose:
- 6379

Expand All @@ -20,7 +17,6 @@ services:

app:
build: .
container_name: mcu_core_app
ports:
- "3000:3000"
volumes:
Expand Down
109 changes: 109 additions & 0 deletions docs/current-gems.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
Gems included by the bundle:
* actioncable (6.1.4.4)
* actionmailbox (6.1.4.4)
* actionmailer (6.1.4.4)
* actionpack (6.1.4.4)
* actiontext (6.1.4.4)
* actionview (6.1.4.4)
* active_model_serializers (0.10.13)
* activejob (6.1.4.4)
* activemodel (6.1.4.4)
* activerecord (6.1.4.4)
* activestorage (6.1.4.4)
* activesupport (6.1.4.4)
* addressable (2.8.0)
* ast (2.4.2)
* bcrypt (3.1.16)
* bootsnap (1.9.4)
* builder (3.2.4)
* byebug (11.1.3)
* case_transform (0.2)
* coderay (1.1.3)
* concurrent-ruby (1.1.9)
* crass (1.0.6)
* css_parser (1.11.0)
* database_cleaner-active_record (2.0.1)
* database_cleaner-core (2.0.1)
* devise (4.8.1)
* devise_token_auth (1.2.0)
* diff-lcs (1.5.0)
* docile (1.4.0)
* erubi (1.10.0)
* factory_bot (6.2.0)
* factory_bot_rails (6.2.0)
* faker (2.19.0)
* ffi (1.15.5)
* foundation_emails (2.2.1.0)
* globalid (1.0.0)
* htmlentities (4.3.4)
* i18n (1.8.11)
* inky-rb (1.4.2.0)
* jsonapi-renderer (0.2.2)
* kaminari (1.2.2)
* kaminari-actionview (1.2.2)
* kaminari-activerecord (1.2.2)
* kaminari-core (1.2.2)
* launchy (2.5.0)
* letter_opener (1.7.0)
* letter_opener_web (2.0.0)
* listen (3.7.1)
* loofah (2.13.0)
* mail (2.7.1)
* marcel (1.0.2)
* method_source (1.0.0)
* mini_mime (1.1.2)
* minitest (5.15.0)
* msgpack (1.4.2)
* nio4r (2.5.8)
* nokogiri (1.13.1)
* orm_adapter (0.5.0)
* parallel (1.21.0)
* parser (3.1.0.0)
* pg (1.2.3)
* premailer (1.15.0)
* premailer-rails (1.11.1)
* pry (0.14.1)
* public_suffix (4.0.6)
* puma (5.5.2)
* racc (1.6.0)
* rack (2.2.3)
* rack-cors (1.1.1)
* rack-test (1.1.0)
* rails (6.1.4.4)
* rails-dom-testing (2.0.3)
* rails-html-sanitizer (1.4.2)
* railties (6.1.4.4)
* rainbow (3.1.1)
* rake (13.0.6)
* rb-fsevent (0.11.0)
* rb-inotify (0.10.1)
* regexp_parser (2.2.0)
* responders (3.0.1)
* rexml (3.2.5)
* rspec-core (3.10.2)
* rspec-expectations (3.10.2)
* rspec-mocks (3.10.3)
* rspec-rails (5.0.3)
* rspec-support (3.10.3)
* rubocop (1.24.1)
* rubocop-ast (1.15.1)
* rubocop-rspec (2.7.0)
* ruby-progressbar (1.11.0)
* sassc (2.4.0)
* sassc-rails (2.1.2)
* shoulda-matchers (5.1.0)
* simplecov (0.21.2)
* simplecov-html (0.12.3)
* simplecov_json_formatter (0.1.3)
* spring (3.1.1)
* sprockets (4.0.2)
* sprockets-rails (3.4.2)
* thor (1.2.1)
* tilt (2.0.10)
* tzinfo (2.0.4)
* unicode-display_width (2.1.0)
* warden (1.2.9)
* websocket-driver (0.7.5)
* websocket-extensions (0.1.5)
* zeitwerk (2.5.3)
Use `bundle info` to print more detailed information about a gem
92 changes: 92 additions & 0 deletions docs/outdated-gems.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...

Gem Current Latest Requested Groups
actioncable 6.1.4.4 6.1.7.10
actionmailbox 6.1.4.4 6.1.7.10
actionmailer 6.1.4.4 6.1.7.10
actionpack 6.1.4.4 6.1.7.10
actiontext 6.1.4.4 6.1.7.10
actionview 6.1.4.4 6.1.7.10
active_model_serializers 0.10.13 0.10.16 ~> 0.10.10 default
activejob 6.1.4.4 6.1.7.10
activemodel 6.1.4.4 6.1.7.10
activerecord 6.1.4.4 6.1.7.10
activestorage 6.1.4.4 6.1.7.10
activesupport 6.1.4.4 6.1.7.10
addressable 2.8.0 2.8.8
ast 2.4.2 2.4.3
bcrypt 3.1.16 3.1.21
bootsnap 1.9.4 1.23.0 >= 1.4.4 default
builder 3.2.4 3.3.0
concurrent-ruby 1.1.9 1.3.6
css_parser 1.11.0 1.17.1
database_cleaner-active_record 2.0.1 2.2.2 ~> 2.0 test
devise 4.8.1 4.9.4
devise_token_auth 1.2.0 1.2.6 ~> 1.2 default
diff-lcs 1.5.0 1.6.2
docile 1.4.0 1.4.1
erubi 1.10.0 1.13.1
factory_bot 6.2.0 6.4.5
factory_bot_rails 6.2.0 6.4.3 ~> 6.1 development, test
faker 2.19.0 2.23.0 ~> 2.17 development, test
ffi 1.15.5 1.17.3
globalid 1.0.0 1.3.0
htmlentities 4.3.4 4.4.2
i18n 1.8.11 1.14.8
inky-rb 1.4.2.0 1.4.2.1 >= 0 default
launchy 2.5.0 3.1.1
letter_opener 1.7.0 1.10.0
listen 3.7.1 3.10.0 ~> 3.3 development
loofah 2.13.0 2.25.0
mail 2.7.1 2.9.0
marcel 1.0.2 1.1.0
method_source 1.0.0 1.1.0
mini_mime 1.1.2 1.1.5
minitest 5.15.0 5.26.1
msgpack 1.4.2 1.8.0
nio4r 2.5.8 2.7.5
nokogiri 1.13.1 1.15.7
parallel 1.21.0 1.27.0
parser 3.1.0.0 3.3.10.2
pg 1.2.3 1.6.3 ~> 1.1 default
premailer 1.15.0 1.22.0
premailer-rails 1.11.1 1.12.0 >= 0 default
pry 0.14.1 0.16.0 >= 0 development, test
public_suffix 4.0.6 5.1.1
puma 5.5.2 5.6.9 ~> 5.0 default
racc 1.6.0 1.8.1
rack 2.2.3 2.2.22
rack-cors 1.1.1 2.0.2 >= 0 default
rack-test 1.1.0 2.2.0
rails 6.1.4.4 6.1.7.10 ~> 6.1.4, >= 6.1.4.1 default
rails-dom-testing 2.0.3 2.3.0
rails-html-sanitizer 1.4.2 1.6.2
railties 6.1.4.4 6.1.7.10
rake 13.0.6 13.3.1
rb-fsevent 0.11.0 0.11.2
rb-inotify 0.10.1 0.11.1
regexp_parser 2.2.0 2.11.3
responders 3.0.1 3.1.1
rexml 3.2.5 3.4.4
rspec-core 3.10.2 3.13.6
rspec-expectations 3.10.2 3.13.5
rspec-mocks 3.10.3 3.13.7
rspec-rails 5.0.3 5.1.2 ~> 5.0 development, test
rspec-support 3.10.3 3.13.7
rubocop 1.24.1 1.84.2 ~> 1.24, >= 1.24.1 development, test
rubocop-ast 1.15.1 1.49.0
rubocop-rspec 2.7.0 2.31.0 ~> 2.7 development, test
ruby-progressbar 1.11.0 1.13.0
shoulda-matchers 5.1.0 5.3.0 ~> 5.0 test
simplecov-html 0.12.3 0.13.2
simplecov_json_formatter 0.1.3 0.1.4
spring 3.1.1 4.3.0 >= 0 development
sprockets 4.0.2 4.2.2 >= 0 default
sprockets-rails 3.4.2 3.5.2
thor 1.2.1 1.5.0
tilt 2.0.10 2.7.0
tzinfo 2.0.4 2.0.6
unicode-display_width 2.1.0 3.2.0
websocket-driver 0.7.5 0.8.0
zeitwerk 2.5.3 2.6.18
Loading