apidae 1.4.29 → 2.0.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/app/controllers/apidae/objects_controller.rb +8 -3
- data/app/controllers/apidae/projects_controller.rb +1 -7
- data/app/models/apidae/apidae_data_parser.rb +12 -38
- data/app/models/apidae/obj.rb +29 -6
- data/app/models/apidae/selection.rb +0 -4
- data/app/views/apidae/objects/search.html.erb +49 -0
- data/config/initializers/constants.rb +3 -3
- data/config/initializers/search.rb +23 -0
- data/config/locales/apidae.fr.yml +1 -1
- data/config/routes.rb +2 -4
- data/db/migrate/20250129190137_create_pg_search_documents.rb +17 -0
- data/db/migrate/20250130110941_add_columns_to_pg_search_documents.rb +10 -0
- data/db/migrate/20250130120941_add_tsv_column_to_pg_search_documents.rb +22 -0
- data/db/migrate/20250130152441_add_gin_index_to_pg_search_documents.rb +7 -0
- data/lib/apidae/version.rb +1 -1
- data/test/dummy/bin/rails +3 -3
- data/test/dummy/bin/rake +2 -2
- data/test/dummy/bin/setup +21 -13
- data/test/dummy/config/application.rb +21 -13
- data/test/dummy/config/boot.rb +2 -4
- data/test/dummy/config/cable.yml +10 -0
- data/test/dummy/config/environment.rb +1 -1
- data/test/dummy/config/environments/development.rb +53 -19
- data/test/dummy/config/environments/production.rb +56 -36
- data/test/dummy/config/environments/test.rb +44 -19
- data/test/dummy/config/initializers/apidae.rb +7 -5
- data/test/dummy/config/initializers/content_security_policy.rb +25 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +6 -2
- data/test/dummy/config/initializers/inflections.rb +4 -4
- data/test/dummy/config/initializers/new_framework_defaults_7_2.rb +70 -0
- data/test/dummy/config/initializers/permissions_policy.rb +13 -0
- data/test/dummy/config/puma.rb +34 -0
- data/test/dummy/config/storage.yml +34 -0
- data/test/dummy/db/migrate/20250129172254_add_service_name_to_active_storage_blobs.active_storage.rb +22 -0
- data/test/dummy/db/migrate/20250129172255_create_active_storage_variant_records.active_storage.rb +27 -0
- data/test/dummy/db/migrate/20250129172256_remove_not_null_on_active_storage_blobs_checksum.active_storage.rb +8 -0
- data/test/dummy/log/development.log +0 -2462
- data/test/dummy/public/404.html +6 -6
- data/test/dummy/public/406-unsupported-browser.html +66 -0
- data/test/dummy/public/422.html +6 -6
- data/test/dummy/public/500.html +6 -6
- data/test/dummy/public/icon.png +0 -0
- data/test/dummy/public/icon.svg +3 -0
- data/test/dummy/public/robots.txt +1 -0
- metadata +105 -67
- data/db/migrate/20250323201235_change_objs_certifications_structure.rb +0 -15
- data/db/migrate/20260911184620_add_apidae_town_id_to_apidae_objs.rb +0 -6
- data/test/dummy/app/assets/config/manifest.js +0 -1
- data/test/dummy/app/assets/stylesheets/application.css +0 -15
- data/test/dummy/config/initializers/assets.rb +0 -11
data/test/dummy/public/404.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<title>The page you were looking for doesn't exist (404)</title>
|
|
5
5
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
6
|
<style>
|
|
7
|
-
|
|
7
|
+
.rails-default-error-page {
|
|
8
8
|
background-color: #EFEFEF;
|
|
9
9
|
color: #2E2F30;
|
|
10
10
|
text-align: center;
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
margin: 0;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
div.dialog {
|
|
15
|
+
.rails-default-error-page div.dialog {
|
|
16
16
|
width: 95%;
|
|
17
17
|
max-width: 33em;
|
|
18
18
|
margin: 4em auto 0;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
div.dialog > div {
|
|
21
|
+
.rails-default-error-page div.dialog > div {
|
|
22
22
|
border: 1px solid #CCC;
|
|
23
23
|
border-right-color: #999;
|
|
24
24
|
border-left-color: #999;
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
h1 {
|
|
34
|
+
.rails-default-error-page h1 {
|
|
35
35
|
font-size: 100%;
|
|
36
36
|
color: #730E15;
|
|
37
37
|
line-height: 1.5em;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
div.dialog > p {
|
|
40
|
+
.rails-default-error-page div.dialog > p {
|
|
41
41
|
margin: 0 0 1em;
|
|
42
42
|
padding: 1em;
|
|
43
43
|
background-color: #F7F7F7;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
</style>
|
|
55
55
|
</head>
|
|
56
56
|
|
|
57
|
-
<body>
|
|
57
|
+
<body class="rails-default-error-page">
|
|
58
58
|
<!-- This file lives in public/404.html -->
|
|
59
59
|
<div class="dialog">
|
|
60
60
|
<div>
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>Your browser is not supported (406)</title>
|
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
|
+
<style>
|
|
7
|
+
.rails-default-error-page {
|
|
8
|
+
background-color: #EFEFEF;
|
|
9
|
+
color: #2E2F30;
|
|
10
|
+
text-align: center;
|
|
11
|
+
font-family: arial, sans-serif;
|
|
12
|
+
margin: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.rails-default-error-page div.dialog {
|
|
16
|
+
width: 95%;
|
|
17
|
+
max-width: 33em;
|
|
18
|
+
margin: 4em auto 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.rails-default-error-page div.dialog > div {
|
|
22
|
+
border: 1px solid #CCC;
|
|
23
|
+
border-right-color: #999;
|
|
24
|
+
border-left-color: #999;
|
|
25
|
+
border-bottom-color: #BBB;
|
|
26
|
+
border-top: #B00100 solid 4px;
|
|
27
|
+
border-top-left-radius: 9px;
|
|
28
|
+
border-top-right-radius: 9px;
|
|
29
|
+
background-color: white;
|
|
30
|
+
padding: 7px 12% 0;
|
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.rails-default-error-page h1 {
|
|
35
|
+
font-size: 100%;
|
|
36
|
+
color: #730E15;
|
|
37
|
+
line-height: 1.5em;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.rails-default-error-page div.dialog > p {
|
|
41
|
+
margin: 0 0 1em;
|
|
42
|
+
padding: 1em;
|
|
43
|
+
background-color: #F7F7F7;
|
|
44
|
+
border: 1px solid #CCC;
|
|
45
|
+
border-right-color: #999;
|
|
46
|
+
border-left-color: #999;
|
|
47
|
+
border-bottom-color: #999;
|
|
48
|
+
border-bottom-left-radius: 4px;
|
|
49
|
+
border-bottom-right-radius: 4px;
|
|
50
|
+
border-top-color: #DADADA;
|
|
51
|
+
color: #666;
|
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
53
|
+
}
|
|
54
|
+
</style>
|
|
55
|
+
</head>
|
|
56
|
+
|
|
57
|
+
<body class="rails-default-error-page">
|
|
58
|
+
<!-- This file lives in public/406-unsupported-browser.html -->
|
|
59
|
+
<div class="dialog">
|
|
60
|
+
<div>
|
|
61
|
+
<h1>Your browser is not supported.</h1>
|
|
62
|
+
<p>Please upgrade your browser to continue.</p>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
</body>
|
|
66
|
+
</html>
|
data/test/dummy/public/422.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<title>The change you wanted was rejected (422)</title>
|
|
5
5
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
6
|
<style>
|
|
7
|
-
|
|
7
|
+
.rails-default-error-page {
|
|
8
8
|
background-color: #EFEFEF;
|
|
9
9
|
color: #2E2F30;
|
|
10
10
|
text-align: center;
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
margin: 0;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
div.dialog {
|
|
15
|
+
.rails-default-error-page div.dialog {
|
|
16
16
|
width: 95%;
|
|
17
17
|
max-width: 33em;
|
|
18
18
|
margin: 4em auto 0;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
div.dialog > div {
|
|
21
|
+
.rails-default-error-page div.dialog > div {
|
|
22
22
|
border: 1px solid #CCC;
|
|
23
23
|
border-right-color: #999;
|
|
24
24
|
border-left-color: #999;
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
h1 {
|
|
34
|
+
.rails-default-error-page h1 {
|
|
35
35
|
font-size: 100%;
|
|
36
36
|
color: #730E15;
|
|
37
37
|
line-height: 1.5em;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
div.dialog > p {
|
|
40
|
+
.rails-default-error-page div.dialog > p {
|
|
41
41
|
margin: 0 0 1em;
|
|
42
42
|
padding: 1em;
|
|
43
43
|
background-color: #F7F7F7;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
</style>
|
|
55
55
|
</head>
|
|
56
56
|
|
|
57
|
-
<body>
|
|
57
|
+
<body class="rails-default-error-page">
|
|
58
58
|
<!-- This file lives in public/422.html -->
|
|
59
59
|
<div class="dialog">
|
|
60
60
|
<div>
|
data/test/dummy/public/500.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<title>We're sorry, but something went wrong (500)</title>
|
|
5
5
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
6
|
<style>
|
|
7
|
-
|
|
7
|
+
.rails-default-error-page {
|
|
8
8
|
background-color: #EFEFEF;
|
|
9
9
|
color: #2E2F30;
|
|
10
10
|
text-align: center;
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
margin: 0;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
div.dialog {
|
|
15
|
+
.rails-default-error-page div.dialog {
|
|
16
16
|
width: 95%;
|
|
17
17
|
max-width: 33em;
|
|
18
18
|
margin: 4em auto 0;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
div.dialog > div {
|
|
21
|
+
.rails-default-error-page div.dialog > div {
|
|
22
22
|
border: 1px solid #CCC;
|
|
23
23
|
border-right-color: #999;
|
|
24
24
|
border-left-color: #999;
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
h1 {
|
|
34
|
+
.rails-default-error-page h1 {
|
|
35
35
|
font-size: 100%;
|
|
36
36
|
color: #730E15;
|
|
37
37
|
line-height: 1.5em;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
div.dialog > p {
|
|
40
|
+
.rails-default-error-page div.dialog > p {
|
|
41
41
|
margin: 0 0 1em;
|
|
42
42
|
padding: 1em;
|
|
43
43
|
background-color: #F7F7F7;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
</style>
|
|
55
55
|
</head>
|
|
56
56
|
|
|
57
|
-
<body>
|
|
57
|
+
<body class="rails-default-error-page">
|
|
58
58
|
<!-- This file lives in public/500.html -->
|
|
59
59
|
<div class="dialog">
|
|
60
60
|
<div>
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: apidae
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jean-Baptiste Vilain
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-02-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -16,21 +16,21 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
19
|
+
version: '7.0'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
26
|
+
version: '7.0'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: pg
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '1.
|
|
33
|
+
version: '1.5'
|
|
34
34
|
- - "<"
|
|
35
35
|
- !ruby/object:Gem::Version
|
|
36
36
|
version: '2.0'
|
|
@@ -40,7 +40,7 @@ dependencies:
|
|
|
40
40
|
requirements:
|
|
41
41
|
- - "~>"
|
|
42
42
|
- !ruby/object:Gem::Version
|
|
43
|
-
version: '1.
|
|
43
|
+
version: '1.5'
|
|
44
44
|
- - "<"
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
46
|
version: '2.0'
|
|
@@ -72,6 +72,20 @@ dependencies:
|
|
|
72
72
|
- - "~>"
|
|
73
73
|
- !ruby/object:Gem::Version
|
|
74
74
|
version: '2.5'
|
|
75
|
+
- !ruby/object:Gem::Dependency
|
|
76
|
+
name: pg_search
|
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
|
78
|
+
requirements:
|
|
79
|
+
- - "~>"
|
|
80
|
+
- !ruby/object:Gem::Version
|
|
81
|
+
version: '2.3'
|
|
82
|
+
type: :runtime
|
|
83
|
+
prerelease: false
|
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
85
|
+
requirements:
|
|
86
|
+
- - "~>"
|
|
87
|
+
- !ruby/object:Gem::Version
|
|
88
|
+
version: '2.3'
|
|
75
89
|
description: To be completed
|
|
76
90
|
email:
|
|
77
91
|
- jbvilain@gmail.com
|
|
@@ -122,6 +136,7 @@ files:
|
|
|
122
136
|
- app/views/apidae/objects/index.html.erb
|
|
123
137
|
- app/views/apidae/objects/index.json.jbuilder
|
|
124
138
|
- app/views/apidae/objects/new.html.erb
|
|
139
|
+
- app/views/apidae/objects/search.html.erb
|
|
125
140
|
- app/views/apidae/objects/show.html.erb
|
|
126
141
|
- app/views/apidae/objects/show.json.jbuilder
|
|
127
142
|
- app/views/apidae/projects/_form.html.erb
|
|
@@ -137,6 +152,7 @@ files:
|
|
|
137
152
|
- app/views/layouts/apidae/application.html.erb
|
|
138
153
|
- config/initializers/cache.rb
|
|
139
154
|
- config/initializers/constants.rb
|
|
155
|
+
- config/initializers/search.rb
|
|
140
156
|
- config/locales/apidae.fr.yml
|
|
141
157
|
- config/routes.rb
|
|
142
158
|
- db/migrate/20170512212941_create_apidae_selections.rb
|
|
@@ -192,8 +208,10 @@ files:
|
|
|
192
208
|
- db/migrate/20201112080847_create_apidae_territories.rb
|
|
193
209
|
- db/migrate/20210607214647_add_apidae_type_to_apidae_territories.rb
|
|
194
210
|
- db/migrate/20230206113335_add_prev_data_to_apidae_objs.rb
|
|
195
|
-
- db/migrate/
|
|
196
|
-
- db/migrate/
|
|
211
|
+
- db/migrate/20250129190137_create_pg_search_documents.rb
|
|
212
|
+
- db/migrate/20250130110941_add_columns_to_pg_search_documents.rb
|
|
213
|
+
- db/migrate/20250130120941_add_tsv_column_to_pg_search_documents.rb
|
|
214
|
+
- db/migrate/20250130152441_add_gin_index_to_pg_search_documents.rb
|
|
197
215
|
- lib/apidae.rb
|
|
198
216
|
- lib/apidae/engine.rb
|
|
199
217
|
- lib/apidae/version.rb
|
|
@@ -217,9 +235,7 @@ files:
|
|
|
217
235
|
- test/data/update_selections.json
|
|
218
236
|
- test/dummy/README.rdoc
|
|
219
237
|
- test/dummy/Rakefile
|
|
220
|
-
- test/dummy/app/assets/config/manifest.js
|
|
221
238
|
- test/dummy/app/assets/javascripts/application.js
|
|
222
|
-
- test/dummy/app/assets/stylesheets/application.css
|
|
223
239
|
- test/dummy/app/controllers/application_controller.rb
|
|
224
240
|
- test/dummy/app/helpers/application_helper.rb
|
|
225
241
|
- test/dummy/app/views/layouts/application.html.erb
|
|
@@ -230,31 +246,43 @@ files:
|
|
|
230
246
|
- test/dummy/config.ru
|
|
231
247
|
- test/dummy/config/application.rb
|
|
232
248
|
- test/dummy/config/boot.rb
|
|
249
|
+
- test/dummy/config/cable.yml
|
|
233
250
|
- test/dummy/config/database.yml
|
|
234
251
|
- test/dummy/config/environment.rb
|
|
235
252
|
- test/dummy/config/environments/development.rb
|
|
236
253
|
- test/dummy/config/environments/production.rb
|
|
237
254
|
- test/dummy/config/environments/test.rb
|
|
238
255
|
- test/dummy/config/initializers/apidae.rb
|
|
239
|
-
- test/dummy/config/initializers/assets.rb
|
|
240
256
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
|
257
|
+
- test/dummy/config/initializers/content_security_policy.rb
|
|
241
258
|
- test/dummy/config/initializers/cookies_serializer.rb
|
|
242
259
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
|
243
260
|
- test/dummy/config/initializers/inflections.rb
|
|
244
261
|
- test/dummy/config/initializers/mime_types.rb
|
|
262
|
+
- test/dummy/config/initializers/new_framework_defaults_7_2.rb
|
|
263
|
+
- test/dummy/config/initializers/permissions_policy.rb
|
|
245
264
|
- test/dummy/config/initializers/session_store.rb
|
|
246
265
|
- test/dummy/config/initializers/to_time_preserves_timezone.rb
|
|
247
266
|
- test/dummy/config/initializers/wrap_parameters.rb
|
|
248
267
|
- test/dummy/config/locales/en.yml
|
|
268
|
+
- test/dummy/config/puma.rb
|
|
249
269
|
- test/dummy/config/routes.rb
|
|
250
270
|
- test/dummy/config/secrets.yml
|
|
271
|
+
- test/dummy/config/storage.yml
|
|
272
|
+
- test/dummy/db/migrate/20250129172254_add_service_name_to_active_storage_blobs.active_storage.rb
|
|
273
|
+
- test/dummy/db/migrate/20250129172255_create_active_storage_variant_records.active_storage.rb
|
|
274
|
+
- test/dummy/db/migrate/20250129172256_remove_not_null_on_active_storage_blobs_checksum.active_storage.rb
|
|
251
275
|
- test/dummy/db/schema.rb
|
|
252
276
|
- test/dummy/log/development.log
|
|
253
277
|
- test/dummy/log/test.log
|
|
254
278
|
- test/dummy/public/404.html
|
|
279
|
+
- test/dummy/public/406-unsupported-browser.html
|
|
255
280
|
- test/dummy/public/422.html
|
|
256
281
|
- test/dummy/public/500.html
|
|
257
282
|
- test/dummy/public/favicon.ico
|
|
283
|
+
- test/dummy/public/icon.png
|
|
284
|
+
- test/dummy/public/icon.svg
|
|
285
|
+
- test/dummy/public/robots.txt
|
|
258
286
|
- test/dummy/tmp/local_secret.txt
|
|
259
287
|
- test/fixtures/apidae/exports.yml
|
|
260
288
|
- test/fixtures/apidae/objects.yml
|
|
@@ -283,88 +311,98 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
283
311
|
requirements:
|
|
284
312
|
- - ">="
|
|
285
313
|
- !ruby/object:Gem::Version
|
|
286
|
-
version:
|
|
314
|
+
version: 3.1.0
|
|
287
315
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
288
316
|
requirements:
|
|
289
317
|
- - ">="
|
|
290
318
|
- !ruby/object:Gem::Version
|
|
291
319
|
version: '0'
|
|
292
320
|
requirements: []
|
|
293
|
-
rubygems_version: 3.
|
|
321
|
+
rubygems_version: 3.3.26
|
|
294
322
|
signing_key:
|
|
295
323
|
specification_version: 4
|
|
296
324
|
summary: A Ruby on Rails engine for projects that involve Apidae data
|
|
297
325
|
test_files:
|
|
298
|
-
- test/
|
|
299
|
-
- test/
|
|
300
|
-
- test/
|
|
326
|
+
- test/apidae_test.rb
|
|
327
|
+
- test/controllers/apidae/api_controller_test.rb
|
|
328
|
+
- test/controllers/apidae/dashboard_controller_test.rb
|
|
329
|
+
- test/controllers/apidae/import_controller_test.rb
|
|
330
|
+
- test/controllers/apidae/objects_controller_test.rb
|
|
331
|
+
- test/controllers/apidae/references_controller_test.rb
|
|
332
|
+
- test/controllers/apidae/selections_controller_test.rb
|
|
333
|
+
- test/data/cos_winter.json
|
|
334
|
+
- test/data/delete_selections.json
|
|
335
|
+
- test/data/deletion.json
|
|
336
|
+
- test/data/equ_groups.json
|
|
337
|
+
- test/data/hot_fr_en.json
|
|
338
|
+
- test/data/json_export.zip
|
|
339
|
+
- test/data/selections.json
|
|
340
|
+
- test/data/shared_selections.json
|
|
341
|
+
- test/data/structure.json
|
|
342
|
+
- test/data/update_selections.json
|
|
343
|
+
- test/dummy/README.rdoc
|
|
344
|
+
- test/dummy/Rakefile
|
|
301
345
|
- test/dummy/app/assets/javascripts/application.js
|
|
302
|
-
- test/dummy/app/
|
|
346
|
+
- test/dummy/app/controllers/application_controller.rb
|
|
303
347
|
- test/dummy/app/helpers/application_helper.rb
|
|
304
|
-
- test/dummy/
|
|
305
|
-
- test/dummy/bin/setup
|
|
348
|
+
- test/dummy/app/views/layouts/application.html.erb
|
|
306
349
|
- test/dummy/bin/bundle
|
|
307
350
|
- test/dummy/bin/rails
|
|
308
|
-
- test/dummy/
|
|
309
|
-
- test/dummy/
|
|
310
|
-
- test/dummy/config/locales/en.yml
|
|
311
|
-
- test/dummy/config/environments/production.rb
|
|
312
|
-
- test/dummy/config/environments/development.rb
|
|
313
|
-
- test/dummy/config/environments/test.rb
|
|
314
|
-
- test/dummy/config/environment.rb
|
|
351
|
+
- test/dummy/bin/rake
|
|
352
|
+
- test/dummy/bin/setup
|
|
315
353
|
- test/dummy/config/application.rb
|
|
316
|
-
- test/dummy/config/database.yml
|
|
317
354
|
- test/dummy/config/boot.rb
|
|
355
|
+
- test/dummy/config/cable.yml
|
|
356
|
+
- test/dummy/config/database.yml
|
|
357
|
+
- test/dummy/config/environment.rb
|
|
358
|
+
- test/dummy/config/environments/development.rb
|
|
359
|
+
- test/dummy/config/environments/production.rb
|
|
360
|
+
- test/dummy/config/environments/test.rb
|
|
361
|
+
- test/dummy/config/initializers/apidae.rb
|
|
318
362
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
|
319
|
-
- test/dummy/config/initializers/
|
|
363
|
+
- test/dummy/config/initializers/content_security_policy.rb
|
|
364
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
|
320
365
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
|
366
|
+
- test/dummy/config/initializers/inflections.rb
|
|
367
|
+
- test/dummy/config/initializers/mime_types.rb
|
|
368
|
+
- test/dummy/config/initializers/new_framework_defaults_7_2.rb
|
|
369
|
+
- test/dummy/config/initializers/permissions_policy.rb
|
|
321
370
|
- test/dummy/config/initializers/session_store.rb
|
|
322
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
|
323
|
-
- test/dummy/config/initializers/assets.rb
|
|
324
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
|
325
371
|
- test/dummy/config/initializers/to_time_preserves_timezone.rb
|
|
326
|
-
- test/dummy/config/initializers/
|
|
327
|
-
- test/dummy/config/
|
|
372
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
|
373
|
+
- test/dummy/config/locales/en.yml
|
|
374
|
+
- test/dummy/config/puma.rb
|
|
375
|
+
- test/dummy/config/routes.rb
|
|
376
|
+
- test/dummy/config/secrets.yml
|
|
377
|
+
- test/dummy/config/storage.yml
|
|
328
378
|
- test/dummy/config.ru
|
|
329
|
-
- test/dummy/
|
|
330
|
-
- test/dummy/
|
|
331
|
-
- test/dummy/
|
|
332
|
-
- test/dummy/public/500.html
|
|
333
|
-
- test/dummy/public/404.html
|
|
379
|
+
- test/dummy/db/migrate/20250129172254_add_service_name_to_active_storage_blobs.active_storage.rb
|
|
380
|
+
- test/dummy/db/migrate/20250129172255_create_active_storage_variant_records.active_storage.rb
|
|
381
|
+
- test/dummy/db/migrate/20250129172256_remove_not_null_on_active_storage_blobs_checksum.active_storage.rb
|
|
334
382
|
- test/dummy/db/schema.rb
|
|
335
|
-
- test/dummy/log/test.log
|
|
336
383
|
- test/dummy/log/development.log
|
|
384
|
+
- test/dummy/log/test.log
|
|
385
|
+
- test/dummy/public/404.html
|
|
386
|
+
- test/dummy/public/406-unsupported-browser.html
|
|
387
|
+
- test/dummy/public/422.html
|
|
388
|
+
- test/dummy/public/500.html
|
|
389
|
+
- test/dummy/public/favicon.ico
|
|
390
|
+
- test/dummy/public/icon.png
|
|
391
|
+
- test/dummy/public/icon.svg
|
|
392
|
+
- test/dummy/public/robots.txt
|
|
337
393
|
- test/dummy/tmp/local_secret.txt
|
|
338
|
-
- test/
|
|
394
|
+
- test/fixtures/apidae/exports.yml
|
|
395
|
+
- test/fixtures/apidae/objects.yml
|
|
396
|
+
- test/fixtures/apidae/references.yml
|
|
397
|
+
- test/fixtures/apidae/selection_objects.yml
|
|
398
|
+
- test/fixtures/apidae/selections.yml
|
|
399
|
+
- test/fixtures/apidae/towns.yml
|
|
339
400
|
- test/integration/navigation_test.rb
|
|
340
|
-
- test/models/apidae/selection_object_test.rb
|
|
341
|
-
- test/models/apidae/selection_test.rb
|
|
342
|
-
- test/models/apidae/file_import_test.rb
|
|
343
401
|
- test/models/apidae/export_test.rb
|
|
402
|
+
- test/models/apidae/file_import_test.rb
|
|
403
|
+
- test/models/apidae/obj_test.rb
|
|
344
404
|
- test/models/apidae/reference_test.rb
|
|
405
|
+
- test/models/apidae/selection_object_test.rb
|
|
406
|
+
- test/models/apidae/selection_test.rb
|
|
345
407
|
- test/models/apidae/town_test.rb
|
|
346
|
-
- test/models/apidae/obj_test.rb
|
|
347
|
-
- test/fixtures/apidae/selection_objects.yml
|
|
348
|
-
- test/fixtures/apidae/towns.yml
|
|
349
|
-
- test/fixtures/apidae/references.yml
|
|
350
|
-
- test/fixtures/apidae/objects.yml
|
|
351
|
-
- test/fixtures/apidae/selections.yml
|
|
352
|
-
- test/fixtures/apidae/exports.yml
|
|
353
408
|
- test/test_helper.rb
|
|
354
|
-
- test/apidae_test.rb
|
|
355
|
-
- test/controllers/apidae/selections_controller_test.rb
|
|
356
|
-
- test/controllers/apidae/api_controller_test.rb
|
|
357
|
-
- test/controllers/apidae/objects_controller_test.rb
|
|
358
|
-
- test/controllers/apidae/dashboard_controller_test.rb
|
|
359
|
-
- test/controllers/apidae/references_controller_test.rb
|
|
360
|
-
- test/controllers/apidae/import_controller_test.rb
|
|
361
|
-
- test/data/shared_selections.json
|
|
362
|
-
- test/data/equ_groups.json
|
|
363
|
-
- test/data/update_selections.json
|
|
364
|
-
- test/data/json_export.zip
|
|
365
|
-
- test/data/delete_selections.json
|
|
366
|
-
- test/data/hot_fr_en.json
|
|
367
|
-
- test/data/structure.json
|
|
368
|
-
- test/data/deletion.json
|
|
369
|
-
- test/data/selections.json
|
|
370
|
-
- test/data/cos_winter.json
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
class ChangeObjsCertificationsStructure < ActiveRecord::Migration[6.1]
|
|
2
|
-
def change
|
|
3
|
-
blank_objs = Apidae::Obj.where("type_data->'certifications'->0->>'id' IS NULL")
|
|
4
|
-
set_objs = Apidae::Obj.where("type_data->'certifications'->0->>'id' IS NOT NULL")
|
|
5
|
-
|
|
6
|
-
blank_objs.update_all("type_data = jsonb_set(type_data, '{certifications}', '{}'::jsonb)")
|
|
7
|
-
|
|
8
|
-
set_objs.each do |o|
|
|
9
|
-
unless o.certifications.is_a?(Hash)
|
|
10
|
-
o.certifications = o.certifications.blank? ? {} : Hash[o.certifications.map {|c| [c['id'].to_s, c['identifier']]}]
|
|
11
|
-
o.save!
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//= link_tree ../images
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
|
3
|
-
* listed below.
|
|
4
|
-
*
|
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
|
6
|
-
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
|
7
|
-
*
|
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any styles
|
|
10
|
-
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
|
11
|
-
* file per style scope.
|
|
12
|
-
*
|
|
13
|
-
*= require_tree .
|
|
14
|
-
*= require_self
|
|
15
|
-
*/
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
|
2
|
-
|
|
3
|
-
# Version of your assets, change this if you want to expire all your assets.
|
|
4
|
-
Rails.application.config.assets.version = '1.0'
|
|
5
|
-
|
|
6
|
-
# Add additional assets to the asset load path
|
|
7
|
-
# Rails.application.config.assets.paths << Emoji.images_path
|
|
8
|
-
|
|
9
|
-
# Precompile additional assets.
|
|
10
|
-
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
|
11
|
-
# Rails.application.config.assets.precompile += %w( search.js )
|