arclight 0.1.0 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. checksums.yaml +5 -5
  2. data/.all-contributorsrc +450 -0
  3. data/.codeclimate.yml +5 -0
  4. data/.eslintrc +14 -4
  5. data/.github/workflows/ruby.yml +51 -0
  6. data/.gitignore +2 -0
  7. data/.rspec +0 -1
  8. data/.rubocop.yml +503 -48
  9. data/.rubocop_todo.yml +122 -0
  10. data/.solr_wrapper +2 -1
  11. data/CONTRIBUTING.md +5 -5
  12. data/CONTRIBUTORS.md +79 -0
  13. data/Gemfile +15 -10
  14. data/README.md +47 -32
  15. data/Rakefile +0 -1
  16. data/app/assets/images/blacklight/bookmark.svg +1 -0
  17. data/app/assets/images/blacklight/collection.svg +5 -0
  18. data/app/assets/images/blacklight/compact.svg +1 -25
  19. data/app/assets/images/blacklight/container.svg +5 -0
  20. data/app/assets/images/blacklight/ead.svg +1 -0
  21. data/app/assets/images/blacklight/file.svg +5 -0
  22. data/app/assets/images/blacklight/folder.svg +1 -0
  23. data/app/assets/images/blacklight/list.svg +1 -0
  24. data/app/assets/images/blacklight/minus.svg +1 -0
  25. data/app/assets/images/blacklight/online.svg +5 -0
  26. data/app/assets/images/blacklight/pdf.svg +1 -0
  27. data/app/assets/images/blacklight/plus.svg +1 -0
  28. data/app/assets/images/blacklight/repository.svg +1 -0
  29. data/app/assets/javascripts/arclight/arclight.js +4 -9
  30. data/app/assets/javascripts/arclight/oembed_controller.js +58 -0
  31. data/app/assets/javascripts/arclight/truncate_controller.js +27 -0
  32. data/app/assets/stylesheets/arclight/application.scss +4 -3
  33. data/app/assets/stylesheets/arclight/build.scss +4 -0
  34. data/app/assets/stylesheets/arclight/modules/hierarchy_and_online_contents.scss +117 -136
  35. data/app/assets/stylesheets/arclight/modules/highlights.scss +3 -2
  36. data/app/assets/stylesheets/arclight/modules/icons.scss +20 -0
  37. data/app/assets/stylesheets/arclight/modules/layout.scss +203 -16
  38. data/app/assets/stylesheets/arclight/modules/mastheads.scss +27 -45
  39. data/app/assets/stylesheets/arclight/modules/repositories.scss +3 -7
  40. data/app/assets/stylesheets/arclight/modules/repository_card.scss +5 -50
  41. data/app/assets/stylesheets/arclight/modules/search_form.scss +9 -0
  42. data/app/assets/stylesheets/arclight/modules/search_results.scss +200 -25
  43. data/app/assets/stylesheets/arclight/modules/show_collection.scss +21 -61
  44. data/app/assets/stylesheets/arclight/modules/truncator.scss +58 -0
  45. data/app/assets/stylesheets/arclight/responsive.scss +13 -0
  46. data/app/assets/stylesheets/arclight/variables.scss +25 -2
  47. data/app/components/arclight/access_component.html.erb +14 -0
  48. data/app/components/arclight/access_component.rb +25 -0
  49. data/app/components/arclight/bookmark_component.html.erb +25 -0
  50. data/app/components/arclight/bookmark_component.rb +9 -0
  51. data/app/components/arclight/breadcrumb_component.rb +50 -0
  52. data/app/components/arclight/breadcrumbs_hierarchy_component.html.erb +34 -0
  53. data/app/components/arclight/breadcrumbs_hierarchy_component.rb +25 -0
  54. data/app/components/arclight/collection_context_component.html.erb +12 -0
  55. data/app/components/arclight/collection_context_component.rb +27 -0
  56. data/app/components/arclight/collection_info_component.html.erb +28 -0
  57. data/app/components/arclight/collection_info_component.rb +26 -0
  58. data/app/components/arclight/collection_sidebar_component.html.erb +15 -0
  59. data/app/components/arclight/collection_sidebar_component.rb +39 -0
  60. data/app/{views/catalog/_search_results_repository.html.erb → components/arclight/constraints_component.html.erb} +2 -1
  61. data/app/components/arclight/constraints_component.rb +17 -0
  62. data/app/components/arclight/document_collection_context_component.html.erb +29 -0
  63. data/app/components/arclight/document_collection_context_component.rb +28 -0
  64. data/app/components/arclight/document_collection_hierarchy_component.html.erb +50 -0
  65. data/app/components/arclight/document_collection_hierarchy_component.rb +62 -0
  66. data/app/components/arclight/document_component.html.erb +39 -0
  67. data/app/components/arclight/document_component.rb +49 -0
  68. data/app/components/arclight/document_components_hierarchy_component.html.erb +20 -0
  69. data/app/components/arclight/document_components_hierarchy_component.rb +34 -0
  70. data/app/components/arclight/document_download_component.html.erb +24 -0
  71. data/app/components/arclight/document_download_component.rb +71 -0
  72. data/app/components/arclight/embed_component.html.erb +10 -0
  73. data/app/components/arclight/embed_component.rb +43 -0
  74. data/app/components/arclight/expand_hierarchy_button_component.html.erb +5 -0
  75. data/app/components/arclight/expand_hierarchy_button_component.rb +16 -0
  76. data/app/components/arclight/group_component.html.erb +34 -0
  77. data/app/components/arclight/group_component.rb +23 -0
  78. data/app/components/arclight/header_component.html.erb +5 -0
  79. data/app/components/arclight/header_component.rb +10 -0
  80. data/app/components/arclight/index_metadata_field_component.html.erb +16 -0
  81. data/app/components/arclight/index_metadata_field_component.rb +20 -0
  82. data/app/components/arclight/masthead_component.html.erb +17 -0
  83. data/app/components/arclight/masthead_component.rb +10 -0
  84. data/app/components/arclight/metadata_section_component.html.erb +13 -0
  85. data/app/components/arclight/metadata_section_component.rb +22 -0
  86. data/app/components/arclight/oembed_viewer_component.html.erb +5 -0
  87. data/app/components/arclight/oembed_viewer_component.rb +16 -0
  88. data/app/components/arclight/online_content_filter_component.html.erb +15 -0
  89. data/app/components/arclight/online_content_filter_component.rb +17 -0
  90. data/app/components/arclight/online_status_indicator_component.rb +19 -0
  91. data/app/components/arclight/repository_breadcrumb_component.html.erb +10 -0
  92. data/app/components/arclight/repository_breadcrumb_component.rb +17 -0
  93. data/app/components/arclight/repository_location_component.html.erb +20 -0
  94. data/app/components/arclight/repository_location_component.rb +10 -0
  95. data/app/components/arclight/search_bar_component.html.erb +27 -0
  96. data/app/components/arclight/search_bar_component.rb +32 -0
  97. data/app/components/arclight/search_result_breadcrumbs_component.html.erb +6 -0
  98. data/app/components/arclight/search_result_breadcrumbs_component.rb +37 -0
  99. data/app/components/arclight/search_result_component.html.erb +20 -0
  100. data/app/components/arclight/search_result_component.rb +18 -0
  101. data/app/components/arclight/search_result_title_component.html.erb +15 -0
  102. data/app/components/arclight/search_result_title_component.rb +15 -0
  103. data/app/components/arclight/sidebar_component.html.erb +9 -0
  104. data/app/components/arclight/sidebar_component.rb +19 -0
  105. data/app/components/arclight/upper_metadata_layout_component.rb +10 -0
  106. data/app/components/blacklight/icons/bookmark_component.rb +12 -0
  107. data/app/components/blacklight/icons/collection_component.rb +14 -0
  108. data/app/components/blacklight/icons/compact_component.rb +12 -0
  109. data/app/components/blacklight/icons/container_component.rb +14 -0
  110. data/app/components/blacklight/icons/ead_component.rb +12 -0
  111. data/app/components/blacklight/icons/file_component.rb +14 -0
  112. data/app/components/blacklight/icons/folder_component.rb +12 -0
  113. data/app/components/blacklight/icons/online_component.rb +15 -0
  114. data/app/components/blacklight/icons/pdf_component.rb +12 -0
  115. data/app/components/blacklight/icons/repository_component.rb +12 -0
  116. data/app/controllers/arclight/repositories_controller.rb +4 -4
  117. data/app/helpers/arclight/ead_format_helpers.rb +309 -0
  118. data/app/helpers/arclight/field_config_helpers.rb +26 -0
  119. data/app/helpers/arclight_helper.rb +55 -120
  120. data/app/models/arclight/document_downloads.rb +122 -0
  121. data/app/models/arclight/parent.rb +9 -9
  122. data/app/models/arclight/parents.rb +9 -4
  123. data/app/models/arclight/requests/aeon_external_request.rb +42 -0
  124. data/app/models/arclight/requests/aeon_web_ead.rb +52 -0
  125. data/app/models/arclight/requests/google_form.rb +8 -3
  126. data/app/models/concerns/arclight/catalog.rb +33 -11
  127. data/app/models/concerns/arclight/search_behavior.rb +22 -21
  128. data/app/models/concerns/arclight/solr_document.rb +88 -59
  129. data/app/presenters/arclight/show_presenter.rb +34 -7
  130. data/app/views/arclight/_requests.html.erb +7 -0
  131. data/app/views/arclight/repositories/_repository.html.erb +22 -41
  132. data/app/views/arclight/repositories/index.html.erb +5 -0
  133. data/app/views/arclight/repositories/show.html.erb +7 -8
  134. data/app/views/arclight/requests/_aeon_external_request_endpoint.html.erb +8 -0
  135. data/app/views/arclight/requests/_aeon_web_ead.html.erb +6 -0
  136. data/app/views/arclight/requests/_google_form.html.erb +4 -5
  137. data/app/views/catalog/_document_list.html.erb +8 -0
  138. data/app/views/catalog/_group.html.erb +4 -0
  139. data/app/views/catalog/_group_toggle.html.erb +10 -0
  140. data/app/views/catalog/_search_results_header.html.erb +3 -0
  141. data/app/views/catalog/hierarchy.html.erb +19 -0
  142. data/app/views/catalog/index.html.erb +16 -7
  143. data/app/views/shared/_breadcrumbs.html.erb +3 -15
  144. data/app/views/shared/_main_menu_links.html.erb +1 -1
  145. data/arclight.gemspec +22 -17
  146. data/config/breadcrumbs.rb +24 -0
  147. data/config/i18n-tasks.yml +134 -0
  148. data/config/importmap.rb +3 -0
  149. data/config/locales/arclight.en.yml +90 -55
  150. data/config/routes.rb +1 -1
  151. data/docker-compose.yml +16 -0
  152. data/lib/arclight/digital_object.rb +2 -1
  153. data/lib/arclight/engine.rb +23 -31
  154. data/lib/arclight/exceptions.rb +1 -0
  155. data/lib/arclight/hash_absolute_xpath.rb +62 -0
  156. data/lib/arclight/level_label.rb +46 -0
  157. data/lib/arclight/missing_id_strategy.rb +21 -0
  158. data/lib/arclight/normalized_date.rb +24 -20
  159. data/lib/arclight/normalized_id.rb +7 -2
  160. data/lib/arclight/normalized_title.rb +3 -0
  161. data/lib/arclight/repository.rb +72 -47
  162. data/lib/arclight/routes/hierarchy.rb +19 -0
  163. data/lib/arclight/routes.rb +8 -0
  164. data/lib/arclight/traject/ead2_component_config.rb +335 -0
  165. data/lib/arclight/traject/ead2_config.rb +316 -0
  166. data/lib/arclight/traject/nokogiri_namespaceless_reader.rb +22 -0
  167. data/lib/arclight/version.rb +1 -1
  168. data/lib/arclight/year_range.rb +13 -4
  169. data/lib/arclight.rb +6 -1
  170. data/lib/generators/arclight/install_generator.rb +110 -10
  171. data/lib/generators/arclight/templates/arclight.scss +6 -3
  172. data/lib/generators/arclight/templates/catalog_controller.rb +249 -173
  173. data/lib/generators/arclight/templates/config/downloads.yml +12 -0
  174. data/lib/generators/arclight/templates/config/locales/arclight.en.yml +61 -0
  175. data/lib/generators/arclight/templates/config/repositories.yml +42 -31
  176. data/lib/generators/arclight/update_generator.rb +1 -1
  177. data/lib/tasks/index.rake +25 -28
  178. data/package.json +15 -9
  179. data/solr/conf/schema.xml +101 -332
  180. data/solr/conf/solrconfig.xml +99 -164
  181. data/tasks/arclight.rake +22 -11
  182. data/template.rb +6 -11
  183. metadata +230 -105
  184. data/.travis.yml +0 -33
  185. data/app/assets/javascripts/arclight/collection_context.js +0 -18
  186. data/app/assets/javascripts/arclight/collection_navigation.js +0 -114
  187. data/app/assets/javascripts/arclight/collection_scrollspy.js +0 -6
  188. data/app/assets/javascripts/arclight/component_ancestors.js +0 -56
  189. data/app/assets/javascripts/arclight/oembed_viewer.js +0 -39
  190. data/app/assets/javascripts/arclight/truncator.js.erb +0 -23
  191. data/app/assets/stylesheets/arclight/bootstrap_overrides.scss +0 -3
  192. data/app/assets/stylesheets/arclight/modules/sidebar.scss +0 -16
  193. data/app/controllers/concerns/arclight/field_config_helpers.rb +0 -86
  194. data/app/factories/blacklight_field_configuration_factory.rb +0 -29
  195. data/app/views/arclight/repositories/_in_person_repository.html.erb +0 -19
  196. data/app/views/arclight/viewers/_oembed.html.erb +0 -7
  197. data/app/views/catalog/_arclight_document_index_header.html.erb +0 -13
  198. data/app/views/catalog/_arclight_document_index_header_online_contents_default.html.erb +0 -0
  199. data/app/views/catalog/_arclight_document_show_header.html.erb +0 -15
  200. data/app/views/catalog/_arclight_document_show_header_collection.html.erb +0 -12
  201. data/app/views/catalog/_arclight_index_compact_default.html.erb +0 -15
  202. data/app/views/catalog/_arclight_online_content_indicator.html.erb +0 -5
  203. data/app/views/catalog/_arclight_rangelimit.html.erb +0 -24
  204. data/app/views/catalog/_arclight_viewer_default.html.erb +0 -1
  205. data/app/views/catalog/_collection_contents.html.erb +0 -12
  206. data/app/views/catalog/_collection_count.html.erb +0 -7
  207. data/app/views/catalog/_collection_downloads.html.erb +0 -17
  208. data/app/views/catalog/_collection_online_contents.html.erb +0 -17
  209. data/app/views/catalog/_collection_overview.html.erb +0 -7
  210. data/app/views/catalog/_component_overview.html.erb +0 -46
  211. data/app/views/catalog/_context_card.html.erb +0 -27
  212. data/app/views/catalog/_context_sidebar.html.erb +0 -8
  213. data/app/views/catalog/_custom_metadata.html.erb +0 -16
  214. data/app/views/catalog/_home.html.erb +0 -1
  215. data/app/views/catalog/_index_breadcrumb_default.html.erb +0 -3
  216. data/app/views/catalog/_index_default.html.erb +0 -17
  217. data/app/views/catalog/_index_header.html.erb +0 -7
  218. data/app/views/catalog/_index_header_hierarchy_default.html.erb +0 -42
  219. data/app/views/catalog/_index_header_online_contents_default.html.erb +0 -1
  220. data/app/views/catalog/_index_hierarchy_default.html.erb +0 -28
  221. data/app/views/catalog/_index_online_contents_default.html.erb +0 -6
  222. data/app/views/catalog/_results_histogram.html.erb +0 -10
  223. data/app/views/catalog/_search_results.html.erb +0 -31
  224. data/app/views/catalog/_search_within_form.html.erb +0 -16
  225. data/app/views/catalog/_show_breadcrumbs_default.html.erb +0 -7
  226. data/app/views/catalog/_show_collection.html.erb +0 -40
  227. data/app/views/catalog/_show_component_sidebar.html.erb +0 -12
  228. data/app/views/catalog/_show_default.html.erb +0 -32
  229. data/app/views/catalog/_show_header.html.erb +0 -5
  230. data/app/views/catalog/_show_sidebar.html.erb +0 -30
  231. data/app/views/layouts/catalog_result.html.erb +0 -7
  232. data/app/views/shared/_context_sidebar.html.erb +0 -8
  233. data/app/views/shared/_header_navbar.html.erb +0 -54
  234. data/lib/arclight/custom_component.rb +0 -98
  235. data/lib/arclight/custom_document.rb +0 -93
  236. data/lib/arclight/indexer.rb +0 -9
  237. data/lib/arclight/shared_indexing_behavior.rb +0 -97
  238. data/lib/arclight/shared_terminology_behavior.rb +0 -65
  239. data/lib/arclight/solr_ead_indexer_ext.rb +0 -159
  240. data/lib/arclight/viewer.rb +0 -45
  241. data/lib/arclight/viewers/oembed.rb +0 -56
  242. data/lib/generators/arclight/templates/arclight.js +0 -2
  243. data/solr/conf/scripts.conf +0 -24
  244. data/vendor/assets/javascripts/responsiveTruncator.js +0 -69
  245. data/vendor/assets/javascripts/stickyfill.js +0 -480
  246. /data/app/assets/images/{blacklight → arclight}/logo.png +0 -0
  247. /data/{app/views/catalog/_arclight_document_index_header_hierarchy_default.html.erb → config/repositories.yml} +0 -0
