File tree Expand file tree Collapse file tree 8 files changed +8
-8
lines changed
Expand file tree Collapse file tree 8 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ module Api
44 module V1
55 module Auth
66 module Jwt
7- # Class to handle encryption/descryption of the JWT
7+ # Class to handle encryption/decryption of the JWT
88 class JsonWebToken
99 class << self
1010 def encode ( payload :, exp : 24 . hours . from_now )
Original file line number Diff line number Diff line change 33module Api
44 module V1
55 module Deserialization
6- # Logic to deserialize RDA common standard to a Plan funder and grant infor
6+ # Logic to deserialize RDA common standard to a Plan funder and grant info
77 class Funding
88 class << self
99 # Convert the funding information and attach to the Plan
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class Application < Rails::Application
2121 # ORGANISATION SETTINGS #
2222 # --------------------- #
2323
24- # Your organisation name, used in various places throught the application
24+ # Your organisation name, used in various places throughout the application
2525 config . x . organisation . name = 'Curation Center'
2626 # Your organisation's abbreviation
2727 config . x . organisation . abbreviation = 'CC'
Original file line number Diff line number Diff line change 1414# region: us-east-1
1515# bucket: your_own_bucket
1616
17- # Remember not to checkin your GCS keyfile to a repository
17+ # Remember not to check in your GCS keyfile to a repository
1818# google:
1919# service: GCS
2020# project: your_project
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ namespace :data_cleanup do
209209 ids = [ ]
210210 if filter . options [ :with ] . present?
211211 filter . attributes . each do |attr |
212- # skip password validaton since the field is encrypted through Devise
212+ # skip password validation since the field is encrypted through Devise
213213 unless attr == :password
214214 # If this is the users.email field send it to the EmailValidator. Devise has its own Regex
215215 # but running a Regex query gets messy between different DB types
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ namespace :templates do
3030 funder_template . phases . select { |phase | phase . versionable_id . nil? } . each do |phase |
3131 p "Processing Template: #{ funder_template . id } - #{ funder_template . title } "
3232
33- # Run all of this within a transation so that it rolls back if there is an issue!
33+ # Run all of this within a transaction so that it rolls back if there is an issue!
3434 phase . transaction do
3535 phase_version = SecureRandom . uuid
3636 p " Updating versionable_id for Phase: #{ phase . id } to #{ phase_version } "
Original file line number Diff line number Diff line change 464464 end
465465 end
466466
467- # Test creationg a User from an omniauth callback like Shibboleth
467+ # Test creating a User from an omniauth callback like Shibboleth
468468 describe '.from_omniauth' do
469469 let! ( :user ) { create ( :user ) }
470470 let! ( :auth ) do
Original file line number Diff line number Diff line change 4141 it 'return an empty hash if the value does not have a match in crosswalk' do
4242 expect ( @presenter . crosswalk_entry_from_org_id ( value : '999' ) ) . to eql ( '{}' )
4343 end
44- it 'return ther correct crosswalk entry' do
44+ it 'return the correct crosswalk entry' do
4545 rslt = @presenter . crosswalk_entry_from_org_id ( value : @org . id . to_s )
4646 expected = OrgSelection ::OrgToHashService . to_hash ( org : @org ) . to_json
4747 expect ( rslt ) . to eql ( expected )
You can’t perform that action at this time.
0 commit comments