hanami 2.3.2 → 3.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 (189) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +103 -19
  3. data/LICENSE +20 -0
  4. data/README.md +18 -35
  5. data/hanami.gemspec +36 -37
  6. data/lib/hanami/app.rb +12 -2
  7. data/lib/hanami/config/db.rb +2 -0
  8. data/lib/hanami/config/i18n.rb +138 -0
  9. data/lib/hanami/config/logger.rb +15 -7
  10. data/lib/hanami/config/null_config.rb +1 -1
  11. data/lib/hanami/config/views.rb +17 -0
  12. data/lib/hanami/config.rb +66 -22
  13. data/lib/hanami/errors.rb +6 -0
  14. data/lib/hanami/extensions/action/i18n_helper.rb +64 -0
  15. data/lib/hanami/extensions/action/name_inferrer.rb +34 -0
  16. data/lib/hanami/extensions/action/slice_configured_action.rb +31 -2
  17. data/lib/hanami/extensions/action.rb +20 -7
  18. data/lib/hanami/extensions/mailer/slice_configured_mailer.rb +134 -0
  19. data/lib/hanami/extensions/mailer.rb +28 -0
  20. data/lib/hanami/extensions/operation/slice_configured_db_operation.rb +2 -0
  21. data/lib/hanami/extensions/view/context.rb +26 -4
  22. data/lib/hanami/extensions/view/part.rb +2 -0
  23. data/lib/hanami/extensions/view/slice_configured_context.rb +7 -0
  24. data/lib/hanami/extensions/view/slice_configured_part.rb +2 -0
  25. data/lib/hanami/extensions/view/slice_configured_view.rb +8 -8
  26. data/lib/hanami/extensions/view/standard_helpers.rb +4 -0
  27. data/lib/hanami/extensions.rb +6 -1
  28. data/lib/hanami/helpers/assets_helper.rb +0 -4
  29. data/lib/hanami/helpers/form_helper.rb +1 -1
  30. data/lib/hanami/helpers/i18n_helper.rb +241 -0
  31. data/lib/hanami/logger/rack_formatter.rb +73 -0
  32. data/lib/hanami/logger/sql_formatter.rb +80 -0
  33. data/lib/hanami/logger/sql_logger.rb +48 -0
  34. data/lib/hanami/middleware/render_errors.rb +2 -2
  35. data/lib/hanami/providers/db.rb +7 -2
  36. data/lib/hanami/providers/db_logging.rb +4 -7
  37. data/lib/hanami/providers/i18n/backend.rb +373 -0
  38. data/lib/hanami/providers/i18n/locale/en.yml +57 -0
  39. data/lib/hanami/providers/i18n.rb +114 -0
  40. data/lib/hanami/providers/logger.rb +23 -1
  41. data/lib/hanami/providers/mailers.rb +101 -0
  42. data/lib/hanami/routes.rb +1 -0
  43. data/lib/hanami/settings/composite_store.rb +53 -0
  44. data/lib/hanami/settings.rb +4 -4
  45. data/lib/hanami/slice/router.rb +15 -10
  46. data/lib/hanami/slice.rb +102 -11
  47. data/lib/hanami/slice_configurable.rb +1 -3
  48. data/lib/hanami/slice_registrar.rb +2 -2
  49. data/lib/hanami/universal_logger.rb +250 -0
  50. data/lib/hanami/version.rb +1 -1
  51. data/lib/hanami/web/rack_logger.rb +2 -80
  52. data/lib/hanami/web/welcome.html.erb +443 -58
  53. data/lib/hanami.rb +4 -2
  54. metadata +34 -280
  55. data/CODE_OF_CONDUCT.md +0 -74
  56. data/FEATURES.md +0 -269
  57. data/LICENSE.md +0 -22
  58. data/spec/integration/action/cookies_spec.rb +0 -58
  59. data/spec/integration/action/csrf_protection_spec.rb +0 -54
  60. data/spec/integration/action/format_config_spec.rb +0 -129
  61. data/spec/integration/action/routes_spec.rb +0 -71
  62. data/spec/integration/action/sessions_spec.rb +0 -50
  63. data/spec/integration/action/slice_configuration_spec.rb +0 -284
  64. data/spec/integration/action/view_rendering/automatic_rendering_spec.rb +0 -247
  65. data/spec/integration/action/view_rendering/paired_view_inference_spec.rb +0 -115
  66. data/spec/integration/action/view_rendering/view_context_spec.rb +0 -221
  67. data/spec/integration/action/view_rendering_spec.rb +0 -89
  68. data/spec/integration/assets/assets_spec.rb +0 -155
  69. data/spec/integration/assets/cross_slice_assets_helpers_spec.rb +0 -129
  70. data/spec/integration/assets/serve_static_assets_spec.rb +0 -152
  71. data/spec/integration/code_loading/loading_from_app_spec.rb +0 -152
  72. data/spec/integration/code_loading/loading_from_lib_spec.rb +0 -242
  73. data/spec/integration/code_loading/loading_from_slice_spec.rb +0 -165
  74. data/spec/integration/container/application_routes_helper_spec.rb +0 -48
  75. data/spec/integration/container/auto_injection_spec.rb +0 -53
  76. data/spec/integration/container/auto_registration_spec.rb +0 -86
  77. data/spec/integration/container/autoloader_spec.rb +0 -82
  78. data/spec/integration/container/imports_spec.rb +0 -253
  79. data/spec/integration/container/prepare_container_spec.rb +0 -125
  80. data/spec/integration/container/provider_environment_spec.rb +0 -52
  81. data/spec/integration/container/provider_lifecycle_spec.rb +0 -61
  82. data/spec/integration/container/shutdown_spec.rb +0 -91
  83. data/spec/integration/container/standard_providers/rack_provider_spec.rb +0 -44
  84. data/spec/integration/container/standard_providers_spec.rb +0 -124
  85. data/spec/integration/db/auto_registration_spec.rb +0 -39
  86. data/spec/integration/db/commands_spec.rb +0 -80
  87. data/spec/integration/db/db_inflector_spec.rb +0 -57
  88. data/spec/integration/db/db_slices_spec.rb +0 -398
  89. data/spec/integration/db/db_spec.rb +0 -245
  90. data/spec/integration/db/gateways_spec.rb +0 -361
  91. data/spec/integration/db/logging_spec.rb +0 -301
  92. data/spec/integration/db/mappers_spec.rb +0 -84
  93. data/spec/integration/db/provider_config_spec.rb +0 -88
  94. data/spec/integration/db/provider_spec.rb +0 -35
  95. data/spec/integration/db/relations_spec.rb +0 -60
  96. data/spec/integration/db/repo_spec.rb +0 -300
  97. data/spec/integration/db/slices_importing_from_parent.rb +0 -130
  98. data/spec/integration/dotenv_loading_spec.rb +0 -138
  99. data/spec/integration/logging/exception_logging_spec.rb +0 -120
  100. data/spec/integration/logging/notifications_spec.rb +0 -68
  101. data/spec/integration/logging/request_logging_spec.rb +0 -202
  102. data/spec/integration/operations/extension_spec.rb +0 -122
  103. data/spec/integration/rack_app/body_parser_spec.rb +0 -108
  104. data/spec/integration/rack_app/method_override_spec.rb +0 -97
  105. data/spec/integration/rack_app/middleware_spec.rb +0 -720
  106. data/spec/integration/rack_app/non_booted_rack_app_spec.rb +0 -104
  107. data/spec/integration/rack_app/rack_app_spec.rb +0 -442
  108. data/spec/integration/rake_tasks_spec.rb +0 -107
  109. data/spec/integration/router/resource_routes_spec.rb +0 -281
  110. data/spec/integration/settings/access_in_slice_class_body_spec.rb +0 -83
  111. data/spec/integration/settings/access_to_constants_spec.rb +0 -46
  112. data/spec/integration/settings/loading_from_env_spec.rb +0 -188
  113. data/spec/integration/settings/settings_component_loading_spec.rb +0 -113
  114. data/spec/integration/settings/slice_registration_spec.rb +0 -145
  115. data/spec/integration/settings/using_types_spec.rb +0 -80
  116. data/spec/integration/setup_spec.rb +0 -165
  117. data/spec/integration/slices/external_slice_spec.rb +0 -91
  118. data/spec/integration/slices/slice_configuration_spec.rb +0 -42
  119. data/spec/integration/slices/slice_loading_spec.rb +0 -171
  120. data/spec/integration/slices/slice_registrations_spec.rb +0 -80
  121. data/spec/integration/slices/slice_routing_spec.rb +0 -219
  122. data/spec/integration/slices_spec.rb +0 -471
  123. data/spec/integration/view/config/default_context_spec.rb +0 -149
  124. data/spec/integration/view/config/inflector_spec.rb +0 -57
  125. data/spec/integration/view/config/part_class_spec.rb +0 -147
  126. data/spec/integration/view/config/part_namespace_spec.rb +0 -103
  127. data/spec/integration/view/config/paths_spec.rb +0 -119
  128. data/spec/integration/view/config/scope_class_spec.rb +0 -147
  129. data/spec/integration/view/config/scope_namespace_spec.rb +0 -103
  130. data/spec/integration/view/config/template_spec.rb +0 -38
  131. data/spec/integration/view/context/assets_spec.rb +0 -79
  132. data/spec/integration/view/context/inflector_spec.rb +0 -40
  133. data/spec/integration/view/context/request_spec.rb +0 -57
  134. data/spec/integration/view/context/routes_spec.rb +0 -84
  135. data/spec/integration/view/helpers/form_helper_spec.rb +0 -174
  136. data/spec/integration/view/helpers/part_helpers_spec.rb +0 -124
  137. data/spec/integration/view/helpers/scope_helpers_spec.rb +0 -84
  138. data/spec/integration/view/helpers/user_defined_helpers/part_helpers_spec.rb +0 -162
  139. data/spec/integration/view/helpers/user_defined_helpers/scope_helpers_spec.rb +0 -119
  140. data/spec/integration/view/parts/default_rendering_spec.rb +0 -138
  141. data/spec/integration/view/slice_configuration_spec.rb +0 -289
  142. data/spec/integration/view/views_spec.rb +0 -103
  143. data/spec/integration/web/content_security_policy_nonce_spec.rb +0 -251
  144. data/spec/integration/web/render_detailed_errors_spec.rb +0 -107
  145. data/spec/integration/web/render_errors_spec.rb +0 -242
  146. data/spec/integration/web/welcome_view_spec.rb +0 -84
  147. data/spec/spec_helper.rb +0 -28
  148. data/spec/support/app_integration.rb +0 -157
  149. data/spec/support/coverage.rb +0 -1
  150. data/spec/support/matchers.rb +0 -32
  151. data/spec/support/rspec.rb +0 -27
  152. data/spec/unit/hanami/config/actions/content_security_policy_spec.rb +0 -96
  153. data/spec/unit/hanami/config/actions/cookies_spec.rb +0 -46
  154. data/spec/unit/hanami/config/actions/csrf_protection_spec.rb +0 -58
  155. data/spec/unit/hanami/config/actions/default_values_spec.rb +0 -43
  156. data/spec/unit/hanami/config/actions/sessions_spec.rb +0 -48
  157. data/spec/unit/hanami/config/actions_spec.rb +0 -52
  158. data/spec/unit/hanami/config/base_url_spec.rb +0 -25
  159. data/spec/unit/hanami/config/console_spec.rb +0 -22
  160. data/spec/unit/hanami/config/db_spec.rb +0 -38
  161. data/spec/unit/hanami/config/inflector_spec.rb +0 -35
  162. data/spec/unit/hanami/config/logger_spec.rb +0 -195
  163. data/spec/unit/hanami/config/render_detailed_errors_spec.rb +0 -25
  164. data/spec/unit/hanami/config/render_errors_spec.rb +0 -25
  165. data/spec/unit/hanami/config/router_spec.rb +0 -44
  166. data/spec/unit/hanami/config/slices_spec.rb +0 -34
  167. data/spec/unit/hanami/config/views_spec.rb +0 -80
  168. data/spec/unit/hanami/env_spec.rb +0 -37
  169. data/spec/unit/hanami/extensions/view/context_spec.rb +0 -59
  170. data/spec/unit/hanami/helpers/assets_helper/asset_url_spec.rb +0 -120
  171. data/spec/unit/hanami/helpers/assets_helper/audio_tag_spec.rb +0 -132
  172. data/spec/unit/hanami/helpers/assets_helper/favicon_tag_spec.rb +0 -87
  173. data/spec/unit/hanami/helpers/assets_helper/image_tag_spec.rb +0 -92
  174. data/spec/unit/hanami/helpers/assets_helper/javascript_tag_spec.rb +0 -143
  175. data/spec/unit/hanami/helpers/assets_helper/stylesheet_tag_spec.rb +0 -126
  176. data/spec/unit/hanami/helpers/assets_helper/video_tag_spec.rb +0 -136
  177. data/spec/unit/hanami/helpers/form_helper_spec.rb +0 -2857
  178. data/spec/unit/hanami/port_spec.rb +0 -117
  179. data/spec/unit/hanami/providers/db/config/default_config_spec.rb +0 -100
  180. data/spec/unit/hanami/providers/db/config/gateway_spec.rb +0 -73
  181. data/spec/unit/hanami/providers/db/config_spec.rb +0 -143
  182. data/spec/unit/hanami/router/errors/not_allowed_error_spec.rb +0 -27
  183. data/spec/unit/hanami/router/errors/not_found_error_spec.rb +0 -22
  184. data/spec/unit/hanami/settings/env_store_spec.rb +0 -52
  185. data/spec/unit/hanami/settings_spec.rb +0 -111
  186. data/spec/unit/hanami/slice_configurable_spec.rb +0 -141
  187. data/spec/unit/hanami/slice_name_spec.rb +0 -47
  188. data/spec/unit/hanami/slice_spec.rb +0 -99
  189. 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.2
