Skip to content

Commit c24ece8

Browse files
committed
release 5.1.0
1 parent de5b2fa commit c24ece8

132 files changed

Lines changed: 22202 additions & 949 deletions

File tree

Some content is hidden

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

.env.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# see https://www.selenium.dev/documentation/selenium_manager/#opting-out-of-data-collection
22
SE_AVOID_STATS="false"
33

4-
ROOT_URL="http://127.0.0.1:47001"
4+
ROOT_URL="http://localhost:47001"
55
DATABASE_URL="mysql2://root:root@127.0.0.1:3306/kor_test?encoding=utf8&collation=utf8_unicode_ci&reconnect=true"
66
DATA_DIR="${KOR_ROOT}/tmp/test/data"
77
SECRET_KEY_BASE="aGh9kee4iev2mauxosh3ADieghesha0l"

.rubocop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ Lint/Debugger:
9696
- 'lib/kor/export/**/*.rb'
9797
- 'lib/kor/neo_graph.rb'
9898
- 'lib/kor/tasks.rb'
99+
- 'lib/kor/static.rb'
99100

100101
Lint/UnusedMethodArgument:
101102
Exclude:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ have a look at the
1414
Here are a few highlights:
1515

1616
* static mode is now available
17+
* coffeescript is no longer a dependency
1718

1819
## Version 5.0.1
1920

Gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ gem 'awesome_nested_set', '~> 3.5.0'
66
gem 'colorize'
77
gem 'dotenv'
88
gem 'exifr', '1.1.1'
9-
gem 'faraday'
109
gem 'factory_bot_rails'
10+
gem 'faraday'
1111
gem 'hirb'
1212
gem 'httpclient'
1313
gem 'jbuilder'
@@ -34,7 +34,6 @@ group :test do
3434
gem 'selenium-webdriver'
3535
gem 'simplecov', require: false
3636
gem 'vcr'
37-
# gem 'webdrivers'
3837
gem 'webmock'
3938
end
4039

Gemfile.lock

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ GEM
9393
activerecord (>= 4.0.0, < 7.1)
9494
base64 (0.3.0)
9595
benchmark (0.5.0)
96-
bigdecimal (3.3.1)
96+
bigdecimal (4.0.0)
9797
brakeman (7.1.1)
9898
racc
9999
builder (3.3.0)
@@ -110,7 +110,7 @@ GEM
110110
climate_control (0.2.0)
111111
coderay (1.1.3)
112112
colorize (0.8.1)
113-
concurrent-ruby (1.3.5)
113+
concurrent-ruby (1.3.6)
114114
connection_pool (2.2.5)
115115
crack (0.4.6)
116116
bigdecimal
@@ -160,9 +160,9 @@ GEM
160160
activerecord (>= 5.a)
161161
database_cleaner-core (~> 2.0.0)
162162
database_cleaner-core (2.0.1)
163-
date (3.5.0)
163+
date (3.5.1)
164164
debase-ruby_core_source (0.10.18)
165-
diff-lcs (1.5.1)
165+
diff-lcs (1.6.2)
166166
docile (1.4.1)
167167
dotenv (2.8.1)
168168
drb (2.2.3)
@@ -180,8 +180,8 @@ GEM
180180
faraday-net_http (>= 2.0, < 3.5)
181181
json
182182
logger
183-
faraday-net_http (3.4.0)
184-
net-http (>= 0.5.0)
183+
faraday-net_http (3.4.2)
184+
net-http (~> 0.5)
185185
ffi (1.15.5)
186186
globalid (1.3.0)
187187
activesupport (>= 6.1)
@@ -208,7 +208,7 @@ GEM
208208
language_server-protocol (3.17.0.5)
209209
lint_roller (1.1.0)
210210
logger (1.7.0)
211-
loofah (2.24.1)
211+
loofah (2.25.0)
212212
crass (~> 1.0.2)
213213
nokogiri (>= 1.12.0)
214214
mail (2.9.0)
@@ -226,7 +226,7 @@ GEM
226226
mime-types-data (~> 3.2015)
227227
mime-types-data (3.2022.0105)
228228
mini_mime (1.1.5)
229-
minitest (5.26.2)
229+
minitest (5.27.0)
230230
multi_test (0.1.2)
231231
mutex_m (0.3.0)
232232
mysql2 (0.5.7)
@@ -300,14 +300,14 @@ GEM
300300
actionpack (>= 5.0)
301301
railties (>= 5.0)
302302
rexml (3.4.4)
303-
rspec-core (3.11.0)
304-
rspec-support (~> 3.11.0)
305-
rspec-expectations (3.11.1)
303+
rspec-core (3.13.6)
304+
rspec-support (~> 3.13.0)
305+
rspec-expectations (3.13.5)
306306
diff-lcs (>= 1.2.0, < 2.0)
307-
rspec-support (~> 3.11.0)
308-
rspec-mocks (3.11.2)
307+
rspec-support (~> 3.13.0)
308+
rspec-mocks (3.13.7)
309309
diff-lcs (>= 1.2.0, < 2.0)
310-
rspec-support (~> 3.11.0)
310+
rspec-support (~> 3.13.0)
311311
rspec-rails (5.1.2)
312312
actionpack (>= 5.2)
313313
activesupport (>= 5.2)
@@ -316,7 +316,7 @@ GEM
316316
rspec-expectations (~> 3.10)
317317
rspec-mocks (~> 3.10)
318318
rspec-support (~> 3.10)
319-
rspec-support (3.11.1)
319+
rspec-support (3.13.6)
320320
rubocop (1.81.7)
321321
json (~> 2.3)
322322
language_server-protocol (~> 3.17.0.2)
@@ -333,13 +333,13 @@ GEM
333333
prism (~> 1.4)
334334
ruby-ole (1.2.13.1)
335335
ruby-progressbar (1.13.0)
336-
rubyzip (2.4.1)
336+
rubyzip (3.2.2)
337337
securerandom (0.4.1)
338-
selenium-webdriver (4.34.0)
338+
selenium-webdriver (4.39.0)
339339
base64 (~> 0.2)
340340
logger (~> 1.4)
341341
rexml (~> 3.2, >= 3.2.5)
342-
rubyzip (>= 1.2.2, < 3.0)
342+
rubyzip (>= 1.2.2, < 4.0)
343343
websocket (~> 1.0)
344344
simplecov (0.21.2)
345345
docile (~> 1.1)
@@ -362,7 +362,7 @@ GEM
362362
unicode-display_width (3.2.0)
363363
unicode-emoji (~> 4.1)
364364
unicode-emoji (4.1.0)
365-
uri (1.0.3)
365+
uri (1.0.4)
366366
vcr (6.1.0)
367367
webmock (3.18.1)
368368
addressable (>= 2.8.0)
@@ -377,7 +377,7 @@ GEM
377377
xpath (3.2.0)
378378
nokogiri (~> 1.8)
379379
yard (0.9.38)
380-
zeitwerk (2.7.3)
380+
zeitwerk (2.7.4)
381381

382382
PLATFORMS
383383
x86_64-linux

app/controllers/base_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def allowed_to?(policy = :view, collections = Collection.all, options = {})
5757

5858
def static_mode?
5959
path = "#{Rails.root}/public/static"
60-
60+
6161
File.directory?(path)
6262
end
6363

app/controllers/entities_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def index
6565

6666
if params[:file_size].present?
6767
regex = /^([+\-])?(\d+)\s*(kb|mb|gb|tb)?$/
68-
x, sign, size, unit = params[:file_size].downcase.match(regex).to_a
68+
x, sign, size, unit = params[:file_size].downcase.strip.match(regex).to_a
6969
if size
7070
if unit
7171
exp = {'kb' => 1, 'mb' => 2, 'gb' => 3, 'tb' => 3}[unit] || 0

app/controllers/kor_controller.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
class KorController < JsonController
22
skip_before_action :legal
3+
skip_before_action :auth, only: ['static_info']
34

45
def index
56
# just a dummy
@@ -9,6 +10,10 @@ def index
910
def info
1011
end
1112

13+
def static_info
14+
render plain: '{}', status: 404
15+
end
16+
1217
def statistics
1318
end
1419

app/views/kor/info.json.jbuilder

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ json.info do
77
json.legal_html Kor.settings['legal_html']
88
# TODO: imeplement this:
99
# json.federation_auth Kor.federation_auth?
10-
json.url root_url
10+
json.url root_url.gsub(/\/$/, '')
1111
json.uuid Kor.repository_uuid
1212
json.source_code_url Kor.source_code_url
1313
json.locales I18n.available_locales

app/views/oai_pmh/relationships/_record_kor.erb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,12 @@
1818
<kor:properties><% record.properties.each do |property| %>
1919
<kor:property><%= property %></kor:property>
2020
<% end %></kor:properties>
21+
<kor:datings><% record.datings.each do |dating| %>
22+
<kor:dating
23+
event="<%= dating.label %>"
24+
from-day="<%= dating.from_day %>"
25+
to-day="<%= dating.to_day %>"
26+
><%= dating.dating_string %></kor:dating>
27+
<% end %></kor:datings>
2128
</kor:relationship>
2229
<% end %>

0 commit comments

Comments
 (0)