hanami 2.3.1 → 3.0.0.rc1

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 (184) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +64 -19
  3. data/LICENSE +20 -0
  4. data/README.md +18 -35
  5. data/hanami.gemspec +36 -37
  6. data/lib/hanami/config/db.rb +2 -0
  7. data/lib/hanami/config/i18n.rb +138 -0
  8. data/lib/hanami/config/logger.rb +15 -7
  9. data/lib/hanami/config/null_config.rb +1 -1
  10. data/lib/hanami/config/views.rb +17 -0
  11. data/lib/hanami/config.rb +66 -22
  12. data/lib/hanami/errors.rb +6 -0
  13. data/lib/hanami/extensions/action/slice_configured_action.rb +1 -1
  14. data/lib/hanami/extensions/action.rb +2 -2
  15. data/lib/hanami/extensions/mailer/slice_configured_mailer.rb +120 -0
  16. data/lib/hanami/extensions/mailer.rb +28 -0
  17. data/lib/hanami/extensions/operation/slice_configured_db_operation.rb +2 -0
  18. data/lib/hanami/extensions/view/context.rb +26 -4
  19. data/lib/hanami/extensions/view/part.rb +2 -0
  20. data/lib/hanami/extensions/view/slice_configured_context.rb +7 -0
  21. data/lib/hanami/extensions/view/slice_configured_part.rb +2 -0
  22. data/lib/hanami/extensions/view/slice_configured_view.rb +8 -8
  23. data/lib/hanami/extensions/view/standard_helpers.rb +4 -0
  24. data/lib/hanami/extensions.rb +6 -1
  25. data/lib/hanami/helpers/assets_helper.rb +0 -4
  26. data/lib/hanami/helpers/form_helper.rb +1 -1
  27. data/lib/hanami/helpers/i18n_helper.rb +176 -0
  28. data/lib/hanami/logger/rack_formatter.rb +73 -0
  29. data/lib/hanami/logger/sql_formatter.rb +80 -0
  30. data/lib/hanami/logger/sql_logger.rb +48 -0
  31. data/lib/hanami/middleware/render_errors.rb +2 -2
  32. data/lib/hanami/providers/db.rb +7 -2
  33. data/lib/hanami/providers/db_logging.rb +4 -7
  34. data/lib/hanami/providers/i18n/backend.rb +369 -0
  35. data/lib/hanami/providers/i18n/locale/en.yml +57 -0
  36. data/lib/hanami/providers/i18n.rb +114 -0
  37. data/lib/hanami/providers/mailers.rb +101 -0
  38. data/lib/hanami/routes.rb +1 -0
  39. data/lib/hanami/settings/composite_store.rb +53 -0
  40. data/lib/hanami/settings.rb +4 -4
  41. data/lib/hanami/slice/router.rb +15 -10
  42. data/lib/hanami/slice.rb +71 -11
  43. data/lib/hanami/slice_registrar.rb +2 -2
  44. data/lib/hanami/universal_logger.rb +250 -0
  45. data/lib/hanami/version.rb +1 -1
  46. data/lib/hanami/web/rack_logger.rb +2 -80
  47. data/lib/hanami/web/welcome.html.erb +443 -58
  48. data/lib/hanami.rb +4 -2
  49. metadata +29 -283
  50. data/CODE_OF_CONDUCT.md +0 -74
  51. data/FEATURES.md +0 -269
  52. data/LICENSE.md +0 -22
  53. data/spec/integration/action/cookies_spec.rb +0 -58
  54. data/spec/integration/action/csrf_protection_spec.rb +0 -54
  55. data/spec/integration/action/format_config_spec.rb +0 -129
  56. data/spec/integration/action/routes_spec.rb +0 -71
  57. data/spec/integration/action/sessions_spec.rb +0 -50
  58. data/spec/integration/action/slice_configuration_spec.rb +0 -284
  59. data/spec/integration/action/view_rendering/automatic_rendering_spec.rb +0 -247
  60. data/spec/integration/action/view_rendering/paired_view_inference_spec.rb +0 -115
  61. data/spec/integration/action/view_rendering/view_context_spec.rb +0 -221
  62. data/spec/integration/action/view_rendering_spec.rb +0 -89
  63. data/spec/integration/assets/assets_spec.rb +0 -155
  64. data/spec/integration/assets/cross_slice_assets_helpers_spec.rb +0 -129
  65. data/spec/integration/assets/serve_static_assets_spec.rb +0 -152
  66. data/spec/integration/code_loading/loading_from_app_spec.rb +0 -152
  67. data/spec/integration/code_loading/loading_from_lib_spec.rb +0 -242
  68. data/spec/integration/code_loading/loading_from_slice_spec.rb +0 -165
  69. data/spec/integration/container/application_routes_helper_spec.rb +0 -48
  70. data/spec/integration/container/auto_injection_spec.rb +0 -53
  71. data/spec/integration/container/auto_registration_spec.rb +0 -86
  72. data/spec/integration/container/autoloader_spec.rb +0 -82
  73. data/spec/integration/container/imports_spec.rb +0 -253
  74. data/spec/integration/container/prepare_container_spec.rb +0 -125
  75. data/spec/integration/container/provider_environment_spec.rb +0 -52
  76. data/spec/integration/container/provider_lifecycle_spec.rb +0 -61
  77. data/spec/integration/container/shutdown_spec.rb +0 -91
  78. data/spec/integration/container/standard_providers/rack_provider_spec.rb +0 -44
  79. data/spec/integration/container/standard_providers_spec.rb +0 -124
  80. data/spec/integration/db/auto_registration_spec.rb +0 -39
  81. data/spec/integration/db/commands_spec.rb +0 -80
  82. data/spec/integration/db/db_inflector_spec.rb +0 -57
  83. data/spec/integration/db/db_slices_spec.rb +0 -398
  84. data/spec/integration/db/db_spec.rb +0 -245
  85. data/spec/integration/db/gateways_spec.rb +0 -361
  86. data/spec/integration/db/logging_spec.rb +0 -301
  87. data/spec/integration/db/mappers_spec.rb +0 -84
  88. data/spec/integration/db/provider_config_spec.rb +0 -88
  89. data/spec/integration/db/provider_spec.rb +0 -35
  90. data/spec/integration/db/relations_spec.rb +0 -60
  91. data/spec/integration/db/repo_spec.rb +0 -300
  92. data/spec/integration/db/slices_importing_from_parent.rb +0 -130
  93. data/spec/integration/dotenv_loading_spec.rb +0 -138
  94. data/spec/integration/logging/exception_logging_spec.rb +0 -120
  95. data/spec/integration/logging/notifications_spec.rb +0 -68
  96. data/spec/integration/logging/request_logging_spec.rb +0 -202
  97. data/spec/integration/operations/extension_spec.rb +0 -122
  98. data/spec/integration/rack_app/body_parser_spec.rb +0 -108
  99. data/spec/integration/rack_app/method_override_spec.rb +0 -97
  100. data/spec/integration/rack_app/middleware_spec.rb +0 -720
  101. data/spec/integration/rack_app/non_booted_rack_app_spec.rb +0 -104
  102. data/spec/integration/rack_app/rack_app_spec.rb +0 -442
  103. data/spec/integration/rake_tasks_spec.rb +0 -107
  104. data/spec/integration/router/resource_routes_spec.rb +0 -281
  105. data/spec/integration/settings/access_in_slice_class_body_spec.rb +0 -83
  106. data/spec/integration/settings/access_to_constants_spec.rb +0 -46
  107. data/spec/integration/settings/loading_from_env_spec.rb +0 -188
  108. data/spec/integration/settings/settings_component_loading_spec.rb +0 -113
  109. data/spec/integration/settings/slice_registration_spec.rb +0 -145
  110. data/spec/integration/settings/using_types_spec.rb +0 -80
  111. data/spec/integration/setup_spec.rb +0 -165
  112. data/spec/integration/slices/external_slice_spec.rb +0 -91
  113. data/spec/integration/slices/slice_configuration_spec.rb +0 -42
  114. data/spec/integration/slices/slice_loading_spec.rb +0 -171
  115. data/spec/integration/slices/slice_registrations_spec.rb +0 -80
  116. data/spec/integration/slices/slice_routing_spec.rb +0 -219
  117. data/spec/integration/slices_spec.rb +0 -471
  118. data/spec/integration/view/config/default_context_spec.rb +0 -149
  119. data/spec/integration/view/config/inflector_spec.rb +0 -57
  120. data/spec/integration/view/config/part_class_spec.rb +0 -147
  121. data/spec/integration/view/config/part_namespace_spec.rb +0 -103
  122. data/spec/integration/view/config/paths_spec.rb +0 -119
  123. data/spec/integration/view/config/scope_class_spec.rb +0 -147
  124. data/spec/integration/view/config/scope_namespace_spec.rb +0 -103
  125. data/spec/integration/view/config/template_spec.rb +0 -38
  126. data/spec/integration/view/context/assets_spec.rb +0 -79
  127. data/spec/integration/view/context/inflector_spec.rb +0 -40
  128. data/spec/integration/view/context/request_spec.rb +0 -57
  129. data/spec/integration/view/context/routes_spec.rb +0 -84
  130. data/spec/integration/view/helpers/form_helper_spec.rb +0 -174
  131. data/spec/integration/view/helpers/part_helpers_spec.rb +0 -124
  132. data/spec/integration/view/helpers/scope_helpers_spec.rb +0 -84
  133. data/spec/integration/view/helpers/user_defined_helpers/part_helpers_spec.rb +0 -162
  134. data/spec/integration/view/helpers/user_defined_helpers/scope_helpers_spec.rb +0 -119
  135. data/spec/integration/view/parts/default_rendering_spec.rb +0 -138
  136. data/spec/integration/view/slice_configuration_spec.rb +0 -289
  137. data/spec/integration/view/views_spec.rb +0 -103
  138. data/spec/integration/web/content_security_policy_nonce_spec.rb +0 -251
  139. data/spec/integration/web/render_detailed_errors_spec.rb +0 -107
  140. data/spec/integration/web/render_errors_spec.rb +0 -242
  141. data/spec/integration/web/welcome_view_spec.rb +0 -84
  142. data/spec/spec_helper.rb +0 -28
  143. data/spec/support/app_integration.rb +0 -157
  144. data/spec/support/coverage.rb +0 -1
  145. data/spec/support/matchers.rb +0 -32
  146. data/spec/support/rspec.rb +0 -27
  147. data/spec/unit/hanami/config/actions/content_security_policy_spec.rb +0 -96
  148. data/spec/unit/hanami/config/actions/cookies_spec.rb +0 -46
  149. data/spec/unit/hanami/config/actions/csrf_protection_spec.rb +0 -58
  150. data/spec/unit/hanami/config/actions/default_values_spec.rb +0 -43
  151. data/spec/unit/hanami/config/actions/sessions_spec.rb +0 -48
  152. data/spec/unit/hanami/config/actions_spec.rb +0 -52
  153. data/spec/unit/hanami/config/base_url_spec.rb +0 -25
  154. data/spec/unit/hanami/config/console_spec.rb +0 -22
  155. data/spec/unit/hanami/config/db_spec.rb +0 -38
  156. data/spec/unit/hanami/config/inflector_spec.rb +0 -35
  157. data/spec/unit/hanami/config/logger_spec.rb +0 -195
  158. data/spec/unit/hanami/config/render_detailed_errors_spec.rb +0 -25
  159. data/spec/unit/hanami/config/render_errors_spec.rb +0 -25
  160. data/spec/unit/hanami/config/router_spec.rb +0 -44
  161. data/spec/unit/hanami/config/slices_spec.rb +0 -34
  162. data/spec/unit/hanami/config/views_spec.rb +0 -80
  163. data/spec/unit/hanami/env_spec.rb +0 -37
  164. data/spec/unit/hanami/extensions/view/context_spec.rb +0 -59
  165. data/spec/unit/hanami/helpers/assets_helper/asset_url_spec.rb +0 -120
  166. data/spec/unit/hanami/helpers/assets_helper/audio_tag_spec.rb +0 -132
  167. data/spec/unit/hanami/helpers/assets_helper/favicon_tag_spec.rb +0 -87
  168. data/spec/unit/hanami/helpers/assets_helper/image_tag_spec.rb +0 -92
  169. data/spec/unit/hanami/helpers/assets_helper/javascript_tag_spec.rb +0 -143
  170. data/spec/unit/hanami/helpers/assets_helper/stylesheet_tag_spec.rb +0 -126
  171. data/spec/unit/hanami/helpers/assets_helper/video_tag_spec.rb +0 -136
  172. data/spec/unit/hanami/helpers/form_helper_spec.rb +0 -2857
  173. data/spec/unit/hanami/port_spec.rb +0 -117
  174. data/spec/unit/hanami/providers/db/config/default_config_spec.rb +0 -100
  175. data/spec/unit/hanami/providers/db/config/gateway_spec.rb +0 -73
  176. data/spec/unit/hanami/providers/db/config_spec.rb +0 -143
  177. data/spec/unit/hanami/router/errors/not_allowed_error_spec.rb +0 -27
  178. data/spec/unit/hanami/router/errors/not_found_error_spec.rb +0 -22
  179. data/spec/unit/hanami/settings/env_store_spec.rb +0 -52
  180. data/spec/unit/hanami/settings_spec.rb +0 -111
  181. data/spec/unit/hanami/slice_configurable_spec.rb +0 -141
  182. data/spec/unit/hanami/slice_name_spec.rb +0 -47
  183. data/spec/unit/hanami/slice_spec.rb +0 -99
  184. data/spec/unit/hanami/web/rack_logger_spec.rb +0 -99
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 3.0.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hanakai team
8
- bindir: bin
8
+ bindir: exe
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
@@ -15,20 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - ">="
17
17
  - !ruby/object:Gem::Version
