Skip to content

Commit f0f2a93

Browse files
authored
Rename iso v1 to v3 (#73)
* Update .gitignore * Limited Updates * Full revert - this seems to be working * Gemfile updates * Fix mdTranslator Committed Version * Add -3 Option * Update Gemfile.lock * Update .ruby-version to 2.7.7 * Update Dockerfile Using ruby v2.7.7 and bundler v2.4.21. Exposing port 8080 instead of 3000. * Update Welcome Text * Update Writers Lists Text * Update Writers Dropdown Text * Update mdTranslator version * Update Gemfile.lock
1 parent 5320f36 commit f0f2a93

File tree

7 files changed

+24
-22
lines changed

7 files changed

+24
-22
lines changed

Dockerfile

+2-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ WORKDIR /app
1010

1111
# Install dependencies
1212
COPY Gemfile Gemfile.lock ./
13-
RUN bundle config set --local without 'development test' && bundle install --jobs 4 --retry 3
13+
RUN gem install bundler:2.4.21 && bundle config set --local without 'development test' && bundle install --jobs 4 --retry 3
1414

1515
# Copy the rest of the application files
1616
COPY . .
@@ -23,9 +23,6 @@ FROM ruby:2.7.7-slim
2323
RUN apt-get update -q && apt-get install -y --no-install-recommends \
2424
nodejs
2525

26-
# Add non-root user
27-
RUN useradd -ms /bin/bash safeuser
28-
2926
# Set the working directory
3027
WORKDIR /app
3128

@@ -36,4 +33,4 @@ COPY --from=base /usr/local/bundle /usr/local/bundle
3633
EXPOSE 8080
3734

3835
# Start the Rails server
39-
CMD ["rails", "server", "-b", "0.0.0.0", "-e", "production", "-p", "8080"]
36+
CMD ["rails", "server", "-b", "0.0.0.0", "-e", "production", "-p", "8080"]

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ gem 'json-schema'
5555
# Alaska Data Integration working group schema definition
5656
gem 'adiwg-mdjson_schemas', '2.8.1'
5757
# Alaska Data Integration working group metadata translator
58-
gem 'adiwg-mdtranslator', '2.18.2'
58+
gem 'adiwg-mdtranslator', '2.18.4'
5959
# Alaska Data Integration working group metadata code lists
6060
gem 'adiwg-mdcodes', '2.8.4'
6161

Gemfile.lock

+10-10
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,20 @@ GEM
5656
minitest (~> 5.1)
5757
tzinfo (~> 1.1)
5858
zeitwerk (~> 2.2, >= 2.2.2)
59-
addressable (2.8.0)
60-
public_suffix (>= 2.0.2, < 5.0)
59+
addressable (2.8.5)
60+
public_suffix (>= 2.0.2, < 6.0)
6161
adiwg-mdcodes (2.8.4)
6262
json (~> 2.0)
6363
adiwg-mdjson_schemas (2.8.1)
64-
adiwg-mdtranslator (2.18.2)
65-
adiwg-mdcodes (~> 2.8)
66-
adiwg-mdjson_schemas (~> 2.8)
64+
adiwg-mdtranslator (2.18.4)
65+
adiwg-mdcodes (= 2.8.4)
66+
adiwg-mdjson_schemas (= 2.8.1)
6767
builder (~> 3.2)
6868
coderay (~> 1.1)
6969
jbuilder (~> 2.5)
7070
json (~> 2.0)
7171
json-schema (~> 2.7)
72-
kramdown (~> 1.13)
72+
kramdown (>= 1.13, < 3.0)
7373
nokogiri (~> 1.7)
7474
thor (~> 0.19)
7575
uuidtools (~> 2.1)
@@ -141,7 +141,7 @@ GEM
141141
racc (~> 1.4)
142142
psych (4.0.3)
143143
stringio
144-
public_suffix (5.0.3)
144+
public_suffix (5.0.4)
145145
puma (5.6.7)
146146
nio4r (~> 2.0)
147147
racc (1.7.1)
@@ -239,7 +239,7 @@ PLATFORMS
239239
DEPENDENCIES
240240
adiwg-mdcodes (= 2.8.4)
241241
adiwg-mdjson_schemas (= 2.8.1)
242-
adiwg-mdtranslator (= 2.18.2)
242+
adiwg-mdtranslator (= 2.18.4)
243243
bootsnap (>= 1.4.2)
244244
builder
245245
coderay
@@ -249,7 +249,7 @@ DEPENDENCIES
249249
json
250250
json-schema
251251
kramdown
252-
puma (~> 4.3.11)
252+
puma (~> 5.6.7)
253253
rack-cors
254254
rack-proxy
255255
rack-timeout
@@ -268,4 +268,4 @@ RUBY VERSION
268268
ruby 2.7.7p221
269269

270270
BUNDLED WITH
271-
2.4.21
271+
2.4.21

app/models/option.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Option
1212
def self.getOptionList
1313
{
1414
reader: %w[mdJson sbJson fgdc],
15-
writer: %w[iso19115_2 iso19110 html mdJson sbJson fgdc simple_html],
15+
writer: %w[iso19115_3 iso19115_2 iso19110 html mdJson sbJson fgdc simple_html],
1616
format: %w[auto plain json xml],
1717
validate: %w[none normal strict],
1818
showAllTags: %w[true false],

app/views/api/v3/demos/show.html.erb

+3-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@
7777
<option value="html" selected="selected">html</option>
7878
<option value="fgdc">fgdc</option>
7979
<option value="iso19110">iso19110</option>
80-
<option value="iso19115_1">iso19115_1</option>
81-
<option value="iso19115_2">iso19115_2</option>
80+
<option value="iso19115_3">iso19115_1 (alias of iso19115_3)</option>
81+
<option value="iso19115_2">iso19115_2/19139 (deprecated)</option>
82+
<option value="iso19115_3">iso19115_3</option>
8283
<option value="mdJson">mdJson</option>
8384
<option value="sbJson">sbJson</option>
8485
<option value="">-none-</option>

app/views/api/writers/index.html.erb

+5-1
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,18 @@
2323
: Federal Geographic Data Committee's Content Standard for Digital Geospatial Metadata - FGDC-STD-001-1998
2424
Includes Biological Data Profile
2525
26-
[iso19115_1](./writers/iso19115_1)
26+
[iso19115_1](./writers/iso19115_1) (via iso19115_3)
2727
2828
: International Standards Organization Geographic Information - Metadata 19115-1:2014
2929
3030
[iso19115_2](./writers/iso19115_2)
3131
3232
: International Standards Organization Geographic Information - Metadata 19115-2:2009
3333
34+
[iso19115_3](./writers/iso19115_3)
35+
36+
: International Standards Organization Geographic Information - Metadata 19115-3:2014
37+
3438
[iso19110](./writers/iso19110)
3539
3640
: International Standards Organization Geographic Information - Feature Catalogue 19110:2005

app/views/welcome/index.html.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ Alaska Ocean Observing Systems (AOOS), Nuna Technologies, U.S. Fish & Wildlife S
5555
National Climate Change and Wildlife Science Centers (NCCWSC - USGS). Together these organizations developed
5656
the six extensible components of the ADIwg ISO Metadata Developer's Toolkit listed below:
5757
58-
* __mdJson__ - a simple but thorough JSON format for scientific metadata that fully supports the ISO 19115-1,
59-
ISO 19115-2, ISO 19110, FGDC, and other metadata standards.
58+
* __mdJson__ - a simple but thorough JSON format for scientific metadata that fully supports the ISO 19115-1 (via ISO 19115-3),
59+
ISO 19115-2/19139 (deprecated), ISO 19115-3, ISO 19110, FGDC, and other metadata standards.
6060
* __mdTranslator__ - a public hosted web service for translation of mdJson to other metadata
6161
standards. The mdTranslator is also available as a Ruby Gem 'adiwg-mdtranslator' and as source
6262
code from our GitHub repository.

0 commit comments

Comments
 (0)