geoblacklight 2.2.0 → 3.0.1
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 +212 -112
- data/.rubocop.yml +16 -14
- data/.rubocop_todo.yml +28 -151
- data/Gemfile +3 -8
- data/README.md +1 -1
- data/Rakefile +1 -0
- data/app/assets/images/blacklight/arrow-circle-down.svg +1 -2
- data/app/assets/images/blacklight/baruch-cuny.svg +1 -4
- data/app/assets/images/blacklight/berkeley.svg +1 -4
- data/app/assets/images/blacklight/book.svg +1 -4
- data/app/assets/images/blacklight/bookmark.svg +1 -4
- data/app/assets/images/blacklight/cd-rom.svg +1 -4
- data/app/assets/images/blacklight/chicago.svg +1 -4
- 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 +1 -4
- data/app/assets/images/blacklight/cornell.svg +1 -4
- data/app/assets/images/blacklight/dvd-rom.svg +1 -4
- data/app/assets/images/blacklight/email.svg +1 -4
- data/app/assets/images/blacklight/esri-globe.svg +1 -4
- data/app/assets/images/blacklight/globe.svg +1 -2
- data/app/assets/images/blacklight/harvard.svg +1 -4
- data/app/assets/images/blacklight/home.svg +1 -2
- data/app/assets/images/blacklight/illinois.svg +1 -4
- data/app/assets/images/blacklight/image.svg +1 -4
- data/app/assets/images/blacklight/indiana.svg +1 -4
- data/app/assets/images/blacklight/iowa.svg +1 -4
- data/app/assets/images/blacklight/leaf.svg +1 -4
- data/app/assets/images/blacklight/lewis-clark.svg +1 -4
- data/app/assets/images/blacklight/line.svg +1 -4
- data/app/assets/images/blacklight/map-marker.svg +1 -4
- data/app/assets/images/blacklight/map.svg +1 -4
- data/app/assets/images/blacklight/maryland.svg +1 -4
- data/app/assets/images/blacklight/massgis.svg +1 -4
- data/app/assets/images/blacklight/metadata.svg +1 -4
- data/app/assets/images/blacklight/michigan-state.svg +1 -4
- data/app/assets/images/blacklight/michigan.svg +1 -4
- data/app/assets/images/blacklight/minnesota.svg +1 -4
- data/app/assets/images/blacklight/mit.svg +1 -4
- data/app/assets/images/blacklight/mixed.svg +1 -4
- data/app/assets/images/blacklight/multilinestring.svg +1 -4
- data/app/assets/images/blacklight/multipoint.svg +1 -4
- data/app/assets/images/blacklight/multipolygon.svg +1 -4
- data/app/assets/images/blacklight/nyu.svg +1 -4
- data/app/assets/images/blacklight/ohio-state.svg +1 -4
- data/app/assets/images/blacklight/pagelines-brands.svg +1 -4
- data/app/assets/images/blacklight/paper-map.svg +1 -4
- data/app/assets/images/blacklight/penn-state.svg +1 -4
- data/app/assets/images/blacklight/point.svg +1 -4
- data/app/assets/images/blacklight/polygon.svg +1 -4
- data/app/assets/images/blacklight/polyline.svg +1 -4
- data/app/assets/images/blacklight/princeton.svg +1 -4
- data/app/assets/images/blacklight/public.svg +1 -4
- data/app/assets/images/blacklight/purdue.svg +1 -4
- data/app/assets/images/blacklight/raster.svg +1 -4
- data/app/assets/images/blacklight/restricted.svg +1 -4
- data/app/assets/images/blacklight/sms.svg +1 -4
- data/app/assets/images/blacklight/stanford.svg +1 -4
- data/app/assets/images/blacklight/table.svg +1 -4
- data/app/assets/images/blacklight/tags.svg +1 -2
- data/app/assets/images/blacklight/texas.svg +1 -4
- data/app/assets/images/blacklight/tufts.svg +1 -4
- data/app/assets/images/blacklight/ucla.svg +1 -4
- data/app/assets/images/blacklight/uva.svg +1 -4
- data/app/assets/images/blacklight/web_services.svg +1 -4
- data/app/assets/images/blacklight/wisconsin.svg +1 -4
- 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/home.js +1 -1
- data/app/assets/javascripts/geoblacklight/modules/item.js +20 -1
- 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/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} +1 -10
- 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/item.scss +13 -0
- data/app/assets/stylesheets/geoblacklight/modules/results.scss +26 -29
- data/app/assets/stylesheets/geoblacklight/modules/sidebar.scss +12 -42
- data/app/assets/stylesheets/geoblacklight/modules/toolbar.scss +17 -59
- 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 +36 -79
- data/app/models/concerns/geoblacklight/solr_document.rb +15 -9
- 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 +3 -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 +1 -1
- 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 +4 -1
- data/app/views/catalog/_index_split_default.html.erb +22 -14
- data/app/views/catalog/_show_default_viewer_container.html.erb +1 -1
- 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 +2 -5
- data/app/views/relation/_descendants.html.erb +3 -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 -3
- data/bin/coverage.rb +36 -0
- data/config/initializers/rails_config.rb +1 -0
- data/config/locales/geoblacklight.en.yml +46 -61
- data/geoblacklight.gemspec +5 -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 +4 -6
- 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 +1 -0
- 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 +2 -2
- data/lib/geoblacklight/exceptions.rb +1 -0
- data/lib/geoblacklight/geoblacklight_helper_behavior.rb +1 -0
- data/lib/geoblacklight/item_viewer.rb +1 -0
- data/lib/geoblacklight/metadata.rb +1 -0
- data/lib/geoblacklight/metadata/base.rb +3 -2
- 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 +1 -0
- 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/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 -12
- data/spec/features/help_text_spec.rb +1 -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 +1 -0
- data/spec/features/missing_metadata_spec.rb +13 -0
- data/spec/features/multiple_downloads_spec.rb +15 -0
- data/spec/features/oembed_spec.rb +1 -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 +1 -6
- 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 +4 -3
- data/spec/features/suppressed_records_spec.rb +1 -0
- data/spec/features/web_services_modal_spec.rb +1 -0
- 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/helpers/arcgis_helper_spec.rb +1 -0
- data/spec/helpers/carto_helper_spec.rb +1 -0
- data/spec/helpers/geoblacklight_helper_spec.rb +51 -5
- data/spec/javascripts/geoblacklight/viewers/esri/tiled_map_layer_spec.js +12 -0
- data/spec/javascripts/geoblacklight_spec.js +0 -4
- 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 +4 -3
- 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 +1 -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 +27 -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 +12 -9
- 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 +69 -79
- 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 -3
- data/app/views/catalog/_show_tools.html.erb +0 -25
- data/lib/generators/geoblacklight/templates/geoblacklight.scss +0 -4
- data/vendor/assets/javascripts/readmore.js +0 -618
- data/vendor/assets/javascripts/readmore.js.map +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 657e26544a89059dae74b6b1b07e5f6c2709f88d1a85579d7b3e3851a6168a11
|
4
|
+
data.tar.gz: 202d780bf79eca6c8e9bcb1f859be4fe0339f60d0cc0452292c993a4cd9f910d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9281c9020318148fb1d1928b1ed773dcc1d5175b53260a771ff9a325c3f96db9f664210602a7c7d553f7efb27f7322023fb06295b416434a07d6b65ff92a0cb
|
7
|
+
data.tar.gz: 92c1a0ae795fb48b86a308b4d26e4a6f70c652ba3047f93ede1124f0fee3c64c68bf6933147fdf4705918d88ff524c96757a6f8bf64b683387aca0c51e460ab9
|
data/.circleci/config.yml
CHANGED
@@ -1,152 +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}}'
|
44
|
-
- run:
|
45
|
-
name: Seed Solr
|
46
|
-
command: |
|
47
|
-
cd .internal_test_app
|
48
|
-
bundle exec rake geoblacklight:index:seed
|
49
|
-
bundle exec rake geoblacklight:downloads:mkdir
|
76
|
+
# Generate the internal test app
|
50
77
|
- run:
|
51
|
-
name:
|
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
|
-
- run:
|
61
|
-
name: Run the Teaspoon test suites
|
62
|
-
command: bundle exec rake teaspoon
|
63
|
-
# Store bundle cache
|
64
|
-
- type: cache-save
|
65
|
-
name: Store bundle cache
|
66
|
-
key: geoblacklight-bundle-5-2-0-{{ checksum "geoblacklight.gemspec" }}-{{ checksum "Gemfile" }}-3f5eff
|
67
|
-
paths:
|
68
|
-
- /home/circleci/geoblacklight/vendor/bundle
|
69
|
-
rails_5_1_7:
|
70
|
-
working_directory: ~/geoblacklight
|
71
|
-
docker:
|
72
|
-
- image: circleci/ruby:2.4.4-node-browsers
|
73
|
-
environment:
|
74
|
-
BUNDLE_JOBS: 3
|
75
|
-
BUNDLE_RETRY: 3
|
76
|
-
GEM_HOME: /home/circleci/geoblacklight/vendor/bundle
|
77
|
-
BUNDLE_PATH: /home/circleci/geoblacklight/vendor/bundle
|
78
|
-
RAILS_ENV: test
|
79
|
-
RAILS_VERSION: 5.1.7
|
80
|
-
- image: solr:7-alpine
|
81
|
-
command: bin/solr -cloud -noprompt -f -p 8983
|
82
|
-
steps:
|
83
|
-
- checkout
|
84
|
-
# Restore bundle cache
|
85
|
-
- type: cache-restore
|
86
|
-
name: Restore bundle cache
|
87
|
-
key: geoblacklight-bundle-5-1-7-{{ checksum "Gemfile" }}-{{ checksum "geoblacklight.gemspec" }}-3f5eff
|
88
|
-
# Install gems and run specs
|
89
|
-
- run: bundle check || bundle install
|
90
|
-
# Run the test suites
|
91
|
-
- 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 >>
|
92
84
|
- run:
|
93
85
|
name: Wait for Solr
|
94
|
-
command: dockerize -wait tcp://localhost
|
86
|
+
command: dockerize -wait tcp://localhost:<<parameters.solr_port>> -timeout 1m
|
95
87
|
- run:
|
96
88
|
name: Load config into solr
|
97
89
|
command: |
|
98
90
|
cd .internal_test_app/solr/conf
|
99
91
|
zip -1 -r solr_config.zip ./*
|
100
92
|
curl -H "Content-type:application/octet-stream" --data-binary @solr_config.zip "http://localhost:8983/solr/admin/configs?action=UPLOAD&name=solrconfig"
|
101
|
-
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}}'
|
102
94
|
- run:
|
103
95
|
name: Seed Solr
|
104
96
|
command: |
|
105
97
|
cd .internal_test_app
|
98
|
+
bundle check || bundle install
|
106
99
|
bundle exec rake geoblacklight:index:seed
|
107
100
|
bundle exec rake geoblacklight:downloads:mkdir
|
108
|
-
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
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
|
118
126
|
- run:
|
119
127
|
name: Run the Teaspoon test suites
|
120
128
|
command: bundle exec rake teaspoon
|
121
|
-
|
122
|
-
- type: cache-save
|
123
|
-
name: Store bundle cache
|
124
|
-
key: geoblacklight-bundle-5-1-7-{{ checksum "Gemfile" }}-{{ checksum "geoblacklight.gemspec" }}-3f5eff
|
125
|
-
paths:
|
126
|
-
- /home/circleci/geoblacklight/vendor/bundle
|
129
|
+
|
127
130
|
rubocop:
|
128
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'
|
129
139
|
docker:
|
130
|
-
- image: circleci/ruby
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
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>>
|
135
149
|
steps:
|
136
150
|
- checkout
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
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 >>
|
141
154
|
# Install gems and run rubocop
|
142
155
|
- run: bundle check || bundle install
|
143
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
|
+
|
144
194
|
workflows:
|
145
|
-
version: 2
|
146
|
-
|
195
|
+
version: 2.1
|
196
|
+
build:
|
147
197
|
jobs:
|
148
|
-
-
|
149
|
-
|
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"
|
150
215
|
- rubocop:
|
151
216
|
requires:
|
152
|
-
-
|
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/.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,18 +29,21 @@ Layout/DotPosition:
|
|
30
29
|
- leading
|
31
30
|
- trailing
|
32
31
|
|
33
|
-
|
34
|
-
Exclude:
|
35
|
-
- 'spec/helpers/geoblacklight_helper_spec.rb'
|
36
|
-
|
37
|
-
Metrics/LineLength:
|
32
|
+
Layout/LineLength:
|
38
33
|
Max: 115
|
39
34
|
Exclude:
|
40
|
-
- '
|
41
|
-
- '
|
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
|
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: 47
|
45
|
-
# Configuration parameters: CountComments, ExcludedMethods.
|
46
|
-
Metrics/BlockLength:
|
47
|
-
Max: 247
|
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:
|
140
|
-
Exclude:
|
141
|
-
- 'app/controllers/download_controller.rb'
|
142
|
-
|
143
|
-
# Offense count: 2
|
144
|
-
# Cop supports --auto-correct.
|
145
|
-
Style/EmptyLiteral:
|
69
|
+
# Configuration parameters: MinBodyLength.
|
70
|
+
Style/GuardClause:
|
146
71
|
Exclude:
|
147
|
-
- '
|
148
|
-
|
149
|
-
# Offense count: 137
|
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,48 +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: 10
|
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
|
-
|
197
|
-
# Offense count: 6
|
198
|
-
# Cop supports --auto-correct.
|
199
|
-
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
200
|
-
# SupportedStyles: single_quotes, double_quotes
|
201
|
-
Style/StringLiterals:
|
202
|
-
Exclude:
|
203
|
-
- 'lib/tasks/geoblacklight.rake'
|
204
|
-
|
205
|
-
# Offense count: 1
|
206
|
-
# Cop supports --auto-correct.
|
207
|
-
Style/UnneededInterpolation:
|
208
|
-
Exclude:
|
209
|
-
- 'lib/tasks/geoblacklight.rake'
|