18
- version: '1.16'
19
- - - "<"
20
- - !ruby/object:Gem::Version
21
- version: '3'
18
+ version: '2.0'
22
19
  type: :runtime
23
20
  prerelease: false
24
21
  version_requirements: !ruby/object:Gem::Requirement
25
22
  requirements:
26
23
  - - ">="
27
24
  - !ruby/object:Gem::Version
28
- version: '1.16'
29
- - - "<"
30
- - !ruby/object:Gem::Version
31
- version: '3'
25
+ version: '2.0'
32
26
  - !ruby/object:Gem::Dependency
33
27
  name: dry-configurable
34
28
  requirement: !ruby/object:Gem::Requirement
@@ -278,12 +272,13 @@ email:
278
272
  - info@hanakai.org
279
273
  executables: []
280
274
  extensions: []
281
- extra_rdoc_files: []
275
+ extra_rdoc_files:
276
+ - CHANGELOG.md
277
+ - LICENSE
278
+ - README.md
282
279
  files:
283
280
  - CHANGELOG.md
284
- - CODE_OF_CONDUCT.md
285
- - FEATURES.md
286
- - LICENSE.md
281
+ - LICENSE
287
282
  - README.md
288
283
  - hanami.gemspec
289
284
  - lib/hanami.rb
@@ -297,6 +292,7 @@ files:
297
292
  - lib/hanami/config/assets.rb