4
+ version: 3.0.0
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:
@@ -173,16 +173,16 @@ dependencies:
173
173
  name: hanami-utils
174
174
  requirement: !ruby/object:Gem::Requirement
175
175
  requirements:
176
- - - ">="
176
+ - - "~>"
177
177
  - !ruby/object:Gem::Version
178
- version: 2.3.0
178
+ version: 3.0.0
179
179
  type: :runtime
180
180
  prerelease: false
181
181
  version_requirements: !ruby/object:Gem::Requirement
182
182
  requirements:
183
- - - ">="
183
+ - - "~>"
184
184
  - !ruby/object:Gem::Version
185
- version: 2.3.0
185
+ version: 3.0.0
186
186
  - !ruby/object:Gem::Dependency
187
187
  name: json
188
188
  requirement: !ruby/object:Gem::Requirement
@@ -272,12 +272,13 @@ email:
272
272
  - info@hanakai.org
273
273
  executables: []
274
274
  extensions: []
275
- extra_rdoc_files: []
275
+ extra_rdoc_files:
276
+ - CHANGELOG.md
277
+ - LICENSE
278
+ - README.md
276
279
  files:
277
280
  - CHANGELOG.md
278
- - CODE_OF_CONDUCT.md
279
- - FEATURES.md
280
- - LICENSE.md
281
+ - LICENSE
281
282
  - README.md
282
283
  - hanami.gemspec
283
284
  - lib/hanami.rb
@@ -291,6 +292,7 @@ files:
291
292
  - lib/hanami/config/assets.rb
292
293
  - lib/hanami/config/console.rb
293
294
  - lib/hanami/config/db.rb
295
+ - lib/hanami/config/i18n.rb
294
296
  - lib/hanami/config/logger.rb
295
297
  - lib/hanami/config/null_config.rb
296
298
  - lib/hanami/config/router.rb
@@ -300,8 +302,12 @@ files:
300
302
  - lib/hanami/errors.rb
301
303
  - lib/hanami/extensions.rb
302
304
  - lib/hanami/extensions/action.rb
305
+ - lib/hanami/extensions/action/i18n_helper.rb
306
+ - lib/hanami/extensions/action/name_inferrer.rb
303
307
  - lib/hanami/extensions/action/slice_configured_action.rb
304
308
  - lib/hanami/extensions/db/repo.rb
309
+ - lib/hanami/extensions/mailer.rb
310
+ - lib/hanami/extensions/mailer/slice_configured_mailer.rb
305
311
  - lib/hanami/extensions/operation.rb
306
312
  - lib/hanami/extensions/operation/slice_configured_db_operation.rb
307
313
  - lib/hanami/extensions/router/errors.rb
