apidae 1.4.15 → 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.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/apidae/objects_controller.rb +7 -0
  3. data/app/controllers/apidae/projects_controller.rb +1 -7
  4. data/app/models/apidae/obj.rb +26 -0
  5. data/app/models/apidae/selection.rb +0 -3
  6. data/app/views/apidae/objects/search.html.erb +49 -0
  7. data/config/initializers/search.rb +23 -0
  8. data/config/routes.rb +2 -4
  9. data/db/migrate/20250129190137_create_pg_search_documents.rb +17 -0
  10. data/db/migrate/20250130110941_add_columns_to_pg_search_documents.rb +10 -0
  11. data/db/migrate/20250130120941_add_tsv_column_to_pg_search_documents.rb +22 -0
  12. data/db/migrate/20250130152441_add_gin_index_to_pg_search_documents.rb +7 -0
  13. data/lib/apidae/version.rb +1 -1
  14. data/test/dummy/bin/rails +3 -3
  15. data/test/dummy/bin/rake +2 -2
  16. data/test/dummy/bin/setup +21 -13
  17. data/test/dummy/config/application.rb +21 -13
  18. data/test/dummy/config/boot.rb +2 -4
  19. data/test/dummy/config/cable.yml +10 -0
  20. data/test/dummy/config/environment.rb +1 -1
  21. data/test/dummy/config/environments/development.rb +53 -19
  22. data/test/dummy/config/environments/production.rb +56 -36
  23. data/test/dummy/config/environments/test.rb +44 -19
  24. data/test/dummy/config/initializers/apidae.rb +7 -5
  25. data/test/dummy/config/initializers/content_security_policy.rb +25 -0
  26. data/test/dummy/config/initializers/filter_parameter_logging.rb +6 -2
  27. data/test/dummy/config/initializers/inflections.rb +4 -4
  28. data/test/dummy/config/initializers/new_framework_defaults_7_2.rb +70 -0
  29. data/test/dummy/config/initializers/permissions_policy.rb +13 -0
  30. data/test/dummy/config/puma.rb +34 -0
  31. data/test/dummy/config/storage.yml +34 -0
  32. data/test/dummy/db/migrate/20250129172254_add_service_name_to_active_storage_blobs.active_storage.rb +22 -0
  33. data/test/dummy/db/migrate/20250129172255_create_active_storage_variant_records.active_storage.rb +27 -0
  34. data/test/dummy/db/migrate/20250129172256_remove_not_null_on_active_storage_blobs_checksum.active_storage.rb +8 -0
  35. data/test/dummy/public/404.html +6 -6
  36. data/test/dummy/public/406-unsupported-browser.html +66 -0
  37. data/test/dummy/public/422.html +6 -6
  38. data/test/dummy/public/500.html +6 -6
  39. data/test/dummy/public/icon.png +0 -0
  40. data/test/dummy/public/icon.svg +3 -0
  41. data/test/dummy/public/robots.txt +1 -0
  42. metadata +53 -13
  43. data/test/dummy/app/assets/config/manifest.js +0 -1
  44. data/test/dummy/app/assets/stylesheets/application.css +0 -15
  45. data/test/dummy/config/initializers/assets.rb +0 -11
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: 1.4.15
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: 2025-02-24 00:00:00.000000000 Z
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: '6.0'
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: '6.0'
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.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.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,6 +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
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
195
215
  - lib/apidae.rb
196
216
  - lib/apidae/engine.rb
197
217
  - lib/apidae/version.rb
@@ -215,9 +235,7 @@ files:
215
235
  - test/data/update_selections.json
216
236
  - test/dummy/README.rdoc
217
237
  - test/dummy/Rakefile
218
- - test/dummy/app/assets/config/manifest.js
219
238
  - test/dummy/app/assets/javascripts/application.js
220
- - test/dummy/app/assets/stylesheets/application.css
221
239
  - test/dummy/app/controllers/application_controller.rb
222
240
  - test/dummy/app/helpers/application_helper.rb
223
241
  - test/dummy/app/views/layouts/application.html.erb
@@ -228,31 +246,43 @@ files:
228
246
  - test/dummy/config.ru
229
247
  - test/dummy/config/application.rb
230
248
  - test/dummy/config/boot.rb
249
+ - test/dummy/config/cable.yml
231
250
  - test/dummy/config/database.yml
232
251
  - test/dummy/config/environment.rb
233
252
  - test/dummy/config/environments/development.rb
234
253
  - test/dummy/config/environments/production.rb
235
254
  - test/dummy/config/environments/test.rb
236
255
  - test/dummy/config/initializers/apidae.rb