298
293
  - lib/hanami/config/console.rb
299
294
  - lib/hanami/config/db.rb
295
+ - lib/hanami/config/i18n.rb
300
296
  - lib/hanami/config/logger.rb
301
297
  - lib/hanami/config/null_config.rb
302
298
  - lib/hanami/config/router.rb
@@ -308,6 +304,8 @@ files:
308
304
  - lib/hanami/extensions/action.rb
309
305
  - lib/hanami/extensions/action/slice_configured_action.rb
310
306
  - lib/hanami/extensions/db/repo.rb
307
+ - lib/hanami/extensions/mailer.rb
308
+ - lib/hanami/extensions/mailer/slice_configured_mailer.rb
311
309
  - lib/hanami/extensions/operation.rb
312
310
  - lib/hanami/extensions/operation/slice_configured_db_operation.rb
313
311
  - lib/hanami/extensions/router/errors.rb
@@ -324,6 +322,10 @@ files:
324
322
  - lib/hanami/helpers/form_helper.rb
325
323
  - lib/hanami/helpers/form_helper/form_builder.rb
326
324
  - lib/hanami/helpers/form_helper/values.rb
325
+ - lib/hanami/helpers/i18n_helper.rb
326
+ - lib/hanami/logger/rack_formatter.rb
327
+ - lib/hanami/logger/sql_formatter.rb
328
+ - lib/hanami/logger/sql_logger.rb
327
329
  - lib/hanami/middleware/assets.rb