@@ -318,6 +324,10 @@ files:
318
324
  - lib/hanami/helpers/form_helper.rb
319
325
  - lib/hanami/helpers/form_helper/form_builder.rb
320
326
  - lib/hanami/helpers/form_helper/values.rb
327
+ - lib/hanami/helpers/i18n_helper.rb
328
+ - lib/hanami/logger/rack_formatter.rb
329
+ - lib/hanami/logger/sql_formatter.rb
330
+ - lib/hanami/logger/sql_logger.rb
321
331
  - lib/hanami/middleware/assets.rb
322
332
  - lib/hanami/middleware/content_security_policy_nonce.rb
323
333
  - lib/hanami/middleware/public_errors_app.rb
@@ -334,14 +344,19 @@ files:
334
344
  - lib/hanami/providers/db/gateway.rb
335
345
  - lib/hanami/providers/db/sql_adapter.rb
336
346
  - lib/hanami/providers/db_logging.rb
347
+ - lib/hanami/providers/i18n.rb
348
+ - lib/hanami/providers/i18n/backend.rb
349
+ - lib/hanami/providers/i18n/locale/en.yml
337
350
  - lib/hanami/providers/inflector.rb
338
351
  - lib/hanami/providers/logger.rb
352
+ - lib/hanami/providers/mailers.rb
339
353
  - lib/hanami/providers/rack.rb
340
354
  - lib/hanami/providers/relations.rb
341
355
  - lib/hanami/providers/routes.rb
342
356
  - lib/hanami/rake_tasks.rb
343
357
  - lib/hanami/routes.rb
344
358
  - lib/hanami/settings.rb
359
+ - lib/hanami/settings/composite_store.rb
345
360
  - lib/hanami/settings/env_store.rb
346
361
  - lib/hanami/setup.rb
347
362
  - lib/hanami/slice.rb
@@ -353,148 +368,19 @@ files:
353
368
  - lib/hanami/slice_configurable.rb
