From 3d0b1eb526859284800d89591842c3eb3a6660ae Mon Sep 17 00:00:00 2001 From: Monique Rio Date: Fri, 12 Jul 2024 13:55:33 -0400 Subject: [PATCH] tidy: rename subject folders to subjects --- umich_catalog_indexing/lib/common/subjects.rb | 8 ++++---- .../lib/common/{subject => subjects}/lc_subject.rb | 0 .../lib/common/{subject => subjects}/non_lc_subject.rb | 0 .../lib/common/{subject => subjects}/normalize.rb | 0 .../lib/common/{subject => subjects}/remediator.rb | 0 umich_catalog_indexing/lib/common/subjects/subject.rb | 6 ++++++ .../spec/common/{subject => subjects}/lc_subject_spec.rb | 0 .../common/{subject => subjects}/non_lc_subject_spec.rb | 0 .../spec/common/{subject => subjects}/normalize_spec.rb | 0 .../spec/common/{subject => subjects}/remediator_spec.rb | 0 .../spec/common/{subject => subjects}/subjects_spec.rb | 0 11 files changed, 10 insertions(+), 4 deletions(-) rename umich_catalog_indexing/lib/common/{subject => subjects}/lc_subject.rb (100%) rename umich_catalog_indexing/lib/common/{subject => subjects}/non_lc_subject.rb (100%) rename umich_catalog_indexing/lib/common/{subject => subjects}/normalize.rb (100%) rename umich_catalog_indexing/lib/common/{subject => subjects}/remediator.rb (100%) create mode 100644 umich_catalog_indexing/lib/common/subjects/subject.rb rename umich_catalog_indexing/spec/common/{subject => subjects}/lc_subject_spec.rb (100%) rename umich_catalog_indexing/spec/common/{subject => subjects}/non_lc_subject_spec.rb (100%) rename umich_catalog_indexing/spec/common/{subject => subjects}/normalize_spec.rb (100%) rename umich_catalog_indexing/spec/common/{subject => subjects}/remediator_spec.rb (100%) rename umich_catalog_indexing/spec/common/{subject => subjects}/subjects_spec.rb (100%) diff --git a/umich_catalog_indexing/lib/common/subjects.rb b/umich_catalog_indexing/lib/common/subjects.rb index 016e3a9c..27eaf2f2 100644 --- a/umich_catalog_indexing/lib/common/subjects.rb +++ b/umich_catalog_indexing/lib/common/subjects.rb @@ -7,10 +7,10 @@ class Subjects end end -require_relative "subject/lc_subject" -require_relative "subject/non_lc_subject" -require_relative "subject/normalize" -require_relative "subject/remediator" +require_relative "subjects/lc_subject" +require_relative "subjects/non_lc_subject" +require_relative "subjects/normalize" +require_relative "subjects/remediator" module Common class Subjects diff --git a/umich_catalog_indexing/lib/common/subject/lc_subject.rb b/umich_catalog_indexing/lib/common/subjects/lc_subject.rb similarity index 100% rename from umich_catalog_indexing/lib/common/subject/lc_subject.rb rename to umich_catalog_indexing/lib/common/subjects/lc_subject.rb diff --git a/umich_catalog_indexing/lib/common/subject/non_lc_subject.rb b/umich_catalog_indexing/lib/common/subjects/non_lc_subject.rb similarity index 100% rename from umich_catalog_indexing/lib/common/subject/non_lc_subject.rb rename to umich_catalog_indexing/lib/common/subjects/non_lc_subject.rb diff --git a/umich_catalog_indexing/lib/common/subject/normalize.rb b/umich_catalog_indexing/lib/common/subjects/normalize.rb similarity index 100% rename from umich_catalog_indexing/lib/common/subject/normalize.rb rename to umich_catalog_indexing/lib/common/subjects/normalize.rb diff --git a/umich_catalog_indexing/lib/common/subject/remediator.rb b/umich_catalog_indexing/lib/common/subjects/remediator.rb similarity index 100% rename from umich_catalog_indexing/lib/common/subject/remediator.rb rename to umich_catalog_indexing/lib/common/subjects/remediator.rb diff --git a/umich_catalog_indexing/lib/common/subjects/subject.rb b/umich_catalog_indexing/lib/common/subjects/subject.rb new file mode 100644 index 00000000..b5e90865 --- /dev/null +++ b/umich_catalog_indexing/lib/common/subjects/subject.rb @@ -0,0 +1,6 @@ +module Common + class Subjects + class Subject + end + end +end diff --git a/umich_catalog_indexing/spec/common/subject/lc_subject_spec.rb b/umich_catalog_indexing/spec/common/subjects/lc_subject_spec.rb similarity index 100% rename from umich_catalog_indexing/spec/common/subject/lc_subject_spec.rb rename to umich_catalog_indexing/spec/common/subjects/lc_subject_spec.rb diff --git a/umich_catalog_indexing/spec/common/subject/non_lc_subject_spec.rb b/umich_catalog_indexing/spec/common/subjects/non_lc_subject_spec.rb similarity index 100% rename from umich_catalog_indexing/spec/common/subject/non_lc_subject_spec.rb rename to umich_catalog_indexing/spec/common/subjects/non_lc_subject_spec.rb diff --git a/umich_catalog_indexing/spec/common/subject/normalize_spec.rb b/umich_catalog_indexing/spec/common/subjects/normalize_spec.rb similarity index 100% rename from umich_catalog_indexing/spec/common/subject/normalize_spec.rb rename to umich_catalog_indexing/spec/common/subjects/normalize_spec.rb diff --git a/umich_catalog_indexing/spec/common/subject/remediator_spec.rb b/umich_catalog_indexing/spec/common/subjects/remediator_spec.rb similarity index 100% rename from umich_catalog_indexing/spec/common/subject/remediator_spec.rb rename to umich_catalog_indexing/spec/common/subjects/remediator_spec.rb diff --git a/umich_catalog_indexing/spec/common/subject/subjects_spec.rb b/umich_catalog_indexing/spec/common/subjects/subjects_spec.rb similarity index 100% rename from umich_catalog_indexing/spec/common/subject/subjects_spec.rb rename to umich_catalog_indexing/spec/common/subjects/subjects_spec.rb