geoblacklight 4.0.0 → 4.1.1

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 (232) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +23 -8
  3. data/.gitignore +3 -0
  4. data/.standard.yml +1 -0
  5. data/Gemfile +13 -11
  6. data/README.md +1 -1
  7. data/Rakefile +42 -50
  8. data/app/assets/images/blacklight/american-geographical-society-library-uwm-libraries.svg +26 -0
  9. data/app/assets/images/blacklight/arizona.svg +4 -0
  10. data/app/assets/images/blacklight/circle-info-solid.svg +1 -0
  11. data/app/assets/images/blacklight/fire-solid.svg +1 -0
  12. data/app/assets/images/blacklight/lightbulb-solid.svg +1 -0
  13. data/app/assets/images/blacklight/nebraska.svg +4 -0
  14. data/app/assets/images/blacklight/rutgers.svg +5 -0
  15. data/app/assets/images/blacklight/triangle-exclamation-solid.svg +1 -0
  16. data/app/assets/javascripts/geoblacklight/basemaps.js +1 -1
  17. data/app/assets/stylesheets/geoblacklight/modules/sidebar.scss +8 -0
  18. data/app/components/geoblacklight/display_note_component.html.erb +1 -0
  19. data/app/components/geoblacklight/display_note_component.rb +47 -0
  20. data/app/components/geoblacklight/icon_facet_item_component.rb +2 -2
  21. data/app/controllers/download_controller.rb +36 -37
  22. data/app/controllers/relation_controller.rb +1 -0
  23. data/app/controllers/wms_controller.rb +1 -0
  24. data/app/helpers/arcgis_helper.rb +2 -1
  25. data/app/helpers/blacklight_helper.rb +2 -1
  26. data/app/helpers/carto_helper.rb +3 -2
  27. data/app/helpers/geoblacklight/geoblacklight_helper_behavior.rb +2 -1
  28. data/app/helpers/geoblacklight_helper.rb +47 -36
  29. data/app/models/concerns/geoblacklight/bbox_filter_query.rb +1 -1
  30. data/app/models/concerns/geoblacklight/solr_document/arcgis.rb +1 -0
  31. data/app/models/concerns/geoblacklight/solr_document/carto.rb +1 -0
  32. data/app/models/concerns/geoblacklight/solr_document/citation.rb +3 -2
  33. data/app/models/concerns/geoblacklight/solr_document/finder.rb +1 -0
  34. data/app/models/concerns/geoblacklight/solr_document/inspection.rb +1 -0
  35. data/app/models/concerns/geoblacklight/solr_document.rb +17 -9
  36. data/app/models/concerns/geoblacklight/suppressed_records_search_behavior.rb +2 -1
  37. data/app/presenters/geoblacklight/document_presenter.rb +3 -2
  38. data/app/views/catalog/_citation.html.erb +35 -10
  39. data/app/views/catalog/_show_default_display_note.html.erb +7 -0
  40. data/app/views/catalog/_show_sidebar.html.erb +1 -0
  41. data/app/views/catalog/_show_sidebar_static_map.html.erb +10 -0
  42. data/app/views/relation/index.json.jbuilder +1 -1
  43. data/config/initializers/new_gbl_settings_defaults_4.1.yml +104 -0
  44. data/config/initializers/rails_config.rb +5 -1
  45. data/config/locales/geoblacklight.en.yml +18 -10
  46. data/geoblacklight.gemspec +36 -40
  47. data/lib/generators/geoblacklight/assets_generator.rb +15 -15
  48. data/lib/generators/geoblacklight/install_generator.rb +24 -23
  49. data/lib/generators/geoblacklight/templates/catalog_controller.rb +66 -71
  50. data/lib/generators/geoblacklight/templates/settings.gbl_v1.yml +2 -2
  51. data/lib/generators/geoblacklight/templates/settings.yml +76 -24
  52. data/lib/geoblacklight/bounding_box.rb +1 -0
  53. data/lib/geoblacklight/constants.rb +26 -25
  54. data/lib/geoblacklight/download/geojson_download.rb +10 -9
  55. data/lib/geoblacklight/download/geotiff_download.rb +6 -5
  56. data/lib/geoblacklight/download/hgl_download.rb +4 -3
  57. data/lib/geoblacklight/download/kmz_download.rb +11 -10
  58. data/lib/geoblacklight/download/shapefile_download.rb +10 -9
  59. data/lib/geoblacklight/download.rb +12 -11
  60. data/lib/geoblacklight/engine.rb +10 -9
  61. data/lib/geoblacklight/exceptions.rb +3 -0
  62. data/lib/geoblacklight/faraday_middleware/follow_redirects.rb +14 -11
  63. data/lib/geoblacklight/geometry.rb +6 -5
  64. data/lib/geoblacklight/item_viewer.rb +4 -3
  65. data/lib/geoblacklight/metadata/base.rb +4 -3
  66. data/lib/geoblacklight/metadata/fgdc.rb +1 -0
  67. data/lib/geoblacklight/metadata/html.rb +5 -4
  68. data/lib/geoblacklight/metadata/iso19139.rb +1 -0
  69. data/lib/geoblacklight/metadata.rb +1 -0
  70. data/lib/geoblacklight/metadata_transformer/base.rb +5 -4
  71. data/lib/geoblacklight/metadata_transformer/fgdc.rb +1 -0
  72. data/lib/geoblacklight/metadata_transformer/iso19139.rb +1 -0
  73. data/lib/geoblacklight/metadata_transformer.rb +6 -2
  74. data/lib/geoblacklight/reference.rb +3 -2
  75. data/lib/geoblacklight/references.rb +12 -7
  76. data/lib/geoblacklight/relation/ancestors.rb +4 -3
  77. data/lib/geoblacklight/relation/descendants.rb +4 -3
  78. data/lib/geoblacklight/relation/relation_response.rb +3 -2
  79. data/lib/geoblacklight/routes/downloadable.rb +3 -2
  80. data/lib/geoblacklight/routes/exportable.rb +4 -3
  81. data/lib/geoblacklight/routes/wms.rb +2 -1
  82. data/lib/geoblacklight/routes.rb +4 -3
  83. data/lib/geoblacklight/version.rb +2 -1
  84. data/lib/geoblacklight/view_helper_override.rb +3 -2
  85. data/lib/geoblacklight/wms_layer/feature_info_response.rb +5 -4
  86. data/lib/geoblacklight/wms_layer.rb +4 -3
  87. data/lib/geoblacklight.rb +32 -31
  88. data/lib/tasks/geoblacklight.rake +45 -44
  89. data/schema/geoblacklight-schema-aardvark.json +6 -0
  90. data/spec/components/geoblacklight/display_note_component_spec.rb +27 -0
  91. data/spec/components/geoblacklight/homepage_feature_facet_component_spec.rb +11 -10
  92. data/spec/components/geoblacklight/icon_facet_item_component_spec.rb +8 -7
  93. data/spec/config/initializers/rails_config_spec.rb +10 -9
  94. data/spec/controllers/catalog_controller_spec.rb +27 -26
  95. data/spec/controllers/download_controller_spec.rb +50 -49
  96. data/spec/controllers/relation_controller_spec.rb +5 -4
  97. data/spec/controllers/wms_controller_spec.rb +10 -9
  98. data/spec/factories/user.rb +3 -2
  99. data/spec/features/bookmarks_spec.rb +7 -6
  100. data/spec/features/citations_spec.rb +12 -0
  101. data/spec/features/configurable_basemap_spec.rb +12 -11
  102. data/spec/features/data_dictionary_download_spec.rb +11 -10
  103. data/spec/features/download_layer_spec.rb +64 -63
  104. data/spec/features/empty_search_spec.rb +6 -5
  105. data/spec/features/esri_viewer_spec.rb +33 -32
  106. data/spec/features/exports_spec.rb +18 -17
  107. data/spec/features/full_screen_controll_spec.rb +8 -8
  108. data/spec/features/help_text_spec.rb +6 -5
  109. data/spec/features/home_page_spec.rb +30 -29
  110. data/spec/features/iiif_viewer_spec.rb +6 -5
  111. data/spec/features/index_map_spec.rb +17 -16
  112. data/spec/features/layer_inspection_spec.rb +8 -7
  113. data/spec/features/layer_opacity_spec.rb +15 -14
  114. data/spec/features/layer_preview_spec.rb +11 -10
  115. data/spec/features/layer_with_no_references_spec.rb +5 -4
  116. data/spec/features/linkified_attribute_table_spec.rb +8 -7
  117. data/spec/features/metadata_panel_spec.rb +32 -31
  118. data/spec/features/missing_metadata_spec.rb +18 -17
  119. data/spec/features/multiple_downloads_spec.rb +11 -10
  120. data/spec/features/oembed_spec.rb +6 -5
  121. data/spec/features/relations_spec.rb +51 -26
  122. data/spec/features/saved_searches_spec.rb +7 -6
  123. data/spec/features/search_bar_spec.rb +9 -8
  124. data/spec/features/search_results_complex_geometry_spec.rb +12 -11
  125. data/spec/features/search_results_icons_spec.rb +10 -9
  126. data/spec/features/search_results_map_spec.rb +21 -20
  127. data/spec/features/search_results_overlap_ratio_spec.rb +17 -16
  128. data/spec/features/search_spec.rb +19 -18
  129. data/spec/features/show_page_download_spec.rb +15 -14
  130. data/spec/features/show_page_metadata_spec.rb +9 -8
  131. data/spec/features/show_page_sidebar_static_map_spec.rb +21 -0
  132. data/spec/features/sms_spec.rb +12 -11
  133. data/spec/features/split_view.html.erb_spec.rb +56 -55
  134. data/spec/features/suppressed_records_spec.rb +10 -9
  135. data/spec/features/tilejson_spec.rb +12 -9
  136. data/spec/features/tms_spec.rb +6 -5
  137. data/spec/features/web_services_modal_spec.rb +39 -38
  138. data/spec/features/wmts_spec.rb +20 -17
  139. data/spec/features/xyz_spec.rb +6 -5
  140. data/spec/fixtures/manifests/tilejson.json +1 -1
  141. data/spec/fixtures/manifests/wmts-single.xml +5 -5
  142. data/spec/fixtures/solr_documents/actual-papermap1.json +1 -1
  143. data/spec/fixtures/solr_documents/actual-point1.json +1 -1
  144. data/spec/fixtures/solr_documents/actual-polygon1.json +1 -1
  145. data/spec/fixtures/solr_documents/actual-raster1.json +1 -1
  146. data/spec/fixtures/solr_documents/baruch_ancestor1.json +1 -1
  147. data/spec/fixtures/solr_documents/baruch_ancestor2.json +1 -1
  148. data/spec/fixtures/solr_documents/baruch_documentation_download.json +2 -2
  149. data/spec/fixtures/solr_documents/cornell_html_metadata.json +1 -1
  150. data/spec/fixtures/solr_documents/display-note.json +52 -0
  151. data/spec/fixtures/solr_documents/esri-dynamic-layer-all-layers.json +1 -1
  152. data/spec/fixtures/solr_documents/esri-dynamic-layer-single-layer.json +1 -1
  153. data/spec/fixtures/solr_documents/esri-feature-layer.json +1 -1
  154. data/spec/fixtures/solr_documents/esri-image-map-layer.json +1 -1
  155. data/spec/fixtures/solr_documents/esri-tiled_map_layer.json +1 -1
  156. data/spec/fixtures/solr_documents/esri-wms-layer.json +1 -1
  157. data/spec/fixtures/solr_documents/harvard_raster.json +1 -1
  158. data/spec/fixtures/solr_documents/iiif-eastern-hemisphere.json +1 -1
  159. data/spec/fixtures/solr_documents/index-map-polygon-no-downloadurl.json +1 -1
  160. data/spec/fixtures/solr_documents/index-map-polygon.json +1 -1
  161. data/spec/fixtures/solr_documents/index-map-stanford.json +1 -1
  162. data/spec/fixtures/solr_documents/index_map_point.json +1 -1
  163. data/spec/fixtures/solr_documents/princeton-parent.json +1 -1
  164. data/spec/fixtures/solr_documents/public_direct_download.json +1 -1
  165. data/spec/fixtures/solr_documents/public_iiif_princeton.json +1 -1
  166. data/spec/fixtures/solr_documents/restricted-line.json +1 -1
  167. data/spec/fixtures/solr_documents/tilejson.json +3 -3
  168. data/spec/fixtures/solr_documents/umn_metro_result1.json +2 -2
  169. data/spec/fixtures/solr_documents/umn_state_result1.json +1 -1
  170. data/spec/fixtures/solr_documents/umn_state_result2.json +1 -1
  171. data/spec/fixtures/solr_documents/uva_slug_colon.json +1 -1
  172. data/spec/fixtures/solr_documents/wmts-multiple.json +1 -1
  173. data/spec/fixtures/solr_documents/wmts-single-layer.json +7 -7
  174. data/spec/fixtures/solr_documents/xyz.json +3 -3
  175. data/spec/helpers/arcgis_helper_spec.rb +8 -7
  176. data/spec/helpers/carto_helper_spec.rb +6 -5
  177. data/spec/helpers/geoblacklight/geoblacklight_helper_behavior_spec.rb +10 -15
  178. data/spec/helpers/geoblacklight_helper_spec.rb +139 -138
  179. data/spec/lib/geoblacklight/bounding_box_spec.rb +14 -13
  180. data/spec/lib/geoblacklight/document_presenter_spec.rb +26 -25
  181. data/spec/lib/geoblacklight/download/geojson_download_spec.rb +8 -7
  182. data/spec/lib/geoblacklight/download/geotiff_download_spec.rb +8 -7
  183. data/spec/lib/geoblacklight/download/hgl_download_spec.rb +16 -15
  184. data/spec/lib/geoblacklight/download/kmz_download_spec.rb +9 -8
  185. data/spec/lib/geoblacklight/download/shapefile_download_spec.rb +8 -7
  186. data/spec/lib/geoblacklight/download_spec.rb +61 -60
  187. data/spec/lib/geoblacklight/geometry_spec.rb +29 -28
  188. data/spec/lib/geoblacklight/item_viewer_spec.rb +25 -24
  189. data/spec/lib/geoblacklight/metadata/base_spec.rb +44 -43
  190. data/spec/lib/geoblacklight/metadata/html_spec.rb +7 -6
  191. data/spec/lib/geoblacklight/metadata_spec.rb +15 -14
  192. data/spec/lib/geoblacklight/metadata_transformer/base_spec.rb +13 -12
  193. data/spec/lib/geoblacklight/metadata_transformer/fgdc_spec.rb +8 -7
  194. data/spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb +8 -7
  195. data/spec/lib/geoblacklight/metadata_transformer_spec.rb +15 -14
  196. data/spec/lib/geoblacklight/reference_spec.rb +28 -27
  197. data/spec/lib/geoblacklight/references_spec.rb +89 -76
  198. data/spec/lib/geoblacklight/relation/ancestors_spec.rb +17 -16
  199. data/spec/lib/geoblacklight/relation/descendants_spec.rb +17 -16
  200. data/spec/lib/geoblacklight/relation/relation_response_spec.rb +29 -28
  201. data/spec/lib/geoblacklight/view_helper_override_spec.rb +14 -13
  202. data/spec/lib/geoblacklight/wms_layer/feature_info_response_spec.rb +19 -18
  203. data/spec/lib/geoblacklight/wms_layer_spec.rb +31 -30
  204. data/spec/models/concerns/geoblacklight/bbox_filter_field_spec.rb +31 -31
  205. data/spec/models/concerns/geoblacklight/bbox_filter_query_spec.rb +32 -32
  206. data/spec/models/concerns/geoblacklight/solr_document/carto_spec.rb +16 -15
  207. data/spec/models/concerns/geoblacklight/solr_document/citation_spec.rb +7 -6
  208. data/spec/models/concerns/geoblacklight/solr_document/finder_spec.rb +16 -17
  209. data/spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb +7 -6
  210. data/spec/models/concerns/geoblacklight/solr_document_spec.rb +121 -107
  211. data/spec/models/concerns/geoblacklight/suppressed_records_search_behavior_spec.rb +8 -7
  212. data/spec/presenters/geoblacklight/bbox_item_presenter_spec.rb +10 -10
  213. data/spec/routing/catalog_routing_spec.rb +4 -3
  214. data/spec/spec_helper.rb +35 -38
  215. data/spec/support/backport_test_helpers.rb +6 -5
  216. data/spec/support/features/session_helpers.rb +8 -7
  217. data/spec/support/features.rb +2 -1
  218. data/spec/support/fixtures.rb +2 -1
  219. data/spec/tasks/geoblacklight_spec.rb +10 -9
  220. data/spec/test_app_templates/lib/generators/test_app_generator.rb +16 -15
  221. data/spec/views/catalog/_document_split.html.erb_spec.rb +3 -2
  222. data/spec/views/catalog/_index_split.html.erb_spec.rb +3 -2
  223. data/spec/views/catalog/_results_pagination.html.erb_spec.rb +5 -4
  224. data/spec/views/catalog/_show_downloads.html.erb_spec.rb +11 -10
  225. data/spec/views/catalog/_show_tools.html.erb_spec.rb +13 -12
  226. data/template.rb +9 -8
  227. metadata +40 -216
  228. data/.gitmodules +0 -0
  229. data/.rubocop.yml +0 -111
  230. data/.rubocop_todo.yml +0 -437
  231. data/config/initializers/new_gbl_settings_defaults_3_4.yml +0 -6
  232. /data/app/assets/images/blacklight/{berkeley.svg → university-of-california-berkeley.svg} +0 -0