354
369
  - lib/hanami/slice_name.rb
355
370
  - lib/hanami/slice_registrar.rb
371
+ - lib/hanami/universal_logger.rb
356
372
  - lib/hanami/version.rb
357
373
  - lib/hanami/web/rack_logger.rb
358
374
  - lib/hanami/web/welcome.html.erb
359
375
  - lib/hanami/web/welcome.rb
360
- - spec/integration/action/cookies_spec.rb
361
- - spec/integration/action/csrf_protection_spec.rb
362
- - spec/integration/action/format_config_spec.rb
363
- - spec/integration/action/routes_spec.rb
364
- - spec/integration/action/sessions_spec.rb
365
- - spec/integration/action/slice_configuration_spec.rb
366
- - spec/integration/action/view_rendering/automatic_rendering_spec.rb
367
- - spec/integration/action/view_rendering/paired_view_inference_spec.rb
368
- - spec/integration/action/view_rendering/view_context_spec.rb
369
- - spec/integration/action/view_rendering_spec.rb
370
- - spec/integration/assets/assets_spec.rb
371
- - spec/integration/assets/cross_slice_assets_helpers_spec.rb
372
- - spec/integration/assets/serve_static_assets_spec.rb
373
- - spec/integration/code_loading/loading_from_app_spec.rb
374
- - spec/integration/code_loading/loading_from_lib_spec.rb
375
- - spec/integration/code_loading/loading_from_slice_spec.rb
376
- - spec/integration/container/application_routes_helper_spec.rb
377
- - spec/integration/container/auto_injection_spec.rb
378
- - spec/integration/container/auto_registration_spec.rb
379
- - spec/integration/container/autoloader_spec.rb
380
- - spec/integration/container/imports_spec.rb
381
- - spec/integration/container/prepare_container_spec.rb
382
- - spec/integration/container/provider_environment_spec.rb
383
- - spec/integration/container/provider_lifecycle_spec.rb
384
- - spec/integration/container/shutdown_spec.rb
385
- - spec/integration/container/standard_providers/rack_provider_spec.rb
386
- - spec/integration/container/standard_providers_spec.rb
387
- - spec/integration/db/auto_registration_spec.rb
388
- - spec/integration/db/commands_spec.rb
389
- - spec/integration/db/db_inflector_spec.rb
390
- - spec/integration/db/db_slices_spec.rb
391
- - spec/integration/db/db_spec.rb
392
- - spec/integration/db/gateways_spec.rb
393
- - spec/integration/db/logging_spec.rb
394
- - spec/integration/db/mappers_spec.rb
395
- - spec/integration/db/provider_config_spec.rb
396
- - spec/integration/db/provider_spec.rb
397
- - spec/integration/db/relations_spec.rb
398
- - spec/integration/db/repo_spec.rb
399
- - spec/integration/db/slices_importing_from_parent.rb
400
- - spec/integration/dotenv_loading_spec.rb
401
- - spec/integration/logging/exception_logging_spec.rb
402
- - spec/integration/logging/notifications_spec.rb
403
- - spec/integration/logging/request_logging_spec.rb
404
- - spec/integration/operations/extension_spec.rb
405
- - spec/integration/rack_app/body_parser_spec.rb
406
- - spec/integration/rack_app/method_override_spec.rb
407
- - spec/integration/rack_app/middleware_spec.rb
408
- - spec/integration/rack_app/non_booted_rack_app_spec.rb
409
- - spec/integration/rack_app/rack_app_spec.rb
410
- - spec/integration/rake_tasks_spec.rb
411
- - spec/integration/router/resource_routes_spec.rb
412
- - spec/integration/settings/access_in_slice_class_body_spec.rb
413
- - spec/integration/settings/access_to_constants_spec.rb
414
- - spec/integration/settings/loading_from_env_spec.rb
415
- - spec/integration/settings/settings_component_loading_spec.rb
416
- - spec/integration/settings/slice_registration_spec.rb
417
- - spec/integration/settings/using_types_spec.rb
418
- - spec/integration/setup_spec.rb
419
- - spec/integration/slices/external_slice_spec.rb
420
- - spec/integration/slices/slice_configuration_spec.rb
421
- - spec/integration/slices/slice_loading_spec.rb
422
- - spec/integration/slices/slice_registrations_spec.rb
423
- - spec/integration/slices/slice_routing_spec.rb
424
- - spec/integration/slices_spec.rb
425
- - spec/integration/view/config/default_context_spec.rb
426
- - spec/integration/view/config/inflector_spec.rb
427
- - spec/integration/view/config/part_class_spec.rb
428
- - spec/integration/view/config/part_namespace_spec.rb
429
- - spec/integration/view/config/paths_spec.rb
430
- - spec/integration/view/config/scope_class_spec.rb
431
- - spec/integration/view/config/scope_namespace_spec.rb
432
- - spec/integration/view/config/template_spec.rb
433
- - spec/integration/view/context/assets_spec.rb
434
- - spec/integration/view/context/inflector_spec.rb
435
- - spec/integration/view/context/request_spec.rb
436
- - spec/integration/view/context/routes_spec.rb
437
- - spec/integration/view/helpers/form_helper_spec.rb
438
- - spec/integration/view/helpers/part_helpers_spec.rb
439
- - spec/integration/view/helpers/scope_helpers_spec.rb
440
- - spec/integration/view/helpers/user_defined_helpers/part_helpers_spec.rb
441
- - spec/integration/view/helpers/user_defined_helpers/scope_helpers_spec.rb
442
- - spec/integration/view/parts/default_rendering_spec.rb
443
- - spec/integration/view/slice_configuration_spec.rb
444
- - spec/integration/view/views_spec.rb
445
- - spec/integration/web/content_security_policy_nonce_spec.rb
446
- - spec/integration/web/render_detailed_errors_spec.rb
447
- - spec/integration/web/render_errors_spec.rb
448
- - spec/integration/web/welcome_view_spec.rb
449
- - spec/spec_helper.rb
450
- - spec/support/app_integration.rb
451
- - spec/support/coverage.rb
452
- - spec/support/matchers.rb
453
- - spec/support/rspec.rb
454
- - spec/unit/hanami/config/actions/content_security_policy_spec.rb
455
- - spec/unit/hanami/config/actions/cookies_spec.rb
456
- - spec/unit/hanami/config/actions/csrf_protection_spec.rb
457
- - spec/unit/hanami/config/actions/default_values_spec.rb
458
- - spec/unit/hanami/config/actions/sessions_spec.rb
459
- - spec/unit/hanami/config/actions_spec.rb
460
- - spec/unit/hanami/config/base_url_spec.rb
461
- - spec/unit/hanami/config/console_spec.rb
462
- - spec/unit/hanami/config/db_spec.rb
463
- - spec/unit/hanami/config/inflector_spec.rb
464
- - spec/unit/hanami/config/logger_spec.rb
465
- - spec/unit/hanami/config/render_detailed_errors_spec.rb
466
- - spec/unit/hanami/config/render_errors_spec.rb
467
- - spec/unit/hanami/config/router_spec.rb
468
- - spec/unit/hanami/config/slices_spec.rb
469
- - spec/unit/hanami/config/views_spec.rb
470
- - spec/unit/hanami/env_spec.rb
471
- - spec/unit/hanami/extensions/view/context_spec.rb
472
- - spec/unit/hanami/helpers/assets_helper/asset_url_spec.rb
473
- - spec/unit/hanami/helpers/assets_helper/audio_tag_spec.rb
474
- - spec/unit/hanami/helpers/assets_helper/favicon_tag_spec.rb
475
- - spec/unit/hanami/helpers/assets_helper/image_tag_spec.rb
476
- - spec/unit/hanami/helpers/assets_helper/javascript_tag_spec.rb
477
- - spec/unit/hanami/helpers/assets_helper/stylesheet_tag_spec.rb
478
- - spec/unit/hanami/helpers/assets_helper/video_tag_spec.rb
479
- - spec/unit/hanami/helpers/form_helper_spec.rb
480
- - spec/unit/hanami/port_spec.rb
481
- - spec/unit/hanami/providers/db/config/default_config_spec.rb
482
- - spec/unit/hanami/providers/db/config/gateway_spec.rb
483
- - spec/unit/hanami/providers/db/config_spec.rb
484
- - spec/unit/hanami/router/errors/not_allowed_error_spec.rb
485
- - spec/unit/hanami/router/errors/not_found_error_spec.rb
486
- - spec/unit/hanami/settings/env_store_spec.rb
487
- - spec/unit/hanami/settings_spec.rb
488
- - spec/unit/hanami/slice_configurable_spec.rb
489
- - spec/unit/hanami/slice_name_spec.rb
490
- - spec/unit/hanami/slice_spec.rb
491
- - spec/unit/hanami/web/rack_logger_spec.rb
492
- homepage: http://hanamirb.org
376
+ homepage: https://hanamirb.org
493
377
  licenses:
494
378
  - MIT
495
379
  metadata:
496
- rubygems_mfa_required: 'true'
497
- allowed_push_host: https://rubygems.org
380
+ changelog_uri: https://github.com/hanami/hanami/blob/main/CHANGELOG.md
381
+ source_code_uri: https://github.com/hanami/hanami
382
+ bug_tracker_uri: https://github.com/hanami/hanami/issues
383
+ funding_uri: https://github.com/sponsors/hanami
498
384
  rdoc_options: []
499
385
  require_paths:
500
386
  - lib
@@ -502,146 +388,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
502
388
  requirements:
503
389
  - - ">="
504
390
  - !ruby/object:Gem::Version
505
- version: '3.2'
391
+ version: '3.3'
506
392
  required_rubygems_version: !ruby/object:Gem::Requirement
507
393
  requirements:
508
394
  - - ">="
509
395
  - !ruby/object:Gem::Version
510
396
  version: '0'
511
397
  requirements: []
512
- rubygems_version: 3.7.2
398
+ rubygems_version: 3.6.9
513
399
  specification_version: 4
514
400
  summary: A flexible framework for maintainable Ruby apps
515
- test_files:
516
- - spec/integration/action/cookies_spec.rb
517
- - spec/integration/action/csrf_protection_spec.rb
518
- - spec/integration/action/format_config_spec.rb
519
- - spec/integration/action/routes_spec.rb
520
- - spec/integration/action/sessions_spec.rb
521
- - spec/integration/action/slice_configuration_spec.rb
522
- - spec/integration/action/view_rendering/automatic_rendering_spec.rb
523
- - spec/integration/action/view_rendering/paired_view_inference_spec.rb
524
- - spec/integration/action/view_rendering/view_context_spec.rb
525
- - spec/integration/action/view_rendering_spec.rb
526
- - spec/integration/assets/assets_spec.rb
527
- - spec/integration/assets/cross_slice_assets_helpers_spec.rb
528
- - spec/integration/assets/serve_static_assets_spec.rb
529
- - spec/integration/code_loading/loading_from_app_spec.rb
530
- - spec/integration/code_loading/loading_from_lib_spec.rb
531
- - spec/integration/code_loading/loading_from_slice_spec.rb
532
- - spec/integration/container/application_routes_helper_spec.rb
533
- - spec/integration/container/auto_injection_spec.rb
534
- - spec/integration/container/auto_registration_spec.rb
535
- - spec/integration/container/autoloader_spec.rb
536
- - spec/integration/container/imports_spec.rb
537
- - spec/integration/container/prepare_container_spec.rb
538
- - spec/integration/container/provider_environment_spec.rb
539
- - spec/integration/container/provider_lifecycle_spec.rb
540
- - spec/integration/container/shutdown_spec.rb
541
- - spec/integration/container/standard_providers/rack_provider_spec.rb
542
- - spec/integration/container/standard_providers_spec.rb
543
- - spec/integration/db/auto_registration_spec.rb
544
- - spec/integration/db/commands_spec.rb
545
- - spec/integration/db/db_inflector_spec.rb
546
- - spec/integration/db/db_slices_spec.rb
547
- - spec/integration/db/db_spec.rb
548
- - spec/integration/db/gateways_spec.rb
549
- - spec/integration/db/logging_spec.rb
550
- - spec/integration/db/mappers_spec.rb
551
- - spec/integration/db/provider_config_spec.rb
552
- - spec/integration/db/provider_spec.rb
553
- - spec/integration/db/relations_spec.rb
554
- - spec/integration/db/repo_spec.rb
555
- - spec/integration/db/slices_importing_from_parent.rb
556
- - spec/integration/dotenv_loading_spec.rb
557
- - spec/integration/logging/exception_logging_spec.rb
558
- - spec/integration/logging/notifications_spec.rb
559
- - spec/integration/logging/request_logging_spec.rb
560
- - spec/integration/operations/extension_spec.rb
561
- - spec/integration/rack_app/body_parser_spec.rb
562
- - spec/integration/rack_app/method_override_spec.rb
563
- - spec/integration/rack_app/middleware_spec.rb
564
- - spec/integration/rack_app/non_booted_rack_app_spec.rb
565
- - spec/integration/rack_app/rack_app_spec.rb
566
- - spec/integration/rake_tasks_spec.rb
567
- - spec/integration/router/resource_routes_spec.rb
568
- - spec/integration/settings/access_in_slice_class_body_spec.rb
569
- - spec/integration/settings/access_to_constants_spec.rb
570
- - spec/integration/settings/loading_from_env_spec.rb
571
- - spec/integration/settings/settings_component_loading_spec.rb
572
- - spec/integration/settings/slice_registration_spec.rb
573
- - spec/integration/settings/using_types_spec.rb
574
- - spec/integration/setup_spec.rb
575
- - spec/integration/slices/external_slice_spec.rb
576
- - spec/integration/slices/slice_configuration_spec.rb
577
- - spec/integration/slices/slice_loading_spec.rb
578
- - spec/integration/slices/slice_registrations_spec.rb
579
- - spec/integration/slices/slice_routing_spec.rb
580
- - spec/integration/slices_spec.rb
581
- - spec/integration/view/config/default_context_spec.rb
582
- - spec/integration/view/config/inflector_spec.rb
583
- - spec/integration/view/config/part_class_spec.rb
584
- - spec/integration/view/config/part_namespace_spec.rb
585
- - spec/integration/view/config/paths_spec.rb
586
- - spec/integration/view/config/scope_class_spec.rb
587
- - spec/integration/view/config/scope_namespace_spec.rb
588
- - spec/integration/view/config/template_spec.rb
589
- - spec/integration/view/context/assets_spec.rb
590
- - spec/integration/view/context/inflector_spec.rb
591
- - spec/integration/view/context/request_spec.rb
592
- - spec/integration/view/context/routes_spec.rb
593
- - spec/integration/view/helpers/form_helper_spec.rb
594
- - spec/integration/view/helpers/part_helpers_spec.rb
595
- - spec/integration/view/helpers/scope_helpers_spec.rb
596
- - spec/integration/view/helpers/user_defined_helpers/part_helpers_spec.rb
597
- - spec/integration/view/helpers/user_defined_helpers/scope_helpers_spec.rb
598
- - spec/integration/view/parts/default_rendering_spec.rb
599
- - spec/integration/view/slice_configuration_spec.rb
600
- - spec/integration/view/views_spec.rb
601
- - spec/integration/web/content_security_policy_nonce_spec.rb
602
- - spec/integration/web/render_detailed_errors_spec.rb
603
- - spec/integration/web/render_errors_spec.rb
604
- - spec/integration/web/welcome_view_spec.rb
605
- - spec/spec_helper.rb
606
- - spec/support/app_integration.rb
607
- - spec/support/coverage.rb
608
- - spec/support/matchers.rb
609
- - spec/support/rspec.rb
610
- - spec/unit/hanami/config/actions/content_security_policy_spec.rb
611
- - spec/unit/hanami/config/actions/cookies_spec.rb
612
- - spec/unit/hanami/config/actions/csrf_protection_spec.rb
613
- - spec/unit/hanami/config/actions/default_values_spec.rb
614
- - spec/unit/hanami/config/actions/sessions_spec.rb
615
- - spec/unit/hanami/config/actions_spec.rb
616
- - spec/unit/hanami/config/base_url_spec.rb
617
- - spec/unit/hanami/config/console_spec.rb
618
- - spec/unit/hanami/config/db_spec.rb
619
- - spec/unit/hanami/config/inflector_spec.rb
620
- - spec/unit/hanami/config/logger_spec.rb
621
- - spec/unit/hanami/config/render_detailed_errors_spec.rb
622
- - spec/unit/hanami/config/render_errors_spec.rb
623
- - spec/unit/hanami/config/router_spec.rb
624
- - spec/unit/hanami/config/slices_spec.rb
625
- - spec/unit/hanami/config/views_spec.rb
626
- - spec/unit/hanami/env_spec.rb
627
- - spec/unit/hanami/extensions/view/context_spec.rb
628
- - spec/unit/hanami/helpers/assets_helper/asset_url_spec.rb
629
- - spec/unit/hanami/helpers/assets_helper/audio_tag_spec.rb
630
- - spec/unit/hanami/helpers/assets_helper/favicon_tag_spec.rb
631
- - spec/unit/hanami/helpers/assets_helper/image_tag_spec.rb
632
- - spec/unit/hanami/helpers/assets_helper/javascript_tag_spec.rb
633
- - spec/unit/hanami/helpers/assets_helper/stylesheet_tag_spec.rb
634
- - spec/unit/hanami/helpers/assets_helper/video_tag_spec.rb
635
- - spec/unit/hanami/helpers/form_helper_spec.rb
636
- - spec/unit/hanami/port_spec.rb
637
- - spec/unit/hanami/providers/db/config/default_config_spec.rb
638
- - spec/unit/hanami/providers/db/config/gateway_spec.rb
639
- - spec/unit/hanami/providers/db/config_spec.rb
640
- - spec/unit/hanami/router/errors/not_allowed_error_spec.rb
641
- - spec/unit/hanami/router/errors/not_found_error_spec.rb
642
- - spec/unit/hanami/settings/env_store_spec.rb
643
- - spec/unit/hanami/settings_spec.rb
644
- - spec/unit/hanami/slice_configurable_spec.rb
645
- - spec/unit/hanami/slice_name_spec.rb
646
- - spec/unit/hanami/slice_spec.rb
647
- - spec/unit/hanami/web/rack_logger_spec.rb
401
+ 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/