uclibs / ucrate

Scholar@UC: University of Cincinnati's self-submission institutional repository
https://scholar.uc.edu
Other
5 stars 3 forks source link

Changes constants to variables in embargo rake task. #1107

Closed scherztc closed 8 months ago

scherztc commented 8 months ago

Fixes #1077

Present short summary (50 characters or less)

This task is used to notify users of their embargoed works. This PR changes the use of CONSTANTS to remove change warnings in the spec test.

Description can have multiple paragraphs and you can use code examples inside:

/Users/scherztc/Workspaces/ucrate/lib/tasks/embargo_notify.rake:6: warning: already initialized constant FOURTEEN_DAYS /Users/scherztc/Workspaces/ucrate/lib/tasks/embargo_notify.rake:6: warning: previous definition of FOURTEEN_DAYS was here /Users/scherztc/Workspaces/ucrate/lib/tasks/embargo_notify.rake:7: warning: already initialized constant THIRTY_DAYS /Users/scherztc/Workspaces/ucrate/lib/tasks/embargo_notify.rake:7: warning: previous definition of THIRTY_DAYS was here /Users/scherztc/Workspaces/ucrate/lib/tasks/embargo_notify.rake:8: warning: already initialized constant ONE_DAY /Users/scherztc/Workspaces/ucrate/lib/tasks/embargo_notify.rake:8: warning: previous definition of ONE_DAY was here /Users/scherztc/Workspaces/ucrate/lib/tasks/embargo_notify.rake:9: warning: already initialized constant ZERO_DAYS /Users/scherztc/Workspaces/ucrate/lib/tasks/embargo_notify.rake:9: warning: previous definition of ZERO_DAYS was here /Users/scherztc/Workspaces/ucrate/lib/tasks/embargo_notify.rake:6: warning: already initialized constant FOURTEEN_DAYS /Users/scherztc/Workspaces/ucrate/lib/tasks/embargo_notify.rake:6: warning: previous definition of FOURTEEN_DAYS was here

Changes proposed in this pull request: