Skip to content

Commit f3b075b

Browse files
authored
update to 4.1.1 (#5)
* update to GBL 4.1.1 * update solr test data * update title and email * spec test
1 parent 53befde commit f3b075b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+56
-57
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ bower.json
4949
# Ignore Byebug command history file.
5050
.byebug_history
5151

52+
# Ignore Bash history file.
53+
.bash_history
54+
5255
# Ignore node_modules
5356
node_modules/
5457

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ gem 'bootsnap', require: false
77
gem 'bootstrap', '~> 4.0'
88
gem 'devise'
99
gem 'devise-guests', '~> 0.8'
10-
gem 'geoblacklight', '~> 4.1.0'
10+
gem 'geoblacklight', '~> 4.1.1'
1111
gem 'importmap-rails'
1212
gem 'jbuilder'
1313
gem 'jquery-rails'

Gemfile.lock

Lines changed: 34 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ GEM
6969
addressable (2.8.5)
7070
public_suffix (>= 2.0.2, < 6.0)
7171
ast (2.4.2)
72-
autoprefixer-rails (10.4.15.0)
72+
autoprefixer-rails (10.4.16.0)
7373
execjs (~> 2)
74-
base64 (0.1.1)
75-
bcrypt (3.1.19)
74+
base64 (0.2.0)
75+
bcrypt (3.1.20)
7676
bindex (0.8.1)
77-
blacklight (7.34.0)
77+
blacklight (7.33.0)
7878
deprecation
7979
globalid
8080
hashdiff
@@ -83,7 +83,7 @@ GEM
8383
kaminari (>= 0.15)
8484
ostruct (>= 0.3.2)
8585
rails (>= 5.1, < 7.1)
86-
view_component (>= 2.66, < 4)
86+
view_component (~> 2.66)
8787
bootsnap (1.17.0)
8888
msgpack (~> 1.2)
8989
bootstrap (4.6.2)
@@ -108,7 +108,7 @@ GEM
108108
dry-validation (~> 1.0, >= 1.0.0)
109109
connection_pool (2.4.1)
110110
crass (1.0.6)
111-
date (3.3.3)
111+
date (3.3.4)
112112
debug (1.8.0)
113113
irb (>= 1.5.0)
114114
reline (>= 0.3.1)
@@ -125,8 +125,7 @@ GEM
125125
devise
126126
diff-lcs (1.5.0)
127127
docile (1.4.0)
128-
domain_name (0.5.20190701)
129-
unf (>= 0.0.5, < 1.0.0)
128+
domain_name (0.6.20231109)
130129
dry-configurable (1.1.0)
131130
dry-core (~> 1.0, < 2)
132131
zeitwerk (~> 2.6)
@@ -161,7 +160,7 @@ GEM
161160
zeitwerk (~> 2.6)
162161
erubi (1.12.0)
163162
execjs (2.9.1)
164-
faraday (2.7.11)
163+
faraday (2.7.12)
165164
base64
166165
faraday-net_http (>= 2.0, < 3.1)
167166
ruby2_keywords (>= 0.0.4)
@@ -182,8 +181,8 @@ GEM
182181
rsolr
183182
sanitize
184183
thor
185-
geoblacklight (4.1.0)
186-
blacklight (~> 7.33)
184+
geoblacklight (4.1.1)
185+
blacklight (>= 7.0, <= 7.33)
187186
coderay
188187
config
189188
deprecation
@@ -219,7 +218,7 @@ GEM
219218
activesupport (>= 6.0.0)
220219
railties (>= 6.0.0)
221220
io-console (0.6.0)
222-
irb (1.8.3)
221+
irb (1.10.0)
223222
rdoc
224223
reline (>= 0.3.8)
225224
jbuilder (2.11.5)
@@ -229,7 +228,7 @@ GEM
229228
rails-dom-testing (>= 1, < 3)
230229
railties (>= 4.2.0)
231230
thor (>= 0.14, < 2.0)
232-
json (2.6.3)
231+
json (2.7.0)
233232
json-schema (4.1.1)
234233
addressable (>= 2.8)
235234
kaminari (1.2.2)
@@ -248,7 +247,7 @@ GEM
248247
llhttp-ffi (0.4.0)
249248
ffi-compiler (~> 1.0)
250249
rake (~> 13.0)
251-
loofah (2.21.4)
250+
loofah (2.22.0)
252251
crass (~> 1.0.2)
253252
nokogiri (>= 1.12.0)
254253
mail (2.8.1)
@@ -268,21 +267,21 @@ GEM
268267
msgpack (1.7.2)
269268
net-http-persistent (4.0.2)
270269
connection_pool (~> 2.2)
271-
net-imap (0.4.4)
270+
net-imap (0.4.7)
272271
date
273272
net-protocol
274273
net-pop (0.1.2)
275274
net-protocol
276-
net-protocol (0.2.1)
275+
net-protocol (0.2.2)
277276
timeout
278277
net-smtp (0.4.0)
279278
net-protocol
280-
nio4r (2.5.9)
281-
nokogiri (1.15.4-aarch64-linux)
279+
nio4r (2.7.0)
280+
nokogiri (1.15.5-aarch64-linux)
282281
racc (~> 1.4)
283-
nokogiri (1.15.4-x86_64-darwin)
282+
nokogiri (1.15.5-x86_64-darwin)
284283
racc (~> 1.4)
285-
nokogiri (1.15.4-x86_64-linux)
284+
nokogiri (1.15.5-x86_64-linux)
286285
racc (~> 1.4)
287286
omniauth (1.9.2)
288287
hashie (>= 3.4.6)
@@ -292,7 +291,7 @@ GEM
292291
nokogiri (~> 1.5)
293292
omniauth (~> 1.2)
294293
orm_adapter (0.5.0)
295-
ostruct (0.5.5)
294+
ostruct (0.6.0)
296295
parallel (1.23.0)
297296
parser (3.2.2.4)
298297
ast (~> 2.4.1)
@@ -301,10 +300,10 @@ GEM
301300
popper_js (1.16.1)
302301
psych (5.1.1.1)
303302
stringio
304-
public_suffix (5.0.3)
303+
public_suffix (5.0.4)
305304
puma (5.6.7)
306305
nio4r (~> 2.0)
307-
racc (1.7.2)
306+
racc (1.7.3)
308307
rack (2.2.8)
309308
rack-test (2.1.0)
310309
rack (>= 1.3)
@@ -339,17 +338,17 @@ GEM
339338
rainbow (3.1.1)
340339
rake (13.1.0)
341340
rchardet (1.8.0)
342-
rdoc (6.5.0)
341+
rdoc (6.6.0)
343342
psych (>= 4.0.0)
344343
regexp_parser (2.8.2)
345-
reline (0.3.9)
344+
reline (0.4.1)
346345
io-console (~> 0.5)
347346
responders (3.1.1)
348347
actionpack (>= 5.2)
349348
railties (>= 5.2)
350349
retriable (3.1.2)
351350
rexml (3.2.6)
352-
rgeo (3.0.0)
351+
rgeo (3.0.1)
353352
rgeo-geojson (2.1.1)
354353
rgeo (>= 1.0.0)
355354
rsolr (2.5.0)
@@ -363,7 +362,7 @@ GEM
363362
rspec-mocks (3.12.6)
364363
diff-lcs (>= 1.2.0, < 2.0)
365364
rspec-support (~> 3.12.0)
366-
rspec-rails (6.0.3)
365+
rspec-rails (6.1.0)
367366
actionpack (>= 6.1)
368367
activesupport (>= 6.1)
369368
railties (>= 6.1)
@@ -374,15 +373,15 @@ GEM
374373
rspec-support (3.12.1)
375374
rspec_junit_formatter (0.6.0)
376375
rspec-core (>= 2, < 4, != 2.12.0)
377-
rubocop (1.57.2)
376+
rubocop (1.58.0)
378377
json (~> 2.3)
379378
language_server-protocol (>= 3.17.0)
380379
parallel (~> 1.10)
381380
parser (>= 3.2.2.4)
382381
rainbow (>= 2.2.2, < 4.0)
383382
regexp_parser (>= 1.8, < 3.0)
384383
rexml (>= 3.2.5, < 4.0)
385-
rubocop-ast (>= 1.28.1, < 2.0)
384+
rubocop-ast (>= 1.30.0, < 2.0)
386385
ruby-progressbar (~> 1.7)
387386
unicode-display_width (>= 2.4.0, < 3.0)
388387
rubocop-ast (1.30.0)
@@ -391,10 +390,11 @@ GEM
391390
rubocop (~> 1.41)
392391
rubocop-factory_bot (2.24.0)
393392
rubocop (~> 1.33)
394-
rubocop-rails (2.22.1)
393+
rubocop-rails (2.22.2)
395394
activesupport (>= 4.2.0)
396395
rack (>= 1.1)
397396
rubocop (>= 1.33.0, < 2.0)
397+
rubocop-ast (>= 1.30.0, < 2.0)
398398
rubocop-rspec (2.25.0)
399399
rubocop (~> 1.40)
400400
rubocop-capybara (~> 2.17)
@@ -439,10 +439,10 @@ GEM
439439
sprockets (>= 3.0.0)
440440
stimulus-rails (1.3.0)
441441
railties (>= 6.0.0)
442-
stringio (3.0.8)
442+
stringio (3.1.0)
443443
thor (1.3.0)
444444
tilt (2.3.0)
445-
timeout (0.4.0)
445+
timeout (0.4.1)
446446
turbo-rails (1.5.0)
447447
actionpack (>= 6.0.0)
448448
activejob (>= 6.0.0)
@@ -453,11 +453,8 @@ GEM
453453
railties (>= 3.1)
454454
tzinfo (2.0.6)
455455
concurrent-ruby (~> 1.0)
456-
unf (0.1.4)
457-
unf_ext
458-
unf_ext (0.0.8.2)
459456
unicode-display_width (2.5.0)
460-
view_component (3.7.0)
457+
view_component (2.82.0)
461458
activesupport (>= 5.2.0, < 8.0)
462459
concurrent-ruby (~> 1.0)
463460
method_source (~> 1.0)
@@ -495,7 +492,7 @@ DEPENDENCIES
495492
debug
496493
devise
497494
devise-guests (~> 0.8)
498-
geoblacklight (~> 4.1.0)
495+
geoblacklight (~> 4.1.1)
499496
importmap-rails
500497
jbuilder
501498
jquery-rails

app/views/layouts/blacklight/base.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<!-- Internet Explorer use the highest version available -->
99
<meta http-equiv="X-UA-Compatible" content="IE=edge">
1010

11-
<title>UC Berkeley GeoData Repository111</title>
11+
<title>UC Berkeley GeoData Repository</title>
1212
<%if (gtag_id = Rails.application.config.lit_gtag_id) %>
1313
<!-- Google tag (gtag.js) -->
1414
<script async src="https://www.googletagmanager.com/gtag/js?id=G-L2R076CPK1"></script>

config/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module Geodata
1717
class Application < Rails::Application
1818
# Initialize configuration defaults for originally generated Rails version.
1919
config.load_defaults 7.0
20-
config.action_mailer.default_options = { from: 'lib-geodata@berkeley.edu' }
20+
config.action_mailer.default_options = { from: 'fake@berkeley.edu' }
2121
config.lit_gtag_id = ENV.fetch('LIT_GTAG_ID', nil)
2222
# Configuration for the application, engines, and railties goes here.
2323
#

solr/geodata-test/data/index/_2.fdm

-158 Bytes
Binary file not shown.

solr/geodata-test/data/index/_2.fdt

-10.8 KB
Binary file not shown.

solr/geodata-test/data/index/_2.fdx

-64 Bytes
Binary file not shown.

solr/geodata-test/data/index/_2.kdi

-75 Bytes
Binary file not shown.

solr/geodata-test/data/index/_2.nvd

-274 Bytes
Binary file not shown.

solr/geodata-test/data/index/_2.si

-574 Bytes
Binary file not shown.

solr/geodata-test/data/index/_2.tvm

-162 Bytes
Binary file not shown.

solr/geodata-test/data/index/_2.tvx

-81 Bytes
Binary file not shown.
-4.78 KB
Binary file not shown.
-3.82 KB
Binary file not shown.

solr/geodata-test/data/index/_5.fdm

158 Bytes
Binary file not shown.

solr/geodata-test/data/index/_5.fdt

10.9 KB
Binary file not shown.

solr/geodata-test/data/index/_5.fdx

64 Bytes
Binary file not shown.

solr/geodata-test/data/index/_5.kdi

75 Bytes
Binary file not shown.

solr/geodata-test/data/index/_5.nvd

274 Bytes
Binary file not shown.

solr/geodata-test/data/index/_5.si

574 Bytes
Binary file not shown.

solr/geodata-test/data/index/_5.tvm

162 Bytes
Binary file not shown.

solr/geodata-test/data/index/_5.tvx

81 Bytes
Binary file not shown.
4.82 KB
Binary file not shown.
3.82 KB
Binary file not shown.
-220 Bytes
Binary file not shown.
220 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

spec/fixtures/solr_documents/berkeley_public.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dct_publisher_sm": [
1313
"San Benito County (Calif.) -- Information Technology"
1414
],
15-
"schema_provider_s": "Berkeley",
15+
"schema_provider_s": "University of California Berkeley",
1616
"gbl_resourceClass_sm": [
1717
"Datasets"
1818
],

spec/fixtures/solr_documents/berkeley_public_doc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dct_publisher_sm": [
1313
"San Benito County (Calif.) -- Information Technology"
1414
],
15-
"schema_provider_s": "Berkeley",
15+
"schema_provider_s": "University of California Berkeley",
1616
"gbl_resourceClass_sm": [
1717
"Datasets"
1818
],

spec/fixtures/solr_documents/berkeley_public_pdf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dct_publisher_sm": [
1313
"San Benito County (Calif.) -- Information Technology"
1414
],
15-
"schema_provider_s": "Berkeley",
15+
"schema_provider_s": "University of California Berkeley",
1616
"gbl_resourceClass_sm": [
1717
"Datasets"
1818
],
Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,44 @@
11
{
2-
"dct_title_s": "City Boundaries, China, 2012",
2+
"dct_title_s": "City Boundaries, China, 2012",
33
"dct_alternative_sm": [
44
"City Boundaries, China"
55
],
66
"dct_description_sm": [
77
"This polygon dataset represents city boundaries in China from 2012. The attribute table includes the GB codes and names in Chinese and English (Pinyin). All data is copyrighted by China Data Center and/or its suppliers. Derived works that include the source data must be merged with other value-added data in such a way that the derived work cannot be converted back to the original source data format. This data is licensed by UC Berkeley for research, educational, and other non-commercial use by authorized users, which include persons affiliated with UC Berkeley and walk-in users who must access the data in person at the library.The data sources for the layers in the collection \"Administrative Boundary Maps of China, 1949-2014\" include the following primary sources: \u201cThe Historical Changes of Administrative Regions of China, 1949-1983\u201d (three volumes); \u300a\u4e2d\u534e\u4eba\u6c11\u5171\u548c\u56fd\u53bf\u7ea7\u4ee5\u4e0a\u884c\u653f\u533a\u6cbf\u9769\u300b\uff08\u4e09\u518c\uff0c1949-1983\u5e74\uff09\u201cThe Atlas of Changes of Administrative Regions of China\u201d;\u300a\u4e2d\u534e\u4eba\u6c11\u5171\u548c\u56fd\u884c\u653f\u533a\u5212\u6cbf\u9769\u5730\u56fe\u96c6\u300bThe yearly publications of \u201cThe Administrative Regions\u201d, 1985-2014; \u6bcf\u5e74\u7684\u51fa\u7248\u884c\u653f\u533a\u5212\u7b80\u518c\uff081985-2014\u5e74\uff09The web site for administrative regions: www.xzqh.org; \u884c\u653f\u533a\u5212\u7f51www.xzqh.org"
8-
],
8+
],
99
"dct_language_sm": [
1010
"eng"
1111
],
1212
"dct_publisher_sm": [
1313
"All China Marketing Research Co., Ltd."
1414
],
15-
"schema_provider_s": "Berkeley",
15+
"schema_provider_s": "University of California Berkeley",
1616
"gbl_resourceClass_sm": [
1717
"Datasets"
1818
],
1919
"gbl_resourceType_sm": [
2020
"Polygon Data"
2121
],
2222
"dct_subject_sm": [
23-
"Boundaries",
23+
"Boundaries",
2424
"Administrative and Political Divisions"
25-
],
25+
],
2626
"dct_issued_s": "2010-04-01",
2727
"gbl_indexYear_im": [
2828
2012
2929
],
3030
"dct_spatial_sm": [
3131
"China"
32-
],
33-
"locn_geometry": "ENVELOPE(68.196555, 136.429552, 54.139796, 13.097289)",
32+
],
33+
"locn_geometry": "ENVELOPE(68.196555, 136.429552, 54.139796, 13.097289)",
3434
"dct_accessRights_s": "Restricted",
3535
"dct_format_s": "Shapefile",
36-
"gbl_wxsIdentifier_s": "s7b12n",
37-
"dct_references_s": "{\"http://www.opengis.net/def/serviceType/ogc/wfs\":\"https://geoservices-secure.lib.berkeley.edu/geoserver/wfs\",\"http://www.opengis.net/def/serviceType/ogc/wms\":\"https://geoservices-secure.lib.berkeley.edu/geoserver/wms\",\"http://www.isotc211.org/schemas/2005/gmd/\":\"https://spatial.lib.berkeley.edu/metadata/berkeley-s7b12n/iso19139.xml\",\"http://schema.org/downloadUrl\":\"https://spatial.lib.berkeley.edu/UCB/berkeley-s7b12n/data.zip\"}",
38-
"id": "berkeley-s7b12n",
36+
"gbl_wxsIdentifier_s": "s7b12n",
37+
"dct_references_s": "{\"http://www.opengis.net/def/serviceType/ogc/wfs\":\"https://geoservices-secure.lib.berkeley.edu/geoserver/wfs\",\"http://www.opengis.net/def/serviceType/ogc/wms\":\"https://geoservices-secure.lib.berkeley.edu/geoserver/wms\",\"http://www.isotc211.org/schemas/2005/gmd/\":\"https://spatial.lib.berkeley.edu/metadata/berkeley-s7b12n/iso19139.xml\",\"http://schema.org/downloadUrl\":\"https://spatial.lib.berkeley.edu/UCB/berkeley-s7b12n/data.zip\"}",
38+
"id": "berkeley-s7b12n",
3939
"dct_identifier_sm": [
4040
"https://spatial.lib.berkeley.edu/viewpublic/berkeley-s7b12n"
4141
],
42-
"gbl_mdModified_dt": "2019-06-26T23:34:35.206Z",
42+
"gbl_mdModified_dt": "2019-06-26T23:34:35.206Z",
4343
"gbl_mdVersion_s": "Aardvark"
44-
}
45-
44+
}

spec/system/application_system_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77

88
it 'can veiw restricted data' do
99
visit '/catalog/berkeley-s7b12n'
10-
expect(page).to have_text('Login to View and Download')
10+
expect(page).to have_text('Administrative Boundary Maps of China, 1949-2014')
1111
end
1212
end

0 commit comments

Comments
 (0)