328
330
  - lib/hanami/middleware/content_security_policy_nonce.rb
329
331
  - lib/hanami/middleware/public_errors_app.rb
@@ -340,14 +342,19 @@ files:
340
342
  - lib/hanami/providers/db/gateway.rb
341
343
  - lib/hanami/providers/db/sql_adapter.rb
342
344
  - lib/hanami/providers/db_logging.rb
345
+ - lib/hanami/providers/i18n.rb
346
+ - lib/hanami/providers/i18n/backend.rb
347
+ - lib/hanami/providers/i18n/locale/en.yml
343
348
  - lib/hanami/providers/inflector.rb
344
349
  - lib/hanami/providers/logger.rb
350
+ - lib/hanami/providers/mailers.rb
345
351
  - lib/hanami/providers/rack.rb
346
352
  - lib/hanami/providers/relations.rb
347
353
  - lib/hanami/providers/routes.rb
348
354
  - lib/hanami/rake_tasks.rb
349
355
  - lib/hanami/routes.rb
350
356
  - lib/hanami/settings.rb
357
+ - lib/hanami/settings/composite_store.rb
351
358
  - lib/hanami/settings/env_store.rb
352
359
  - lib/hanami/setup.rb
353
360
  - lib/hanami/slice.rb
@@ -359,148 +366,19 @@ files:
359
366
  - lib/hanami/slice_configurable.rb
360
367
  - lib/hanami/slice_name.rb
361
368
  - lib/hanami/slice_registrar.rb
369
+ - lib/hanami/universal_logger.rb
362
370
  - lib/hanami/version.rb
363
371
  - lib/hanami/web/rack_logger.rb
364
372
  - lib/hanami/web/welcome.html.erb
365
373
  - lib/hanami/web/welcome.rb
366
- - spec/integration/action/cookies_spec.rb
367
- - spec/integration/action/csrf_protection_spec.rb
368
- - spec/integration/action/format_config_spec.rb
369
- - spec/integration/action/routes_spec.rb
370
- - spec/integration/action/sessions_spec.rb
371
- - spec/integration/action/slice_configuration_spec.rb
372
- - spec/integration/action/view_rendering/automatic_rendering_spec.rb
373
- - spec/integration/action/view_rendering/paired_view_inference_spec.rb
374
- - spec/integration/action/view_rendering/view_context_spec.rb
375
- - spec/integration/action/view_rendering_spec.rb
376
- - spec/integration/assets/assets_spec.rb
377
- - spec/integration/assets/cross_slice_assets_helpers_spec.rb
378
- - spec/integration/assets/serve_static_assets_spec.rb
379
- - spec/integration/code_loading/loading_from_app_spec.rb
380
- - spec/integration/code_loading/loading_from_lib_spec.rb
381
- - spec/integration/code_loading/loading_from_slice_spec.rb
382
- - spec/integration/container/application_routes_helper_spec.rb
383
- - spec/integration/container/auto_injection_spec.rb
384
- - spec/integration/container/auto_registration_spec.rb
385
- - spec/integration/container/autoloader_spec.rb
386
- - spec/integration/container/imports_spec.rb
387
- - spec/integration/container/prepare_container_spec.rb
388
- - spec/integration/container/provider_environment_spec.rb
389
- - spec/integration/container/provider_lifecycle_spec.rb
390
- - spec/integration/container/shutdown_spec.rb
391
- - spec/integration/container/standard_providers/rack_provider_spec.rb
392
- - spec/integration/container/standard_providers_spec.rb
393
- - spec/integration/db/auto_registration_spec.rb
394
- - spec/integration/db/commands_spec.rb
395
- - spec/integration/db/db_inflector_spec.rb
396
- - spec/integration/db/db_slices_spec.rb
397
- - spec/integration/db/db_spec.rb
398
- - spec/integration/db/gateways_spec.rb
399
- - spec/integration/db/logging_spec.rb
400
- - spec/integration/db/mappers_spec.rb
401
- - spec/integration/db/provider_config_spec.rb
402
- - spec/integration/db/provider_spec.rb
403
- - spec/integration/db/relations_spec.rb
404
- - spec/integration/db/repo_spec.rb
405
- - spec/integration/db/slices_importing_from_parent.rb
406
- - spec/integration/dotenv_loading_spec.rb
407
- - spec/integration/logging/exception_logging_spec.rb
408
- - spec/integration/logging/notifications_spec.rb
409
- - spec/integration/logging/request_logging_spec.rb
410
- - spec/integration/operations/extension_spec.rb
411
- - spec/integration/rack_app/body_parser_spec.rb
412
- - spec/integration/rack_app/method_override_spec.rb
413
- - spec/integration/rack_app/middleware_spec.rb
414
- - spec/integration/rack_app/non_booted_rack_app_spec.rb
415
- - spec/integration/rack_app/rack_app_spec.rb
416
- - spec/integration/rake_tasks_spec.rb
417
- - spec/integration/router/resource_routes_spec.rb
418
- - spec/integration/settings/access_in_slice_class_body_spec.rb
419
- - spec/integration/settings/access_to_constants_spec.rb
420
- - spec/integration/settings/loading_from_env_spec.rb
421
- - spec/integration/settings/settings_component_loading_spec.rb
422
- - spec/integration/settings/slice_registration_spec.rb
423
- - spec/integration/settings/using_types_spec.rb
424
- - spec/integration/setup_spec.rb
425
- - spec/integration/slices/external_slice_spec.rb
426
- - spec/integration/slices/slice_configuration_spec.rb
427
- - spec/integration/slices/slice_loading_spec.rb
428
- - spec/integration/slices/slice_registrations_spec.rb
429
- - spec/integration/slices/slice_routing_spec.rb
430
- - spec/integration/slices_spec.rb
431
- - spec/integration/view/config/default_context_spec.rb
432
- - spec/integration/view/config/inflector_spec.rb
433
- - spec/integration/view/config/part_class_spec.rb
434
- - spec/integration/view/config/part_namespace_spec.rb
435
- - spec/integration/view/config/paths_spec.rb
436
- - spec/integration/view/config/scope_class_spec.rb
437
- - spec/integration/view/config/scope_namespace_spec.rb
438
- - spec/integration/view/config/template_spec.rb
439
- - spec/integration/view/context/assets_spec.rb
440
- - spec/integration/view/context/inflector_spec.rb
441
- - spec/integration/view/context/request_spec.rb
442
- - spec/integration/view/context/routes_spec.rb
443
- - spec/integration/view/helpers/form_helper_spec.rb
444
- - spec/integration/view/helpers/part_helpers_spec.rb
445
- - spec/integration/view/helpers/scope_helpers_spec.rb
446
- - spec/integration/view/helpers/user_defined_helpers/part_helpers_spec.rb
447
- - spec/integration/view/helpers/user_defined_helpers/scope_helpers_spec.rb
448
- - spec/integration/view/parts/default_rendering_spec.rb
449
- - spec/integration/view/slice_configuration_spec.rb
450
- - spec/integration/view/views_spec.rb
451
- - spec/integration/web/content_security_policy_nonce_spec.rb
452
- - spec/integration/web/render_detailed_errors_spec.rb
453
- - spec/integration/web/render_errors_spec.rb
454
- - spec/integration/web/welcome_view_spec.rb
455
- - spec/spec_helper.rb
456
- - spec/support/app_integration.rb
457
- - spec/support/coverage.rb
458
- - spec/support/matchers.rb
459
- - spec/support/rspec.rb
460
- - spec/unit/hanami/config/actions/content_security_policy_spec.rb
461
- - spec/unit/hanami/config/actions/cookies_spec.rb
462
- - spec/unit/hanami/config/actions/csrf_protection_spec.rb
463
- - spec/unit/hanami/config/actions/default_values_spec.rb
464
- - spec/unit/hanami/config/actions/sessions_spec.rb
465
- - spec/unit/hanami/config/actions_spec.rb
466
- - spec/unit/hanami/config/base_url_spec.rb
467
- - spec/unit/hanami/config/console_spec.rb
468
- - spec/unit/hanami/config/db_spec.rb
469
- - spec/unit/hanami/config/inflector_spec.rb
470
- - spec/unit/hanami/config/logger_spec.rb
471
- - spec/unit/hanami/config/render_detailed_errors_spec.rb
472
- - spec/unit/hanami/config/render_errors_spec.rb
473
- - spec/unit/hanami/config/router_spec.rb
474
- - spec/unit/hanami/config/slices_spec.rb
475
- - spec/unit/hanami/config/views_spec.rb
476
- - spec/unit/hanami/env_spec.rb
477
- - spec/unit/hanami/extensions/view/context_spec.rb
478
- - spec/unit/hanami/helpers/assets_helper/asset_url_spec.rb
479
- - spec/unit/hanami/helpers/assets_helper/audio_tag_spec.rb
480
- - spec/unit/hanami/helpers/assets_helper/favicon_tag_spec.rb
481
- - spec/unit/hanami/helpers/assets_helper/image_tag_spec.rb
482
- - spec/unit/hanami/helpers/assets_helper/javascript_tag_spec.rb
483
- - spec/unit/hanami/helpers/assets_helper/stylesheet_tag_spec.rb
484
- - spec/unit/hanami/helpers/assets_helper/video_tag_spec.rb
485
- - spec/unit/hanami/helpers/form_helper_spec.rb
486
- - spec/unit/hanami/port_spec.rb
487
- - spec/unit/hanami/providers/db/config/default_config_spec.rb
488
- - spec/unit/hanami/providers/db/config/gateway_spec.rb
489
- - spec/unit/hanami/providers/db/config_spec.rb
490
- - spec/unit/hanami/router/errors/not_allowed_error_spec.rb
491
- - spec/unit/hanami/router/errors/not_found_error_spec.rb
492
- - spec/unit/hanami/settings/env_store_spec.rb
493
- - spec/unit/hanami/settings_spec.rb
494
- - spec/unit/hanami/slice_configurable_spec.rb
495
- - spec/unit/hanami/slice_name_spec.rb
496
- - spec/unit/hanami/slice_spec.rb
497
- - spec/unit/hanami/web/rack_logger_spec.rb
498
- homepage: http://hanamirb.org
374
+ homepage: https://hanamirb.org
499
375
  licenses:
