geoblacklight 4.0.0.pre.rc3 → 4.1.0

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