data/.rubocop.yml CHANGED
@@ -1,66 +1,521 @@
1
- require: rubocop-rspec
1
+ plugins:
2
+ - rubocop-factory_bot
2
3
 
3
- AllCops:
4
- Exclude:
5
- - '.internal_test_app/**/*'
6
- - 'bin/**/*'
7
- - 'db/**/*'
8
- - 'lib/generators/arclight/templates/**/*'
9
- - 'vendor/**/*'
10
- TargetRubyVersion: 2.4
11
- DisplayCopNames: true
4
+ require:
5
+ - rubocop-rspec
6
+ - rubocop-rails
7
+ - rubocop-rake
8
+ - rubocop-rspec_rails
9
+ - rubocop-capybara
12
10
 
13
- Rails:
14
- Enabled: true
11
+ inherit_from:
12
+ - .rubocop_todo.yml
15
13
 
16
- Metrics/LineLength:
17
- Max: 120
14
+ AllCops:
18
15
  Exclude:
19
- - 'Gemfile'
20
- - 'lib/arclight/custom_document.rb' # XPaths get long
21
- - 'lib/arclight/custom_component.rb' # XPaths get long
16
+ - ".internal_test_app/**/*"
17
+ - "bin/**/*"
18
+ - "db/**/*"
19
+ - "lib/generators/arclight/templates/**/*"
20
+ - "vendor/**/*"
21
+ - "node_modules/**/*"
22
+ TargetRubyVersion: 3.0
23
+ DisplayCopNames: true
22
24
 
