geoblacklight 1.8.0 → 1.9.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 +109 -0
- data/.rubocop.yml +55 -24
- data/.rubocop_todo.yml +214 -0
- data/.solr_wrapper +3 -3
- data/CODE_OF_CONDUCT.md +76 -0
- data/CONTRIBUTING.md +14 -3
- data/Gemfile +2 -6
- data/README.md +1 -2
- data/Rakefile +34 -4
- data/app/assets/javascripts/geoblacklight/basemaps.js +49 -4
- data/app/assets/javascripts/geoblacklight/downloaders/downloader.js +12 -2
- data/app/assets/javascripts/geoblacklight/geoblacklight.js +1 -1
- data/app/assets/javascripts/geoblacklight/modules/geosearch.js +13 -1
- data/app/assets/javascripts/geoblacklight/modules/layer_opacity.js +6 -7
- data/app/assets/javascripts/geoblacklight/modules/util.js +1 -1
- data/app/assets/javascripts/geoblacklight/viewers/esri.js +2 -4
- data/app/assets/javascripts/geoblacklight/viewers/esri/dynamic_map_layer.js +3 -4
- data/app/assets/javascripts/geoblacklight/viewers/index_map.js +23 -14
- data/app/assets/javascripts/geoblacklight/viewers/wms.js +3 -0
- data/app/assets/stylesheets/geoblacklight/_geoblacklight.scss +1 -0
- data/app/assets/stylesheets/geoblacklight/modules/downloads.scss +82 -0
- data/app/assets/stylesheets/geoblacklight/modules/item.scss +19 -12
- data/app/assets/stylesheets/geoblacklight/modules/metadata_content.scss +6 -1
- data/app/assets/stylesheets/geoblacklight/modules/results.scss +2 -1
- data/app/assets/stylesheets/geoblacklight/modules/toolbar.scss +2 -6
- data/app/controllers/download_controller.rb +2 -2
- data/app/helpers/geoblacklight_helper.rb +78 -3
- data/app/views/catalog/_download_generated_link.html.erb +4 -0
- data/app/views/catalog/_download_link.html.erb +3 -0
- data/app/views/catalog/_downloads_generated.html.erb +6 -0
- data/app/views/catalog/_downloads_primary.html.erb +9 -9
- data/app/views/catalog/_home_text.html.erb +5 -5
- data/app/views/catalog/_show_default.html.erb +4 -0
- data/app/views/catalog/_show_default_attribute_table.html.erb +6 -6
- data/app/views/catalog/_show_default_viewer_container.html.erb +1 -1
- data/app/views/catalog/_show_downloads.html.erb +31 -0
- data/app/views/catalog/_show_sidebar.html.erb +12 -0
- data/app/views/catalog/_upper_metadata.html.erb +1 -1
- data/app/views/catalog/_web_services_wfs.html.erb +1 -1
- data/app/views/catalog/_web_services_wms.html.erb +1 -1
- data/app/views/catalog/metadata.html.erb +1 -1
- data/app/views/catalog/metadata/_markup.html.erb +1 -1
- data/app/views/catalog/metadata/_missing.html.erb +2 -2
- data/app/views/catalog/web_services.html.erb +2 -2
- data/app/views/download/hgl.html.erb +6 -6
- data/config/locales/geoblacklight.en.yml +36 -2
- data/geoblacklight.gemspec +4 -1
- data/lib/generators/geoblacklight/install_generator.rb +11 -0
- data/lib/generators/geoblacklight/templates/catalog_controller.rb +16 -6
- data/lib/generators/geoblacklight/templates/geoblacklight.js +0 -1
- data/lib/generators/geoblacklight/templates/settings.yml +1 -0
- data/lib/geoblacklight.rb +1 -0
- data/lib/geoblacklight/download.rb +1 -0
- data/lib/geoblacklight/metadata/html.rb +13 -0
- data/lib/geoblacklight/metadata_transformer/base.rb +0 -7
- data/lib/geoblacklight/metadata_transformer/fgdc.rb +0 -8
- data/lib/geoblacklight/metadata_transformer/iso19139.rb +0 -8
- data/lib/geoblacklight/references.rb +4 -1
- data/lib/geoblacklight/relation/relation_response.rb +1 -1
- data/lib/geoblacklight/version.rb +1 -1
- data/schema/format-values.md +50 -0
- data/schema/geoblacklight-schema-deprecated.md +39 -0
- data/schema/geoblacklight-schema.md +308 -37
- data/schema/geometry-type-values.md +10 -0
- data/schema/type-values.md +8 -0
- data/spec/controllers/catalog_controller_spec.rb +56 -1
- data/spec/controllers/download_controller_spec.rb +69 -6
- data/spec/features/bookmarks_spec.rb +1 -1
- data/spec/features/configurable_basemap_spec.rb +3 -3
- data/spec/features/download_layer_spec.rb +26 -31
- data/spec/features/esri_viewer_spec.rb +3 -3
- data/spec/features/home_page_spec.rb +1 -1
- data/spec/features/index_map_spec.rb +18 -1
- data/spec/features/layer_inspection_spec.rb +1 -1
- data/spec/features/layer_opacity_spec.rb +1 -1
- data/spec/features/layer_preview_spec.rb +1 -1
- data/spec/features/metadata_panel_spec.rb +2 -2
- data/spec/features/split_view.html.erb_spec.rb +8 -7
- data/spec/features/web_services_modal_spec.rb +3 -3
- data/spec/fixtures/solr_documents/actual-papermap1.json +1 -1
- data/spec/fixtures/solr_documents/actual-point1.json +26 -13
- data/spec/fixtures/solr_documents/actual-polygon1.json +1 -1
- data/spec/fixtures/solr_documents/actual-raster1.json +6 -5
- data/spec/fixtures/solr_documents/bbox-spans-180.json +20 -0
- data/spec/fixtures/solr_documents/cornell_html_metadata.json +42 -0
- data/spec/fixtures/solr_documents/esri-dynamic-layer-all-layers.json +36 -34
- data/spec/fixtures/solr_documents/esri-dynamic-layer-single-layer.json +30 -27
- data/spec/fixtures/solr_documents/esri-feature-layer.json +37 -24
- data/spec/fixtures/solr_documents/iiif-eastern-hemisphere.json +30 -0
- data/spec/fixtures/solr_documents/index-map-stanford.json +1 -4
- data/spec/fixtures/solr_documents/point_index_map.json +27 -0
- data/spec/fixtures/solr_documents/public_direct_download.json +13 -7
- data/spec/fixtures/solr_documents/public_polygon_mit.json +15 -27
- data/spec/fixtures/solr_documents/restricted-line.json +7 -6
- data/spec/fixtures/solr_documents/umn_metro_result1.json +30 -26
- data/spec/fixtures/solr_documents/umn_metro_result2.json +28 -24
- data/spec/fixtures/solr_documents/umn_state_result1.json +25 -18
- data/spec/fixtures/solr_documents/umn_state_result2.json +27 -25
- data/spec/fixtures/solr_documents/uva_slug_colon.json +25 -0
- data/spec/helpers/carto_helper_spec.rb +19 -0
- data/spec/helpers/geoblacklight_helper_spec.rb +123 -11
- data/spec/lib/geoblacklight/document_presenter_spec.rb +1 -0
- data/spec/lib/geoblacklight/download/hgl_download_spec.rb +42 -1
- data/spec/lib/geoblacklight/download_spec.rb +115 -34
- data/spec/lib/geoblacklight/geoblacklight_helper_behavior_spec.rb +8 -2
- data/spec/lib/geoblacklight/metadata/base_spec.rb +69 -11
- data/spec/lib/geoblacklight/metadata/html_spec.rb +18 -0
- data/spec/lib/geoblacklight/metadata_spec.rb +9 -0
- data/spec/lib/geoblacklight/references_spec.rb +18 -0
- data/spec/lib/geoblacklight/relation/relation_response_spec.rb +8 -0
- data/spec/lib/geoblacklight/wms_layer_spec.rb +35 -4
- data/spec/models/concerns/geoblacklight/solr_document/carto_spec.rb +37 -12
- data/spec/models/concerns/geoblacklight/solr_document/finder_spec.rb +28 -9
- data/spec/models/concerns/geoblacklight/spatial_search_behavior_spec.rb +38 -21
- data/spec/spec_helper.rb +18 -12
- data/spec/views/catalog/_show_downloads.html.erb_spec.rb +41 -0
- data/template.rb +2 -2
- data/vendor/assets/javascripts/esri-leaflet.js +4 -24
- data/vendor/assets/javascripts/leaflet-iiif.js +157 -54
- metadata +75 -12
- data/.coveralls.yml +0 -1
- data/.travis.yml +0 -29
- data/app/views/catalog/_downloads.html.erb +0 -11
- data/app/views/catalog/_downloads_secondary.html.erb +0 -39
- data/spec/views/catalog/_downloads.html.erb_spec.rb +0 -29
- data/vendor/assets/javascripts/leaflet-label-src.js +0 -564
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b40275fe73ab76d4f9baa4096284ead710146ddf
|
|
4
|
+
data.tar.gz: ed87385adb85bdee4d8e0cab05a0ce23bae2fcd2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 96341b99c1fe404cb28053c0aa86d06ff67a29aab1c6d36cbf9f180547e7219fe1b1b58892cfaa2e9725fc45a14eb149cf4c774e64926aeebc0375a4ac63b4b4
|
|
7
|
+
data.tar.gz: e1657c181c8409c75728963b39eaddab110d0d9df79c72b9fa8fa59ca14f4d5260c69d29c23e8a0b2208fbf6681643cd5df35babd2fa586b2043e39eeb5da824
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
---
|
|
2
|
+
version: 2
|
|
3
|
+
jobs:
|
|
4
|
+
rails_5_2_0:
|
|
5
|
+
working_directory: ~/geoblacklight
|
|
6
|
+
docker:
|
|
7
|
+
- image: circleci/ruby:2.5.1-node-browsers
|
|
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.0
|
|
17
|
+
steps:
|
|
18
|
+
- checkout
|
|
19
|
+
# Restore bundle cache
|
|
20
|
+
- type: cache-restore
|
|
21
|
+
name: Restore bundle cache
|
|
22
|
+
key: geoblacklight-bundle-5-2-0-{{ checksum "geoblacklight.gemspec" }}-{{ checksum "Gemfile" }}-3f5eff
|
|
23
|
+
# Install gems
|
|
24
|
+
- run: bundle check || bundle install
|
|
25
|
+
# Restore cached Solr
|
|
26
|
+
- type: cache-restore
|
|
27
|
+
name: Restore solr cache
|
|
28
|
+
key: geoblacklight-solr{{ checksum ".solr_wrapper" }}
|
|
29
|
+
# Run solr wrapper, which downloads correct solr version if not cached
|
|
30
|
+
- run: bundle exec rake solr:clean
|
|
31
|
+
# Cache Solr
|
|
32
|
+
- type: cache-save
|
|
33
|
+
name: Store solr cache
|
|
34
|
+
key: geoblacklight-solr{{ checksum ".solr_wrapper" }}
|
|
35
|
+
paths:
|
|
36
|
+
- tmp/solr
|
|
37
|
+
# Run specs
|
|
38
|
+
- run: bundle exec rake ci
|
|
39
|
+
# Store bundle cache
|
|
40
|
+
- type: cache-save
|
|
41
|
+
name: Store bundle cache
|
|
42
|
+
key: geoblacklight-bundle-5-2-0-{{ checksum "geoblacklight.gemspec" }}-{{ checksum "Gemfile" }}-3f5eff
|
|
43
|
+
paths:
|
|
44
|
+
- /home/circleci/geoblacklight/vendor/bundle
|
|
45
|
+
rails_5_1_6:
|
|
46
|
+
working_directory: ~/geoblacklight
|
|
47
|
+
docker:
|
|
48
|
+
- image: circleci/ruby:2.4.4-node-browsers
|
|
49
|
+
environment:
|
|
50
|
+
BUNDLE_JOBS: 3
|
|
51
|
+
BUNDLE_RETRY: 3
|
|
52
|
+
GEM_HOME: /home/circleci/geoblacklight/vendor/bundle
|
|
53
|
+
BUNDLE_PATH: /home/circleci/geoblacklight/vendor/bundle
|
|
54
|
+
RAILS_ENV: test
|
|
55
|
+
RAILS_VERSION: 5.1.6
|
|
56
|
+
steps:
|
|
57
|
+
- checkout
|
|
58
|
+
# Restore bundle cache
|
|
59
|
+
- type: cache-restore
|
|
60
|
+
name: Restore bundle cache
|
|
61
|
+
key: geoblacklight-bundle-5-1-6-{{ checksum "Gemfile" }}-{{ checksum "geoblacklight.gemspec" }}-3f5eff
|
|
62
|
+
# Install gems and run specs
|
|
63
|
+
- run: bundle check || bundle install
|
|
64
|
+
# Restore cached Solr
|
|
65
|
+
- type: cache-restore
|
|
66
|
+
name: Restore solr cache
|
|
67
|
+
key: geoblacklight-solr{{ checksum ".solr_wrapper" }}
|
|
68
|
+
# Run solr wrapper, which downloads correct solr version if not cached
|
|
69
|
+
- run: bundle exec rake solr:clean
|
|
70
|
+
# Cache Solr
|
|
71
|
+
- type: cache-save
|
|
72
|
+
name: Store solr cache
|
|
73
|
+
key: geoblacklight-solr{{ checksum ".solr_wrapper" }}
|
|
74
|
+
paths:
|
|
75
|
+
- tmp/solr
|
|
76
|
+
# Run specs
|
|
77
|
+
- run: bundle exec rake ci
|
|
78
|
+
# Store bundle cache
|
|
79
|
+
- type: cache-save
|
|
80
|
+
name: Store bundle cache
|
|
81
|
+
key: geoblacklight-bundle-5-1-6-{{ checksum "Gemfile" }}-{{ checksum "geoblacklight.gemspec" }}-3f5eff
|
|
82
|
+
paths:
|
|
83
|
+
- /home/circleci/geoblacklight/vendor/bundle
|
|
84
|
+
rubocop:
|
|
85
|
+
working_directory: ~/geoblacklight
|
|
86
|
+
docker:
|
|
87
|
+
- image: circleci/ruby:2.5.1-node-browsers
|
|
88
|
+
environment:
|
|
89
|
+
GEM_HOME: /home/circleci/geoblacklight/vendor/bundle
|
|
90
|
+
BUNDLE_PATH: /home/circleci/geoblacklight/vendor/bundle
|
|
91
|
+
RAILS_ENV: test
|
|
92
|
+
steps:
|
|
93
|
+
- checkout
|
|
94
|
+
# Restore bundle cache
|
|
95
|
+
- type: cache-restore
|
|
96
|
+
name: Restore bundle cache
|
|
97
|
+
key: geoblacklight-bundle-5-2-0-{{ checksum "geoblacklight.gemspec" }}-{{ checksum "Gemfile" }}-3f5eff
|
|
98
|
+
# Install gems and run rubocop
|
|
99
|
+
- run: bundle check || bundle install
|
|
100
|
+
- run: bundle exec rake rubocop
|
|
101
|
+
workflows:
|
|
102
|
+
version: 2
|
|
103
|
+
build_accept_deploy:
|
|
104
|
+
jobs:
|
|
105
|
+
- rails_5_2_0
|
|
106
|
+
- rails_5_1_6
|
|
107
|
+
- rubocop:
|
|
108
|
+
requires:
|
|
109
|
+
- rails_5_2_0
|
data/.rubocop.yml
CHANGED
|
@@ -1,17 +1,37 @@
|
|
|
1
|
+
require: rubocop-rspec
|
|
2
|
+
|
|
3
|
+
inherit_gem:
|
|
4
|
+
bixby: bixby_default.yml
|
|
5
|
+
|
|
6
|
+
inherit_from: .rubocop_todo.yml
|
|
7
|
+
|
|
1
8
|
Rails:
|
|
2
9
|
Enabled: true
|
|
3
10
|
|
|
4
11
|
AllCops:
|
|
5
12
|
DisplayCopNames: true
|
|
6
|
-
|
|
7
13
|
Include:
|
|
8
14
|
- '**/Rakefile'
|
|
9
|
-
|
|
10
15
|
Exclude:
|
|
11
16
|
- 'db/**/*'
|
|
12
17
|
- 'vendor/**/*'
|
|
13
18
|
- '.internal_test_app/**/*'
|
|
14
19
|
- 'lib/generators/geoblacklight/templates/**/*'
|
|
20
|
+
- 'geoblacklight.gemspec'
|
|
21
|
+
- 'Gemfile'
|
|
22
|
+
|
|
23
|
+
Layout/DotPosition:
|
|
24
|
+
Description: Checks the position of the dot in multi-line method calls.
|
|
25
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
|
|
26
|
+
Enabled: true
|
|
27
|
+
EnforcedStyle: leading
|
|
28
|
+
SupportedStyles:
|
|
29
|
+
- leading
|
|
30
|
+
- trailing
|
|
31
|
+
|
|
32
|
+
Metrics/BlockLength:
|
|
33
|
+
Exclude:
|
|
34
|
+
- 'spec/helpers/geoblacklight_helper_spec.rb'
|
|
15
35
|
|
|
16
36
|
Metrics/LineLength:
|
|
17
37
|
Max: 100
|
|
@@ -19,37 +39,58 @@ Metrics/LineLength:
|
|
|
19
39
|
- 'spec/**/*'
|
|
20
40
|
- 'Rakefile'
|
|
21
41
|
- 'lib/generators/geoblacklight/install_generator.rb'
|
|
22
|
-
|
|
23
|
-
# TODO: Refactor large methods.
|
|
24
|
-
Metrics/AbcSize:
|
|
25
|
-
Max: 23
|
|
42
|
+
- 'lib/tasks/geoblacklight.rake'
|
|
26
43
|
|
|
27
44
|
Metrics/MethodLength:
|
|
28
45
|
Max: 16
|
|
29
46
|
|
|
47
|
+
Metrics/ModuleLength:
|
|
48
|
+
Exclude:
|
|
49
|
+
- 'app/helpers/geoblacklight_helper.rb'
|
|
50
|
+
|
|
30
51
|
# TODO: Add top-level class and module documentation.
|
|
31
52
|
Style/Documentation:
|
|
32
53
|
Enabled: false
|
|
33
54
|
|
|
34
55
|
# Overrides method in blacklight. Must use method name.
|
|
35
|
-
|
|
56
|
+
Naming/PredicateName:
|
|
36
57
|
Exclude:
|
|
37
58
|
- 'lib/geoblacklight/view_helper_override.rb'
|
|
38
59
|
|
|
39
|
-
|
|
40
|
-
|
|
60
|
+
# geoblacklight references in solr_document_spec are
|
|
61
|
+
# difficult to mock because of the use of 'method_missing'.
|
|
62
|
+
# https://relishapp.com/rspec/rspec-mocks/docs/verifying-doubles/dynamic-classes
|
|
63
|
+
RSpec/AnyInstance:
|
|
64
|
+
Exclude:
|
|
65
|
+
- 'spec/models/concerns/geoblacklight/solr_document_spec.rb'
|
|
66
|
+
- 'spec/helpers/geoblacklight_helper_spec.rb'
|
|
67
|
+
- 'spec/models/concerns/geoblacklight/solr_document/finder_spec.rb'
|
|
41
68
|
|
|
42
69
|
# Rubocop bug causes view specs to fail.
|
|
43
70
|
# https://github.com/nevir/rubocop-rspec/issues/47
|
|
44
71
|
RSpec/DescribeClass:
|
|
45
72
|
Enabled: false
|
|
46
73
|
|
|
47
|
-
|
|
48
|
-
# difficult to mock because of the use of 'method_missing'.
|
|
49
|
-
# https://relishapp.com/rspec/rspec-mocks/docs/verifying-doubles/dynamic-classes
|
|
50
|
-
RSpec/AnyInstance:
|
|
74
|
+
RSpec/ExampleLength:
|
|
51
75
|
Exclude:
|
|
52
|
-
- 'spec/
|
|
76
|
+
- 'spec/views/catalog/_show_downloads.html.erb_spec.rb'
|
|
77
|
+
- 'spec/features/download_layer_spec.rb'
|
|
78
|
+
- 'spec/features/home_page_spec.rb'
|
|
79
|
+
- 'spec/features/index_map_spec.rb'
|
|
80
|
+
- 'spec/features/metadata_panel_spec.rb'
|
|
81
|
+
- 'spec/features/saved_searches_spec.rb'
|
|
82
|
+
- 'spec/features/search_results_map_spec.rb'
|
|
83
|
+
- 'spec/features/show_page_metadata_spec.rb'
|
|
84
|
+
- 'spec/features/split_view.html.erb_spec.rb'
|
|
85
|
+
- 'spec/features/web_services_modal_spec.rb'
|
|
86
|
+
- 'spec/helpers/geoblacklight_helper_spec.rb'
|
|
87
|
+
- 'spec/models/concerns/geoblacklight/solr_document/carto_spec.rb'
|
|
88
|
+
- 'spec/models/concerns/geoblacklight/solr_document/finder_spec.rb'
|
|
89
|
+
|
|
90
|
+
RSpec/VerifiedDoubles:
|
|
91
|
+
Exclude:
|
|
92
|
+
- 'spec/lib/geoblacklight/download/hgl_download_spec.rb'
|
|
93
|
+
- 'spec/lib/geoblacklight/document_presenter_spec.rb'
|
|
53
94
|
|
|
54
95
|
Style/SignalException:
|
|
55
96
|
EnforcedStyle: semantic
|
|
@@ -59,13 +100,3 @@ Style/StringLiterals:
|
|
|
59
100
|
StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-string-literals
|
|
60
101
|
Enabled: true
|
|
61
102
|
EnforcedStyle: single_quotes
|
|
62
|
-
|
|
63
|
-
Style/DotPosition:
|
|
64
|
-
Description: Checks the position of the dot in multi-line method calls.
|
|
65
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
|
|
66
|
-
Enabled: true
|
|
67
|
-
EnforcedStyle: leading
|
|
68
|
-
SupportedStyles:
|
|
69
|
-
- leading
|
|
70
|
-
- trailing
|
|
71
|
-
|
data/.rubocop_todo.yml
ADDED
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
# This configuration was generated by
|
|
2
|
+
# `rubocop --auto-gen-config`
|
|
3
|
+
# on 2018-07-24 14:15:32 -0500 using RuboCop version 0.52.1.
|
|
4
|
+
# The point is for the user to remove these configuration records
|
|
5
|
+
# one by one as the offenses are removed from the code base.
|
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
|
8
|
+
|
|
9
|
+
# Offense count: 17
|
|
10
|
+
# Cop supports --auto-correct.
|
|
11
|
+
# Configuration parameters: Width, IgnoredPatterns.
|
|
12
|
+
Layout/IndentationWidth:
|
|
13
|
+
Enabled: false
|
|
14
|
+
|
|
15
|
+
# Offense count: 1
|
|
16
|
+
# Cop supports --auto-correct.
|
|
17
|
+
# Configuration parameters: AllowForAlignment.
|
|
18
|
+
Layout/SpaceBeforeFirstArg:
|
|
19
|
+
Exclude:
|
|
20
|
+
- 'app/views/relation/index.json.jbuilder'
|
|
21
|
+
|
|
22
|
+
# Offense count: 1
|
|
23
|
+
# Cop supports --auto-correct.
|
|
24
|
+
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
|
25
|
+
Lint/UnusedBlockArgument:
|
|
26
|
+
Exclude:
|
|
27
|
+
- 'lib/tasks/geoblacklight.rake'
|
|
28
|
+
|
|
29
|
+
# Offense count: 37
|
|
30
|
+
# Configuration parameters: CountComments, ExcludedMethods.
|
|
31
|
+
Metrics/BlockLength:
|
|
32
|
+
Max: 227
|
|
33
|
+
|
|
34
|
+
# Offense count: 1
|
|
35
|
+
# Cop supports --auto-correct.
|
|
36
|
+
# Configuration parameters: AutoCorrect.
|
|
37
|
+
Performance/HashEachMethods:
|
|
38
|
+
Exclude:
|
|
39
|
+
- 'app/presenters/geoblacklight/document_presenter.rb'
|
|
40
|
+
|
|
41
|
+
# Offense count: 2
|
|
42
|
+
# Configuration parameters: CustomIncludeMethods.
|
|
43
|
+
RSpec/EmptyExampleGroup:
|
|
44
|
+
Exclude:
|
|
45
|
+
- 'spec/views/catalog/_document_split.html.erb_spec.rb'
|
|
46
|
+
- 'spec/views/catalog/_index_split.html.erb_spec.rb'
|
|
47
|
+
|
|
48
|
+
# Offense count: 24
|
|
49
|
+
# Configuration parameters: Max.
|
|
50
|
+
RSpec/ExampleLength:
|
|
51
|
+
Exclude:
|
|
52
|
+
- 'spec/features/download_layer_spec.rb'
|
|
53
|
+
- 'spec/features/home_page_spec.rb'
|
|
54
|
+
- 'spec/features/index_map_spec.rb'
|
|
55
|
+
- 'spec/features/metadata_panel_spec.rb'
|
|
56
|
+
- 'spec/features/saved_searches_spec.rb'
|
|
57
|
+
- 'spec/features/search_results_map_spec.rb'
|
|
58
|
+
- 'spec/features/show_page_metadata_spec.rb'
|
|
59
|
+
- 'spec/features/split_view.html.erb_spec.rb'
|
|
60
|
+
- 'spec/features/web_services_modal_spec.rb'
|
|
61
|
+
- 'spec/helpers/geoblacklight_helper_spec.rb'
|
|
62
|
+
- 'spec/models/concerns/geoblacklight/solr_document/carto_spec.rb'
|
|
63
|
+
- 'spec/models/concerns/geoblacklight/solr_document/finder_spec.rb'
|
|
64
|
+
- 'spec/views/catalog/_downloads.html.erb_spec.rb'
|
|
65
|
+
|
|
66
|
+
# Offense count: 2
|
|
67
|
+
# Configuration parameters: EnforcedStyle.
|
|
68
|
+
# SupportedStyles: implicit, each, example
|
|
69
|
+
RSpec/HookArgument:
|
|
70
|
+
Exclude:
|
|
71
|
+
- 'spec/spec_helper.rb'
|
|
72
|
+
- 'spec/views/catalog/_downloads.html.erb_spec.rb'
|
|
73
|
+
|
|
74
|
+
# Offense count: 9
|
|
75
|
+
RSpec/LeadingSubject:
|
|
76
|
+
Exclude:
|
|
77
|
+
- 'spec/lib/geoblacklight/document_presenter_spec.rb'
|
|
78
|
+
- 'spec/lib/geoblacklight/metadata_transformer/base_spec.rb'
|
|
79
|
+
- 'spec/lib/geoblacklight/metadata_transformer/fgdc_spec.rb'
|
|
80
|
+
- 'spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb'
|
|
81
|
+
- 'spec/lib/geoblacklight/metadata_transformer_spec.rb'
|
|
82
|
+
- 'spec/models/concerns/geoblacklight/spatial_search_behavior_spec.rb'
|
|
83
|
+
|
|
84
|
+
# Offense count: 58
|
|
85
|
+
# Configuration parameters: .
|
|
86
|
+
# SupportedStyles: have_received, receive
|
|
87
|
+
RSpec/MessageSpies:
|
|
88
|
+
EnforcedStyle: receive
|
|
89
|
+
|
|
90
|
+
# Offense count: 38
|
|
91
|
+
RSpec/NamedSubject:
|
|
92
|
+
Exclude:
|
|
93
|
+
- 'spec/lib/geoblacklight/metadata/base_spec.rb'
|
|
94
|
+
- 'spec/lib/geoblacklight/metadata_transformer/base_spec.rb'
|
|
95
|
+
- 'spec/lib/geoblacklight/metadata_transformer/fgdc_spec.rb'
|
|
96
|
+
- 'spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb'
|
|
97
|
+
- 'spec/lib/geoblacklight/metadata_transformer_spec.rb'
|
|
98
|
+
- 'spec/models/concerns/geoblacklight/solr_document/carto_spec.rb'
|
|
99
|
+
- 'spec/models/concerns/geoblacklight/solr_document/finder_spec.rb'
|
|
100
|
+
- 'spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb'
|
|
101
|
+
- 'spec/models/concerns/geoblacklight/spatial_search_behavior_spec.rb'
|
|
102
|
+
|
|
103
|
+
# Offense count: 6
|
|
104
|
+
RSpec/RepeatedDescription:
|
|
105
|
+
Exclude:
|
|
106
|
+
- 'spec/features/esri_viewer_spec.rb'
|
|
107
|
+
- 'spec/features/search_results_map_spec.rb'
|
|
108
|
+
- 'spec/lib/geoblacklight/references_spec.rb'
|
|
109
|
+
|
|
110
|
+
# Offense count: 2
|
|
111
|
+
RSpec/RepeatedExample:
|
|
112
|
+
Exclude:
|
|
113
|
+
- 'spec/features/esri_viewer_spec.rb'
|
|
114
|
+
|
|
115
|
+
# Offense count: 1
|
|
116
|
+
RSpec/SubjectStub:
|
|
117
|
+
Exclude:
|
|
118
|
+
- 'spec/models/concerns/geoblacklight/spatial_search_behavior_spec.rb'
|
|
119
|
+
|
|
120
|
+
# Offense count: 12
|
|
121
|
+
# Configuration parameters: IgnoreSymbolicNames.
|
|
122
|
+
RSpec/VerifiedDoubles:
|
|
123
|
+
Exclude:
|
|
124
|
+
- 'spec/helpers/geoblacklight_helper_spec.rb'
|
|
125
|
+
- 'spec/lib/geoblacklight/document_presenter_spec.rb'
|
|
126
|
+
- 'spec/lib/geoblacklight/download_spec.rb'
|
|
127
|
+
- 'spec/lib/geoblacklight/geoblacklight_helper_behavior_spec.rb'
|
|
128
|
+
- 'spec/lib/geoblacklight/wms_layer_spec.rb'
|
|
129
|
+
- 'spec/models/concerns/geoblacklight/solr_document/finder_spec.rb'
|
|
130
|
+
- 'spec/models/concerns/geoblacklight/spatial_search_behavior_spec.rb'
|
|
131
|
+
- 'spec/views/catalog/_downloads.html.erb_spec.rb'
|
|
132
|
+
|
|
133
|
+
# Offense count: 7
|
|
134
|
+
Rails/FilePath:
|
|
135
|
+
Exclude:
|
|
136
|
+
- 'lib/geoblacklight/download.rb'
|
|
137
|
+
- 'lib/tasks/geoblacklight.rake'
|
|
138
|
+
- 'spec/lib/geoblacklight/download_spec.rb'
|
|
139
|
+
- 'spec/lib/geoblacklight/metadata_transformer/fgdc_spec.rb'
|
|
140
|
+
- 'spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb'
|
|
141
|
+
|
|
142
|
+
# Offense count: 6
|
|
143
|
+
Rails/OutputSafety:
|
|
144
|
+
Exclude:
|
|
145
|
+
- 'app/controllers/download_controller.rb'
|
|
146
|
+
- 'app/helpers/geoblacklight_helper.rb'
|
|
147
|
+
- 'lib/geoblacklight/view_helper_override.rb'
|
|
148
|
+
|
|
149
|
+
# Offense count: 1
|
|
150
|
+
# Cop supports --auto-correct.
|
|
151
|
+
Style/ColonMethodCall:
|
|
152
|
+
Exclude:
|
|
153
|
+
- 'lib/tasks/geoblacklight.rake'
|
|
154
|
+
|
|
155
|
+
# Offense count: 1
|
|
156
|
+
# Cop supports --auto-correct.
|
|
157
|
+
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
|
158
|
+
# SupportedStyles: assign_to_condition, assign_inside_condition
|
|
159
|
+
Style/ConditionalAssignment:
|
|
160
|
+
Exclude:
|
|
161
|
+
- 'app/controllers/download_controller.rb'
|
|
162
|
+
|
|
163
|
+
# Offense count: 2
|
|
164
|
+
# Cop supports --auto-correct.
|
|
165
|
+
Style/EmptyLiteral:
|
|
166
|
+
Exclude:
|
|
167
|
+
- 'spec/models/concerns/geoblacklight/spatial_search_behavior_spec.rb'
|
|
168
|
+
|
|
169
|
+
# Offense count: 3
|
|
170
|
+
# Cop supports --auto-correct.
|
|
171
|
+
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
|
172
|
+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
|
173
|
+
Style/HashSyntax:
|
|
174
|
+
Exclude:
|
|
175
|
+
- 'lib/tasks/geoblacklight.rake'
|
|
176
|
+
|
|
177
|
+
# Offense count: 2
|
|
178
|
+
Style/MethodMissing:
|
|
179
|
+
Exclude:
|
|
180
|
+
- 'app/models/concerns/geoblacklight/solr_document.rb'
|
|
181
|
+
- 'lib/geoblacklight/references.rb'
|
|
182
|
+
|
|
183
|
+
# Offense count: 1
|
|
184
|
+
# Cop supports --auto-correct.
|
|
185
|
+
Style/MultilineIfModifier:
|
|
186
|
+
Exclude:
|
|
187
|
+
- 'lib/geoblacklight/references.rb'
|
|
188
|
+
|
|
189
|
+
# Offense count: 12
|
|
190
|
+
# Cop supports --auto-correct.
|
|
191
|
+
# Configuration parameters: PreferredDelimiters.
|
|
192
|
+
Style/PercentLiteralDelimiters:
|
|
193
|
+
Exclude:
|
|
194
|
+
- 'app/models/concerns/geoblacklight/solr_document/inspection.rb'
|
|
195
|
+
- 'spec/helpers/geoblacklight_helper_spec.rb'
|
|
196
|
+
- 'spec/lib/geoblacklight/document_presenter_spec.rb'
|
|
197
|
+
- 'spec/lib/geoblacklight/references_spec.rb'
|
|
198
|
+
- 'spec/lib/geoblacklight/wms_layer/feature_info_response_spec.rb'
|
|
199
|
+
- 'spec/models/concerns/geoblacklight/solr_document/finder_spec.rb'
|
|
200
|
+
- 'spec/spec_helper.rb'
|
|
201
|
+
|
|
202
|
+
# Offense count: 5
|
|
203
|
+
# Cop supports --auto-correct.
|
|
204
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
205
|
+
# SupportedStyles: single_quotes, double_quotes
|
|
206
|
+
Style/StringLiterals:
|
|
207
|
+
Exclude:
|
|
208
|
+
- 'lib/tasks/geoblacklight.rake'
|
|
209
|
+
|
|
210
|
+
# Offense count: 1
|
|
211
|
+
# Cop supports --auto-correct.
|
|
212
|
+
Style/UnneededInterpolation:
|
|
213
|
+
Exclude:
|
|
214
|
+
- 'lib/tasks/geoblacklight.rake'
|