geoblacklight 2.1.2 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +214 -108
- data/.gitignore +3 -1
- data/.rubocop.yml +19 -15
- data/.rubocop_todo.yml +28 -159
- data/Gemfile +3 -8
- data/README.md +6 -7
- data/Rakefile +1 -0
- data/app/assets/images/blacklight/arrow-circle-down.svg +3 -0
- data/app/assets/images/blacklight/baruch-cuny.svg +3 -0
- data/app/assets/images/blacklight/berkeley.svg +4 -0
- data/app/assets/images/blacklight/book.svg +3 -0
- data/app/assets/images/blacklight/bookmark.svg +3 -0
- data/app/assets/images/blacklight/cd-rom.svg +3 -0
- data/app/assets/images/blacklight/chicago.svg +4 -0
- data/app/assets/images/blacklight/citation.svg +3 -0
- data/app/assets/images/blacklight/collection.svg +3 -0
- data/app/assets/images/blacklight/columbia.svg +3 -0
- data/app/assets/images/blacklight/cornell.svg +5 -0
- data/app/assets/images/blacklight/dvd-rom.svg +3 -0
- data/app/assets/images/blacklight/email.svg +3 -0
- data/app/assets/images/blacklight/esri-globe.svg +31 -37
- data/app/assets/images/blacklight/geoblacklight-icons.json +2079 -0
- data/app/assets/images/blacklight/globe.svg +3 -0
- data/app/assets/images/blacklight/harvard.svg +3 -0
- data/app/assets/images/blacklight/home.svg +3 -0
- data/app/assets/images/blacklight/illinois.svg +4 -0
- data/app/assets/images/blacklight/image.svg +3 -0
- data/app/assets/images/blacklight/indiana.svg +3 -0
- data/app/assets/images/blacklight/iowa.svg +3 -0
- data/app/assets/images/blacklight/leaf.svg +3 -0
- data/app/assets/images/blacklight/lewis-clark.svg +5 -0
- data/app/assets/images/blacklight/line.svg +4 -0
- data/app/assets/images/blacklight/logo.svg +1 -0
- data/app/assets/images/blacklight/map-marker.svg +3 -0
- data/app/assets/images/blacklight/map.svg +3 -0
- data/app/assets/images/blacklight/maryland.svg +3 -0
- data/app/assets/images/blacklight/massgis.svg +3 -0
- data/app/assets/images/blacklight/metadata.svg +3 -0
- data/app/assets/images/blacklight/michigan-state.svg +4 -0
- data/app/assets/images/blacklight/michigan.svg +3 -0
- data/app/assets/images/blacklight/minnesota.svg +3 -0
- data/app/assets/images/blacklight/mit.svg +3 -0
- data/app/assets/images/blacklight/mixed.svg +5 -0
- data/app/assets/images/blacklight/multilinestring.svg +6 -0
- data/app/assets/images/blacklight/multipoint.svg +3 -0
- data/app/assets/images/blacklight/multipolygon.svg +6 -0
- data/app/assets/images/blacklight/nyu.svg +6 -0
- data/app/assets/images/blacklight/ohio-state.svg +5 -0
- data/app/assets/images/blacklight/pagelines-brands.svg +3 -0
- data/app/assets/images/blacklight/paper-map.svg +3 -0
- data/app/assets/images/blacklight/penn-state.svg +4 -0
- data/app/assets/images/blacklight/point.svg +3 -0
- data/app/assets/images/blacklight/polygon.svg +4 -0
- data/app/assets/images/blacklight/polyline.svg +6 -0
- data/app/assets/images/blacklight/princeton.svg +3 -0
- data/app/assets/images/blacklight/public.svg +3 -0
- data/app/assets/images/blacklight/purdue.svg +4 -0
- data/app/assets/images/blacklight/raster.svg +3 -0
- data/app/assets/images/blacklight/restricted.svg +3 -0
- data/app/assets/images/blacklight/sms.svg +3 -0
- data/app/assets/images/blacklight/stanford.svg +3 -0
- data/app/assets/images/blacklight/table.svg +3 -0
- data/app/assets/images/blacklight/tags.svg +3 -0
- data/app/assets/images/blacklight/texas.svg +3 -0
- data/app/assets/images/blacklight/tufts.svg +3 -0
- data/app/assets/images/blacklight/ucla.svg +3 -0
- data/app/assets/images/blacklight/uva.svg +3 -0
- data/app/assets/images/blacklight/web_services.svg +3 -0
- data/app/assets/images/blacklight/wisconsin.svg +3 -0
- data/app/assets/javascripts/geoblacklight/basemaps.js +18 -0
- data/app/assets/javascripts/geoblacklight/downloaders/downloader.js +1 -1
- data/app/assets/javascripts/geoblacklight/modules/geosearch.js +1 -1
- data/app/assets/javascripts/geoblacklight/modules/help_text.js +7 -0
- data/app/assets/javascripts/geoblacklight/modules/home.js +1 -1
- data/app/assets/javascripts/geoblacklight/modules/item.js +19 -2
- data/app/assets/javascripts/geoblacklight/modules/results.js +4 -2
- data/app/assets/javascripts/geoblacklight/modules/svg_tooltips.js +31 -0
- data/app/assets/javascripts/geoblacklight/viewers/esri.js +2 -2
- data/app/assets/javascripts/geoblacklight/viewers/esri/tiled_map_layer.js +1 -1
- data/app/assets/javascripts/geoblacklight/viewers/oembed.js +13 -0
- data/app/assets/javascripts/geoblacklight/viewers/wms.js +2 -2
- data/app/assets/stylesheets/geoblacklight/geoblacklight.scss +2 -0
- data/app/assets/stylesheets/geoblacklight/modules/_base.scss +33 -0
- data/app/assets/stylesheets/geoblacklight/{_blacklight_overrides.scss → modules/_blacklight_overrides.scss} +8 -9
- data/app/assets/stylesheets/geoblacklight/{_styles.scss → modules/_styles.scss} +1 -0
- data/app/assets/stylesheets/geoblacklight/modules/downloads.scss +37 -54
- data/app/assets/stylesheets/geoblacklight/modules/icon-customization.scss +49 -59
- data/app/assets/stylesheets/geoblacklight/modules/item.scss +17 -0
- data/app/assets/stylesheets/geoblacklight/modules/results.scss +47 -28
- data/app/assets/stylesheets/geoblacklight/modules/sidebar.scss +12 -42
- data/app/assets/stylesheets/geoblacklight/modules/toolbar.scss +17 -55
- data/app/controllers/download_controller.rb +12 -12
- data/app/controllers/relation_controller.rb +1 -0
- data/app/controllers/wms_controller.rb +1 -0
- data/app/helpers/arcgis_helper.rb +1 -0
- data/app/helpers/blacklight_helper.rb +1 -0
- data/app/helpers/carto_helper.rb +1 -0
- data/app/helpers/geoblacklight_helper.rb +62 -19
- data/app/models/concerns/geoblacklight/solr_document.rb +18 -8
- data/app/models/concerns/geoblacklight/solr_document/arcgis.rb +2 -1
- data/app/models/concerns/geoblacklight/solr_document/carto.rb +1 -13
- data/app/models/concerns/geoblacklight/solr_document/citation.rb +29 -0
- data/app/models/concerns/geoblacklight/solr_document/finder.rb +1 -0
- data/app/models/concerns/geoblacklight/solr_document/inspection.rb +2 -1
- data/app/models/concerns/geoblacklight/spatial_search_behavior.rb +8 -1
- data/app/presenters/geoblacklight/document_presenter.rb +2 -1
- data/app/views/catalog/_arcgis.html.erb +4 -0
- data/app/views/catalog/_carto.html.erb +4 -0
- data/app/views/catalog/_citation.html.erb +11 -0
- data/app/views/catalog/_data_dictionary.html.erb +3 -2
- data/app/views/catalog/_document_action.html.erb +1 -1
- data/app/views/catalog/_document_split.html.erb +1 -1
- data/app/views/catalog/_downloads_primary.html.erb +8 -1
- data/app/views/catalog/_header_icons.html.erb +3 -3
- data/app/views/catalog/_home_text.html.erb +8 -5
- data/app/views/catalog/_index_split_default.html.erb +22 -14
- data/app/views/catalog/_show_default_viewer_container.html.erb +6 -1
- data/app/views/catalog/_show_header_default.html.erb +2 -4
- data/app/views/catalog/_web_services_wfs.html.erb +3 -3
- data/app/views/catalog/_web_services_wms.html.erb +3 -3
- data/app/views/catalog/metadata.html.erb +3 -1
- data/app/views/catalog/web_services.html.erb +9 -7
- data/app/views/relation/_ancestors.html.erb +3 -5
- data/app/views/relation/_descendants.html.erb +4 -6
- data/app/views/relation/index.html.erb +20 -8
- data/app/views/relation/index.json.jbuilder +2 -1
- data/app/views/shared/_header_navbar.html.erb +1 -1
- data/bin/coverage.rb +36 -0
- data/config/initializers/rails_config.rb +1 -0
- data/config/locales/geoblacklight.en.yml +75 -2
- data/geoblacklight.gemspec +6 -8
- data/lib/generators/geoblacklight/assets_generator.rb +46 -0
- data/lib/generators/geoblacklight/install_generator.rb +8 -9
- data/lib/generators/geoblacklight/templates/assets/_blacklight.scss +1 -0
- data/lib/generators/geoblacklight/templates/assets/_customizations.scss +28 -0
- data/{app/assets/stylesheets/geoblacklight/application.scss → lib/generators/geoblacklight/templates/assets/_geoblacklight.scss} +0 -1
- data/lib/generators/geoblacklight/templates/assets/application.scss +7 -0
- data/lib/generators/geoblacklight/templates/{geoblacklight.js → assets/geoblacklight.js} +0 -1
- data/lib/generators/geoblacklight/templates/catalog_controller.rb +6 -2
- data/lib/generators/geoblacklight/templates/settings.yml +17 -0
- data/lib/generators/geoblacklight/webpacker_generator.rb +2 -1
- data/lib/geoblacklight.rb +1 -0
- data/lib/geoblacklight/bounding_box.rb +1 -0
- data/lib/geoblacklight/catalog_helper_override.rb +2 -1
- data/lib/geoblacklight/constants.rb +4 -2
- data/lib/geoblacklight/download.rb +6 -5
- data/lib/geoblacklight/download/geojson_download.rb +1 -0
- data/lib/geoblacklight/download/geotiff_download.rb +1 -0
- data/lib/geoblacklight/download/hgl_download.rb +1 -0
- data/lib/geoblacklight/download/kmz_download.rb +2 -1
- data/lib/geoblacklight/download/shapefile_download.rb +1 -0
- data/lib/geoblacklight/engine.rb +1 -2
- data/lib/geoblacklight/exceptions.rb +1 -0
- data/lib/geoblacklight/geoblacklight_helper_behavior.rb +1 -0
- data/lib/geoblacklight/item_viewer.rb +6 -1
- data/lib/geoblacklight/metadata.rb +1 -0
- data/lib/geoblacklight/metadata/base.rb +16 -10
- data/lib/geoblacklight/metadata/fgdc.rb +1 -0
- data/lib/geoblacklight/metadata/html.rb +2 -2
- data/lib/geoblacklight/metadata/iso19139.rb +1 -0
- data/lib/geoblacklight/metadata_transformer.rb +1 -0
- data/lib/geoblacklight/metadata_transformer/base.rb +1 -0
- data/lib/geoblacklight/metadata_transformer/fgdc.rb +1 -0
- data/lib/geoblacklight/metadata_transformer/iso19139.rb +1 -0
- data/lib/geoblacklight/reference.rb +3 -1
- data/lib/geoblacklight/references.rb +7 -3
- data/lib/geoblacklight/relation/ancestors.rb +2 -1
- data/lib/geoblacklight/relation/descendants.rb +2 -1
- data/lib/geoblacklight/relation/relation_response.rb +2 -1
- data/lib/geoblacklight/routes.rb +1 -0
- data/lib/geoblacklight/routes/downloadable.rb +1 -0
- data/lib/geoblacklight/routes/exportable.rb +1 -0
- data/lib/geoblacklight/routes/wms.rb +1 -0
- data/lib/geoblacklight/version.rb +2 -1
- data/lib/geoblacklight/view_helper_override.rb +2 -1
- data/lib/geoblacklight/wms_layer.rb +3 -2
- data/lib/geoblacklight/wms_layer/feature_info_response.rb +1 -0
- data/lib/tasks/geoblacklight.rake +33 -32
- data/package.json +4 -0
- data/schema/references.md +2 -1
- data/solr/conf/schema.xml +5 -5
- data/spec/controllers/catalog_controller_spec.rb +1 -0
- data/spec/controllers/download_controller_spec.rb +2 -1
- data/spec/controllers/relation_controller_spec.rb +1 -0
- data/spec/controllers/wms_controller_spec.rb +2 -1
- data/spec/factories/user.rb +1 -0
- data/spec/features/bookmarks_spec.rb +1 -0
- data/spec/features/configurable_basemap_spec.rb +10 -0
- data/spec/features/data_dictionary_download_spec.rb +1 -0
- data/spec/features/download_layer_spec.rb +1 -0
- data/spec/features/empty_search_spec.rb +1 -0
- data/spec/features/esri_viewer_spec.rb +1 -6
- data/spec/features/exports_spec.rb +4 -3
- data/spec/features/help_text_spec.rb +9 -0
- data/spec/features/home_page_spec.rb +6 -0
- data/spec/features/iiif_viewer_spec.rb +1 -0
- data/spec/features/index_map_spec.rb +1 -0
- data/spec/features/layer_inspection_spec.rb +1 -0
- data/spec/features/layer_opacity_spec.rb +1 -0
- data/spec/features/layer_preview_spec.rb +1 -0
- data/spec/features/layer_with_no_references_spec.rb +1 -0
- data/spec/features/linkified_attribute_table_spec.rb +1 -0
- data/spec/features/metadata_panel_spec.rb +52 -8
- data/spec/features/missing_metadata_spec.rb +13 -0
- data/spec/features/multiple_downloads_spec.rb +15 -0
- data/spec/features/oembed_spec.rb +10 -0
- data/spec/features/relations_spec.rb +10 -28
- data/spec/features/saved_searches_spec.rb +1 -0
- data/spec/features/search_bar_spec.rb +1 -0
- data/spec/features/search_results_map_spec.rb +2 -7
- data/spec/features/search_results_overlap_ratio_spec.rb +4 -3
- data/spec/features/search_spec.rb +1 -0
- data/spec/features/show_page_metadata_spec.rb +1 -0
- data/spec/features/sms_spec.rb +1 -0
- data/spec/features/split_view.html.erb_spec.rb +5 -4
- data/spec/features/suppressed_records_spec.rb +15 -0
- data/spec/features/web_services_modal_spec.rb +1 -0
- data/spec/fixtures/fgdc/harvard-g7064-s2-1834-k3.xml +1 -0
- data/spec/fixtures/iso19139/stanford-cg357zz0321.xml +581 -0
- data/spec/fixtures/mods/fb897vt9938.mods +111 -0
- data/spec/fixtures/mods/stanford-cg357zz0321.mods +113 -0
- data/spec/fixtures/solr_documents/iiif-eastern-hemisphere.json +1 -1
- data/spec/fixtures/solr_documents/metadata_no_dct_provenance_s.json +30 -0
- data/spec/fixtures/solr_documents/metadata_no_layer_geom_type_s.json +17 -0
- data/spec/fixtures/solr_documents/metadata_no_solr_geom.json +23 -0
- data/spec/fixtures/solr_documents/multiple-downloads.json +30 -0
- data/spec/fixtures/solr_documents/oembed.json +24 -0
- data/spec/helpers/arcgis_helper_spec.rb +1 -0
- data/spec/helpers/carto_helper_spec.rb +1 -0
- data/spec/helpers/geoblacklight_helper_spec.rb +81 -12
- data/spec/javascripts/geoblacklight/viewers/esri/tiled_map_layer_spec.js +12 -0
- data/spec/javascripts/metadata_download_button_spec.js +1 -1
- data/spec/lib/geoblacklight/bounding_box_spec.rb +1 -0
- data/spec/lib/geoblacklight/controller_override_spec.rb +1 -0
- data/spec/lib/geoblacklight/document_presenter_spec.rb +3 -2
- data/spec/lib/geoblacklight/download/geojson_download_spec.rb +1 -0
- data/spec/lib/geoblacklight/download/geotiff_download_spec.rb +1 -0
- data/spec/lib/geoblacklight/download/hgl_download_spec.rb +1 -0
- data/spec/lib/geoblacklight/download/kmz_download_spec.rb +1 -0
- data/spec/lib/geoblacklight/download/shapefile_download_spec.rb +1 -0
- data/spec/lib/geoblacklight/download_spec.rb +4 -3
- data/spec/lib/geoblacklight/geoblacklight_helper_behavior_spec.rb +1 -0
- data/spec/lib/geoblacklight/item_viewer_spec.rb +1 -0
- data/spec/lib/geoblacklight/metadata/base_spec.rb +22 -7
- data/spec/lib/geoblacklight/metadata/html_spec.rb +1 -0
- data/spec/lib/geoblacklight/metadata_spec.rb +1 -0
- data/spec/lib/geoblacklight/metadata_transformer/base_spec.rb +3 -2
- data/spec/lib/geoblacklight/metadata_transformer/fgdc_spec.rb +3 -2
- data/spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb +3 -2
- data/spec/lib/geoblacklight/metadata_transformer_spec.rb +4 -3
- data/spec/lib/geoblacklight/reference_spec.rb +31 -0
- data/spec/lib/geoblacklight/references_spec.rb +2 -3
- data/spec/lib/geoblacklight/relation/ancestors_spec.rb +2 -1
- data/spec/lib/geoblacklight/relation/descendants_spec.rb +2 -1
- data/spec/lib/geoblacklight/relation/relation_response_spec.rb +1 -0
- data/spec/lib/geoblacklight/view_helper_override_spec.rb +1 -0
- data/spec/lib/geoblacklight/wms_layer/feature_info_response_spec.rb +5 -4
- data/spec/lib/geoblacklight/wms_layer_spec.rb +3 -2
- data/spec/models/concerns/geoblacklight/solr_document/carto_spec.rb +1 -20
- data/spec/models/concerns/geoblacklight/solr_document/citation_spec.rb +14 -0
- data/spec/models/concerns/geoblacklight/solr_document/finder_spec.rb +1 -0
- data/spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb +1 -0
- data/spec/models/concerns/geoblacklight/solr_document_spec.rb +47 -0
- data/spec/models/concerns/geoblacklight/spatial_search_behavior_spec.rb +15 -2
- data/spec/routing/catalog_routing_spec.rb +1 -0
- data/spec/spec_helper.rb +20 -14
- data/spec/support/backport_test_helpers.rb +1 -0
- data/spec/support/features.rb +1 -0
- data/spec/support/features/session_helpers.rb +1 -0
- data/spec/support/fixtures.rb +8 -0
- data/spec/tasks/geoblacklight_spec.rb +19 -0
- data/spec/teaspoon_env.rb +1 -0
- data/spec/test_app_templates/Gemfile.extra +1 -0
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +1 -0
- data/spec/views/catalog/_document_split.html.erb_spec.rb +1 -0
- data/spec/views/catalog/_index_split.html.erb_spec.rb +1 -0
- data/spec/views/catalog/_results_pagination.html.erb_spec.rb +1 -0
- data/spec/views/catalog/_show_downloads.html.erb_spec.rb +1 -0
- data/spec/views/catalog/_show_tools.html.erb_spec.rb +2 -4
- data/template.rb +1 -0
- data/vendor/assets/stylesheets/leaflet.css +0 -1
- metadata +158 -75
- data/app/assets/images/blacklight/logo.png +0 -0
- data/app/assets/javascripts/geoblacklight/modules/collapse.js +0 -7
- data/app/assets/stylesheets/geoblacklight/_geoblacklight.scss +0 -36
- data/app/assets/stylesheets/geoblacklight/modules/relations.scss +0 -15
- data/app/views/catalog/_exports.html.erb +0 -11
- data/app/views/catalog/_show_tools.html.erb +0 -25
- data/lib/generators/geoblacklight/templates/geoblacklight.scss +0 -4
- data/vendor/assets/javascripts/readmore.min.js +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b6da8bdd22d9bb963b6a62ffbc47b51169c003515007b414aa05d15d6239e09
|
4
|
+
data.tar.gz: 3b2f2e52352474379e3428bce9b4dec2113991e457a41e1b58795c56039d8687
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fa98bbc2a5d93c3b03ef2f04bc83a19621452433600b345a7c48fcff108dabb58159a243fa73f6f955ada943ae377fb252a54302a38262c7175a60321b94e93
|
7
|
+
data.tar.gz: 342425a8b399ddedc409245910141f723d88952e145bac45ee2074eb8cc78287b7845dcb0d9c89ae9a012ba3f35ee5b982a9b34a860b07b3f541ac7608968d2c
|
data/.circleci/config.yml
CHANGED
@@ -1,146 +1,252 @@
|
|
1
1
|
---
|
2
|
-
version: 2
|
2
|
+
version: 2.1
|
3
|
+
commands:
|
4
|
+
restore_bundle_cache:
|
5
|
+
description: "Restore gems installed by bundler"
|
6
|
+
parameters:
|
7
|
+
# Use this parameter to bust the cache, if needed
|
8
|
+
cache_prefix:
|
9
|
+
type: string
|
10
|
+
default: "8-6-2020-A"
|
11
|
+
ruby_version:
|
12
|
+
type: string
|
13
|
+
default: '2.7.1'
|
14
|
+
rails_version:
|
15
|
+
type: string
|
16
|
+
default: '6.0.3.2'
|
17
|
+
steps:
|
18
|
+
- restore_cache:
|
19
|
+
keys:
|
20
|
+
- << parameters.cache_prefix >>-{{ checksum "geoblacklight.gemspec" }}-{{ checksum "Gemfile" }}-<< parameters.ruby_version >>-<< parameters.rails_version >>
|
21
|
+
paths:
|
22
|
+
- /home/circleci/geoblacklight/vendor/bundle
|
23
|
+
save_bundle_cache:
|
24
|
+
description: "Save gems installed by bundler"
|
25
|
+
parameters:
|
26
|
+
# Use this parameter to bust the cache, if needed
|
27
|
+
cache_prefix:
|
28
|
+
type: string
|
29
|
+
default: "8-6-2020-A"
|
30
|
+
ruby_version:
|
31
|
+
type: string
|
32
|
+
default: '2.7.1'
|
33
|
+
rails_version:
|
34
|
+
type: string
|
35
|
+
default: '6.0.3.2'
|
36
|
+
steps:
|
37
|
+
- save_cache:
|
38
|
+
key: << parameters.cache_prefix >>-{{ checksum "geoblacklight.gemspec" }}-{{ checksum "Gemfile" }}-<< parameters.ruby_version >>-<< parameters.rails_version >>
|
39
|
+
paths:
|
40
|
+
- /home/circleci/geoblacklight/vendor/bundle
|
3
41
|
jobs:
|
4
|
-
|
42
|
+
build:
|
5
43
|
working_directory: ~/geoblacklight
|
44
|
+
parameters:
|
45
|
+
ruby_version:
|
46
|
+
type: string
|
47
|
+
default: '2.7.1'
|
48
|
+
solr_port:
|
49
|
+
type: string
|
50
|
+
default: '8983'
|
51
|
+
rails_version:
|
52
|
+
type: string
|
53
|
+
default: '6.0.3.2'
|
54
|
+
coverage:
|
55
|
+
type: boolean
|
56
|
+
default: false
|
6
57
|
docker:
|
7
|
-
- image: circleci/ruby
|
8
|
-
environment:
|
9
|
-
BUNDLE_JOBS: 3
|
10
|
-
BUNDLE_RETRY: 3
|
11
|
-
# We need both GEM_HOME and BUNDLE_PATH because of the test app
|
12
|
-
GEM_HOME: /home/circleci/geoblacklight/vendor/bundle
|
13
|
-
BUNDLE_PATH: /home/circleci/geoblacklight/vendor/bundle
|
14
|
-
CI: true
|
15
|
-
RAILS_ENV: test
|
16
|
-
RAILS_VERSION: 5.2.3
|
58
|
+
- image: circleci/ruby:<< parameters.ruby_version >>-node-browsers
|
17
59
|
- image: solr:7-alpine
|
18
|
-
command: bin/solr -cloud -noprompt -f -p
|
60
|
+
command: bin/solr -cloud -noprompt -f -p <<parameters.solr_port>>
|
61
|
+
environment:
|
62
|
+
GEM_HOME: /home/circleci/geoblacklight/vendor/bundle
|
63
|
+
BUNDLE_PATH: /home/circleci/geoblacklight/vendor/bundle
|
64
|
+
BUNDLE_JOBS: 4
|
65
|
+
BUNDLE_RETRY: 3
|
66
|
+
RAILS_ENV: test
|
67
|
+
RACK_ENV: test
|
68
|
+
RAILS_VERSION: <<parameters.rails_version>>
|
19
69
|
steps:
|
20
70
|
- checkout
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
- run: sudo apt-get update
|
25
|
-
- run: sudo apt-get -y install google-chrome-stable
|
26
|
-
# Restore bundle cache
|
27
|
-
- type: cache-restore
|
28
|
-
name: Restore bundle cache
|
29
|
-
key: geoblacklight-bundle-5-2-0-{{ checksum "geoblacklight.gemspec" }}-{{ checksum "Gemfile" }}-3f5eff
|
71
|
+
- restore_bundle_cache:
|
72
|
+
ruby_version: << parameters.ruby_version >>
|
73
|
+
rails_version: << parameters.rails_version >>
|
30
74
|
# Install gems
|
31
75
|
- run: bundle check || bundle install
|
32
|
-
#
|
33
|
-
- run: bundle exec rake engine_cart:generate
|
34
|
-
- run:
|
35
|
-
name: Wait for Solr
|
36
|
-
command: dockerize -wait tcp://localhost:8983 -timeout 1m
|
37
|
-
- run:
|
38
|
-
name: Load config into solr
|
39
|
-
command: |
|
40
|
-
cd .internal_test_app/solr/conf
|
41
|
-
zip -1 -r solr_config.zip ./*
|
42
|
-
curl -H "Content-type:application/octet-stream" --data-binary @solr_config.zip "http://localhost:8983/solr/admin/configs?action=UPLOAD&name=solrconfig"
|
43
|
-
curl -H 'Content-type: application/json' http://localhost:8983/api/collections/ -d '{create: {name: blacklight-core, config: solrconfig, numShards: 1}}'
|
76
|
+
# Generate the internal test app
|
44
77
|
- run:
|
45
|
-
name:
|
46
|
-
command: |
|
47
|
-
cd .internal_test_app
|
48
|
-
bundle exec rake geoblacklight:index:seed
|
49
|
-
bundle exec rake geoblacklight:downloads:mkdir
|
50
|
-
- run:
|
51
|
-
name: Compile the assets for Webpack
|
78
|
+
name: Generate test app
|
52
79
|
command: |
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
- run:
|
58
|
-
name: Run the RSpec test suites
|
59
|
-
command: bundle exec rake geoblacklight:coverage
|
60
|
-
# Store bundle cache
|
61
|
-
- type: cache-save
|
62
|
-
name: Store bundle cache
|
63
|
-
key: geoblacklight-bundle-5-2-0-{{ checksum "geoblacklight.gemspec" }}-{{ checksum "Gemfile" }}-3f5eff
|
64
|
-
paths:
|
65
|
-
- /home/circleci/geoblacklight/vendor/bundle
|
66
|
-
rails_5_1_7:
|
67
|
-
working_directory: ~/geoblacklight
|
68
|
-
docker:
|
69
|
-
- image: circleci/ruby:2.4.4-node-browsers
|
70
|
-
environment:
|
71
|
-
BUNDLE_JOBS: 3
|
72
|
-
BUNDLE_RETRY: 3
|
73
|
-
GEM_HOME: /home/circleci/geoblacklight/vendor/bundle
|
74
|
-
BUNDLE_PATH: /home/circleci/geoblacklight/vendor/bundle
|
75
|
-
RAILS_ENV: test
|
76
|
-
RAILS_VERSION: 5.1.7
|
77
|
-
- image: solr:7-alpine
|
78
|
-
command: bin/solr -cloud -noprompt -f -p 8983
|
79
|
-
steps:
|
80
|
-
- checkout
|
81
|
-
# Restore bundle cache
|
82
|
-
- type: cache-restore
|
83
|
-
name: Restore bundle cache
|
84
|
-
key: geoblacklight-bundle-5-1-7-{{ checksum "Gemfile" }}-{{ checksum "geoblacklight.gemspec" }}-3f5eff
|
85
|
-
# Install gems and run specs
|
86
|
-
- run: bundle check || bundle install
|
87
|
-
# Run the test suites
|
88
|
-
- run: bundle exec rake engine_cart:generate
|
80
|
+
[ -e ./.internal_test_app ] || bundle exec rake engine_cart:generate
|
81
|
+
- save_bundle_cache:
|
82
|
+
ruby_version: << parameters.ruby_version >>
|
83
|
+
rails_version: << parameters.rails_version >>
|
89
84
|
- run:
|
90
85
|
name: Wait for Solr
|
91
|
-
command: dockerize -wait tcp://localhost
|
86
|
+
command: dockerize -wait tcp://localhost:<<parameters.solr_port>> -timeout 1m
|
92
87
|
- run:
|
93
88
|
name: Load config into solr
|
94
89
|
command: |
|
95
90
|
cd .internal_test_app/solr/conf
|
96
91
|
zip -1 -r solr_config.zip ./*
|
97
92
|
curl -H "Content-type:application/octet-stream" --data-binary @solr_config.zip "http://localhost:8983/solr/admin/configs?action=UPLOAD&name=solrconfig"
|
98
|
-
curl -H 'Content-type: application/json' http://localhost
|
93
|
+
curl -H 'Content-type: application/json' http://localhost:<<parameters.solr_port>>/api/collections/ -d '{create: {name: blacklight-core, config: solrconfig, numShards: 1}}'
|
99
94
|
- run:
|
100
95
|
name: Seed Solr
|
101
96
|
command: |
|
102
97
|
cd .internal_test_app
|
98
|
+
bundle check || bundle install
|
103
99
|
bundle exec rake geoblacklight:index:seed
|
104
100
|
bundle exec rake geoblacklight:downloads:mkdir
|
101
|
+
- when:
|
102
|
+
condition: <<parameters.coverage>>
|
103
|
+
steps:
|
104
|
+
- run:
|
105
|
+
name: Ensure simplecov is installed
|
106
|
+
command: gem install simplecov
|
107
|
+
- run:
|
108
|
+
name: Run the RSpec test suites
|
109
|
+
command: bundle exec rspec
|
110
|
+
- run:
|
111
|
+
name: Stash Coverage Results
|
112
|
+
command: |
|
113
|
+
cp -R coverage/ coverage_results/
|
114
|
+
cp -R coverage/ /tmp/coverage_results/
|
115
|
+
- persist_to_workspace:
|
116
|
+
root: '~/geoblacklight'
|
117
|
+
paths: 'coverage_results'
|
118
|
+
- store_artifacts:
|
119
|
+
path: /tmp/coverage_results/
|
120
|
+
- unless:
|
121
|
+
condition: <<parameters.coverage>>
|
122
|
+
steps:
|
123
|
+
- run:
|
124
|
+
name: Run the RSpec test suites
|
125
|
+
command: bundle exec rspec
|
105
126
|
- run:
|
106
|
-
name:
|
107
|
-
command:
|
108
|
-
|
109
|
-
rm config/webpacker.yml
|
110
|
-
bundle exec rails webpacker:install
|
111
|
-
bundle exec rails webpacker:compile
|
112
|
-
- run:
|
113
|
-
name: Run the RSpec test suites
|
114
|
-
command: bundle exec rake geoblacklight:coverage
|
115
|
-
# Store bundle cache
|
116
|
-
- type: cache-save
|
117
|
-
name: Store bundle cache
|
118
|
-
key: geoblacklight-bundle-5-1-7-{{ checksum "Gemfile" }}-{{ checksum "geoblacklight.gemspec" }}-3f5eff
|
119
|
-
paths:
|
120
|
-
- /home/circleci/geoblacklight/vendor/bundle
|
127
|
+
name: Run the Teaspoon test suites
|
128
|
+
command: bundle exec rake teaspoon
|
129
|
+
|
121
130
|
rubocop:
|
122
131
|
working_directory: ~/geoblacklight
|
132
|
+
parameters:
|
133
|
+
ruby_version:
|
134
|
+
type: string
|
135
|
+
default: '2.7.1'
|
136
|
+
rails_version:
|
137
|
+
type: string
|
138
|
+
default: '6.0.3.2'
|
123
139
|
docker:
|
124
|
-
- image: circleci/ruby
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
140
|
+
- image: circleci/ruby:<< parameters.ruby_version >>-node-browsers
|
141
|
+
environment:
|
142
|
+
GEM_HOME: /home/circleci/geoblacklight/vendor/bundle
|
143
|
+
BUNDLE_PATH: /home/circleci/geoblacklight/vendor/bundle
|
144
|
+
BUNDLE_JOBS: 4
|
145
|
+
BUNDLE_RETRY: 3
|
146
|
+
RAILS_ENV: test
|
147
|
+
RACK_ENV: test
|
148
|
+
RAILS_VERSION: <<parameters.rails_version>>
|
129
149
|
steps:
|
130
150
|
- checkout
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
key: geoblacklight-bundle-5-2-3-{{ checksum "geoblacklight.gemspec" }}-{{ checksum "Gemfile" }}-3f5eff
|
151
|
+
- restore_bundle_cache:
|
152
|
+
ruby_version: << parameters.ruby_version >>
|
153
|
+
rails_version: << parameters.rails_version >>
|
135
154
|
# Install gems and run rubocop
|
136
155
|
- run: bundle check || bundle install
|
137
156
|
- run: bundle exec rake rubocop
|
157
|
+
|
158
|
+
coverage_report:
|
159
|
+
working_directory: ~/geoblacklight
|
160
|
+
parameters:
|
161
|
+
ruby_version:
|
162
|
+
type: string
|
163
|
+
default: '2.7.1'
|
164
|
+
rails_version:
|
165
|
+
type: string
|
166
|
+
default: '6.0.3.2'
|
167
|
+
docker:
|
168
|
+
- image: circleci/ruby:<< parameters.ruby_version >>-node-browsers
|
169
|
+
environment:
|
170
|
+
GEM_HOME: /home/circleci/geoblacklight/vendor/bundle
|
171
|
+
BUNDLE_PATH: /home/circleci/geoblacklight/vendor/bundle
|
172
|
+
BUNDLE_JOBS: 4
|
173
|
+
BUNDLE_RETRY: 3
|
174
|
+
RAILS_ENV: test
|
175
|
+
RACK_ENV: test
|
176
|
+
RAILS_VERSION: <<parameters.rails_version>>
|
177
|
+
steps:
|
178
|
+
- checkout
|
179
|
+
- attach_workspace:
|
180
|
+
at: '~/geoblacklight'
|
181
|
+
- restore_bundle_cache:
|
182
|
+
ruby_version: << parameters.ruby_version >>
|
183
|
+
rails_version: << parameters.rails_version >>
|
184
|
+
# Install gems and check coverage
|
185
|
+
- run: bundle check || bundle install
|
186
|
+
- run:
|
187
|
+
name: Merge and check coverage
|
188
|
+
command: |
|
189
|
+
RAILS_ENV=test bundle exec ruby ./bin/coverage.rb
|
190
|
+
- store_artifacts:
|
191
|
+
path: ~/geoblacklight/coverage
|
192
|
+
destination: coverage
|
193
|
+
|
138
194
|
workflows:
|
139
|
-
version: 2
|
140
|
-
|
195
|
+
version: 2.1
|
196
|
+
build:
|
141
197
|
jobs:
|
142
|
-
-
|
143
|
-
|
198
|
+
- build:
|
199
|
+
ruby_version: 2.7.1
|
200
|
+
rails_version: 6.0.3.2
|
201
|
+
coverage: true
|
202
|
+
name: "ruby2-7_rails6-0"
|
203
|
+
- build:
|
204
|
+
ruby_version: 2.6.6
|
205
|
+
rails_version: 6.0.3.2
|
206
|
+
name: "ruby2-6_rails6-0"
|
207
|
+
- build:
|
208
|
+
ruby_version: 2.7.1
|
209
|
+
rails_version: 5.2.4.3
|
210
|
+
name: "ruby2-7_rails5-2"
|
211
|
+
- build:
|
212
|
+
ruby_version: 2.6.6
|
213
|
+
rails_version: 5.2.4.3
|
214
|
+
name: "ruby2-6_rails5-2"
|
144
215
|
- rubocop:
|
145
216
|
requires:
|
146
|
-
-
|
217
|
+
- ruby2-7_rails6-0
|
218
|
+
- coverage_report:
|
219
|
+
requires:
|
220
|
+
- ruby2-7_rails6-0
|
221
|
+
nightly:
|
222
|
+
triggers:
|
223
|
+
- schedule:
|
224
|
+
cron: "0 0 * * *"
|
225
|
+
filters:
|
226
|
+
branches:
|
227
|
+
only:
|
228
|
+
- master
|
229
|
+
jobs:
|
230
|
+
- build:
|
231
|
+
ruby_version: 2.7.1
|
232
|
+
rails_version: 6.0.3.2
|
233
|
+
coverage: true
|
234
|
+
name: "ruby2-7_rails6-0"
|
235
|
+
- build:
|
236
|
+
ruby_version: 2.6.6
|
237
|
+
rails_version: 6.0.3.2
|
238
|
+
name: "ruby2-6_rails6-0"
|
239
|
+
- build:
|
240
|
+
ruby_version: 2.7.1
|
241
|
+
rails_version: 5.2.4.3
|
242
|
+
name: "ruby2-7_rails5-2"
|
243
|
+
- build:
|
244
|
+
ruby_version: 2.6.6
|
245
|
+
rails_version: 5.2.4.3
|
246
|
+
name: "ruby2-6_rails5-2"
|
247
|
+
- rubocop:
|
248
|
+
requires:
|
249
|
+
- ruby2-7_rails6-0
|
250
|
+
- coverage_report:
|
251
|
+
requires:
|
252
|
+
- ruby2-7_rails6-0
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -9,17 +9,16 @@ Rails:
|
|
9
9
|
Enabled: true
|
10
10
|
|
11
11
|
AllCops:
|
12
|
-
TargetRubyVersion: 2.
|
12
|
+
TargetRubyVersion: 2.7
|
13
13
|
DisplayCopNames: true
|
14
|
-
Include:
|
15
|
-
- '**/Rakefile'
|
16
14
|
Exclude:
|
17
|
-
- 'db/**/*'
|
18
|
-
- 'vendor/**/*'
|
19
15
|
- '.internal_test_app/**/*'
|
20
|
-
- '
|
16
|
+
- 'db/**/*'
|
21
17
|
- 'geoblacklight.gemspec'
|
22
18
|
- 'Gemfile'
|
19
|
+
- 'lib/generators/geoblacklight/templates/**/*'
|
20
|
+
- 'tmp/**/*'
|
21
|
+
- 'vendor/**/*'
|
23
22
|
|
24
23
|
Layout/DotPosition:
|
25
24
|
Description: Checks the position of the dot in multi-line method calls.
|
@@ -30,21 +29,26 @@ Layout/DotPosition:
|
|
30
29
|
- leading
|
31
30
|
- trailing
|
32
31
|
|
33
|
-
|
32
|
+
Layout/LineLength:
|
33
|
+
Max: 115
|
34
34
|
Exclude:
|
35
|
-
- '
|
36
|
-
|
37
|
-
Metrics/LineLength:
|
38
|
-
Max: 100
|
39
|
-
Exclude:
|
40
|
-
- 'spec/**/*'
|
41
|
-
- 'Rakefile'
|
35
|
+
- 'app/models/concerns/geoblacklight/spatial_search_behavior.rb'
|
36
|
+
- 'bin/coverage.rb'
|
42
37
|
- 'lib/generators/geoblacklight/install_generator.rb'
|
43
38
|
- 'lib/tasks/geoblacklight.rake'
|
44
|
-
- '
|
39
|
+
- 'Rakefile'
|
40
|
+
- 'spec/**/*'
|
41
|
+
|
42
|
+
Metrics/BlockLength:
|
43
|
+
Exclude:
|
44
|
+
- 'lib/tasks/geoblacklight.rake'
|
45
|
+
- 'Rakefile'
|
46
|
+
- 'spec/**/*'
|
45
47
|
|
46
48
|
Metrics/MethodLength:
|
47
49
|
Max: 16
|
50
|
+
Exclude:
|
51
|
+
- 'lib/geoblacklight/metadata/base.rb'
|
48
52
|
|
49
53
|
Metrics/ModuleLength:
|
50
54
|
Exclude:
|
data/.rubocop_todo.yml
CHANGED
@@ -1,58 +1,11 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2020-08-07 13:49:06 -0500 using RuboCop version 0.85.1.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
|
-
# Offense count: 16
|
10
|
-
# Cop supports --auto-correct.
|
11
|
-
# Configuration parameters: Width, IgnoredPatterns.
|
12
|
-
Layout/IndentationWidth:
|
13
|
-
Exclude:
|
14
|
-
- 'app/controllers/download_controller.rb'
|
15
|
-
- 'app/controllers/relation_controller.rb'
|
16
|
-
- 'app/controllers/wms_controller.rb'
|
17
|
-
- 'app/helpers/carto_helper.rb'
|
18
|
-
- 'app/models/concerns/geoblacklight/solr_document.rb'
|
19
|
-
- 'app/models/concerns/geoblacklight/solr_document/finder.rb'
|
20
|
-
- 'lib/geoblacklight/bounding_box.rb'
|
21
|
-
- 'lib/geoblacklight/download.rb'
|
22
|
-
- 'lib/geoblacklight/metadata/base.rb'
|
23
|
-
- 'lib/geoblacklight/metadata/fgdc.rb'
|
24
|
-
- 'lib/geoblacklight/metadata/iso19139.rb'
|
25
|
-
- 'lib/geoblacklight/metadata_transformer/base.rb'
|
26
|
-
- 'lib/geoblacklight/reference.rb'
|
27
|
-
- 'lib/geoblacklight/references.rb'
|
28
|
-
- 'lib/tasks/geoblacklight.rake'
|
29
|
-
|
30
|
-
# Offense count: 1
|
31
|
-
# Cop supports --auto-correct.
|
32
|
-
# Configuration parameters: AllowForAlignment.
|
33
|
-
Layout/SpaceBeforeFirstArg:
|
34
|
-
Exclude:
|
35
|
-
- 'app/views/relation/index.json.jbuilder'
|
36
|
-
|
37
|
-
# Offense count: 1
|
38
|
-
# Cop supports --auto-correct.
|
39
|
-
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
40
|
-
Lint/UnusedBlockArgument:
|
41
|
-
Exclude:
|
42
|
-
- 'lib/tasks/geoblacklight.rake'
|
43
|
-
|
44
|
-
# Offense count: 46
|
45
|
-
# Configuration parameters: CountComments, ExcludedMethods.
|
46
|
-
Metrics/BlockLength:
|
47
|
-
Max: 227
|
48
|
-
|
49
|
-
# Offense count: 1
|
50
|
-
# Cop supports --auto-correct.
|
51
|
-
# Configuration parameters: AutoCorrect.
|
52
|
-
Performance/HashEachMethods:
|
53
|
-
Exclude:
|
54
|
-
- 'app/presenters/geoblacklight/document_presenter.rb'
|
55
|
-
|
56
9
|
# Offense count: 2
|
57
10
|
# Configuration parameters: CustomIncludeMethods.
|
58
11
|
RSpec/EmptyExampleGroup:
|
@@ -60,29 +13,14 @@ RSpec/EmptyExampleGroup:
|
|
60
13
|
- 'spec/views/catalog/_document_split.html.erb_spec.rb'
|
61
14
|
- 'spec/views/catalog/_index_split.html.erb_spec.rb'
|
62
15
|
|
63
|
-
# Offense count:
|
64
|
-
# Configuration parameters: EnforcedStyle.
|
65
|
-
# SupportedStyles: implicit, each, example
|
66
|
-
RSpec/HookArgument:
|
67
|
-
Exclude:
|
68
|
-
- 'spec/spec_helper.rb'
|
69
|
-
|
70
|
-
# Offense count: 8
|
71
|
-
RSpec/LeadingSubject:
|
72
|
-
Exclude:
|
73
|
-
- 'spec/lib/geoblacklight/document_presenter_spec.rb'
|
74
|
-
- 'spec/lib/geoblacklight/metadata_transformer/base_spec.rb'
|
75
|
-
- 'spec/lib/geoblacklight/metadata_transformer/fgdc_spec.rb'
|
76
|
-
- 'spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb'
|
77
|
-
- 'spec/lib/geoblacklight/metadata_transformer_spec.rb'
|
78
|
-
|
79
|
-
# Offense count: 49
|
16
|
+
# Offense count: 48
|
80
17
|
# Configuration parameters: .
|
81
18
|
# SupportedStyles: have_received, receive
|
82
19
|
RSpec/MessageSpies:
|
83
20
|
EnforcedStyle: receive
|
84
21
|
|
85
|
-
# Offense count:
|
22
|
+
# Offense count: 29
|
23
|
+
# Configuration parameters: IgnoreSharedExamples.
|
86
24
|
RSpec/NamedSubject:
|
87
25
|
Exclude:
|
88
26
|
- 'spec/lib/geoblacklight/metadata/base_spec.rb'
|
@@ -93,65 +31,45 @@ RSpec/NamedSubject:
|
|
93
31
|
- 'spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb'
|
94
32
|
- 'spec/models/concerns/geoblacklight/spatial_search_behavior_spec.rb'
|
95
33
|
|
96
|
-
# Offense count:
|
97
|
-
RSpec/RepeatedDescription:
|
98
|
-
Exclude:
|
99
|
-
- 'spec/features/esri_viewer_spec.rb'
|
100
|
-
- 'spec/features/search_results_map_spec.rb'
|
101
|
-
- 'spec/lib/geoblacklight/references_spec.rb'
|
102
|
-
|
103
|
-
# Offense count: 2
|
104
|
-
RSpec/RepeatedExample:
|
105
|
-
Exclude:
|
106
|
-
- 'spec/features/esri_viewer_spec.rb'
|
107
|
-
|
108
|
-
# Offense count: 2
|
34
|
+
# Offense count: 4
|
109
35
|
RSpec/SubjectStub:
|
110
36
|
Exclude:
|
37
|
+
- 'spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb'
|
111
38
|
- 'spec/models/concerns/geoblacklight/spatial_search_behavior_spec.rb'
|
112
39
|
|
113
|
-
# Offense count:
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
40
|
+
# Offense count: 9
|
41
|
+
# Configuration parameters: EnforcedStyle.
|
42
|
+
# SupportedStyles: slashes, arguments
|
43
|
+
# Rails/FilePath:
|
44
|
+
# Exclude:
|
45
|
+
# - 'lib/geoblacklight/download.rb'
|
46
|
+
# - 'lib/tasks/geoblacklight.rake'
|
47
|
+
# - 'spec/lib/geoblacklight/download_spec.rb'
|
48
|
+
# - 'spec/lib/geoblacklight/metadata_transformer/fgdc_spec.rb'
|
49
|
+
# - 'spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb'
|
50
|
+
# - 'spec/tasks/geoblacklight_spec.rb'
|
121
51
|
|
122
|
-
# Offense count:
|
52
|
+
# Offense count: 6
|
123
53
|
Rails/OutputSafety:
|
124
54
|
Exclude:
|
125
55
|
- 'app/controllers/download_controller.rb'
|
126
56
|
- 'app/helpers/geoblacklight_helper.rb'
|
127
|
-
- 'lib/geoblacklight/view_helper_override.rb'
|
128
57
|
|
129
|
-
# Offense count:
|
58
|
+
# Offense count: 6
|
130
59
|
# Cop supports --auto-correct.
|
131
|
-
|
60
|
+
# Configuration parameters: Include.
|
61
|
+
# Include: **/Rakefile, **/*.rake
|
62
|
+
Rails/RakeEnvironment:
|
132
63
|
Exclude:
|
64
|
+
- 'lib/capistrano/tasks/**/*.rake'
|
65
|
+
- 'Rakefile'
|
133
66
|
- 'lib/tasks/geoblacklight.rake'
|
134
67
|
|
135
68
|
# Offense count: 1
|
136
|
-
#
|
137
|
-
|
138
|
-
# SupportedStyles: assign_to_condition, assign_inside_condition
|
139
|
-
Style/ConditionalAssignment:
|
69
|
+
# Configuration parameters: MinBodyLength.
|
70
|
+
Style/GuardClause:
|
140
71
|
Exclude:
|
141
|
-
- '
|
142
|
-
|
143
|
-
# Offense count: 2
|
144
|
-
# Cop supports --auto-correct.
|
145
|
-
Style/EmptyLiteral:
|
146
|
-
Exclude:
|
147
|
-
- 'spec/models/concerns/geoblacklight/spatial_search_behavior_spec.rb'
|
148
|
-
|
149
|
-
# Offense count: 128
|
150
|
-
# Cop supports --auto-correct.
|
151
|
-
# Configuration parameters: EnforcedStyle.
|
152
|
-
# SupportedStyles: when_needed, always, never
|
153
|
-
Style/FrozenStringLiteralComment:
|
154
|
-
Enabled: false
|
72
|
+
- 'lib/generators/geoblacklight/assets_generator.rb'
|
155
73
|
|
156
74
|
# Offense count: 3
|
157
75
|
# Cop supports --auto-correct.
|
@@ -162,56 +80,7 @@ Style/HashSyntax:
|
|
162
80
|
- 'lib/tasks/geoblacklight.rake'
|
163
81
|
|
164
82
|
# Offense count: 2
|
165
|
-
Style/
|
83
|
+
Style/MissingRespondToMissing:
|
166
84
|
Exclude:
|
167
85
|
- 'app/models/concerns/geoblacklight/solr_document.rb'
|
168
86
|
- 'lib/geoblacklight/references.rb'
|
169
|
-
|
170
|
-
# Offense count: 2
|
171
|
-
# Cop supports --auto-correct.
|
172
|
-
Style/MultilineIfModifier:
|
173
|
-
Exclude:
|
174
|
-
- 'app/helpers/geoblacklight_helper.rb'
|
175
|
-
- 'lib/geoblacklight/references.rb'
|
176
|
-
|
177
|
-
# Offense count: 2
|
178
|
-
# Cop supports --auto-correct.
|
179
|
-
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
180
|
-
# SupportedStyles: predicate, comparison
|
181
|
-
Style/NumericPredicate:
|
182
|
-
Exclude:
|
183
|
-
- 'spec/**/*'
|
184
|
-
- 'lib/geoblacklight/relation/relation_response.rb'
|
185
|
-
|
186
|
-
# Offense count: 11
|
187
|
-
# Cop supports --auto-correct.
|
188
|
-
# Configuration parameters: PreferredDelimiters.
|
189
|
-
Style/PercentLiteralDelimiters:
|
190
|
-
Exclude:
|
191
|
-
- 'app/models/concerns/geoblacklight/solr_document/inspection.rb'
|
192
|
-
- 'spec/helpers/geoblacklight_helper_spec.rb'
|
193
|
-
- 'spec/lib/geoblacklight/document_presenter_spec.rb'
|
194
|
-
- 'spec/lib/geoblacklight/references_spec.rb'
|
195
|
-
- 'spec/lib/geoblacklight/wms_layer/feature_info_response_spec.rb'
|
196
|
-
- 'spec/spec_helper.rb'
|
197
|
-
|
198
|
-
# Offense count: 1
|
199
|
-
# Cop supports --auto-correct.
|
200
|
-
# Configuration parameters: ConvertCodeThatCanStartToReturnNil.
|
201
|
-
Style/SafeNavigation:
|
202
|
-
Exclude:
|
203
|
-
- 'app/models/concerns/geoblacklight/solr_document.rb'
|
204
|
-
|
205
|
-
# Offense count: 5
|
206
|
-
# Cop supports --auto-correct.
|
207
|
-
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
208
|
-
# SupportedStyles: single_quotes, double_quotes
|
209
|
-
Style/StringLiterals:
|
210
|
-
Exclude:
|
211
|
-
- 'lib/tasks/geoblacklight.rake'
|
212
|
-
|
213
|
-
# Offense count: 1
|
214
|
-
# Cop supports --auto-correct.
|
215
|
-
Style/UnneededInterpolation:
|
216
|
-
Exclude:
|
217
|
-
- 'lib/tasks/geoblacklight.rake'
|