23
25
  Metrics/ModuleLength:
24
- Max: 120
25
-
26
- Metrics/ClassLength:
27
- Max: 120
28
-
29
- Metrics/BlockLength:
30
26
  Exclude:
31
- - !ruby/regexp /\.rake$/
32
- - 'arclight.gemspec'
33
- - 'spec/**/*'
34
- - 'lib/arclight/custom_document.rb'
27
+ - "app/helpers/arclight_helper.rb"
28
+ - "app/models/concerns/arclight/solr_document.rb"
35
29
 
36
- Metrics/MethodLength:
30
+ Metrics/BlockLength:
37
31
  Exclude:
38
- - 'lib/arclight/custom_document.rb' # arclight_field_definitions too long
39
-
40
- Performance/RegexpMatch:
41
- Enabled: false
32
+ - "arclight.gemspec"
33
+ - "lib/arclight/traject/ead2_config.rb"
34
+ - "lib/tasks/**/*"
35
+ - "spec/features/traject/ead2_indexing_spec.rb"
36
+ - "spec/helpers/arclight_helper_spec.rb"
37
+ - "spec/features/collection_page_spec.rb"
38
+ - "spec/**/*"
39
+ - "tasks/**/*"
42
40
 
43
- Rails/OutputSafety:
44
- Exclude:
45
- - 'app/controllers/concerns/arclight/field_config_helpers.rb' # html_safe needs to be called to mimic BL JOIN behavior
41
+ Naming/PredicateName:
42
+ ForbiddenPrefixes:
43
+ - is_
46
44
 