data/.rubocop_todo.yml DELETED
@@ -1,437 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2022-09-13 13:23:36 UTC using RuboCop version 1.36.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: 3
10
- # This cop supports safe autocorrection (--autocorrect).
11
- # Configuration parameters: EnforcedStyle, IndentationWidth.
12
- # SupportedStyles: with_first_argument, with_fixed_indentation
13
- Layout/ArgumentAlignment:
14
- Exclude:
15
- - 'app/controllers/download_controller.rb'
16
- - 'lib/geoblacklight/metadata/html.rb'
17
-
18
- # Offense count: 9
19
- # This cop supports safe autocorrection (--autocorrect).
20
- Layout/EmptyLineAfterGuardClause:
21
- Exclude:
22
- - 'app/helpers/geoblacklight_helper.rb'
23
- - 'app/models/concerns/geoblacklight/solr_document/arcgis.rb'
24
- - 'app/models/concerns/geoblacklight/solr_document/carto.rb'
25
- - 'lib/geoblacklight/bounding_box.rb'
26
- - 'lib/geoblacklight/download.rb'
27
- - 'lib/geoblacklight/item_viewer.rb'
28
- - 'lib/geoblacklight/metadata/base.rb'
29
- - 'lib/geoblacklight/references.rb'
30
-
31
- # Offense count: 148
32
- # This cop supports safe autocorrection (--autocorrect).
33
- Layout/EmptyLineAfterMagicComment:
34
- Enabled: false
35
-
36
- # Offense count: 2
37
- # This cop supports safe autocorrection (--autocorrect).
38
- # Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
39
- Layout/EmptyLineBetweenDefs:
40
- Exclude:
41
- - 'lib/geoblacklight/exceptions.rb'
42
-
43
- # Offense count: 3
44
- # This cop supports safe autocorrection (--autocorrect).
45
- # Configuration parameters: AllowAliasSyntax, AllowedMethods.
46
- # AllowedMethods: alias_method, public, protected, private
47
- Layout/EmptyLinesAroundAttributeAccessor:
48
- Exclude:
49
- - 'lib/geoblacklight/metadata/base.rb'
50
- - 'lib/geoblacklight/references.rb'
51
- - 'lib/geoblacklight/relation/relation_response.rb'
52
-
53
- # Offense count: 1
54
- # This cop supports unsafe autocorrection (--autocorrect-all).
55
- Lint/BooleanSymbol:
56
- Exclude:
57
- - 'spec/features/metadata_panel_spec.rb'
58
-
59
- # Offense count: 4
60
- # Configuration parameters: AllowedMethods.
61
- # AllowedMethods: enums
62
- Lint/ConstantDefinitionInBlock:
63
- Exclude:
64
- - 'spec/helpers/geoblacklight/geoblacklight_helper_behavior_spec.rb'
65
- - 'spec/lib/geoblacklight/view_helper_override_spec.rb'
66
- - 'spec/models/concerns/geoblacklight/solr_document/carto_spec.rb'
67
- - 'spec/models/concerns/geoblacklight/solr_document/finder_spec.rb'
68
-
69
- # Offense count: 1
70
- Lint/MissingSuper:
71
- Exclude:
72
- - 'lib/geoblacklight/exceptions.rb'
73
-
74
- # Offense count: 2
75
- # This cop supports safe autocorrection (--autocorrect).
76
- Lint/SendWithMixinArgument:
77
- Exclude:
78
- - 'lib/geoblacklight/engine.rb'
79
-
80
- # Offense count: 7
81
- # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes.
82
- Metrics/AbcSize:
83
- Max: 27
84
-
85
- # Offense count: 1
86
- # Configuration parameters: EnforcedStyleForLeadingUnderscores.
87
- # SupportedStylesForLeadingUnderscores: disallowed, required, optional
88
- Naming/MemoizedInstanceVariableName:
89
- Exclude:
90
- - 'app/models/concerns/geoblacklight/solr_document/finder.rb'
91
-
92
- # Offense count: 2
93
- # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
94
- # AllowedNames: as, at, by, db, id, in, io, ip, of, on, os, pp, to
95
- Naming/MethodParameterName:
96
- Exclude:
97
- - 'lib/geoblacklight/references.rb'
98
-
99
- # Offense count: 5
100
- # This cop supports safe autocorrection (--autocorrect).
101
- # Configuration parameters: PreferredName.
102
- Naming/RescuedExceptionsVariableName:
103
- Exclude:
104
- - 'app/helpers/geoblacklight_helper.rb'
105
- - 'lib/geoblacklight/download.rb'
106
- - 'lib/geoblacklight/metadata/base.rb'
107
- - 'lib/geoblacklight/wms_layer.rb'
108
-
109
- # Offense count: 162
110
- # This cop supports safe autocorrection (--autocorrect).
111
- # Configuration parameters: EnabledMethods.
112
- RSpec/Capybara/FeatureMethods:
113
- Enabled: false
114
-
115
- # Offense count: 19
116
- # This cop supports safe autocorrection (--autocorrect).
117
- RSpec/Capybara/SpecificFinders:
118
- Exclude:
119
- - 'spec/features/download_layer_spec.rb'
120
- - 'spec/features/layer_inspection_spec.rb'
121
- - 'spec/features/multiple_downloads_spec.rb'
122
- - 'spec/features/search_results_map_spec.rb'
123
- - 'spec/features/show_page_download_spec.rb'
124
- - 'spec/features/split_view.html.erb_spec.rb'
125
-
126
- # Offense count: 18
127
- RSpec/Capybara/VisibilityMatcher:
128
- Exclude:
129
- - 'spec/features/esri_viewer_spec.rb'
130
- - 'spec/features/iiif_viewer_spec.rb'
131
- - 'spec/features/split_view.html.erb_spec.rb'
132
- - 'spec/features/tms_spec.rb'
133
-
134
- # Offense count: 16
135
- # Configuration parameters: Prefixes, AllowedPatterns.
136
- # Prefixes: when, with, without
137
- RSpec/ContextWording:
138
- Exclude:
139
- - 'spec/helpers/geoblacklight/geoblacklight_helper_behavior_spec.rb'
140
- - 'spec/helpers/geoblacklight_helper_spec.rb'
141
- - 'spec/lib/geoblacklight/item_viewer_spec.rb'
142
- - 'spec/lib/geoblacklight/reference_spec.rb'
143
- - 'spec/views/catalog/_show_downloads.html.erb_spec.rb'
144
-
145
- # Offense count: 2
146
- # This cop supports unsafe autocorrection (--autocorrect-all).
147
- RSpec/EmptyExampleGroup:
148
- Exclude:
149
- - 'spec/views/catalog/_document_split.html.erb_spec.rb'
150
- - 'spec/views/catalog/_index_split.html.erb_spec.rb'
151
-
152
- # Offense count: 63
153
- # This cop supports safe autocorrection (--autocorrect).
154
- # Configuration parameters: AllowConsecutiveOneLiners.
155
- RSpec/EmptyLineAfterExample:
156
- Enabled: false
157
-
158
- # Offense count: 77
159
- # This cop supports safe autocorrection (--autocorrect).
160
- RSpec/EmptyLineAfterExampleGroup:
161
- Enabled: false
162
-
163
- # Offense count: 61
164
- # This cop supports safe autocorrection (--autocorrect).
165
- RSpec/EmptyLineAfterFinalLet:
166
- Enabled: false
167
-
168
- # Offense count: 13
169
- # This cop supports safe autocorrection (--autocorrect).
170
- # Configuration parameters: AllowConsecutiveOneLiners.
171
- RSpec/EmptyLineAfterHook:
172
- Exclude:
173
- - 'spec/features/configurable_basemap_spec.rb'
174
- - 'spec/features/empty_search_spec.rb'
175
- - 'spec/features/home_page_spec.rb'
176
- - 'spec/lib/geoblacklight/download_spec.rb'
177
- - 'spec/lib/geoblacklight/metadata_spec.rb'
178
- - 'spec/lib/geoblacklight/metadata_transformer/base_spec.rb'
179
- - 'spec/lib/geoblacklight/references_spec.rb'
180
-
181
- # Offense count: 9
182
- # This cop supports safe autocorrection (--autocorrect).
183
- RSpec/EmptyLineAfterSubject:
184
- Exclude:
185
- - 'spec/lib/geoblacklight/document_presenter_spec.rb'
186
- - 'spec/lib/geoblacklight/metadata_transformer/base_spec.rb'
187
- - 'spec/lib/geoblacklight/metadata_transformer/fgdc_spec.rb'
188
- - 'spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb'
189
- - 'spec/lib/geoblacklight/metadata_transformer_spec.rb'
190
- - 'spec/lib/geoblacklight/wms_layer_spec.rb'
191
-
192
- # Offense count: 5
193
- RSpec/ExpectInHook:
194
- Exclude:
195
- - 'spec/helpers/geoblacklight/geoblacklight_helper_behavior_spec.rb'
196
- - 'spec/lib/geoblacklight/metadata/base_spec.rb'
197
- - 'spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb'
198
- - 'spec/views/catalog/_show_downloads.html.erb_spec.rb'
199
-
200
- # Offense count: 6
201
- # Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
202
- # Include: **/*_spec*rb*, **/spec/**/*
203
- RSpec/FilePath:
204
- Exclude:
205
- - 'spec/lib/geoblacklight/download/geojson_download_spec.rb'
206
- - 'spec/lib/geoblacklight/download/geotiff_download_spec.rb'
207
- - 'spec/lib/geoblacklight/download/hgl_download_spec.rb'
208
- - 'spec/lib/geoblacklight/download/kmz_download_spec.rb'
209
- - 'spec/lib/geoblacklight/download/shapefile_download_spec.rb'
210
- - 'spec/lib/geoblacklight/wms_layer/feature_info_response_spec.rb'
211
-
212
- # Offense count: 1
213
- # Configuration parameters: AssignmentOnly.
214
- RSpec/InstanceVariable:
215
- Exclude:
216
- - 'spec/components/geoblacklight/homepage_feature_facet_component_spec.rb'
217
-
218
- # Offense count: 1
219
- RSpec/IteratedExpectation:
220
- Exclude:
221
- - 'spec/lib/geoblacklight/references_spec.rb'
222
-
223
- # Offense count: 4
224
- RSpec/LeakyConstantDeclaration:
225
- Exclude:
226
- - 'spec/helpers/geoblacklight/geoblacklight_helper_behavior_spec.rb'
227
- - 'spec/lib/geoblacklight/view_helper_override_spec.rb'
228
- - 'spec/models/concerns/geoblacklight/solr_document/carto_spec.rb'
229
- - 'spec/models/concerns/geoblacklight/solr_document/finder_spec.rb'
230
-
231
- # Offense count: 2
232
- # This cop supports safe autocorrection (--autocorrect).
233
- RSpec/LetBeforeExamples:
234
- Exclude:
235
- - 'spec/models/concerns/geoblacklight/solr_document_spec.rb'
236
-
237
- # Offense count: 46
238
- # Configuration parameters: .
239
- # SupportedStyles: have_received, receive
240
- RSpec/MessageSpies:
241
- EnforcedStyle: receive
242
-
243
- # Offense count: 126
244
- RSpec/MultipleExpectations:
245
- Max: 9
246
-
247
- # Offense count: 67
248
- # Configuration parameters: AllowSubject.
249
- RSpec/MultipleMemoizedHelpers:
250
- Max: 11
251
-
252
- # Offense count: 15
253
- # Configuration parameters: IgnoreSharedExamples.
254
- RSpec/NamedSubject:
255
- Exclude:
256
- - 'spec/lib/geoblacklight/metadata/base_spec.rb'
257
- - 'spec/lib/geoblacklight/metadata_transformer/base_spec.rb'
258
- - 'spec/lib/geoblacklight/metadata_transformer/fgdc_spec.rb'
259
- - 'spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb'
260
- - 'spec/lib/geoblacklight/metadata_transformer_spec.rb'
261
- - 'spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb'
262
-
263
- # Offense count: 3
264
- # Configuration parameters: AllowedGroups.
265
- RSpec/NestedGroups:
266
- Max: 4
267
-
268
- # Offense count: 1
269
- RSpec/NoExpectationExample:
270
- Exclude:
271
- - 'spec/features/layer_with_no_references_spec.rb'
272
-
273
- # Offense count: 19
274
- # This cop supports unsafe autocorrection (--autocorrect-all).
275
- # Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers.
276
- # SupportedStyles: inflected, explicit
277
- RSpec/PredicateMatcher:
278
- Exclude:
279
- - 'spec/lib/geoblacklight/download_spec.rb'
280
- - 'spec/lib/geoblacklight/wms_layer/feature_info_response_spec.rb'
281
- - 'spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb'
282
- - 'spec/models/concerns/geoblacklight/solr_document_spec.rb'
283
-
284
- # Offense count: 2
285
- RSpec/RepeatedExampleGroupBody:
286
- Exclude:
287
- - 'spec/helpers/geoblacklight_helper_spec.rb'
288
-
289
- # Offense count: 2
290
- RSpec/RepeatedExampleGroupDescription:
291
- Exclude:
292
- - 'spec/helpers/geoblacklight_helper_spec.rb'
293
-
294
- # Offense count: 33
295
- RSpec/StubbedMock:
296
- Exclude:
297
- - 'spec/features/download_layer_spec.rb'
298
- - 'spec/helpers/geoblacklight/geoblacklight_helper_behavior_spec.rb'
299
- - 'spec/helpers/geoblacklight_helper_spec.rb'
300
- - 'spec/lib/geoblacklight/download_spec.rb'
301
- - 'spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb'
302
- - 'spec/models/concerns/geoblacklight/solr_document/carto_spec.rb'
303
- - 'spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb'
304
- - 'spec/models/concerns/geoblacklight/solr_document_spec.rb'
305
- - 'spec/views/catalog/_show_downloads.html.erb_spec.rb'
306
-
307
- # Offense count: 2
308
- RSpec/SubjectStub:
309
- Exclude:
310
- - 'spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb'
311
-
312
- # Offense count: 1
313
- # This cop supports safe autocorrection (--autocorrect).
314
- # Configuration parameters: SafeAutocorrect.
315
- Rails/ActionControllerFlashBeforeRender:
316
- Exclude:
317
- - 'app/controllers/download_controller.rb'
318
-
319
- # Offense count: 10
320
- # Configuration parameters: EnforcedStyle.
321
- # SupportedStyles: slashes, arguments
322
- Rails/FilePath:
323
- Exclude:
324
- - 'lib/geoblacklight/download.rb'
325
- - 'spec/features/metadata_panel_spec.rb'
326
- - 'spec/lib/geoblacklight/download_spec.rb'
327
- - 'spec/lib/geoblacklight/metadata_transformer/fgdc_spec.rb'
328
- - 'spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb'
329
- - 'spec/tasks/geoblacklight_spec.rb'
330
-
331
- # Offense count: 7
332
- # Configuration parameters: Include.
333
- # Include: app/helpers/**/*.rb
334
- Rails/HelperInstanceVariable:
335
- Exclude:
336
- - 'app/helpers/blacklight_helper.rb'
337
- - 'app/helpers/geoblacklight/geoblacklight_helper_behavior.rb'
338
- - 'app/helpers/geoblacklight_helper.rb'
339
-
340
- # Offense count: 3
341
- Rails/OutputSafety:
342
- Exclude:
343
- - 'app/controllers/download_controller.rb'
344
- - 'app/helpers/geoblacklight_helper.rb'
345
-
346
- # Offense count: 7
347
- # This cop supports safe autocorrection (--autocorrect).
348
- Rails/RootPathnameMethods:
349
- Exclude:
350
- - 'spec/features/metadata_panel_spec.rb'
351
- - 'spec/lib/geoblacklight/metadata_transformer/fgdc_spec.rb'
352
- - 'spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb'
353
- - 'spec/tasks/geoblacklight_spec.rb'
354
-
355
- # Offense count: 4
356
- # This cop supports safe autocorrection (--autocorrect).
357
- Style/ExpandPathArguments:
358
- Exclude:
359
- - 'lib/generators/geoblacklight/install_generator.rb'
360
- - 'spec/spec_helper.rb'
361
- - 'spec/support/features.rb'
362
- - 'spec/test_app_templates/lib/generators/test_app_generator.rb'
363
-
364
- # Offense count: 1
365
- # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
366
- Style/GuardClause:
367
- Exclude:
368
- - 'lib/generators/geoblacklight/assets_generator.rb'
369
-
370
- # Offense count: 2
371
- Style/MissingRespondToMissing:
372
- Exclude:
373
- - 'app/models/concerns/geoblacklight/solr_document.rb'
374
- - 'lib/geoblacklight/references.rb'
375
-
376
- # Offense count: 2
377
- # This cop supports safe autocorrection (--autocorrect).
378
- Style/RedundantAssignment:
379
- Exclude:
380
- - 'app/controllers/download_controller.rb'
381
-
382
- # Offense count: 2
383
- # This cop supports safe autocorrection (--autocorrect).
384
- Style/RedundantRegexpEscape:
385
- Exclude:
386
- - 'lib/generators/geoblacklight/install_generator.rb'
387
-
388
- # Offense count: 1
389
- # This cop supports safe autocorrection (--autocorrect).
390
- # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
391
- # SupportedStyles: slashes, percent_r, mixed
392
- Style/RegexpLiteral:
393
- Exclude:
394
- - 'lib/geoblacklight/reference.rb'
395
-
396
- # Offense count: 5
397
- # This cop supports safe autocorrection (--autocorrect).
398
- # Configuration parameters: EnforcedStyle.
399
- # SupportedStyles: implicit, explicit
400
- Style/RescueStandardError:
401
- Exclude:
402
- - 'app/helpers/geoblacklight_helper.rb'
403
- - 'lib/geoblacklight/metadata.rb'
404
- - 'lib/geoblacklight/metadata_transformer.rb'
405
- - 'lib/geoblacklight/metadata_transformer/base.rb'
406
-
407
- # Offense count: 3
408
- # This cop supports unsafe autocorrection (--autocorrect-all).
409
- Style/SlicingWithRange:
410
- Exclude:
411
- - 'spec/helpers/geoblacklight_helper_spec.rb'
412
-
413
- # Offense count: 6
414
- # This cop supports unsafe autocorrection (--autocorrect-all).
415
- # Configuration parameters: Mode.
416
- Style/StringConcatenation:
417
- Exclude:
418
- - 'app/controllers/download_controller.rb'
419
- - 'app/helpers/arcgis_helper.rb'
420
- - 'app/helpers/carto_helper.rb'
421
- - 'lib/geoblacklight/download.rb'
422
- - 'spec/lib/geoblacklight/document_presenter_spec.rb'
423
-
424
- # Offense count: 4
425
- # This cop supports safe autocorrection (--autocorrect).
426
- # Configuration parameters: MinSize.
427
- # SupportedStyles: percent, brackets
428
- Style/SymbolArray:
429
- EnforcedStyle: brackets
430
-
431
- # Offense count: 1
432
- # This cop supports safe autocorrection (--autocorrect).
433
- # Configuration parameters: WordRegex.
434
- # SupportedStyles: percent, brackets
435
- Style/WordArray:
436
- EnforcedStyle: percent
437
- MinSize: 3
@@ -1,6 +0,0 @@
1
- # New GeoBlacklight v3.4
2
- # Homepage Map Geometry
3
- # Leave null to default to entire world
4
- # Add a stringified GeoJSON object to scope initial render (example from UMass)
5
- HOMEPAGE_MAP_GEOM: null
6
- # HOMEPAGE_MAP_GEOM: '{"type":"Polygon","coordinates":[[[-73.58,42.93],[-73.58,41.20],[-69.90,41.20],[-69.90,42.93]]]}'