500
376
  - MIT
501
377
  metadata:
502
- rubygems_mfa_required: 'true'
503
- allowed_push_host: https://rubygems.org
378
+ changelog_uri: https://github.com/hanami/hanami/blob/main/CHANGELOG.md
379
+ source_code_uri: https://github.com/hanami/hanami
380
+ bug_tracker_uri: https://github.com/hanami/hanami/issues
381
+ funding_uri: https://github.com/sponsors/hanami
504
382
  rdoc_options: []
505
383
  require_paths:
506
384
  - lib
@@ -508,7 +386,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
508
386
  requirements:
509
387
  - - ">="
510
388
  - !ruby/object:Gem::Version
511
- version: '3.2'
389
+ version: '3.3'
512
390
  required_rubygems_version: !ruby/object:Gem::Requirement
513
391
  requirements:
514
392
  - - ">="
@@ -518,136 +396,4 @@ requirements: []
518
396
  rubygems_version: 3.6.9
519
397
  specification_version: 4
520
398
  summary: A flexible framework for maintainable Ruby apps
521
- test_files:
522
- - spec/integration/action/cookies_spec.rb
523
- - spec/integration/action/csrf_protection_spec.rb
524
- - spec/integration/action/format_config_spec.rb
525
- - spec/integration/action/routes_spec.rb
526
- - spec/integration/action/sessions_spec.rb
527
- - spec/integration/action/slice_configuration_spec.rb
528
- - spec/integration/action/view_rendering/automatic_rendering_spec.rb
529
- - spec/integration/action/view_rendering/paired_view_inference_spec.rb
530
- - spec/integration/action/view_rendering/view_context_spec.rb
531
- - spec/integration/action/view_rendering_spec.rb
532
- - spec/integration/assets/assets_spec.rb
533
- - spec/integration/assets/cross_slice_assets_helpers_spec.rb
534
- - spec/integration/assets/serve_static_assets_spec.rb
535
- - spec/integration/code_loading/loading_from_app_spec.rb
536
- - spec/integration/code_loading/loading_from_lib_spec.rb
537
- - spec/integration/code_loading/loading_from_slice_spec.rb
538
- - spec/integration/container/application_routes_helper_spec.rb
539
- - spec/integration/container/auto_injection_spec.rb
540
- - spec/integration/container/auto_registration_spec.rb
541
- - spec/integration/container/autoloader_spec.rb
542
- - spec/integration/container/imports_spec.rb
543
- - spec/integration/container/prepare_container_spec.rb
544
- - spec/integration/container/provider_environment_spec.rb
545
- - spec/integration/container/provider_lifecycle_spec.rb
546
- - spec/integration/container/shutdown_spec.rb
547
- - spec/integration/container/standard_providers/rack_provider_spec.rb
548
- - spec/integration/container/standard_providers_spec.rb
549
- - spec/integration/db/auto_registration_spec.rb
550
- - spec/integration/db/commands_spec.rb
551
- - spec/integration/db/db_inflector_spec.rb
552
- - spec/integration/db/db_slices_spec.rb
553
- - spec/integration/db/db_spec.rb
554
- - spec/integration/db/gateways_spec.rb
555
- - spec/integration/db/logging_spec.rb
556
- - spec/integration/db/mappers_spec.rb
557
- - spec/integration/db/provider_config_spec.rb
558
- - spec/integration/db/provider_spec.rb
559
- - spec/integration/db/relations_spec.rb
560
- - spec/integration/db/repo_spec.rb
561
- - spec/integration/db/slices_importing_from_parent.rb
562
- - spec/integration/dotenv_loading_spec.rb
563
- - spec/integration/logging/exception_logging_spec.rb
564
- - spec/integration/logging/notifications_spec.rb
565
- - spec/integration/logging/request_logging_spec.rb
566
- - spec/integration/operations/extension_spec.rb
567
- - spec/integration/rack_app/body_parser_spec.rb
568
- - spec/integration/rack_app/method_override_spec.rb
569
- - spec/integration/rack_app/middleware_spec.rb
570
- - spec/integration/rack_app/non_booted_rack_app_spec.rb
571
- - spec/integration/rack_app/rack_app_spec.rb
572
- - spec/integration/rake_tasks_spec.rb
573
- - spec/integration/router/resource_routes_spec.rb
574
- - spec/integration/settings/access_in_slice_class_body_spec.rb
575
- - spec/integration/settings/access_to_constants_spec.rb
576
- - spec/integration/settings/loading_from_env_spec.rb
577
- - spec/integration/settings/settings_component_loading_spec.rb
578
- - spec/integration/settings/slice_registration_spec.rb
579
- - spec/integration/settings/using_types_spec.rb
580
- - spec/integration/setup_spec.rb
581
- - spec/integration/slices/external_slice_spec.rb
582
- - spec/integration/slices/slice_configuration_spec.rb
583
- - spec/integration/slices/slice_loading_spec.rb
584
- - spec/integration/slices/slice_registrations_spec.rb
585
- - spec/integration/slices/slice_routing_spec.rb
586
- - spec/integration/slices_spec.rb
587
- - spec/integration/view/config/default_context_spec.rb
588
- - spec/integration/view/config/inflector_spec.rb
589
- - spec/integration/view/config/part_class_spec.rb
590
- - spec/integration/view/config/part_namespace_spec.rb
591
- - spec/integration/view/config/paths_spec.rb
592
- - spec/integration/view/config/scope_class_spec.rb
593
- - spec/integration/view/config/scope_namespace_spec.rb
594
- - spec/integration/view/config/template_spec.rb
595
- - spec/integration/view/context/assets_spec.rb
596
- - spec/integration/view/context/inflector_spec.rb
597
- - spec/integration/view/context/request_spec.rb
598
- - spec/integration/view/context/routes_spec.rb
599
- - spec/integration/view/helpers/form_helper_spec.rb
600
- - spec/integration/view/helpers/part_helpers_spec.rb
601
- - spec/integration/view/helpers/scope_helpers_spec.rb
602
- - spec/integration/view/helpers/user_defined_helpers/part_helpers_spec.rb
603
- - spec/integration/view/helpers/user_defined_helpers/scope_helpers_spec.rb
604
- - spec/integration/view/parts/default_rendering_spec.rb
605
- - spec/integration/view/slice_configuration_spec.rb
606
- - spec/integration/view/views_spec.rb
607
- - spec/integration/web/content_security_policy_nonce_spec.rb
608
- - spec/integration/web/render_detailed_errors_spec.rb
609
- - spec/integration/web/render_errors_spec.rb
610
- - spec/integration/web/welcome_view_spec.rb
611
- - spec/spec_helper.rb
612
- - spec/support/app_integration.rb
613
- - spec/support/coverage.rb
614
- - spec/support/matchers.rb
615
- - spec/support/rspec.rb
616
- - spec/unit/hanami/config/actions/content_security_policy_spec.rb
617
- - spec/unit/hanami/config/actions/cookies_spec.rb
618
- - spec/unit/hanami/config/actions/csrf_protection_spec.rb
619
- - spec/unit/hanami/config/actions/default_values_spec.rb
620
- - spec/unit/hanami/config/actions/sessions_spec.rb
621
- - spec/unit/hanami/config/actions_spec.rb
622
- - spec/unit/hanami/config/base_url_spec.rb
623
- - spec/unit/hanami/config/console_spec.rb
624
- - spec/unit/hanami/config/db_spec.rb
625
- - spec/unit/hanami/config/inflector_spec.rb
626
- - spec/unit/hanami/config/logger_spec.rb
627
- - spec/unit/hanami/config/render_detailed_errors_spec.rb
628
- - spec/unit/hanami/config/render_errors_spec.rb
629
- - spec/unit/hanami/config/router_spec.rb
630
- - spec/unit/hanami/config/slices_spec.rb
631
- - spec/unit/hanami/config/views_spec.rb
632
- - spec/unit/hanami/env_spec.rb
633
- - spec/unit/hanami/extensions/view/context_spec.rb
634
- - spec/unit/hanami/helpers/assets_helper/asset_url_spec.rb
635
- - spec/unit/hanami/helpers/assets_helper/audio_tag_spec.rb
636
- - spec/unit/hanami/helpers/assets_helper/favicon_tag_spec.rb
637
- - spec/unit/hanami/helpers/assets_helper/image_tag_spec.rb
638
- - spec/unit/hanami/helpers/assets_helper/javascript_tag_spec.rb
639
- - spec/unit/hanami/helpers/assets_helper/stylesheet_tag_spec.rb
640
- - spec/unit/hanami/helpers/assets_helper/video_tag_spec.rb
641
- - spec/unit/hanami/helpers/form_helper_spec.rb
642
- - spec/unit/hanami/port_spec.rb
643
- - spec/unit/hanami/providers/db/config/default_config_spec.rb
644
- - spec/unit/hanami/providers/db/config/gateway_spec.rb
645
- - spec/unit/hanami/providers/db/config_spec.rb
646
- - spec/unit/hanami/router/errors/not_allowed_error_spec.rb
647
- - spec/unit/hanami/router/errors/not_found_error_spec.rb
648
- - spec/unit/hanami/settings/env_store_spec.rb
649
- - spec/unit/hanami/settings_spec.rb
650
- - spec/unit/hanami/slice_configurable_spec.rb
651
- - spec/unit/hanami/slice_name_spec.rb
652
- - spec/unit/hanami/slice_spec.rb
653
- - spec/unit/hanami/web/rack_logger_spec.rb
399
+ test_files: []
data/CODE_OF_CONDUCT.md DELETED
@@ -1,74 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at *admin@hanamirb.org*. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [http://contributor-covenant.org/version/1/4][version]
72
-
73
- [homepage]: http://contributor-covenant.org
74
- [version]: http://contributor-covenant.org/version/1/4/