47
- RSpec/ExampleLength:
48
- Enabled: false
45
+ Layout/LineLength:
46
+ Max: 160
49
47
 
50
- RSpec/FilePath:
51
- Exclude:
52
- - 'spec/lib/arclight/viewers/oembed_spec.rb' # Default file path is o_embed, and that looks weird
48
+ Rails:
49
+ Enabled: true
53
50
 
54
- RSpec/MultipleExpectations:
51
+ Bundler/DuplicatedGem:
55
52
  Enabled: false
56
53
 
57
- RSpec/NestedGroups:
58
- Max: 4
59
-
60
- Style/Documentation:
54
+ Style/FormatStringToken:
61
55
  Exclude:
62
- - 'spec/**/*'
63
- - 'lib/arclight.rb'
56
+ - "spec/test_app_templates/lib/generators/test_app_generator.rb"
64
57
 
65
- Bundler/DuplicatedGem:
58
+ Gemspec/DeprecatedAttributeAssignment: # new in 1.30
59
+ Enabled: true
60
+ Gemspec/RequireMFA: # new in 1.23
66
61
  Enabled: false
62
+ Layout/LineContinuationLeadingSpace: # new in 1.31
63
+ Enabled: true
64
+ Layout/LineContinuationSpacing: # new in 1.31
65
+ Enabled: true
66
+ Layout/LineEndStringConcatenationIndentation: # new in 1.18
67
+ Enabled: true
68
+ Layout/SpaceBeforeBrackets: # new in 1.7
69
+ Enabled: true
70
+ Lint/AmbiguousAssignment: # new in 1.7
71
+ Enabled: true
72
+ Lint/AmbiguousOperatorPrecedence: # new in 1.21
73
+ Enabled: true
74
+ Lint/AmbiguousRange: # new in 1.19
75
+ Enabled: true
76
+ Lint/ConstantOverwrittenInRescue: # new in 1.31
77
+ Enabled: true
78
+ Lint/DeprecatedConstants: # new in 1.8
79
+ Enabled: true
80
+ Lint/DuplicateBranch: # new in 1.3
81
+ Enabled: true
82
+ Lint/DuplicateRegexpCharacterClassElement: # new in 1.1
83
+ Enabled: true
84
+ Lint/EmptyBlock: # new in 1.1
85
+ Enabled: true
86
+ Lint/EmptyClass: # new in 1.3
87
+ Enabled: true
88
+ Lint/EmptyInPattern: # new in 1.16
89
+ Enabled: true
90
+ Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
91
+ Enabled: true
92
+ Lint/LambdaWithoutLiteralBlock: # new in 1.8
93
+ Enabled: true
94
+ Lint/NoReturnInBeginEndBlocks: # new in 1.2
95
+ Enabled: true
96
+ Lint/NonAtomicFileOperation: # new in 1.31
97
+ Enabled: true
98
+ Lint/NumberedParameterAssignment: # new in 1.9
99
+ Enabled: true
100
+ Lint/OrAssignmentToConstant: # new in 1.9
101
+ Enabled: true
102
+ Lint/RedundantDirGlobSort: # new in 1.8
103
+ Enabled: true
104
+ Lint/RefinementImportMethods: # new in 1.27
105
+ Enabled: true
106
+ Lint/RequireRangeParentheses: # new in 1.32
107
+ Enabled: true
108
+ Lint/RequireRelativeSelfPath: # new in 1.22
109
+ Enabled: true
110
+ Lint/SymbolConversion: # new in 1.9
111
+ Enabled: true
112
+ Lint/ToEnumArguments: # new in 1.1
113
+ Enabled: true
114
+ Lint/TripleQuotes: # new in 1.9
115
+ Enabled: true
116
+ Lint/UnexpectedBlockArity: # new in 1.5
117
+ Enabled: true
118
+ Lint/UnmodifiedReduceAccumulator: # new in 1.1
119
+ Enabled: true
120
+ Lint/UselessRuby2Keywords: # new in 1.23
121
+ Enabled: true
122
+ Naming/BlockForwarding: # new in 1.24
123
+ Enabled: true
124
+ Security/CompoundHash: # new in 1.28
125
+ Enabled: true
126
+ Security/IoMethods: # new in 1.22
127
+ Enabled: true
128
+ Style/ArgumentsForwarding: # new in 1.1
129
+ Enabled: true
130
+ Style/CollectionCompact: # new in 1.2
131
+ Enabled: true
132
+ Style/DocumentDynamicEvalDefinition: # new in 1.1
133
+ Enabled: true
134
+ Style/EmptyHeredoc: # new in 1.32
135
+ Enabled: true
136
+ Style/EndlessMethod: # new in 1.8
137
+ Enabled: true
138
+ Style/EnvHome: # new in 1.29
139
+ Enabled: true
140
+ Style/FetchEnvVar: # new in 1.28
141
+ Enabled: true
142
+ Style/FileRead: # new in 1.24
143
+ Enabled: true
144
+ Style/FileWrite: # new in 1.24
145
+ Enabled: true
146
+ Style/HashConversion: # new in 1.10
147
+ Enabled: true
148
+ Style/HashExcept: # new in 1.7
149
+ Enabled: true
150
+ Style/IfWithBooleanLiteralBranches: # new in 1.9
151
+ Enabled: true
152
+ Style/InPatternThen: # new in 1.16
153
+ Enabled: true
154
+ Style/MagicCommentFormat: # new in 1.35
155
+ Enabled: true
156
+ Style/MapCompactWithConditionalBlock: # new in 1.30
157
+ Enabled: true
158
+ Style/MapToHash: # new in 1.24
159
+ Enabled: true
160
+ Style/MultilineInPatternThen: # new in 1.16
161
+ Enabled: true
162
+ Style/NegatedIfElseCondition: # new in 1.2
163
+ Enabled: true
164
+ Style/NestedFileDirname: # new in 1.26
165
+ Enabled: true
166
+ Style/NilLambda: # new in 1.3
167
+ Enabled: true
168
+ Style/NumberedParameters: # new in 1.22
169
+ Enabled: true
170
+ Style/NumberedParametersLimit: # new in 1.22
171
+ Enabled: true
172
+ Style/ObjectThen: # new in 1.28
173
+ Enabled: true
174
+ Style/OpenStructUse: # new in 1.23
175
+ Enabled: true
176
+ Style/QuotedSymbols: # new in 1.16
177
+ Enabled: true
178
+ Style/RedundantArgument: # new in 1.4
179
+ Enabled: true
180
+ Style/RedundantInitialize: # new in 1.27
181
+ Enabled: true
182
+ Style/RedundantSelfAssignmentBranch: # new in 1.19
183
+ Enabled: true
184
+ Style/SelectByRegexp: # new in 1.22
185
+ Enabled: true
186
+ Style/StringChars: # new in 1.12
187
+ Enabled: true
188
+ Style/SwapValues: # new in 1.1
189
+ Enabled: true
190
+ RSpec/BeEq: # new in 2.9.0
191
+ Enabled: true
192
+ RSpec/BeNil: # new in 2.9.0
193
+ Enabled: true
194
+ RSpec/ChangeByZero: # new in 2.11
195
+ Enabled: true
196
+ RSpec/ClassCheck: # new in 2.13
197
+ Enabled: true
198
+ RSpec/ExcessiveDocstringSpacing: # new in 2.5
199
+ Enabled: true
200
+ RSpec/IdenticalEqualityAssertion: # new in 2.4
201
+ Enabled: true
202
+ RSpec/NoExpectationExample: # new in 2.13
203
+ Enabled: true
204
+ RSpec/SubjectDeclaration: # new in 2.5
205
+ Enabled: true
206
+ RSpec/VerifiedDoubleReference: # new in 2.10.0
207
+ Enabled: true
208
+ Capybara/SpecificFinders: # new in 2.13
209
+ Enabled: true
210
+ Capybara/SpecificMatcher: # new in 2.12
211
+ Enabled: true
212
+ FactoryBot/SyntaxMethods: # new in 2.7
213
+ Enabled: true
214
+ RSpecRails/AvoidSetupHook: # new in 2.4
215
+ Enabled: true
216
+ RSpecRails/HaveHttpStatus: # new in 2.12
217
+ Enabled: true
218
+ Rails/ActionControllerFlashBeforeRender: # new in 2.16
219
+ Enabled: true
220
+ Rails/ActionControllerTestCase: # new in 2.14
221
+ Enabled: true
222
+ Rails/ActiveRecordCallbacksOrder: # new in 2.7
223
+ Enabled: true
224
+ Rails/ActiveSupportOnLoad: # new in 2.16
225
+ Enabled: true
226
+ Rails/AddColumnIndex: # new in 2.11
227
+ Enabled: true
228
+ Rails/AfterCommitOverride: # new in 2.8
229
+ Enabled: true
230
+ Rails/AttributeDefaultBlockValue: # new in 2.9
231
+ Enabled: true
232
+ Rails/CompactBlank: # new in 2.13
233
+ Enabled: true
234
+ Rails/DeprecatedActiveModelErrorsMethods: # new in 2.14
235
+ Enabled: true
236
+ Rails/DotSeparatedKeys: # new in 2.15
237
+ Enabled: true
238
+ Rails/DuplicateAssociation: # new in 2.14
239
+ Enabled: true
240
+ Rails/DuplicateScope: # new in 2.14
241
+ Enabled: true
242
+ Rails/DurationArithmetic: # new in 2.13
243
+ Enabled: true
244
+ Rails/EagerEvaluationLogMessage: # new in 2.11
245
+ Enabled: true
246
+ Rails/ExpandedDateRange: # new in 2.11
247
+ Enabled: true
248
+ Rails/FindById: # new in 2.7
249
+ Enabled: true
250
+ Rails/FreezeTime: # new in 2.16
251
+ Enabled: true
252
+ Rails/I18nLazyLookup: # new in 2.14
253
+ Enabled: true
254
+ Rails/I18nLocaleAssignment: # new in 2.11
255
+ Enabled: true
256
+ Rails/I18nLocaleTexts: # new in 2.14
257
+ Enabled: true
258
+ Rails/Inquiry: # new in 2.7
259
+ Enabled: true
260
+ Rails/MailerName: # new in 2.7
261
+ Enabled: true
262
+ Rails/MatchRoute: # new in 2.7
263
+ Enabled: true
264
+ Rails/MigrationClassName: # new in 2.14
265
+ Enabled: true
266
+ Rails/NegateInclude: # new in 2.7
267
+ Enabled: true
268
+ Rails/Pluck: # new in 2.7
269
+ Enabled: true
270
+ Rails/PluckInWhere: # new in 2.7
271
+ Enabled: true
272
+ Rails/RedundantPresenceValidationOnBelongsTo: # new in 2.13
273
+ Enabled: true
274
+ Rails/RedundantTravelBack: # new in 2.12
275
+ Enabled: true
276
+ Rails/RenderInline: # new in 2.7
277
+ Enabled: true
278
+ Rails/RenderPlainText: # new in 2.7
279
+ Enabled: true
280
+ Rails/RootJoinChain: # new in 2.13
281
+ Enabled: true
282
+ Rails/RootPathnameMethods: # new in 2.16
283
+ Enabled: true
284
+ Rails/RootPublicPath: # new in 2.15
285
+ Enabled: true
286
+ Rails/ShortI18n: # new in 2.7
287
+ Enabled: true
288
+ Rails/SquishedSQLHeredocs: # new in 2.8
289
+ Enabled: true
290
+ Rails/StripHeredoc: # new in 2.15
291
+ Enabled: true
292
+ Rails/TimeZoneAssignment: # new in 2.10
293
+ Enabled: true
294
+ Rails/ToFormattedS: # new in 2.15
295
+ Enabled: true
296
+ Rails/ToSWithArgument: # new in 2.16
297
+ Enabled: true
298
+ Rails/TopLevelHashWithIndifferentAccess: # new in 2.16
299
+ Enabled: true
300
+ Rails/TransactionExitStatement: # new in 2.14
301
+ Enabled: true
302
+ Rails/UnusedIgnoredColumns: # new in 2.11
303
+ Enabled: true
304
+ Rails/WhereEquals: # new in 2.9
305
+ Enabled: true
306
+ Rails/WhereExists: # new in 2.7
307
+ Enabled: true
308
+ Rails/WhereMissing: # new in 2.16
309
+ Enabled: true
310
+ Rails/WhereNot: # new in 2.8
311
+ Enabled: true
312
+ Lint/DuplicateMagicComment: # new in 1.37
313
+ Enabled: true
314
+ Style/OperatorMethodCall: # new in 1.37
315
+ Enabled: true
316
+ Style/RedundantEach: # new in 1.38
317
+ Enabled: true
318
+ Style/RedundantStringEscape: # new in 1.37
319
+ Enabled: true
320
+ RSpec/SortMetadata: # new in 2.14
321
+ Enabled: true
322
+ Capybara/NegationMatcher: # new in 2.14
323
+ Enabled: true
324
+ Capybara/SpecificActions: # new in 2.14
325
+ Enabled: true
326
+ FactoryBot/ConsistentParenthesesStyle: # new in 2.14
327
+ Enabled: false # https://github.com/rspec/rspec-rails/issues/2635
328
+ RSpecRails/InferredSpecType: # new in 2.14
329
+ Enabled: true
330
+ Rails/ActionOrder: # new in 2.17
331
+ Enabled: true
332
+ Rails/IgnoredColumnsAssignment: # new in 2.17
333
+ Enabled: true
334
+ Rails/WhereNotWithMultipleConditions: # new in 2.17
335
+ Enabled: true
336
+ Gemspec/DevelopmentDependencies: # new in 1.44
337
+ Enabled: true
338
+ Lint/UselessRescue: # new in 1.43
339
+ Enabled: true
340
+ Style/ArrayIntersect: # new in 1.40
341
+ Enabled: true
342
+ Style/ComparableClamp: # new in 1.44
343
+ Enabled: true
344
+ Style/ConcatArrayLiterals: # new in 1.41
345
+ Enabled: true
346
+ Style/MapToSet: # new in 1.42
347
+ Enabled: true
348
+ Style/MinMaxComparison: # new in 1.42
349
+ Enabled: true
350
+ Style/RedundantConstantBase: # new in 1.40
351
+ Enabled: true
352
+ Style/RedundantDoubleSplatHashBraces: # new in 1.41
353
+ Enabled: true
354
+ Style/RedundantHeredocDelimiterQuotes: # new in 1.45
355
+ Enabled: true
356
+ Capybara/MatchStyle: # new in 2.17
357
+ Enabled: true
358
+ RSpec/DuplicatedMetadata: # new in 2.16
359
+ Enabled: true
360
+ RSpec/PendingWithoutReason: # new in 2.16
361
+ Enabled: true
362
+ FactoryBot/FactoryNameStyle: # new in 2.16
363
+ Enabled: false # https://github.com/rubocop/rubocop-rspec/issues/1587
364
+ RSpecRails/MinitestAssertions: # new in 2.17
365
+ Enabled: true
366
+ Rails/ResponseParsedBody: # new in 2.18
367
+ Enabled: true
368
+ Gemspec/AddRuntimeDependency: # new in 1.65
369
+ Enabled: true
370
+ Lint/DuplicateMatchPattern: # new in 1.50
371
+ Enabled: true
372
+ Lint/DuplicateSetElement: # new in 1.67
373
+ Enabled: true
374
+ Lint/HashNewWithKeywordArgumentsAsDefault: # new in 1.69
375
+ Enabled: true
376
+ Lint/ItWithoutArgumentsInBlock: # new in 1.59
377
+ Enabled: true
378
+ Lint/LiteralAssignmentInCondition: # new in 1.58
379
+ Enabled: true
380
+ Lint/MixedCaseRange: # new in 1.53
381
+ Enabled: true
382
+ Lint/NumericOperationWithConstantResult: # new in 1.69
383
+ Enabled: true
384
+ Lint/RedundantRegexpQuantifiers: # new in 1.53
385
+ Enabled: true
386
+ Lint/UnescapedBracketInRegexp: # new in 1.68
387
+ Enabled: true
388
+ Lint/UselessDefined: # new in 1.69
389
+ Enabled: true
390
+ Lint/UselessNumericOperation: # new in 1.66
391
+ Enabled: true
392
+ Metrics/CollectionLiteralLength: # new in 1.47
393
+ Enabled: true
394
+ Style/AmbiguousEndlessMethodDefinition: # new in 1.68
395
+ Enabled: true
396
+ Style/BitwisePredicate: # new in 1.68
397
+ Enabled: true
398
+ Style/CombinableDefined: # new in 1.68
399
+ Enabled: true
400
+ Style/DataInheritance: # new in 1.49
401
+ Enabled: true
402
+ Style/DigChain: # new in 1.69
403
+ Enabled: true
404
+ Style/DirEmpty: # new in 1.48
405
+ Enabled: true
406
+ Style/ExactRegexpMatch: # new in 1.51
407
+ Enabled: true
408
+ Style/FileEmpty: # new in 1.48
409
+ Enabled: true
410
+ Style/FileNull: # new in 1.69
411
+ Enabled: true
412
+ Style/FileTouch: # new in 1.69
413
+ Enabled: true
414
+ Style/KeywordArgumentsMerging: # new in 1.68
415
+ Enabled: true
416
+ Style/MapIntoArray: # new in 1.63
417
+ Enabled: true
418
+ Style/RedundantArrayConstructor: # new in 1.52
419
+ Enabled: true
420
+ Style/RedundantCurrentDirectoryInPath: # new in 1.53
421
+ Enabled: true
422
+ Style/RedundantFilterChain: # new in 1.52
423
+ Enabled: true
424
+ Style/RedundantInterpolationUnfreeze: # new in 1.66
425
+ Enabled: true
426
+ Style/RedundantLineContinuation: # new in 1.49
427
+ Enabled: true
428
+ Style/RedundantRegexpArgument: # new in 1.53
429
+ Enabled: true
430
+ Style/RedundantRegexpConstructor: # new in 1.52
431
+ Enabled: true
432
+ Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
433
+ Enabled: true
434
+ Style/SafeNavigationChainLength: # new in 1.68
435
+ Enabled: true
436
+ Style/SendWithLiteralMethodName: # new in 1.64
437
+ Enabled: true
438
+ Style/SingleLineDoEndBlock: # new in 1.57
439
+ Enabled: true
440
+ Style/SuperArguments: # new in 1.64
441
+ Enabled: true
442
+ Style/SuperWithArgsParentheses: # new in 1.58
443
+ Enabled: true
444
+ Style/YAMLFileRead: # new in 1.53
445
+ Enabled: true
446
+ Capybara/ClickLinkOrButtonStyle: # new in 2.19
447
+ Enabled: true
448
+ Capybara/RedundantWithinFind: # new in 2.20
449
+ Enabled: true
450
+ Capybara/RSpec/HaveSelector: # new in 2.19
451
+ Enabled: true
452
+ Capybara/RSpec/PredicateMatcher: # new in 2.19
453
+ Enabled: true
454
+ FactoryBot/AssociationStyle: # new in 2.23
455
+ Enabled: true
456
+ FactoryBot/ExcessiveCreateList: # new in 2.25
457
+ Enabled: true
458
+ FactoryBot/FactoryAssociationWithStrategy: # new in 2.23
459
+ Enabled: true
460
+ FactoryBot/IdSequence: # new in 2.24
461
+ Enabled: true
462
+ FactoryBot/RedundantFactoryOption: # new in 2.23
463
+ Enabled: true
464
+ RSpecRails/NegationBeValid: # new in 2.23
465
+ Enabled: true
466
+ RSpecRails/TravelAround: # new in 2.19
467
+ Enabled: true
468
+ RSpec/BeEmpty: # new in 2.20
469
+ Enabled: true
470
+ RSpec/ContainExactly: # new in 2.19
471
+ Enabled: true
472
+ RSpec/EmptyMetadata: # new in 2.24
473
+ Enabled: true
474
+ RSpec/EmptyOutput: # new in 2.29
475
+ Enabled: true
476
+ RSpec/Eq: # new in 2.24
477
+ Enabled: true
478
+ RSpec/ExpectInLet: # new in 2.30
479
+ Enabled: true
480
+ RSpec/IndexedLet: # new in 2.20
481
+ Enabled: true
482
+ RSpec/IsExpectedSpecify: # new in 2.27
483
+ Enabled: true
484
+ RSpec/MatchArray: # new in 2.19
485
+ Enabled: true
486
+ RSpec/MetadataStyle: # new in 2.24
487
+ Enabled: true
488
+ RSpec/ReceiveMessages: # new in 2.23
489
+ Enabled: true
490
+ RSpec/RedundantAround: # new in 2.19
491
+ Enabled: true
492
+ RSpec/RedundantPredicateMatcher: # new in 2.26
493
+ Enabled: true
494
+ RSpec/RemoveConst: # new in 2.26
495
+ Enabled: true
496
+ RSpec/RepeatedSubjectCall: # new in 2.27
497
+ Enabled: true
498
+ RSpec/SkipBlockInsideExample: # new in 2.19
499
+ Enabled: true
500
+ RSpec/SpecFilePathFormat: # new in 2.24
501
+ Enabled: true
502
+ RSpec/SpecFilePathSuffix: # new in 2.24
503
+ Enabled: true
504
+ RSpec/UndescriptiveLiteralsDescription: # new in 2.29
505
+ Enabled: true
506
+ Rails/DangerousColumnNames: # new in 2.21
507
+ Enabled: true
508
+ Rails/EnumSyntax: # new in 2.26
509
+ Enabled: true
510
+ Rails/EnvLocal: # new in 2.22
511
+ Enabled: true
512
+ Rails/RedundantActiveRecordAllMethod: # new in 2.21
513
+ Enabled: true
514
+ Rails/SelectMap: # new in 2.21
515
+ Enabled: true
516
+ Rails/ThreeStateBooleanColumn: # new in 2.19
517
+ Enabled: true
518
+ Rails/UnusedRenderContent: # new in 2.21
519
+ Enabled: true
520
+ Rails/WhereRange: # new in 2.25
521
+ Enabled: true
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,122 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2023-02-27 17:35:23 UTC using RuboCop version 1.46.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 10
10
+ # Configuration parameters: EnforcedStyle, AllowedGems, Include.
11
+ # SupportedStyles: Gemfile, gems.rb, gemspec
12
+ # Include: **/*.gemspec, **/Gemfile, **/gems.rb
13
+ Gemspec/DevelopmentDependencies:
14
+ Exclude:
15
+ - 'arclight.gemspec'
16
+
17
+ # Offense count: 1
18
+ # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
19
+ Metrics/AbcSize:
20
+ Max: 19
21
+
22
+ # Offense count: 1
23
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
24
+ Metrics/CyclomaticComplexity:
25
+ Max: 8
26
+
27
+ # Offense count: 3
28
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
29
+ Metrics/MethodLength:
30
+ Max: 11
31
+
32
+ # Offense count: 2
33
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
34
+ Metrics/PerceivedComplexity:
35
+ Max: 9
36
+
37
+ # Offense count: 60
38
+ # Configuration parameters: Prefixes, AllowedPatterns.
39
+ # Prefixes: when, with, without
40
+ RSpec/ContextWording:
41
+ Enabled: false
42
+
43
+ # Offense count: 1
44
+ # This cop supports unsafe autocorrection (--autocorrect-all).
45
+ # Configuration parameters: SkipBlocks, EnforcedStyle.
46
+ # SupportedStyles: described_class, explicit
47
+ RSpec/DescribedClass:
48
+ Exclude:
49
+ - 'spec/presenters/arclight/show_presenter_spec.rb'
50
+
51
+ # Offense count: 60
52
+ # Configuration parameters: CountAsOne.
53
+ RSpec/ExampleLength:
54
+ Max: 49
55
+
56
+ # Offense count: 112
57
+ RSpec/MultipleExpectations:
58
+ Max: 22
59
+
60
+ # Offense count: 37
61
+ # Configuration parameters: AllowSubject.
62
+ RSpec/MultipleMemoizedHelpers:
63
+ Max: 10
64
+
65
+ # Offense count: 22
66
+ # Configuration parameters: AllowedGroups.
67
+ RSpec/NestedGroups:
68
+ Max: 5
69
+
70
+ # Offense count: 2
71
+ RSpec/PendingWithoutReason:
72
+ Exclude:
73
+ - 'spec/features/document_tools_spec.rb'
74
+ - 'spec/features/google_form_request_spec.rb'
75
+
76
+ # Offense count: 5
77
+ # This cop supports unsafe autocorrection (--autocorrect-all).
78
+ # Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers.
79
+ # SupportedStyles: inflected, explicit
80
+ RSpec/PredicateMatcher:
81
+ Exclude:
82
+ - 'spec/helpers/arclight_helper_spec.rb'
83
+ - 'spec/lib/arclight/year_range_spec.rb'
84
+
85
+ # Offense count: 1
86
+ # This cop supports unsafe autocorrection (--autocorrect-all).
87
+ # Configuration parameters: NilOrEmpty, NotPresent, UnlessPresent.
88
+ Rails/Blank:
89
+ Exclude:
90
+ - 'lib/arclight/repository.rb'
91
+
92
+ # Offense count: 1
93
+ # Configuration parameters: Include.
94
+ # Include: app/helpers/**/*.rb
95
+ Rails/HelperInstanceVariable:
96
+ Exclude:
97
+ - 'app/helpers/arclight_helper.rb'
98
+
99
+ # Offense count: 1
100
+ Rails/OutputSafety:
101
+ Exclude:
102
+ - 'app/helpers/arclight/field_config_helpers.rb'
103
+
104
+ # Offense count: 6
105
+ # This cop supports unsafe autocorrection (--autocorrect-all).
106
+ # Configuration parameters: Include.
107
+ # Include: **/Rakefile, **/*.rake
108
+ Rails/RakeEnvironment:
109
+ Exclude:
110
+ - 'lib/tasks/index.rake'
111
+ - 'tasks/arclight.rake'
112
+
113
+ # Offense count: 1
114
+ Security/Open:
115
+ Exclude:
116
+ - 'lib/tasks/index.rake'
117
+
118
+ # Offense count: 1
119
+ # This cop supports safe autocorrection (--autocorrect).
120
+ Style/RedundantConstantBase:
121
+ Exclude:
122
+ - 'spec/spec_helper.rb'
data/.solr_wrapper CHANGED
@@ -1,5 +1,6 @@
1
1
  # Place any default configuration for solr_wrapper here
2
2
  # port: 8983
3
3
  collection:
4
- dir: solr/conf/
4
+ dir: solr/conf
5
5
  name: blacklight-core
6
+ version: 9.7.0