geoblacklight 4.0.0 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +21 -6
- data/.solr_wrapper +1 -0
- data/.standard.yml +1 -0
- data/Gemfile +13 -11
- data/README.md +1 -1
- data/Rakefile +42 -50
- data/app/assets/images/blacklight/american-geographical-society-library-uwm-libraries.svg +26 -0
- data/app/assets/images/blacklight/arizona.svg +4 -0
- data/app/assets/images/blacklight/circle-info-solid.svg +1 -0
- data/app/assets/images/blacklight/fire-solid.svg +1 -0
- data/app/assets/images/blacklight/lightbulb-solid.svg +1 -0
- data/app/assets/images/blacklight/nebraska.svg +4 -0
- data/app/assets/images/blacklight/rutgers.svg +5 -0
- data/app/assets/images/blacklight/triangle-exclamation-solid.svg +1 -0
- data/app/assets/stylesheets/geoblacklight/modules/sidebar.scss +8 -0
- data/app/components/geoblacklight/display_note_component.html.erb +1 -0
- data/app/components/geoblacklight/display_note_component.rb +47 -0
- data/app/components/geoblacklight/icon_facet_item_component.rb +2 -2
- data/app/controllers/download_controller.rb +36 -37
- data/app/controllers/relation_controller.rb +1 -0
- data/app/controllers/wms_controller.rb +1 -0
- data/app/helpers/arcgis_helper.rb +2 -1
- data/app/helpers/blacklight_helper.rb +2 -1
- data/app/helpers/carto_helper.rb +3 -2
- data/app/helpers/geoblacklight/geoblacklight_helper_behavior.rb +2 -1
- data/app/helpers/geoblacklight_helper.rb +44 -36
- data/app/models/concerns/geoblacklight/bbox_filter_query.rb +1 -1
- data/app/models/concerns/geoblacklight/solr_document/arcgis.rb +1 -0
- data/app/models/concerns/geoblacklight/solr_document/carto.rb +1 -0
- data/app/models/concerns/geoblacklight/solr_document/citation.rb +3 -2
- data/app/models/concerns/geoblacklight/solr_document/finder.rb +1 -0
- data/app/models/concerns/geoblacklight/solr_document/inspection.rb +1 -0
- data/app/models/concerns/geoblacklight/solr_document.rb +17 -9
- data/app/models/concerns/geoblacklight/suppressed_records_search_behavior.rb +2 -1
- data/app/presenters/geoblacklight/document_presenter.rb +3 -2
- data/app/views/catalog/_show_default_display_note.html.erb +7 -0
- data/app/views/catalog/_show_sidebar.html.erb +1 -0
- data/app/views/catalog/_show_sidebar_static_map.html.erb +10 -0
- data/app/views/relation/index.json.jbuilder +1 -1
- data/config/initializers/new_gbl_settings_defaults_4.1.yml +104 -0
- data/config/initializers/rails_config.rb +5 -1
- data/config/locales/geoblacklight.en.yml +18 -10
- data/geoblacklight.gemspec +36 -40
- data/lib/generators/geoblacklight/assets_generator.rb +15 -15
- data/lib/generators/geoblacklight/install_generator.rb +24 -23
- data/lib/generators/geoblacklight/templates/catalog_controller.rb +66 -71
- data/lib/generators/geoblacklight/templates/settings.yml +74 -22
- data/lib/geoblacklight/bounding_box.rb +1 -0
- data/lib/geoblacklight/constants.rb +26 -25
- data/lib/geoblacklight/download/geojson_download.rb +10 -9
- data/lib/geoblacklight/download/geotiff_download.rb +6 -5
- data/lib/geoblacklight/download/hgl_download.rb +4 -3
- data/lib/geoblacklight/download/kmz_download.rb +11 -10
- data/lib/geoblacklight/download/shapefile_download.rb +10 -9
- data/lib/geoblacklight/download.rb +12 -11
- data/lib/geoblacklight/engine.rb +10 -9
- data/lib/geoblacklight/exceptions.rb +3 -0
- data/lib/geoblacklight/faraday_middleware/follow_redirects.rb +12 -11
- data/lib/geoblacklight/geometry.rb +6 -5
- data/lib/geoblacklight/item_viewer.rb +4 -3
- data/lib/geoblacklight/metadata/base.rb +4 -3
- data/lib/geoblacklight/metadata/fgdc.rb +1 -0
- data/lib/geoblacklight/metadata/html.rb +5 -4
- data/lib/geoblacklight/metadata/iso19139.rb +1 -0
- data/lib/geoblacklight/metadata.rb +1 -0
- data/lib/geoblacklight/metadata_transformer/base.rb +5 -4
- data/lib/geoblacklight/metadata_transformer/fgdc.rb +1 -0
- data/lib/geoblacklight/metadata_transformer/iso19139.rb +1 -0
- data/lib/geoblacklight/metadata_transformer.rb +6 -2
- data/lib/geoblacklight/reference.rb +3 -2
- data/lib/geoblacklight/references.rb +11 -6
- data/lib/geoblacklight/relation/ancestors.rb +4 -3
- data/lib/geoblacklight/relation/descendants.rb +4 -3
- data/lib/geoblacklight/relation/relation_response.rb +3 -2
- data/lib/geoblacklight/routes/downloadable.rb +3 -2
- data/lib/geoblacklight/routes/exportable.rb +4 -3
- data/lib/geoblacklight/routes/wms.rb +2 -1
- data/lib/geoblacklight/routes.rb +4 -3
- data/lib/geoblacklight/version.rb +2 -1
- data/lib/geoblacklight/view_helper_override.rb +3 -2
- data/lib/geoblacklight/wms_layer/feature_info_response.rb +5 -4
- data/lib/geoblacklight/wms_layer.rb +4 -3
- data/lib/geoblacklight.rb +32 -31
- data/lib/tasks/geoblacklight.rake +45 -44
- data/schema/geoblacklight-schema-aardvark.json +6 -0
- data/spec/components/geoblacklight/display_note_component_spec.rb +27 -0
- data/spec/components/geoblacklight/homepage_feature_facet_component_spec.rb +11 -10
- data/spec/components/geoblacklight/icon_facet_item_component_spec.rb +8 -7
- data/spec/config/initializers/rails_config_spec.rb +10 -9
- data/spec/controllers/catalog_controller_spec.rb +27 -26
- data/spec/controllers/download_controller_spec.rb +50 -49
- data/spec/controllers/relation_controller_spec.rb +5 -4
- data/spec/controllers/wms_controller_spec.rb +10 -9
- data/spec/factories/user.rb +3 -2
- data/spec/features/bookmarks_spec.rb +7 -6
- data/spec/features/configurable_basemap_spec.rb +12 -11
- data/spec/features/data_dictionary_download_spec.rb +11 -10
- data/spec/features/download_layer_spec.rb +64 -63
- data/spec/features/empty_search_spec.rb +6 -5
- data/spec/features/esri_viewer_spec.rb +33 -32
- data/spec/features/exports_spec.rb +18 -17
- data/spec/features/full_screen_controll_spec.rb +8 -8
- data/spec/features/help_text_spec.rb +6 -5
- data/spec/features/home_page_spec.rb +30 -29
- data/spec/features/iiif_viewer_spec.rb +6 -5
- data/spec/features/index_map_spec.rb +17 -16
- data/spec/features/layer_inspection_spec.rb +8 -7
- data/spec/features/layer_opacity_spec.rb +15 -14
- data/spec/features/layer_preview_spec.rb +11 -10
- data/spec/features/layer_with_no_references_spec.rb +5 -4
- data/spec/features/linkified_attribute_table_spec.rb +8 -7
- data/spec/features/metadata_panel_spec.rb +32 -31
- data/spec/features/missing_metadata_spec.rb +18 -17
- data/spec/features/multiple_downloads_spec.rb +11 -10
- data/spec/features/oembed_spec.rb +6 -5
- data/spec/features/relations_spec.rb +51 -26
- data/spec/features/saved_searches_spec.rb +7 -6
- data/spec/features/search_bar_spec.rb +9 -8
- data/spec/features/search_results_complex_geometry_spec.rb +12 -11
- data/spec/features/search_results_icons_spec.rb +10 -9
- data/spec/features/search_results_map_spec.rb +21 -20
- data/spec/features/search_results_overlap_ratio_spec.rb +17 -16
- data/spec/features/search_spec.rb +19 -18
- data/spec/features/show_page_download_spec.rb +15 -14
- data/spec/features/show_page_metadata_spec.rb +9 -8
- data/spec/features/show_page_sidebar_static_map_spec.rb +21 -0
- data/spec/features/sms_spec.rb +12 -11
- data/spec/features/split_view.html.erb_spec.rb +56 -55
- data/spec/features/suppressed_records_spec.rb +10 -9
- data/spec/features/tilejson_spec.rb +9 -8
- data/spec/features/tms_spec.rb +6 -5
- data/spec/features/web_services_modal_spec.rb +37 -36
- data/spec/features/wmts_spec.rb +16 -15
- data/spec/features/xyz_spec.rb +6 -5
- data/spec/fixtures/solr_documents/actual-papermap1.json +1 -1
- data/spec/fixtures/solr_documents/actual-point1.json +1 -1
- data/spec/fixtures/solr_documents/actual-polygon1.json +1 -1
- data/spec/fixtures/solr_documents/actual-raster1.json +1 -1
- data/spec/fixtures/solr_documents/baruch_ancestor1.json +1 -1
- data/spec/fixtures/solr_documents/baruch_ancestor2.json +1 -1
- data/spec/fixtures/solr_documents/baruch_documentation_download.json +2 -2
- data/spec/fixtures/solr_documents/cornell_html_metadata.json +1 -1
- data/spec/fixtures/solr_documents/display-note.json +52 -0
- data/spec/fixtures/solr_documents/esri-dynamic-layer-all-layers.json +1 -1
- data/spec/fixtures/solr_documents/esri-dynamic-layer-single-layer.json +1 -1
- data/spec/fixtures/solr_documents/esri-feature-layer.json +1 -1
- data/spec/fixtures/solr_documents/esri-image-map-layer.json +1 -1
- data/spec/fixtures/solr_documents/esri-tiled_map_layer.json +1 -1
- data/spec/fixtures/solr_documents/esri-wms-layer.json +1 -1
- data/spec/fixtures/solr_documents/harvard_raster.json +1 -1
- data/spec/fixtures/solr_documents/iiif-eastern-hemisphere.json +1 -1
- data/spec/fixtures/solr_documents/index-map-polygon-no-downloadurl.json +1 -1
- data/spec/fixtures/solr_documents/index-map-polygon.json +1 -1
- data/spec/fixtures/solr_documents/index-map-stanford.json +1 -1
- data/spec/fixtures/solr_documents/index_map_point.json +1 -1
- data/spec/fixtures/solr_documents/princeton-parent.json +1 -1
- data/spec/fixtures/solr_documents/public_direct_download.json +1 -1
- data/spec/fixtures/solr_documents/public_iiif_princeton.json +1 -1
- data/spec/fixtures/solr_documents/restricted-line.json +1 -1
- data/spec/fixtures/solr_documents/tilejson.json +2 -2
- data/spec/fixtures/solr_documents/umn_metro_result1.json +2 -2
- data/spec/fixtures/solr_documents/umn_state_result1.json +1 -1
- data/spec/fixtures/solr_documents/umn_state_result2.json +1 -1
- data/spec/fixtures/solr_documents/uva_slug_colon.json +1 -1
- data/spec/fixtures/solr_documents/wmts-multiple.json +1 -1
- data/spec/fixtures/solr_documents/wmts-single-layer.json +6 -6
- data/spec/fixtures/solr_documents/xyz.json +3 -3
- data/spec/helpers/arcgis_helper_spec.rb +8 -7
- data/spec/helpers/carto_helper_spec.rb +6 -5
- data/spec/helpers/geoblacklight/geoblacklight_helper_behavior_spec.rb +10 -15
- data/spec/helpers/geoblacklight_helper_spec.rb +139 -138
- data/spec/lib/geoblacklight/bounding_box_spec.rb +14 -13
- data/spec/lib/geoblacklight/document_presenter_spec.rb +26 -25
- data/spec/lib/geoblacklight/download/geojson_download_spec.rb +8 -7
- data/spec/lib/geoblacklight/download/geotiff_download_spec.rb +8 -7
- data/spec/lib/geoblacklight/download/hgl_download_spec.rb +16 -15
- data/spec/lib/geoblacklight/download/kmz_download_spec.rb +9 -8
- data/spec/lib/geoblacklight/download/shapefile_download_spec.rb +8 -7
- data/spec/lib/geoblacklight/download_spec.rb +61 -60
- data/spec/lib/geoblacklight/geometry_spec.rb +29 -28
- data/spec/lib/geoblacklight/item_viewer_spec.rb +25 -24
- data/spec/lib/geoblacklight/metadata/base_spec.rb +44 -43
- data/spec/lib/geoblacklight/metadata/html_spec.rb +7 -6
- data/spec/lib/geoblacklight/metadata_spec.rb +15 -14
- data/spec/lib/geoblacklight/metadata_transformer/base_spec.rb +13 -12
- data/spec/lib/geoblacklight/metadata_transformer/fgdc_spec.rb +8 -7
- data/spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb +8 -7
- data/spec/lib/geoblacklight/metadata_transformer_spec.rb +15 -14
- data/spec/lib/geoblacklight/reference_spec.rb +28 -27
- data/spec/lib/geoblacklight/references_spec.rb +89 -76
- data/spec/lib/geoblacklight/relation/ancestors_spec.rb +17 -16
- data/spec/lib/geoblacklight/relation/descendants_spec.rb +17 -16
- data/spec/lib/geoblacklight/relation/relation_response_spec.rb +29 -28
- data/spec/lib/geoblacklight/view_helper_override_spec.rb +14 -13
- data/spec/lib/geoblacklight/wms_layer/feature_info_response_spec.rb +19 -18
- data/spec/lib/geoblacklight/wms_layer_spec.rb +31 -30
- data/spec/models/concerns/geoblacklight/bbox_filter_field_spec.rb +31 -31
- data/spec/models/concerns/geoblacklight/bbox_filter_query_spec.rb +32 -32
- data/spec/models/concerns/geoblacklight/solr_document/carto_spec.rb +16 -15
- data/spec/models/concerns/geoblacklight/solr_document/citation_spec.rb +7 -6
- data/spec/models/concerns/geoblacklight/solr_document/finder_spec.rb +16 -17
- data/spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb +7 -6
- data/spec/models/concerns/geoblacklight/solr_document_spec.rb +121 -107
- data/spec/models/concerns/geoblacklight/suppressed_records_search_behavior_spec.rb +8 -7
- data/spec/presenters/geoblacklight/bbox_item_presenter_spec.rb +10 -10
- data/spec/routing/catalog_routing_spec.rb +4 -3
- data/spec/spec_helper.rb +34 -33
- data/spec/support/backport_test_helpers.rb +6 -5
- data/spec/support/features/session_helpers.rb +8 -7
- data/spec/support/features.rb +2 -1
- data/spec/support/fixtures.rb +2 -1
- data/spec/tasks/geoblacklight_spec.rb +10 -9
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +16 -15
- data/spec/views/catalog/_document_split.html.erb_spec.rb +3 -2
- data/spec/views/catalog/_index_split.html.erb_spec.rb +3 -2
- data/spec/views/catalog/_results_pagination.html.erb_spec.rb +5 -4
- data/spec/views/catalog/_show_downloads.html.erb_spec.rb +11 -10
- data/spec/views/catalog/_show_tools.html.erb_spec.rb +13 -12
- data/template.rb +9 -8
- metadata +29 -212
- data/.gitmodules +0 -0
- data/.rubocop.yml +0 -111
- data/.rubocop_todo.yml +0 -437
- data/config/initializers/new_gbl_settings_defaults_3_4.yml +0 -6
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]]]}'
|