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

Feature3 #3

Open
wants to merge 5 commits into
base: feature2
Choose a base branch
from
Open
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
253 changes: 253 additions & 0 deletions .byebug_history
Original file line number Diff line number Diff line change
@@ -0,0 +1,253 @@
c
C
c
n
@status
n
@appointment.status
@appointment
c
Slot.where(booked: false).where("available_days >= ?", Date.today)
.order(:available_days, :available_time)
.map { |slot| format_slot(slot) }
c
Slot.where(booked: false).where('available_days >= ?', Date.today).order(:available_days, :available_time)
@slots
c
@slots
n
@slots
c
n
current_user
@slot
n
c
current_user
n
c
n
c
n
c
@slot
n
@slot
n
c
n
@slot
n
params
c
n
@user
n
@user
n
token
n
header
n
user_id
n
token
tokebn
n
token
n
header
n
c
header
n
header
n
c
n
c
request.headers
request
headers
header
params
c
n
header
n
c
n
c
n
c
n
c
n
headers
header
@user
params
c
role
n
role
n
role
c
params
n
params
n
c
n

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Smokashi23 Unnecessary file pushed

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated changes

response.status
response
slot
params
n
params
c
params
c
n
params
n
params
c
n
c
c\
@appointment
n
c
response.body
user.role
c
login admin_user
user.role.role_name
c
login_in admin_user
user.role.role_name
c
response
response.body
user.role.role_name
c
response.body
user.role.role_name
c
user.role.role_name
c
user.valid?
user = User.new(password: "Password")
user.valid?
user.id
user,id
User.id
User.password
user.password
c
user.new_email
user.email
response.body
user.id
use.id
user.id?
c
id: user.id,
new_email = "[email protected]"
c
elsif @user.doctor?
c
elsif @user.doctor?
elsif @user.doctor?
c
@appts = Appointment.includes(:slot, :user).where(slots: { user_id: @user.id })
@user.doctor?
c
current_user
params
c
@status
status == "Confirmed"
@status
@appointment
c
@status = @appointment.status
@appointment = Appointment.find_by(id: params[:id])
params
c
c
c
status.update!(params[:status])
status.update(params[:status])
params[:status]
c
cd
c
params
c
params[:status]
params
c
Appointment.find_by(id: params[:id])
params
para,s
c
@appt
appt
c
exit
role.role_name
ROLES[:admin]
ROLES[:admin
c
new_email
user.email
response.body
response
c
user.admin?
user.role
c
user.role
user.admin?
user
c
response
c
user.role
continue
response
continue
valid_params
response
continue
user.role.role_name
user.admin?
continue
response
continue
Role.pluck(:role_name)
Role.last
Role.count
User.last
User.count
user
response.status
response
continue
token
next
continue
header
token
next
continue
token
JWT.decode(token, Rails.application.credentials[:secret_key_base] )
next
header
next
request.headers
request
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--require spec_helper
10 changes: 10 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ gem "bootsnap", require: false
group :development, :test do
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
gem "debug", platforms: %i[ mri windows ]
gem 'factory_bot_rails'
gem 'rspec-rails'
gem 'faker'
gem 'shoulda-matchers'
gem 'validates'
gem 'simplecov'
gem 'byebug'


end

group :development do
Expand All @@ -49,3 +58,4 @@ gem 'jwt'
gem 'active_model_serializers'

gem "pg", "~> 1.5"
gem 'cancancan'
51 changes: 49 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ GEM
bootsnap (1.18.3)
msgpack (~> 1.2)
builder (3.2.4)
byebug (11.1.3)
cancancan (3.5.0)
case_transform (0.2)
activesupport
concurrent-ruby (1.2.3)
Expand All @@ -95,15 +97,24 @@ GEM
debug (1.9.1)
irb (~> 1.10)
reline (>= 0.3.8)
diff-lcs (1.5.1)
docile (1.4.0)
drb (2.2.0)
ruby2_keywords
erubi (1.12.0)
factory_bot (6.4.6)
activesupport (>= 5.0.0)
factory_bot_rails (6.4.3)
factory_bot (~> 6.4)
railties (>= 5.0.0)
faker (3.2.3)
i18n (>= 1.8.11, < 2)
globalid (1.2.1)
activesupport (>= 6.1)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
io-console (0.7.2)
irb (1.11.1)
irb (1.11.2)
rdoc
reline (>= 0.4.2)
jsonapi-renderer (0.2.2)
Expand All @@ -118,7 +129,7 @@ GEM
net-smtp
marcel (1.0.2)
mini_mime (1.1.5)
minitest (5.22.0)
minitest (5.22.2)
msgpack (1.7.2)
mutex_m (0.2.0)
net-imap (0.4.10)
Expand Down Expand Up @@ -181,12 +192,40 @@ GEM
psych (>= 4.0.0)
reline (0.4.2)
io-console (~> 0.5)
rspec-core (3.13.0)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-rails (6.1.1)
actionpack (>= 6.1)
activesupport (>= 6.1)
railties (>= 6.1)
rspec-core (~> 3.12)
rspec-expectations (~> 3.12)
rspec-mocks (~> 3.12)
rspec-support (~> 3.12)
rspec-support (3.13.0)
ruby2_keywords (0.0.5)
shoulda-matchers (5.3.0)
activesupport (>= 5.2.0)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)
stringio (3.1.0)
thor (1.3.0)
timeout (0.4.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
validates (1.0.0)
activemodel (>= 3.0.0)
activesupport (>= 3.0.0)
webrick (1.8.1)
websocket-driver (0.7.6)
websocket-extensions (>= 0.1.0)
Expand All @@ -200,12 +239,20 @@ DEPENDENCIES
active_model_serializers
bcrypt
bootsnap
byebug
cancancan
debug
factory_bot_rails
faker
jwt
pg (~> 1.5)
puma (>= 5.0)
rails (~> 7.1.3)
rspec-rails
shoulda-matchers
simplecov
tzinfo-data
validates

RUBY VERSION
ruby 3.2.0p0
Expand Down
Loading