Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create controllers, models, and simple views using devise gem #4

Merged
merged 6 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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
6 changes: 1 addition & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ jobs:
ruby-version: .ruby-version
bundler-cache: true

- name: Ensure brakeman is executable

- name: Scan for common Rails security vulnerabilities using static analysis
run: bin/brakeman --no-pager

lint:
Expand All @@ -35,9 +34,6 @@ jobs:
ruby-version: .ruby-version
bundler-cache: true

- name: Ensure rubocop is executable
run: chmod +x bin/rubocop

- name: Lint code for consistent style
run: bin/rubocop -f github

9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,11 @@ storage/*
/node_modules
/yarn-error.log
yarn-debug.log*
.yarn-integrity
.yarn-integrity
# Ignore master key for decrypting credentials and more.
/config/master.key

/app/assets/builds/*
!/app/assets/builds/.keep

/node_modules
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
# check=error=true

# This Dockerfile is designed for production, not development. Use with Kamal or build'n'run by hand:

# docker build -t internship_test_ivanruskevych .
# docker run -d -p 80:80 -e RAILS_MASTER_KEY=<value from config/master.key> --name internship_test_ivanruskevych internship_test_ivanruskevych


# For a containerized dev environment, see Dev Containers: https://guides.rubyonrails.org/getting_started_with_devcontainer.html

# Make sure RUBY_VERSION matches the Ruby version in .ruby-version
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@ group :development do
gem "web-console"
end


gem "devise", "~> 4.9"
16 changes: 15 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ GEM
uri (>= 0.13.1)
ast (2.4.2)
base64 (0.2.0)
bcrypt (3.1.20)
bcrypt_pbkdf (1.1.1)
bcrypt_pbkdf (1.1.1-arm64-darwin)
bcrypt_pbkdf (1.1.1-x86_64-darwin)
Expand All @@ -94,6 +95,12 @@ GEM
debug (1.9.2)
irb (~> 1.10)
reline (>= 0.3.8)
devise (4.9.4)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 4.1.0)
responders
warden (~> 1.2.3)
dotenv (3.1.4)
drb (2.2.1)
ed25519 (1.3.0)
Expand All @@ -108,7 +115,7 @@ GEM
i18n (1.14.6)
concurrent-ruby (~> 1.0)
io-console (0.8.0)
irb (1.14.1)
irb (1.14.2)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
jbuilder (2.13.0)
Expand Down Expand Up @@ -169,6 +176,7 @@ GEM
racc (~> 1.4)
nokogiri (1.17.1-x86_64-linux)
racc (~> 1.4)
orm_adapter (0.5.0)
ostruct (0.6.1)
parallel (1.26.3)
parser (3.3.6.0)
Expand Down Expand Up @@ -230,6 +238,9 @@ GEM
regexp_parser (2.9.3)
reline (0.5.12)
io-console (~> 0.5)
responders (3.1.1)
actionpack (>= 5.2)
railties (>= 5.2)
rubocop (1.69.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
Expand Down Expand Up @@ -302,6 +313,8 @@ GEM
unicode-emoji (4.0.4)
uri (1.0.2)
useragent (0.16.11)
warden (1.2.9)
rack (>= 2.0.9)
web-console (4.2.1)
actionview (>= 6.0.0)
activemodel (>= 6.0.0)
Expand All @@ -325,6 +338,7 @@ DEPENDENCIES
brakeman
cssbundling-rails
debug
devise (~> 4.9)
jbuilder
jsbundling-rails
kamal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ Using LLM for help on debugging something you are stuck in is acceptable. Asking
* "What could be causing my application to fail given this log? `Paste of error log` -- **is OK**
* "Please analyze this Ruby method and give me a critique of without code examples: `paste of method`" -- **is OK**
* "Please generate Ruby on Rails code for ..." -- **is considered excessive and NOT OK**
* "Rewrite this controller to make it better: `Paste of a ruby file` -- **is considered excessive and NOT OK**
* "Rewrite this controller to make it better: `Paste of a ruby file` -- **is considered excessive and NOT OK**
Loading
Loading