237
- - test/dummy/config/initializers/assets.rb
238
256
  - test/dummy/config/initializers/backtrace_silencers.rb
257
+ - test/dummy/config/initializers/content_security_policy.rb
239
258
  - test/dummy/config/initializers/cookies_serializer.rb
240
259
  - test/dummy/config/initializers/filter_parameter_logging.rb
241
260
  - test/dummy/config/initializers/inflections.rb
242
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
243
264
  - test/dummy/config/initializers/session_store.rb
244
265
  - test/dummy/config/initializers/to_time_preserves_timezone.rb
245
266
  - test/dummy/config/initializers/wrap_parameters.rb
246
267
  - test/dummy/config/locales/en.yml
268
+ - test/dummy/config/puma.rb
247
269
  - test/dummy/config/routes.rb
248
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
249
275
  - test/dummy/db/schema.rb
250
276
  - test/dummy/log/development.log
251
277
  - test/dummy/log/test.log
252
278
  - test/dummy/public/404.html
279
+ - test/dummy/public/406-unsupported-browser.html
253
280
  - test/dummy/public/422.html
254
281
  - test/dummy/public/500.html
255
282
  - test/dummy/public/favicon.ico
283
+ - test/dummy/public/icon.png
284
+ - test/dummy/public/icon.svg
285
+ - test/dummy/public/robots.txt
256
286
  - test/dummy/tmp/local_secret.txt
257
287
  - test/fixtures/apidae/exports.yml
258
288
  - test/fixtures/apidae/objects.yml
@@ -281,7 +311,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
281
311
  requirements:
282
312
  - - ">="
283
313
  - !ruby/object:Gem::Version
284
- version: '0'
314
+ version: 3.1.0
285
315
  required_rubygems_version: !ruby/object:Gem::Requirement
286
316
  requirements:
287
317
  - - ">="
@@ -312,9 +342,7 @@ test_files:
312
342
  - test/data/update_selections.json
313
343
  - test/dummy/README.rdoc
314
344
  - test/dummy/Rakefile
315
- - test/dummy/app/assets/config/manifest.js
316
345
  - test/dummy/app/assets/javascripts/application.js
317
- - test/dummy/app/assets/stylesheets/application.css
318
346
  - test/dummy/app/controllers/application_controller.rb
319
347
  - test/dummy/app/helpers/application_helper.rb
320
348
  - test/dummy/app/views/layouts/application.html.erb
@@ -324,32 +352,44 @@ test_files:
324
352
  - test/dummy/bin/setup
325
353
  - test/dummy/config/application.rb
326
354
  - test/dummy/config/boot.rb
355
+ - test/dummy/config/cable.yml
327
356
  - test/dummy/config/database.yml
328
357
  - test/dummy/config/environment.rb
329
358
  - test/dummy/config/environments/development.rb
330
359
  - test/dummy/config/environments/production.rb
331
360
  - test/dummy/config/environments/test.rb
332
361
  - test/dummy/config/initializers/apidae.rb
333
- - test/dummy/config/initializers/assets.rb
334
362
  - test/dummy/config/initializers/backtrace_silencers.rb
363
+ - test/dummy/config/initializers/content_security_policy.rb
335
364
  - test/dummy/config/initializers/cookies_serializer.rb
336
365
  - test/dummy/config/initializers/filter_parameter_logging.rb
337
366
  - test/dummy/config/initializers/inflections.rb
338
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
339
370
  - test/dummy/config/initializers/session_store.rb
340
371
  - test/dummy/config/initializers/to_time_preserves_timezone.rb
341
372
  - test/dummy/config/initializers/wrap_parameters.rb
342
373
  - test/dummy/config/locales/en.yml
374
+ - test/dummy/config/puma.rb
343
375
  - test/dummy/config/routes.rb
344
376
  - test/dummy/config/secrets.yml
377
+ - test/dummy/config/storage.yml
345
378
  - test/dummy/config.ru
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
346
382
  - test/dummy/db/schema.rb
347
383
  - test/dummy/log/development.log
348
384
  - test/dummy/log/test.log
349
385
  - test/dummy/public/404.html
386
+ - test/dummy/public/406-unsupported-browser.html
350
387
  - test/dummy/public/422.html
351
388
  - test/dummy/public/500.html
352
389
  - test/dummy/public/favicon.ico
390
+ - test/dummy/public/icon.png
391
+ - test/dummy/public/icon.svg
392
+ - test/dummy/public/robots.txt
353
393
  - test/dummy/tmp/local_secret.txt
354
394
  - test/fixtures/apidae/exports.yml
355
395
  - test/fixtures/apidae/objects.yml
@@ -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 )