geoblacklight 4.0.0.pre.rc2 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +2 -6
- data/.rubocop.yml +6 -0
- data/.rubocop_todo.yml +100 -81
- data/.solr_wrapper +0 -1
- data/CODE_OF_CONDUCT.md +1 -1
- data/README.md +22 -14
- data/app/assets/images/blacklight/geoblacklight-icons.json +98 -66
- data/app/assets/images/blacklight/george-mason.svg +4 -0
- data/app/controllers/wms_controller.rb +1 -1
- data/config/locales/geoblacklight.en.yml +2 -0
- data/geoblacklight.gemspec +1 -1
- data/lib/generators/geoblacklight/assets_generator.rb +1 -1
- data/lib/generators/geoblacklight/install_generator.rb +17 -0
- data/lib/generators/geoblacklight/templates/settings.yml +19 -0
- data/lib/geoblacklight/download.rb +1 -1
- data/lib/geoblacklight/engine.rb +4 -2
- data/lib/geoblacklight/metadata_transformer/base.rb +1 -1
- data/lib/geoblacklight/version.rb +1 -1
- data/lib/tasks/geoblacklight.rake +20 -3
- data/schema/geoblacklight-schema-1.0.json +3 -3
- data/schema/readme.md +8 -0
- data/spec/controllers/catalog_controller_spec.rb +7 -7
- data/spec/controllers/download_controller_spec.rb +4 -4
- data/spec/controllers/relation_controller_spec.rb +1 -1
- data/spec/controllers/wms_controller_spec.rb +1 -3
- data/spec/helpers/geoblacklight_helper_spec.rb +4 -4
- data/spec/views/catalog/_results_pagination.html.erb_spec.rb +1 -1
- data/spec/views/catalog/_show_downloads.html.erb_spec.rb +1 -1
- data/template.rb +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19db4be6a3f942cdccdc7d36a079d5b9055c668b0963f57f87f71b4c2ee49356
|
4
|
+
data.tar.gz: a000aaa1cbb8691207e150e5e4e6a70c3a4d1bcac2d07b3134e353329b043f1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52f9c326cd02d416cdc266d3456a8fc14f57d801fbca546c63e8d065a64c99bf3af3554a3343ba6eca0b6501290a5eb59e3abc81b34c45074084402140e0bc1e
|
7
|
+
data.tar.gz: 38fa50f6e96c57bdb7c988faa60021551ec951446512f077801bfdf57174ea3d7af55ff9fccc05930b52be8dc1895be8b49d732e36971cea88982abe7c99e886
|
data/.github/workflows/ruby.yml
CHANGED
@@ -25,14 +25,10 @@ jobs:
|
|
25
25
|
strategy:
|
26
26
|
matrix:
|
27
27
|
ruby_version: ['3.0', 2.7]
|
28
|
-
rails_version: [6.1]
|
28
|
+
rails_version: [7.0.2.2, 6.1]
|
29
29
|
bundler_version: [2.1.1]
|
30
30
|
faraday_version: ['>= 2', '~> 1.0']
|
31
|
-
|
32
|
-
- ruby_version: 2.6
|
33
|
-
rails_version: 6.1
|
34
|
-
bundler_version: 2.1.1
|
35
|
-
faraday_version: '~> 1.0'
|
31
|
+
|
36
32
|
name: test ruby ${{ matrix.ruby_version }} / rails ${{ matrix.rails_version }} / faraday ${{ matrix.faraday_version }}
|
37
33
|
steps:
|
38
34
|
- uses: actions/checkout@v2
|
data/.rubocop.yml
CHANGED
@@ -70,6 +70,11 @@ RSpec/AnyInstance:
|
|
70
70
|
- 'spec/models/concerns/geoblacklight/solr_document/finder_spec.rb'
|
71
71
|
- 'spec/features/download_layer_spec.rb'
|
72
72
|
|
73
|
+
RSpec/Capybara/SpecificMatcher:
|
74
|
+
Exclude:
|
75
|
+
- spec/components/geoblacklight/*
|
76
|
+
- spec/features/*
|
77
|
+
|
73
78
|
RSpec/DescribeClass:
|
74
79
|
Exclude:
|
75
80
|
- spec/tasks/*
|
@@ -85,6 +90,7 @@ RSpec/VerifiedDoubles:
|
|
85
90
|
Exclude:
|
86
91
|
- 'spec/lib/geoblacklight/download/hgl_download_spec.rb'
|
87
92
|
- 'spec/lib/geoblacklight/document_presenter_spec.rb'
|
93
|
+
- 'spec/lib/geoblacklight/references_spec.rb'
|
88
94
|
|
89
95
|
# TODO: Investigate use of OpenStruct in specs
|
90
96
|
Style/OpenStructUse:
|
data/.rubocop_todo.yml
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2022-09-13 13:23:36 UTC using RuboCop version 1.36.0.
|
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
9
|
# Offense count: 3
|
10
|
-
#
|
10
|
+
# This cop supports safe autocorrection (--autocorrect).
|
11
11
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
12
12
|
# SupportedStyles: with_first_argument, with_fixed_indentation
|
13
13
|
Layout/ArgumentAlignment:
|
@@ -15,36 +15,33 @@ Layout/ArgumentAlignment:
|
|
15
15
|
- 'app/controllers/download_controller.rb'
|
16
16
|
- 'lib/geoblacklight/metadata/html.rb'
|
17
17
|
|
18
|
-
# Offense count:
|
19
|
-
#
|
18
|
+
# Offense count: 9
|
19
|
+
# This cop supports safe autocorrection (--autocorrect).
|
20
20
|
Layout/EmptyLineAfterGuardClause:
|
21
21
|
Exclude:
|
22
22
|
- 'app/helpers/geoblacklight_helper.rb'
|
23
|
-
- 'app/models/concerns/geoblacklight/solr_document.rb'
|
24
23
|
- 'app/models/concerns/geoblacklight/solr_document/arcgis.rb'
|
25
24
|
- 'app/models/concerns/geoblacklight/solr_document/carto.rb'
|
26
|
-
- 'bin/coverage.rb'
|
27
25
|
- 'lib/geoblacklight/bounding_box.rb'
|
28
26
|
- 'lib/geoblacklight/download.rb'
|
29
27
|
- 'lib/geoblacklight/item_viewer.rb'
|
30
28
|
- 'lib/geoblacklight/metadata/base.rb'
|
31
29
|
- 'lib/geoblacklight/references.rb'
|
32
30
|
|
33
|
-
# Offense count:
|
34
|
-
#
|
31
|
+
# Offense count: 148
|
32
|
+
# This cop supports safe autocorrection (--autocorrect).
|
35
33
|
Layout/EmptyLineAfterMagicComment:
|
36
34
|
Enabled: false
|
37
35
|
|
38
|
-
# Offense count:
|
39
|
-
#
|
36
|
+
# Offense count: 2
|
37
|
+
# This cop supports safe autocorrection (--autocorrect).
|
40
38
|
# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
|
41
39
|
Layout/EmptyLineBetweenDefs:
|
42
40
|
Exclude:
|
43
41
|
- 'lib/geoblacklight/exceptions.rb'
|
44
|
-
- 'lib/geoblacklight/metadata_transformer.rb'
|
45
42
|
|
46
43
|
# Offense count: 3
|
47
|
-
#
|
44
|
+
# This cop supports safe autocorrection (--autocorrect).
|
48
45
|
# Configuration parameters: AllowAliasSyntax, AllowedMethods.
|
49
46
|
# AllowedMethods: alias_method, public, protected, private
|
50
47
|
Layout/EmptyLinesAroundAttributeAccessor:
|
@@ -54,7 +51,7 @@ Layout/EmptyLinesAroundAttributeAccessor:
|
|
54
51
|
- 'lib/geoblacklight/relation/relation_response.rb'
|
55
52
|
|
56
53
|
# Offense count: 1
|
57
|
-
#
|
54
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
58
55
|
Lint/BooleanSymbol:
|
59
56
|
Exclude:
|
60
57
|
- 'spec/features/metadata_panel_spec.rb'
|
@@ -74,15 +71,14 @@ Lint/MissingSuper:
|
|
74
71
|
Exclude:
|
75
72
|
- 'lib/geoblacklight/exceptions.rb'
|
76
73
|
|
77
|
-
# Offense count:
|
78
|
-
#
|
74
|
+
# Offense count: 2
|
75
|
+
# This cop supports safe autocorrection (--autocorrect).
|
79
76
|
Lint/SendWithMixinArgument:
|
80
77
|
Exclude:
|
81
|
-
- 'lib/geoblacklight.rb'
|
82
78
|
- 'lib/geoblacklight/engine.rb'
|
83
79
|
|
84
|
-
# Offense count:
|
85
|
-
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
|
80
|
+
# Offense count: 7
|
81
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes.
|
86
82
|
Metrics/AbcSize:
|
87
83
|
Max: 27
|
88
84
|
|
@@ -95,13 +91,13 @@ Naming/MemoizedInstanceVariableName:
|
|
95
91
|
|
96
92
|
# Offense count: 2
|
97
93
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
98
|
-
# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
|
94
|
+
# AllowedNames: as, at, by, db, id, in, io, ip, of, on, os, pp, to
|
99
95
|
Naming/MethodParameterName:
|
100
96
|
Exclude:
|
101
97
|
- 'lib/geoblacklight/references.rb'
|
102
98
|
|
103
99
|
# Offense count: 5
|
104
|
-
#
|
100
|
+
# This cop supports safe autocorrection (--autocorrect).
|
105
101
|
# Configuration parameters: PreferredName.
|
106
102
|
Naming/RescuedExceptionsVariableName:
|
107
103
|
Exclude:
|
@@ -110,12 +106,23 @@ Naming/RescuedExceptionsVariableName:
|
|
110
106
|
- 'lib/geoblacklight/metadata/base.rb'
|
111
107
|
- 'lib/geoblacklight/wms_layer.rb'
|
112
108
|
|
113
|
-
# Offense count:
|
114
|
-
#
|
109
|
+
# Offense count: 162
|
110
|
+
# This cop supports safe autocorrection (--autocorrect).
|
115
111
|
# Configuration parameters: EnabledMethods.
|
116
112
|
RSpec/Capybara/FeatureMethods:
|
117
113
|
Enabled: false
|
118
114
|
|
115
|
+
# Offense count: 19
|
116
|
+
# This cop supports safe autocorrection (--autocorrect).
|
117
|
+
RSpec/Capybara/SpecificFinders:
|
118
|
+
Exclude:
|
119
|
+
- 'spec/features/download_layer_spec.rb'
|
120
|
+
- 'spec/features/layer_inspection_spec.rb'
|
121
|
+
- 'spec/features/multiple_downloads_spec.rb'
|
122
|
+
- 'spec/features/search_results_map_spec.rb'
|
123
|
+
- 'spec/features/show_page_download_spec.rb'
|
124
|
+
- 'spec/features/split_view.html.erb_spec.rb'
|
125
|
+
|
119
126
|
# Offense count: 18
|
120
127
|
RSpec/Capybara/VisibilityMatcher:
|
121
128
|
Exclude:
|
@@ -124,57 +131,55 @@ RSpec/Capybara/VisibilityMatcher:
|
|
124
131
|
- 'spec/features/split_view.html.erb_spec.rb'
|
125
132
|
- 'spec/features/tms_spec.rb'
|
126
133
|
|
127
|
-
# Offense count:
|
128
|
-
# Configuration parameters: Prefixes.
|
134
|
+
# Offense count: 16
|
135
|
+
# Configuration parameters: Prefixes, AllowedPatterns.
|
129
136
|
# Prefixes: when, with, without
|
130
137
|
RSpec/ContextWording:
|
131
138
|
Exclude:
|
132
|
-
- 'spec/helpers/geoblacklight_helper_spec.rb'
|
133
139
|
- 'spec/helpers/geoblacklight/geoblacklight_helper_behavior_spec.rb'
|
140
|
+
- 'spec/helpers/geoblacklight_helper_spec.rb'
|
134
141
|
- 'spec/lib/geoblacklight/item_viewer_spec.rb'
|
135
142
|
- 'spec/lib/geoblacklight/reference_spec.rb'
|
136
143
|
- 'spec/views/catalog/_show_downloads.html.erb_spec.rb'
|
137
144
|
|
138
145
|
# Offense count: 2
|
146
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
139
147
|
RSpec/EmptyExampleGroup:
|
140
148
|
Exclude:
|
141
149
|
- 'spec/views/catalog/_document_split.html.erb_spec.rb'
|
142
150
|
- 'spec/views/catalog/_index_split.html.erb_spec.rb'
|
143
151
|
|
144
|
-
# Offense count:
|
145
|
-
#
|
152
|
+
# Offense count: 63
|
153
|
+
# This cop supports safe autocorrection (--autocorrect).
|
146
154
|
# Configuration parameters: AllowConsecutiveOneLiners.
|
147
155
|
RSpec/EmptyLineAfterExample:
|
148
156
|
Enabled: false
|
149
157
|
|
150
158
|
# Offense count: 77
|
151
|
-
#
|
159
|
+
# This cop supports safe autocorrection (--autocorrect).
|
152
160
|
RSpec/EmptyLineAfterExampleGroup:
|
153
161
|
Enabled: false
|
154
162
|
|
155
|
-
# Offense count:
|
156
|
-
#
|
163
|
+
# Offense count: 61
|
164
|
+
# This cop supports safe autocorrection (--autocorrect).
|
157
165
|
RSpec/EmptyLineAfterFinalLet:
|
158
166
|
Enabled: false
|
159
167
|
|
160
|
-
# Offense count:
|
161
|
-
#
|
168
|
+
# Offense count: 13
|
169
|
+
# This cop supports safe autocorrection (--autocorrect).
|
170
|
+
# Configuration parameters: AllowConsecutiveOneLiners.
|
162
171
|
RSpec/EmptyLineAfterHook:
|
163
172
|
Exclude:
|
164
173
|
- 'spec/features/configurable_basemap_spec.rb'
|
165
174
|
- 'spec/features/empty_search_spec.rb'
|
166
175
|
- 'spec/features/home_page_spec.rb'
|
167
|
-
- 'spec/helpers/geoblacklight_helper_spec.rb'
|
168
176
|
- 'spec/lib/geoblacklight/download_spec.rb'
|
169
|
-
- 'spec/helpers/geoblacklight/geoblacklight_helper_behavior_spec.rb'
|
170
177
|
- 'spec/lib/geoblacklight/metadata_spec.rb'
|
171
178
|
- 'spec/lib/geoblacklight/metadata_transformer/base_spec.rb'
|
172
179
|
- 'spec/lib/geoblacklight/references_spec.rb'
|
173
|
-
- 'spec/models/concerns/geoblacklight/spatial_search_behavior_spec.rb'
|
174
|
-
- 'spec/views/catalog/_show_downloads.html.erb_spec.rb'
|
175
180
|
|
176
181
|
# Offense count: 9
|
177
|
-
#
|
182
|
+
# This cop supports safe autocorrection (--autocorrect).
|
178
183
|
RSpec/EmptyLineAfterSubject:
|
179
184
|
Exclude:
|
180
185
|
- 'spec/lib/geoblacklight/document_presenter_spec.rb'
|
@@ -205,8 +210,10 @@ RSpec/FilePath:
|
|
205
210
|
- 'spec/lib/geoblacklight/wms_layer/feature_info_response_spec.rb'
|
206
211
|
|
207
212
|
# Offense count: 1
|
213
|
+
# Configuration parameters: AssignmentOnly.
|
208
214
|
RSpec/InstanceVariable:
|
209
|
-
|
215
|
+
Exclude:
|
216
|
+
- 'spec/components/geoblacklight/homepage_feature_facet_component_spec.rb'
|
210
217
|
|
211
218
|
# Offense count: 1
|
212
219
|
RSpec/IteratedExpectation:
|
@@ -222,27 +229,27 @@ RSpec/LeakyConstantDeclaration:
|
|
222
229
|
- 'spec/models/concerns/geoblacklight/solr_document/finder_spec.rb'
|
223
230
|
|
224
231
|
# Offense count: 2
|
225
|
-
#
|
232
|
+
# This cop supports safe autocorrection (--autocorrect).
|
226
233
|
RSpec/LetBeforeExamples:
|
227
234
|
Exclude:
|
228
235
|
- 'spec/models/concerns/geoblacklight/solr_document_spec.rb'
|
229
236
|
|
230
|
-
# Offense count:
|
237
|
+
# Offense count: 46
|
231
238
|
# Configuration parameters: .
|
232
239
|
# SupportedStyles: have_received, receive
|
233
240
|
RSpec/MessageSpies:
|
234
241
|
EnforcedStyle: receive
|
235
242
|
|
236
|
-
# Offense count:
|
243
|
+
# Offense count: 126
|
237
244
|
RSpec/MultipleExpectations:
|
238
|
-
Max:
|
245
|
+
Max: 9
|
239
246
|
|
240
|
-
# Offense count:
|
247
|
+
# Offense count: 67
|
241
248
|
# Configuration parameters: AllowSubject.
|
242
249
|
RSpec/MultipleMemoizedHelpers:
|
243
|
-
Max:
|
250
|
+
Max: 11
|
244
251
|
|
245
|
-
# Offense count:
|
252
|
+
# Offense count: 15
|
246
253
|
# Configuration parameters: IgnoreSharedExamples.
|
247
254
|
RSpec/NamedSubject:
|
248
255
|
Exclude:
|
@@ -252,14 +259,19 @@ RSpec/NamedSubject:
|
|
252
259
|
- 'spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb'
|
253
260
|
- 'spec/lib/geoblacklight/metadata_transformer_spec.rb'
|
254
261
|
- 'spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb'
|
255
|
-
- 'spec/models/concerns/geoblacklight/spatial_search_behavior_spec.rb'
|
256
262
|
|
257
263
|
# Offense count: 3
|
264
|
+
# Configuration parameters: AllowedGroups.
|
258
265
|
RSpec/NestedGroups:
|
259
266
|
Max: 4
|
260
267
|
|
261
|
-
# Offense count:
|
262
|
-
|
268
|
+
# Offense count: 1
|
269
|
+
RSpec/NoExpectationExample:
|
270
|
+
Exclude:
|
271
|
+
- 'spec/features/layer_with_no_references_spec.rb'
|
272
|
+
|
273
|
+
# Offense count: 19
|
274
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
263
275
|
# Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers.
|
264
276
|
# SupportedStyles: inflected, explicit
|
265
277
|
RSpec/PredicateMatcher:
|
@@ -279,25 +291,30 @@ RSpec/RepeatedExampleGroupDescription:
|
|
279
291
|
Exclude:
|
280
292
|
- 'spec/helpers/geoblacklight_helper_spec.rb'
|
281
293
|
|
282
|
-
# Offense count:
|
294
|
+
# Offense count: 33
|
283
295
|
RSpec/StubbedMock:
|
284
296
|
Exclude:
|
285
297
|
- 'spec/features/download_layer_spec.rb'
|
298
|
+
- 'spec/helpers/geoblacklight/geoblacklight_helper_behavior_spec.rb'
|
286
299
|
- 'spec/helpers/geoblacklight_helper_spec.rb'
|
287
300
|
- 'spec/lib/geoblacklight/download_spec.rb'
|
288
|
-
- 'spec/helpers/geoblacklight/geoblacklight_helper_behavior_spec.rb'
|
289
301
|
- 'spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb'
|
290
302
|
- 'spec/models/concerns/geoblacklight/solr_document/carto_spec.rb'
|
291
303
|
- 'spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb'
|
292
304
|
- 'spec/models/concerns/geoblacklight/solr_document_spec.rb'
|
293
|
-
- 'spec/models/concerns/geoblacklight/spatial_search_behavior_spec.rb'
|
294
305
|
- 'spec/views/catalog/_show_downloads.html.erb_spec.rb'
|
295
306
|
|
296
|
-
# Offense count:
|
307
|
+
# Offense count: 2
|
297
308
|
RSpec/SubjectStub:
|
298
309
|
Exclude:
|
299
310
|
- 'spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb'
|
300
|
-
|
311
|
+
|
312
|
+
# Offense count: 1
|
313
|
+
# This cop supports safe autocorrection (--autocorrect).
|
314
|
+
# Configuration parameters: SafeAutocorrect.
|
315
|
+
Rails/ActionControllerFlashBeforeRender:
|
316
|
+
Exclude:
|
317
|
+
- 'app/controllers/download_controller.rb'
|
301
318
|
|
302
319
|
# Offense count: 10
|
303
320
|
# Configuration parameters: EnforcedStyle.
|
@@ -311,23 +328,32 @@ Rails/FilePath:
|
|
311
328
|
- 'spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb'
|
312
329
|
- 'spec/tasks/geoblacklight_spec.rb'
|
313
330
|
|
314
|
-
# Offense count:
|
331
|
+
# Offense count: 7
|
315
332
|
# Configuration parameters: Include.
|
316
333
|
# Include: app/helpers/**/*.rb
|
317
334
|
Rails/HelperInstanceVariable:
|
318
335
|
Exclude:
|
319
336
|
- 'app/helpers/blacklight_helper.rb'
|
320
|
-
- 'app/helpers/geoblacklight_helper.rb'
|
321
337
|
- 'app/helpers/geoblacklight/geoblacklight_helper_behavior.rb'
|
338
|
+
- 'app/helpers/geoblacklight_helper.rb'
|
322
339
|
|
323
|
-
# Offense count:
|
340
|
+
# Offense count: 3
|
324
341
|
Rails/OutputSafety:
|
325
342
|
Exclude:
|
326
343
|
- 'app/controllers/download_controller.rb'
|
327
344
|
- 'app/helpers/geoblacklight_helper.rb'
|
328
345
|
|
329
|
-
# Offense count:
|
330
|
-
#
|
346
|
+
# Offense count: 7
|
347
|
+
# This cop supports safe autocorrection (--autocorrect).
|
348
|
+
Rails/RootPathnameMethods:
|
349
|
+
Exclude:
|
350
|
+
- 'spec/features/metadata_panel_spec.rb'
|
351
|
+
- 'spec/lib/geoblacklight/metadata_transformer/fgdc_spec.rb'
|
352
|
+
- 'spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb'
|
353
|
+
- 'spec/tasks/geoblacklight_spec.rb'
|
354
|
+
|
355
|
+
# Offense count: 4
|
356
|
+
# This cop supports safe autocorrection (--autocorrect).
|
331
357
|
Style/ExpandPathArguments:
|
332
358
|
Exclude:
|
333
359
|
- 'lib/generators/geoblacklight/install_generator.rb'
|
@@ -335,14 +361,8 @@ Style/ExpandPathArguments:
|
|
335
361
|
- 'spec/support/features.rb'
|
336
362
|
- 'spec/test_app_templates/lib/generators/test_app_generator.rb'
|
337
363
|
|
338
|
-
# Offense count: 2
|
339
|
-
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, IgnoredMethods.
|
340
|
-
# SupportedStyles: annotated, template, unannotated
|
341
|
-
Style/FormatStringToken:
|
342
|
-
EnforcedStyle: unannotated
|
343
|
-
|
344
364
|
# Offense count: 1
|
345
|
-
# Configuration parameters: MinBodyLength.
|
365
|
+
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
|
346
366
|
Style/GuardClause:
|
347
367
|
Exclude:
|
348
368
|
- 'lib/generators/geoblacklight/assets_generator.rb'
|
@@ -354,20 +374,19 @@ Style/MissingRespondToMissing:
|
|
354
374
|
- 'lib/geoblacklight/references.rb'
|
355
375
|
|
356
376
|
# Offense count: 2
|
357
|
-
#
|
377
|
+
# This cop supports safe autocorrection (--autocorrect).
|
358
378
|
Style/RedundantAssignment:
|
359
379
|
Exclude:
|
360
380
|
- 'app/controllers/download_controller.rb'
|
361
381
|
|
362
|
-
# Offense count:
|
363
|
-
#
|
382
|
+
# Offense count: 2
|
383
|
+
# This cop supports safe autocorrection (--autocorrect).
|
364
384
|
Style/RedundantRegexpEscape:
|
365
385
|
Exclude:
|
366
|
-
- 'app/models/concerns/geoblacklight/solr_document.rb'
|
367
386
|
- 'lib/generators/geoblacklight/install_generator.rb'
|
368
387
|
|
369
388
|
# Offense count: 1
|
370
|
-
#
|
389
|
+
# This cop supports safe autocorrection (--autocorrect).
|
371
390
|
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
|
372
391
|
# SupportedStyles: slashes, percent_r, mixed
|
373
392
|
Style/RegexpLiteral:
|
@@ -375,7 +394,7 @@ Style/RegexpLiteral:
|
|
375
394
|
- 'lib/geoblacklight/reference.rb'
|
376
395
|
|
377
396
|
# Offense count: 5
|
378
|
-
#
|
397
|
+
# This cop supports safe autocorrection (--autocorrect).
|
379
398
|
# Configuration parameters: EnforcedStyle.
|
380
399
|
# SupportedStyles: implicit, explicit
|
381
400
|
Style/RescueStandardError:
|
@@ -386,13 +405,14 @@ Style/RescueStandardError:
|
|
386
405
|
- 'lib/geoblacklight/metadata_transformer/base.rb'
|
387
406
|
|
388
407
|
# Offense count: 3
|
389
|
-
#
|
408
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
390
409
|
Style/SlicingWithRange:
|
391
410
|
Exclude:
|
392
411
|
- 'spec/helpers/geoblacklight_helper_spec.rb'
|
393
412
|
|
394
413
|
# Offense count: 6
|
395
|
-
#
|
414
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
415
|
+
# Configuration parameters: Mode.
|
396
416
|
Style/StringConcatenation:
|
397
417
|
Exclude:
|
398
418
|
- 'app/controllers/download_controller.rb'
|
@@ -401,18 +421,17 @@ Style/StringConcatenation:
|
|
401
421
|
- 'lib/geoblacklight/download.rb'
|
402
422
|
- 'spec/lib/geoblacklight/document_presenter_spec.rb'
|
403
423
|
|
404
|
-
# Offense count:
|
405
|
-
#
|
424
|
+
# Offense count: 4
|
425
|
+
# This cop supports safe autocorrection (--autocorrect).
|
406
426
|
# Configuration parameters: MinSize.
|
407
427
|
# SupportedStyles: percent, brackets
|
408
428
|
Style/SymbolArray:
|
409
429
|
EnforcedStyle: brackets
|
410
430
|
|
411
|
-
# Offense count:
|
412
|
-
#
|
413
|
-
# Configuration parameters:
|
431
|
+
# Offense count: 1
|
432
|
+
# This cop supports safe autocorrection (--autocorrect).
|
433
|
+
# Configuration parameters: WordRegex.
|
414
434
|
# SupportedStyles: percent, brackets
|
415
435
|
Style/WordArray:
|
416
|
-
|
417
|
-
|
418
|
-
- 'spec/models/concerns/geoblacklight/solr_document/finder_spec.rb'
|
436
|
+
EnforcedStyle: percent
|
437
|
+
MinSize: 3
|
data/.solr_wrapper
CHANGED
data/CODE_OF_CONDUCT.md
CHANGED
@@ -42,7 +42,7 @@ behavior and are expected to take appropriate and fair corrective action in
|
|
42
42
|
response to any instances of unacceptable behavior.
|
43
43
|
|
44
44
|
Project maintainers have the right and responsibility to remove, edit, or
|
45
|
-
reject comments, commits, code,
|
45
|
+
reject comments, commits, code, issues, and other contributions
|
46
46
|
that are not aligned to this Code of Conduct, or to ban temporarily or
|
47
47
|
permanently any contributor for other behaviors that they deem inappropriate,
|
48
48
|
threatening, offensive, or harmful.
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# GeoBlacklight
|
2
2
|
|
3
|
-
![CI](https://github.com/geoblacklight/geoblacklight/actions/workflows/ruby.yml/badge.svg) | [![Coverage Status](https://img.shields.io/badge/coverage-100%25-brightgreen)]() | [![Gem Version](https://img.shields.io/gem/v/geoblacklight.svg)](https://github.com/geoblacklight/geoblacklight/releases)
|
3
|
+
![CI](https://github.com/geoblacklight/geoblacklight/actions/workflows/ruby.yml/badge.svg) | [![Coverage Status](https://img.shields.io/badge/coverage-100%25-brightgreen)]() | [![Gem Version](https://img.shields.io/gem/v/geoblacklight.svg)](https://github.com/geoblacklight/geoblacklight/releases) | [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5851664.svg)](https://zenodo.org/record/5851664#.YyIculLMK2A)
|
4
4
|
|
5
5
|
GeoBlacklight is a world-class discovery platform for geospatial (GIS) holdings. It
|
6
6
|
is an open collaborative project aiming to build off of the successes
|
@@ -8,29 +8,37 @@ of the Blacklight Solr-powered discovery interface and the
|
|
8
8
|
multi-institutional [OpenGeoportal](http://opengeoportal.io/) and [OpenGeoMetadata](https://github.com/opengeometadata) federated metadata sharing
|
9
9
|
communities. We're actively looking for community input and development partners.
|
10
10
|
|
11
|
-
###
|
11
|
+
### Installation
|
12
12
|
|
13
|
-
|
13
|
+
Bootstrap a new GeoBlacklight Ruby on Rails application using the template script:
|
14
14
|
|
15
|
+
```bash
|
16
|
+
DISABLE_SPRING=1 rails new app-name -m https://raw.githubusercontent.com/geoblacklight/geoblacklight/main/template.rb
|
15
17
|
```
|
16
|
-
|
17
|
-
```
|
18
|
-
|
19
|
-
To launch app:
|
18
|
+
Then run the `geoblacklight:server` rake task to run the application:
|
20
19
|
|
21
|
-
```
|
20
|
+
```bash
|
22
21
|
$ cd app-name
|
23
|
-
$ rake geoblacklight:server
|
22
|
+
$ bundle exec rake geoblacklight:server
|
24
23
|
```
|
25
24
|
|
26
|
-
|
25
|
+
* Visit your GeoBlacklight application at: [http://localhost:3000](http://localhost:3000)
|
26
|
+
* Visit the Solr admin panel at: [http://localhost:8983/solr/#/blacklight-core](http://localhost:8983/solr/#/blacklight-core)
|
27
|
+
|
28
|
+
#### Index Example Data
|
29
|
+
|
30
|
+
Index the GeoBlacklight project's test fixtures via:
|
31
|
+
|
32
|
+
```bash
|
33
|
+
$ bundle exec rake "geoblacklight:index:seed[:remote]"
|
34
|
+
```
|
27
35
|
|
28
36
|
### Contributing
|
29
|
-
Interested in contributing to GeoBlacklight? Please see our [contributing](CONTRIBUTING.md) guide.
|
30
37
|
|
31
|
-
|
38
|
+
Interested in contributing to GeoBlacklight? Please see our [contributing](https://geoblacklight.org/docs/overview/contributing/) guide.
|
32
39
|
|
33
|
-
|
40
|
+
### Development
|
34
41
|
|
42
|
+
See the [Getting Started for Developers guide](https://geoblacklight.org/docs/installation/getting_started_developers/) for more information about setting up your development environment.
|
35
43
|
|
36
|
-
|
44
|
+
For more information, please see the [GeoBlacklight Documentation](https://geoblacklight.org/docs/) site.
|