Skip to content

Commit

Permalink
Fix class documentation (#14)
Browse files Browse the repository at this point in the history
Corrections to class documentation comments

Co-authored-by: Guillermo Alvarez <[email protected]>
  • Loading branch information
vovimayhem and memoalv authored Nov 15, 2022
1 parent 60c0247 commit 9a95e21
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 25 deletions.
4 changes: 1 addition & 3 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# frozen_string_literal: true

#= Application Controller
#
# Base controller for all other controllers.
# Base controller used to handle web requests
class ApplicationController < ActionController::Base
helper_method :current_user, :user_signed_in?

Expand Down
4 changes: 1 addition & 3 deletions app/controllers/home_controller.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# frozen_string_literal: true

#= HomeController
#
# Handles the home or start page actions.
# Handles the home web requests
class HomeController < ApplicationController
def show; end
end
4 changes: 1 addition & 3 deletions app/controllers/session_controller.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# frozen_string_literal: true

#= SessionController
#
# Handles the user session actions.
# Handles the user session web requests
class SessionController < ApplicationController
def new; end

Expand Down
7 changes: 2 additions & 5 deletions app/models/identity_platform/cert_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
require 'net/http'

module IdentityPlatform
#= IdentityPlatform::CertStore
#
# This class is used by the DecodeIdentityToken service to retrieve and store
# the certificates used to properly decode tokens issued by Google Cloud
# Identity Platform
# Retrieves and stores the certificates used to properly decode tokens issued
# by Google Cloud Identity Platform
class CertStore
extend MonitorMixin

Expand Down
2 changes: 1 addition & 1 deletion app/models/identity_platform/error.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module IdentityPlatform
#= IdentityPlatform::Error
# An error returned by the Google Cloud Identity Platform
class Error < StandardError; end
end
4 changes: 1 addition & 3 deletions app/models/identity_platform/token.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# frozen_string_literal: true

module IdentityPlatform
#= IdentityPlatform::Token
#
# The tokens we obtain when authenticating users through Google Cloud Identity
# The token we obtain when authenticating users through Google Cloud Identity
# Platform
class Token
include ActiveModel::Model
Expand Down
5 changes: 2 additions & 3 deletions app/models/identity_platform/warden_strategy.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# frozen_string_literal: true

module IdentityPlatform
#= IdentityPlatform::WardenStrategy
#
# A warden strategy to authenticate users with a token from Identity Platform
# A warden strategy to authenticate users with a token from Google Cloud
# Identity Platform
class WardenStrategy < Warden::Strategies::Base
def valid?
!token_string.nil?
Expand Down
2 changes: 0 additions & 2 deletions app/models/user.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# frozen_string_literal: true

#= User
#
# A person who has an account on the site (via Google Cloud Identity Platform).
class User < ApplicationRecord
validates :identity_platform_id, presence: true, uniqueness: true
Expand Down
2 changes: 0 additions & 2 deletions spec/system/support/cuprite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@
# Configure Capybara to use :cuprite driver by default
Capybara.default_driver = Capybara.javascript_driver = :cuprite_remote

#= CupriteHelpers
#
# A couple of methods used to help the development of system tests
module CupriteHelpers
# Drop #pause anywhere in a test to stop the execution.
Expand Down

0 comments on commit 9a95e21

Please sign in to comment.