geoblacklight 2.1.1 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.circleci/config.yml +117 -99
- data/.gitignore +3 -1
- data/.rubocop.yml +4 -2
- data/.rubocop_todo.yml +11 -198
- data/Gemfile +3 -8
- data/README.md +5 -6
- 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/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/viewers/oembed.js +13 -0
- data/app/assets/stylesheets/geoblacklight/_blacklight_overrides.scss +8 -9
- data/app/assets/stylesheets/geoblacklight/modules/icon-customization.scss +49 -59
- data/app/assets/stylesheets/geoblacklight/modules/item.scss +16 -0
- data/app/assets/stylesheets/geoblacklight/modules/results.scss +59 -28
- data/app/assets/stylesheets/geoblacklight/modules/toolbar.scss +4 -0
- data/app/helpers/geoblacklight_helper.rb +97 -7
- data/app/models/concerns/geoblacklight/solr_document.rb +12 -3
- data/app/models/concerns/geoblacklight/solr_document/citation.rb +28 -0
- data/app/models/concerns/geoblacklight/spatial_search_behavior.rb +5 -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/_exports.html.erb +2 -10
- data/app/views/catalog/_home_text.html.erb +5 -5
- data/app/views/catalog/_index_split_default.html.erb +18 -10
- 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 +2 -1
- data/app/views/relation/_descendants.html.erb +2 -1
- data/app/views/shared/_header_navbar.html.erb +3 -1
- data/config/locales/geoblacklight.en.yml +72 -0
- data/geoblacklight.gemspec +4 -4
- data/lib/generators/geoblacklight/install_generator.rb +5 -0
- data/lib/generators/geoblacklight/templates/catalog_controller.rb +3 -0
- data/lib/generators/geoblacklight/templates/geoblacklight.js +0 -1
- data/lib/generators/geoblacklight/templates/package.json +1 -1
- data/lib/generators/geoblacklight/templates/settings.yml +23 -0
- data/lib/generators/geoblacklight/webpacker_generator.rb +1 -1
- data/lib/geoblacklight/catalog_helper_override.rb +1 -1
- data/lib/geoblacklight/constants.rb +3 -2
- data/lib/geoblacklight/download.rb +4 -4
- data/lib/geoblacklight/item_viewer.rb +5 -1
- data/lib/geoblacklight/metadata/base.rb +15 -10
- data/lib/geoblacklight/reference.rb +2 -1
- data/lib/geoblacklight/relation/ancestors.rb +1 -1
- data/lib/geoblacklight/relation/descendants.rb +1 -1
- data/lib/geoblacklight/version.rb +1 -1
- data/lib/geoblacklight/view_helper_override.rb +1 -1
- data/lib/geoblacklight/wms_layer.rb +2 -2
- data/lib/tasks/geoblacklight.rake +1 -1
- data/package.json +4 -0
- data/schema/references.md +2 -1
- data/solr/conf/schema.xml +5 -5
- data/spec/controllers/download_controller_spec.rb +1 -1
- data/spec/controllers/wms_controller_spec.rb +1 -1
- data/spec/features/configurable_basemap_spec.rb +9 -0
- data/spec/features/esri_viewer_spec.rb +0 -1
- data/spec/features/exports_spec.rb +9 -0
- data/spec/features/help_text_spec.rb +8 -0
- data/spec/features/metadata_panel_spec.rb +51 -8
- data/spec/features/missing_metadata_spec.rb +12 -0
- data/spec/features/oembed_spec.rb +9 -0
- data/spec/features/relations_spec.rb +2 -1
- data/spec/features/search_results_map_spec.rb +1 -1
- data/spec/features/split_view.html.erb_spec.rb +3 -3
- data/spec/features/suppressed_records_spec.rb +14 -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/oembed.json +24 -0
- data/spec/helpers/geoblacklight_helper_spec.rb +43 -7
- data/spec/javascripts/metadata_download_button_spec.js +1 -1
- data/spec/lib/geoblacklight/download_spec.rb +2 -2
- data/spec/lib/geoblacklight/metadata/base_spec.rb +21 -7
- data/spec/lib/geoblacklight/reference_spec.rb +30 -0
- data/spec/lib/geoblacklight/relation/ancestors_spec.rb +1 -1
- data/spec/lib/geoblacklight/relation/descendants_spec.rb +1 -1
- data/spec/lib/geoblacklight/wms_layer_spec.rb +2 -2
- data/spec/models/concerns/geoblacklight/solr_document/citation_spec.rb +13 -0
- data/spec/models/concerns/geoblacklight/solr_document_spec.rb +46 -0
- data/spec/spec_helper.rb +8 -5
- data/spec/support/fixtures.rb +7 -0
- data/spec/tasks/geoblacklight_spec.rb +18 -0
- data/spec/test_app_templates/Gemfile.extra +1 -0
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +1 -1
- data/template.rb +1 -1
- data/vendor/assets/javascripts/readmore.js +0 -0
- data/vendor/assets/javascripts/readmore.min.js +0 -11
- data/vendor/assets/stylesheets/leaflet.css +0 -1
- metadata +126 -31
- data/app/assets/images/blacklight/logo.png +0 -0
- data/app/assets/javascripts/geoblacklight/modules/collapse.js +0 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ecb6ab2a7b58e2b177571c19ae7a50c699a409e8f1a561fd626732246959fc1a
|
|
4
|
+
data.tar.gz: d9d965e335b0132e5980705e7edc13c961efeb4746148c64d887cfdefdc3808a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5804c2bbf9122569450a7312b5046174913669fcf4b2162241f2541d7efea1e619f8554f97c7644871ca3088ce60d6a835d92c6836c1b46485b812d5d1ad1539
|
|
7
|
+
data.tar.gz: 1cacc9916d3f886093ece062ac7677ce7b83f64340494221ae7dba054c0c9ce89832b032c7b477c2d0e1f0be88ce5f2e77b6167bd28896a72f6e03013019c9bc
|
data/.circleci/config.yml
CHANGED
|
@@ -1,105 +1,74 @@
|
|
|
1
1
|
---
|
|
2
|
-
version: 2
|
|
2
|
+
version: 2.1
|
|
3
3
|
jobs:
|
|
4
|
-
|
|
4
|
+
build:
|
|
5
5
|
working_directory: ~/geoblacklight
|
|
6
|
+
parameters:
|
|
7
|
+
ruby_version:
|
|
8
|
+
type: string
|
|
9
|
+
default: '2.5.7'
|
|
10
|
+
solr_port:
|
|
11
|
+
type: string
|
|
12
|
+
default: '8983'
|
|
13
|
+
rails_version:
|
|
14
|
+
type: string
|
|
15
|
+
default: '5.2.4.3'
|
|
6
16
|
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
|
|
17
|
+
- image: circleci/ruby:<< parameters.ruby_version >>-node-browsers
|
|
17
18
|
- image: solr:7-alpine
|
|
18
|
-
command: bin/solr -cloud -noprompt -f -p
|
|
19
|
+
command: bin/solr -cloud -noprompt -f -p <<parameters.solr_port>>
|
|
20
|
+
environment:
|
|
21
|
+
GEM_HOME: /home/circleci/geoblacklight/vendor/bundle
|
|
22
|
+
BUNDLE_PATH: /home/circleci/geoblacklight/vendor/bundle
|
|
23
|
+
BUNDLE_JOBS: 4
|
|
24
|
+
BUNDLE_RETRY: 3
|
|
25
|
+
RAILS_ENV: test
|
|
26
|
+
RACK_ENV: test
|
|
27
|
+
RAILS_VERSION: <<parameters.rails_version>>
|
|
28
|
+
COVERAGE: true
|
|
29
|
+
parallelism: 4
|
|
19
30
|
steps:
|
|
20
31
|
- checkout
|
|
21
|
-
#
|
|
22
|
-
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
|
32
|
+
# Restore bundle and internal test app from the cache
|
|
33
|
+
- restore_cache:
|
|
34
|
+
keys:
|
|
35
|
+
- cachebust-2020-07-02-geoblacklight-bundle-{{ checksum "geoblacklight.gemspec" }}-{{ checksum "Gemfile" }}-<< parameters.ruby_version >>-<< parameters.rails_version >>
|
|
30
36
|
# Install gems
|
|
31
37
|
- run: bundle check || bundle install
|
|
32
|
-
#
|
|
33
|
-
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
38
|
+
# Store bundle cache
|
|
39
|
+
- save_cache:
|
|
40
|
+
key: cachebust-2020-07-02-geoblacklight-bundle-{{ checksum "geoblacklight.gemspec" }}-{{ checksum "Gemfile" }}-<< parameters.ruby_version >>-<< parameters.rails_version >>
|
|
41
|
+
paths:
|
|
42
|
+
- /home/circleci/geoblacklight/vendor/bundle
|
|
43
|
+
# Restore internal test app from the cache
|
|
44
|
+
- restore_cache:
|
|
45
|
+
keys:
|
|
46
|
+
- cachebust-2020-07-02-geoblacklight-internal-test-app-{{ checksum "geoblacklight.gemspec" }}-{{ checksum "Gemfile" }}-{{ checksum "spec/test_app_templates/Gemfile.extra" }}-<< parameters.ruby_version >>-<< parameters.rails_version >>
|
|
47
|
+
# Generate the internal test app
|
|
37
48
|
- run:
|
|
38
|
-
name:
|
|
49
|
+
name: Generate test app
|
|
39
50
|
command: |
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
|
52
|
-
command: |
|
|
53
|
-
cd .internal_test_app
|
|
54
|
-
rm config/webpacker.yml
|
|
55
|
-
bundle exec rails webpacker:install
|
|
56
|
-
bundle exec rails webpacker:compile
|
|
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
|
|
51
|
+
[ -e ./.internal_test_app ] || bundle exec rake engine_cart:generate
|
|
52
|
+
- save_cache:
|
|
53
|
+
name: Save test app cache
|
|
54
|
+
key: cachebust-2020-07-02-geoblacklight-internal-test-app-{{ checksum "geoblacklight.gemspec" }}-{{ checksum "Gemfile" }}-{{ checksum "spec/test_app_templates/Gemfile.extra" }}-<< parameters.ruby_version >>-<< parameters.rails_version >>
|
|
55
|
+
paths:
|
|
56
|
+
- ./.internal_test_app
|
|
89
57
|
- run:
|
|
90
58
|
name: Wait for Solr
|
|
91
|
-
command: dockerize -wait tcp://localhost
|
|
59
|
+
command: dockerize -wait tcp://localhost:<<parameters.solr_port>> -timeout 1m
|
|
92
60
|
- run:
|
|
93
61
|
name: Load config into solr
|
|
94
62
|
command: |
|
|
95
63
|
cd .internal_test_app/solr/conf
|
|
96
64
|
zip -1 -r solr_config.zip ./*
|
|
97
65
|
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
|
|
66
|
+
curl -H 'Content-type: application/json' http://localhost:<<parameters.solr_port>>/api/collections/ -d '{create: {name: blacklight-core, config: solrconfig, numShards: 1}}'
|
|
99
67
|
- run:
|
|
100
68
|
name: Seed Solr
|
|
101
69
|
command: |
|
|
102
70
|
cd .internal_test_app
|
|
71
|
+
bundle check || bundle install
|
|
103
72
|
bundle exec rake geoblacklight:index:seed
|
|
104
73
|
bundle exec rake geoblacklight:downloads:mkdir
|
|
105
74
|
- run:
|
|
@@ -111,36 +80,85 @@ jobs:
|
|
|
111
80
|
bundle exec rails webpacker:compile
|
|
112
81
|
- run:
|
|
113
82
|
name: Run the RSpec test suites
|
|
114
|
-
command: bundle exec
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
paths:
|
|
120
|
-
- /home/circleci/geoblacklight/vendor/bundle
|
|
83
|
+
command: bundle exec rspec $(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)
|
|
84
|
+
- run:
|
|
85
|
+
name: Run the Teaspoon test suites
|
|
86
|
+
command: bundle exec rake teaspoon
|
|
87
|
+
|
|
121
88
|
rubocop:
|
|
122
89
|
working_directory: ~/geoblacklight
|
|
90
|
+
parameters:
|
|
91
|
+
ruby_version:
|
|
92
|
+
type: string
|
|
93
|
+
default: '2.5.7'
|
|
94
|
+
rails_version:
|
|
95
|
+
type: string
|
|
96
|
+
default: '5.2.4.3'
|
|
123
97
|
docker:
|
|
124
|
-
- image: circleci/ruby
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
98
|
+
- image: circleci/ruby:<< parameters.ruby_version >>-node-browsers
|
|
99
|
+
environment:
|
|
100
|
+
GEM_HOME: /home/circleci/geoblacklight/vendor/bundle
|
|
101
|
+
BUNDLE_PATH: /home/circleci/geoblacklight/vendor/bundle
|
|
102
|
+
BUNDLE_JOBS: 4
|
|
103
|
+
BUNDLE_RETRY: 3
|
|
104
|
+
RAILS_ENV: test
|
|
105
|
+
RACK_ENV: test
|
|
106
|
+
RAILS_VERSION: <<parameters.rails_version>>
|
|
129
107
|
steps:
|
|
130
108
|
- checkout
|
|
131
109
|
# Restore bundle cache
|
|
132
|
-
-
|
|
133
|
-
|
|
134
|
-
|
|
110
|
+
- restore_cache:
|
|
111
|
+
keys:
|
|
112
|
+
- cachebust-2020-07-02-geoblacklight-bundle-{{ checksum "geoblacklight.gemspec" }}-{{ checksum "Gemfile" }}-<< parameters.ruby_version >>-<< parameters.rails_version >>
|
|
113
|
+
paths:
|
|
114
|
+
- /home/circleci/geoblacklight/vendor/bundle
|
|
135
115
|
# Install gems and run rubocop
|
|
136
116
|
- run: bundle check || bundle install
|
|
137
117
|
- run: bundle exec rake rubocop
|
|
118
|
+
|
|
138
119
|
workflows:
|
|
139
120
|
version: 2
|
|
140
|
-
|
|
121
|
+
build:
|
|
141
122
|
jobs:
|
|
142
|
-
-
|
|
143
|
-
|
|
123
|
+
- build:
|
|
124
|
+
ruby_version: 2.6.5
|
|
125
|
+
rails_version: 5.2.4.3
|
|
126
|
+
name: "ruby2-6_rails5-2"
|
|
127
|
+
- build:
|
|
128
|
+
ruby_version: 2.5.7
|
|
129
|
+
rails_version: 5.2.4.3
|
|
130
|
+
name: "ruby2-5_rails5-2"
|
|
131
|
+
- rubocop:
|
|
132
|
+
ruby_version: 2.6.5
|
|
133
|
+
rails_version: 5.2.4.3
|
|
134
|
+
name: "rubocop_ruby2-6_rails5-2"
|
|
135
|
+
- rubocop:
|
|
136
|
+
ruby_version: 2.5.7
|
|
137
|
+
rails_version: 5.2.4.3
|
|
138
|
+
name: "rubocop_ruby2-5_rails5-2"
|
|
139
|
+
|
|
140
|
+
nightly:
|
|
141
|
+
triggers:
|
|
142
|
+
- schedule:
|
|
143
|
+
cron: "0 0 * * *"
|
|
144
|
+
filters:
|
|
145
|
+
branches:
|
|
146
|
+
only:
|
|
147
|
+
- master
|
|
148
|
+
jobs:
|
|
149
|
+
- build:
|
|
150
|
+
ruby_version: 2.6.5
|
|
151
|
+
rails_version: 5.2.4.3
|
|
152
|
+
name: "ruby2-6_rails5-2"
|
|
153
|
+
- build:
|
|
154
|
+
ruby_version: 2.5.7
|
|
155
|
+
rails_version: 5.2.4.3
|
|
156
|
+
name: "ruby2-5_rails5-2"
|
|
157
|
+
- rubocop:
|
|
158
|
+
ruby_version: 2.6.5
|
|
159
|
+
rails_version: 5.2.4.3
|
|
160
|
+
name: "rubocop_ruby2-6_rails5-2"
|
|
144
161
|
- rubocop:
|
|
145
|
-
|
|
146
|
-
|
|
162
|
+
ruby_version: 2.5.7
|
|
163
|
+
rails_version: 5.2.4.3
|
|
164
|
+
name: "rubocop_ruby2-5_rails5-2"
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
|
@@ -9,7 +9,7 @@ Rails:
|
|
|
9
9
|
Enabled: true
|
|
10
10
|
|
|
11
11
|
AllCops:
|
|
12
|
-
TargetRubyVersion: 2.
|
|
12
|
+
TargetRubyVersion: 2.7
|
|
13
13
|
DisplayCopNames: true
|
|
14
14
|
Include:
|
|
15
15
|
- '**/Rakefile'
|
|
@@ -35,7 +35,7 @@ Metrics/BlockLength:
|
|
|
35
35
|
- 'spec/helpers/geoblacklight_helper_spec.rb'
|
|
36
36
|
|
|
37
37
|
Metrics/LineLength:
|
|
38
|
-
Max:
|
|
38
|
+
Max: 115
|
|
39
39
|
Exclude:
|
|
40
40
|
- 'spec/**/*'
|
|
41
41
|
- 'Rakefile'
|
|
@@ -45,6 +45,8 @@ Metrics/LineLength:
|
|
|
45
45
|
|
|
46
46
|
Metrics/MethodLength:
|
|
47
47
|
Max: 16
|
|
48
|
+
Exclude:
|
|
49
|
+
- 'lib/geoblacklight/metadata/base.rb'
|
|
48
50
|
|
|
49
51
|
Metrics/ModuleLength:
|
|
50
52
|
Exclude:
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,217 +1,30 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on
|
|
3
|
+
# on 2020-06-23 08:31:16 -0600 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
9
|
# 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
10
|
# Configuration parameters: CountComments, ExcludedMethods.
|
|
11
|
+
# ExcludedMethods: refine
|
|
46
12
|
Metrics/BlockLength:
|
|
47
|
-
Max:
|
|
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
|
-
# Offense count: 2
|
|
57
|
-
# Configuration parameters: CustomIncludeMethods.
|
|
58
|
-
RSpec/EmptyExampleGroup:
|
|
59
|
-
Exclude:
|
|
60
|
-
- 'spec/views/catalog/_document_split.html.erb_spec.rb'
|
|
61
|
-
- 'spec/views/catalog/_index_split.html.erb_spec.rb'
|
|
62
|
-
|
|
63
|
-
# Offense count: 1
|
|
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
|
|
80
|
-
# Configuration parameters: .
|
|
81
|
-
# SupportedStyles: have_received, receive
|
|
82
|
-
RSpec/MessageSpies:
|
|
83
|
-
EnforcedStyle: receive
|
|
84
|
-
|
|
85
|
-
# Offense count: 24
|
|
86
|
-
RSpec/NamedSubject:
|
|
87
|
-
Exclude:
|
|
88
|
-
- 'spec/lib/geoblacklight/metadata/base_spec.rb'
|
|
89
|
-
- 'spec/lib/geoblacklight/metadata_transformer/base_spec.rb'
|
|
90
|
-
- 'spec/lib/geoblacklight/metadata_transformer/fgdc_spec.rb'
|
|
91
|
-
- 'spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb'
|
|
92
|
-
- 'spec/lib/geoblacklight/metadata_transformer_spec.rb'
|
|
93
|
-
- 'spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb'
|
|
94
|
-
- 'spec/models/concerns/geoblacklight/spatial_search_behavior_spec.rb'
|
|
95
|
-
|
|
96
|
-
# Offense count: 6
|
|
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
|
|
109
|
-
RSpec/SubjectStub:
|
|
110
|
-
Exclude:
|
|
111
|
-
- 'spec/models/concerns/geoblacklight/spatial_search_behavior_spec.rb'
|
|
112
|
-
|
|
113
|
-
# Offense count: 7
|
|
114
|
-
Rails/FilePath:
|
|
115
|
-
Exclude:
|
|
116
|
-
- 'lib/geoblacklight/download.rb'
|
|
117
|
-
- 'lib/tasks/geoblacklight.rake'
|
|
118
|
-
- 'spec/lib/geoblacklight/download_spec.rb'
|
|
119
|
-
- 'spec/lib/geoblacklight/metadata_transformer/fgdc_spec.rb'
|
|
120
|
-
- 'spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb'
|
|
13
|
+
Max: 66
|
|
121
14
|
|
|
122
|
-
# Offense count:
|
|
123
|
-
Rails/OutputSafety:
|
|
124
|
-
Exclude:
|
|
125
|
-
- 'app/controllers/download_controller.rb'
|
|
126
|
-
- 'app/helpers/geoblacklight_helper.rb'
|
|
127
|
-
- 'lib/geoblacklight/view_helper_override.rb'
|
|
128
|
-
|
|
129
|
-
# Offense count: 1
|
|
15
|
+
# Offense count: 4
|
|
130
16
|
# Cop supports --auto-correct.
|
|
131
|
-
|
|
17
|
+
# Configuration parameters: Include.
|
|
18
|
+
# Include: **/Rakefile, **/*.rake
|
|
19
|
+
Rails/RakeEnvironment:
|
|
132
20
|
Exclude:
|
|
133
|
-
- 'lib/tasks
|
|
21
|
+
- 'lib/capistrano/tasks/**/*.rake'
|
|
22
|
+
- 'Rakefile'
|
|
134
23
|
|
|
135
24
|
# Offense count: 1
|
|
136
25
|
# Cop supports --auto-correct.
|
|
137
|
-
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
|
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:
|
|
146
|
-
Exclude:
|
|
147
|
-
- 'spec/models/concerns/geoblacklight/spatial_search_behavior_spec.rb'
|
|
148
|
-
|
|
149
|
-
# Offense count: 128
|
|
150
|
-
# Cop supports --auto-correct.
|
|
151
26
|
# Configuration parameters: EnforcedStyle.
|
|
152
|
-
# SupportedStyles:
|
|
27
|
+
# SupportedStyles: always, always_true, never
|
|
153
28
|
Style/FrozenStringLiteralComment:
|
|
154
|
-
Enabled: false
|
|
155
|
-
|
|
156
|
-
# Offense count: 3
|
|
157
|
-
# Cop supports --auto-correct.
|
|
158
|
-
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
|
159
|
-
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
|
160
|
-
Style/HashSyntax:
|
|
161
|
-
Exclude:
|
|
162
|
-
- 'lib/tasks/geoblacklight.rake'
|
|
163
|
-
|
|
164
|
-
# Offense count: 2
|
|
165
|
-
Style/MethodMissing:
|
|
166
|
-
Exclude:
|
|
167
|
-
- 'app/models/concerns/geoblacklight/solr_document.rb'
|
|
168
|
-
- '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
29
|
Exclude:
|
|
217
|
-
- '
|
|
30
|
+
- 'Rakefile'
|