hanami 2.1.0.beta2.1 → 2.1.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -0
- data/hanami.gemspec +3 -3
- data/lib/hanami/config/actions.rb +16 -3
- data/lib/hanami/config/assets.rb +1 -1
- data/lib/hanami/config/views.rb +10 -2
- data/lib/hanami/config.rb +21 -12
- data/lib/hanami/extensions/action/slice_configured_action.rb +5 -5
- data/lib/hanami/extensions/action.rb +4 -4
- data/lib/hanami/extensions/view/context.rb +111 -19
- data/lib/hanami/extensions/view/part.rb +64 -3
- data/lib/hanami/extensions/view/scope.rb +7 -0
- data/lib/hanami/extensions/view/slice_configured_context.rb +12 -8
- data/lib/hanami/extensions/view/slice_configured_helpers.rb +12 -1
- data/lib/hanami/extensions/view/slice_configured_part.rb +71 -0
- data/lib/hanami/extensions/view/slice_configured_view.rb +14 -6
- data/lib/hanami/extensions/view/standard_helpers.rb +4 -0
- data/lib/hanami/extensions/view.rb +5 -3
- data/lib/hanami/helpers/assets_helper.rb +47 -79
- data/lib/hanami/routes.rb +33 -2
- data/lib/hanami/slice.rb +12 -2
- data/lib/hanami/slice_registrar.rb +48 -23
- data/lib/hanami/version.rb +1 -1
- data/lib/hanami/web/rack_logger.rb +70 -2
- data/lib/hanami/web/welcome.html.erb +203 -0
- data/lib/hanami/web/welcome.rb +46 -0
- data/spec/integration/assets/assets_spec.rb +14 -3
- data/spec/integration/logging/request_logging_spec.rb +65 -7
- data/spec/integration/rack_app/method_override_spec.rb +97 -0
- data/spec/integration/slices_spec.rb +275 -5
- data/spec/integration/view/context/assets_spec.rb +0 -8
- data/spec/integration/view/context/inflector_spec.rb +0 -8
- data/spec/integration/view/context/settings_spec.rb +0 -8
- data/spec/integration/view/helpers/part_helpers_spec.rb +2 -2
- data/spec/integration/view/helpers/user_defined_helpers/part_helpers_spec.rb +10 -10
- data/spec/integration/view/parts/default_rendering_spec.rb +138 -0
- data/spec/integration/web/welcome_view_spec.rb +84 -0
- data/spec/support/app_integration.rb +22 -4
- data/spec/unit/hanami/config/render_detailed_errors_spec.rb +1 -1
- data/spec/unit/hanami/helpers/assets_helper/{audio_spec.rb → audio_tag_spec.rb} +10 -14
- data/spec/unit/hanami/helpers/assets_helper/{favicon_spec.rb → favicon_tag_spec.rb} +7 -11
- data/spec/unit/hanami/helpers/assets_helper/{image_spec.rb → image_tag_spec.rb} +8 -12
- data/spec/unit/hanami/helpers/assets_helper/{javascript_spec.rb → javascript_tag_spec.rb} +14 -18
- data/spec/unit/hanami/helpers/assets_helper/{stylesheet_spec.rb → stylesheet_tag_spec.rb} +12 -16
- data/spec/unit/hanami/helpers/assets_helper/{video_spec.rb → video_tag_spec.rb} +11 -11
- data/spec/unit/hanami/version_spec.rb +1 -1
- metadata +28 -19
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hanami
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.0.
|
4
|
+
version: 2.1.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -162,28 +162,28 @@ dependencies:
|
|
162
162
|
requirements:
|
163
163
|
- - "~>"
|
164
164
|
- !ruby/object:Gem::Version
|
165
|
-
version: 2.1.
|
165
|
+
version: 2.1.rc
|
166
166
|
type: :runtime
|
167
167
|
prerelease: false
|
168
168
|
version_requirements: !ruby/object:Gem::Requirement
|
169
169
|
requirements:
|
170
170
|
- - "~>"
|
171
171
|
- !ruby/object:Gem::Version
|
172
|
-
version: 2.1.
|
172
|
+
version: 2.1.rc
|
173
173
|
- !ruby/object:Gem::Dependency
|
174
174
|
name: hanami-utils
|
175
175
|
requirement: !ruby/object:Gem::Requirement
|
176
176
|
requirements:
|
177
177
|
- - "~>"
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version: 2.1.
|
179
|
+
version: 2.1.rc
|
180
180
|
type: :runtime
|
181
181
|
prerelease: false
|
182
182
|
version_requirements: !ruby/object:Gem::Requirement
|
183
183
|
requirements:
|
184
184
|
- - "~>"
|
185
185
|
- !ruby/object:Gem::Version
|
186
|
-
version: 2.1.
|
186
|
+
version: 2.1.rc
|
187
187
|
- !ruby/object:Gem::Dependency
|
188
188
|
name: zeitwerk
|
189
189
|
requirement: !ruby/object:Gem::Requirement
|
@@ -279,6 +279,7 @@ files:
|
|
279
279
|
- lib/hanami/extensions/view/scope.rb
|
280
280
|
- lib/hanami/extensions/view/slice_configured_context.rb
|
281
281
|
- lib/hanami/extensions/view/slice_configured_helpers.rb
|
282
|
+
- lib/hanami/extensions/view/slice_configured_part.rb
|
282
283
|
- lib/hanami/extensions/view/slice_configured_view.rb
|
283
284
|
- lib/hanami/extensions/view/standard_helpers.rb
|
284
285
|
- lib/hanami/helpers/assets_helper.rb
|
@@ -311,6 +312,8 @@ files:
|
|
311
312
|
- lib/hanami/slice_registrar.rb
|
312
313
|
- lib/hanami/version.rb
|
313
314
|
- lib/hanami/web/rack_logger.rb
|
315
|
+
- lib/hanami/web/welcome.html.erb
|
316
|
+
- lib/hanami/web/welcome.rb
|
314
317
|
- spec/integration/action/cookies_spec.rb
|
315
318
|
- spec/integration/action/csrf_protection_spec.rb
|
316
319
|
- spec/integration/action/format_config_spec.rb
|
@@ -341,6 +344,7 @@ files:
|
|
341
344
|
- spec/integration/logging/notifications_spec.rb
|
342
345
|
- spec/integration/logging/request_logging_spec.rb
|
343
346
|
- spec/integration/rack_app/body_parser_spec.rb
|
347
|
+
- spec/integration/rack_app/method_override_spec.rb
|
344
348
|
- spec/integration/rack_app/middleware_spec.rb
|
345
349
|
- spec/integration/rack_app/non_booted_rack_app_spec.rb
|
346
350
|
- spec/integration/rack_app/rack_app_spec.rb
|
@@ -376,10 +380,12 @@ files:
|
|
376
380
|
- spec/integration/view/helpers/scope_helpers_spec.rb
|
377
381
|
- spec/integration/view/helpers/user_defined_helpers/part_helpers_spec.rb
|
378
382
|
- spec/integration/view/helpers/user_defined_helpers/scope_helpers_spec.rb
|
383
|
+
- spec/integration/view/parts/default_rendering_spec.rb
|
379
384
|
- spec/integration/view/slice_configuration_spec.rb
|
380
385
|
- spec/integration/view/views_spec.rb
|
381
386
|
- spec/integration/web/render_detailed_errors_spec.rb
|
382
387
|
- spec/integration/web/render_errors_spec.rb
|
388
|
+
- spec/integration/web/welcome_view_spec.rb
|
383
389
|
- spec/spec_helper.rb
|
384
390
|
- spec/support/app_integration.rb
|
385
391
|
- spec/support/coverage.rb
|
@@ -406,12 +412,12 @@ files:
|
|
406
412
|
- spec/unit/hanami/env_spec.rb
|
407
413
|
- spec/unit/hanami/extensions/view/context_spec.rb
|
408
414
|
- spec/unit/hanami/helpers/assets_helper/asset_url_spec.rb
|
409
|
-
- spec/unit/hanami/helpers/assets_helper/
|
410
|
-
- spec/unit/hanami/helpers/assets_helper/
|
411
|
-
- spec/unit/hanami/helpers/assets_helper/
|
412
|
-
- spec/unit/hanami/helpers/assets_helper/
|
413
|
-
- spec/unit/hanami/helpers/assets_helper/
|
414
|
-
- spec/unit/hanami/helpers/assets_helper/
|
415
|
+
- spec/unit/hanami/helpers/assets_helper/audio_tag_spec.rb
|
416
|
+
- spec/unit/hanami/helpers/assets_helper/favicon_tag_spec.rb
|
417
|
+
- spec/unit/hanami/helpers/assets_helper/image_tag_spec.rb
|
418
|
+
- spec/unit/hanami/helpers/assets_helper/javascript_tag_spec.rb
|
419
|
+
- spec/unit/hanami/helpers/assets_helper/stylesheet_tag_spec.rb
|
420
|
+
- spec/unit/hanami/helpers/assets_helper/video_tag_spec.rb
|
415
421
|
- spec/unit/hanami/helpers/form_helper_spec.rb
|
416
422
|
- spec/unit/hanami/port_spec.rb
|
417
423
|
- spec/unit/hanami/router/errors/not_allowed_error_spec.rb
|
@@ -444,7 +450,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
444
450
|
- !ruby/object:Gem::Version
|
445
451
|
version: 1.3.1
|
446
452
|
requirements: []
|
447
|
-
rubygems_version: 3.4.
|
453
|
+
rubygems_version: 3.4.21
|
448
454
|
signing_key:
|
449
455
|
specification_version: 4
|
450
456
|
summary: The web, with simplicity
|
@@ -479,6 +485,7 @@ test_files:
|
|
479
485
|
- spec/integration/logging/notifications_spec.rb
|
480
486
|
- spec/integration/logging/request_logging_spec.rb
|
481
487
|
- spec/integration/rack_app/body_parser_spec.rb
|
488
|
+
- spec/integration/rack_app/method_override_spec.rb
|
482
489
|
- spec/integration/rack_app/middleware_spec.rb
|
483
490
|
- spec/integration/rack_app/non_booted_rack_app_spec.rb
|
484
491
|
- spec/integration/rack_app/rack_app_spec.rb
|
@@ -514,10 +521,12 @@ test_files:
|
|
514
521
|
- spec/integration/view/helpers/scope_helpers_spec.rb
|
515
522
|
- spec/integration/view/helpers/user_defined_helpers/part_helpers_spec.rb
|
516
523
|
- spec/integration/view/helpers/user_defined_helpers/scope_helpers_spec.rb
|
524
|
+
- spec/integration/view/parts/default_rendering_spec.rb
|
517
525
|
- spec/integration/view/slice_configuration_spec.rb
|
518
526
|
- spec/integration/view/views_spec.rb
|
519
527
|
- spec/integration/web/render_detailed_errors_spec.rb
|
520
528
|
- spec/integration/web/render_errors_spec.rb
|
529
|
+
- spec/integration/web/welcome_view_spec.rb
|
521
530
|
- spec/spec_helper.rb
|
522
531
|
- spec/support/app_integration.rb
|
523
532
|
- spec/support/coverage.rb
|
@@ -544,12 +553,12 @@ test_files:
|
|
544
553
|
- spec/unit/hanami/env_spec.rb
|
545
554
|
- spec/unit/hanami/extensions/view/context_spec.rb
|
546
555
|
- spec/unit/hanami/helpers/assets_helper/asset_url_spec.rb
|
547
|
-
- spec/unit/hanami/helpers/assets_helper/
|
548
|
-
- spec/unit/hanami/helpers/assets_helper/
|
549
|
-
- spec/unit/hanami/helpers/assets_helper/
|
550
|
-
- spec/unit/hanami/helpers/assets_helper/
|
551
|
-
- spec/unit/hanami/helpers/assets_helper/
|
552
|
-
- spec/unit/hanami/helpers/assets_helper/
|
556
|
+
- spec/unit/hanami/helpers/assets_helper/audio_tag_spec.rb
|
557
|
+
- spec/unit/hanami/helpers/assets_helper/favicon_tag_spec.rb
|
558
|
+
- spec/unit/hanami/helpers/assets_helper/image_tag_spec.rb
|
559
|
+
- spec/unit/hanami/helpers/assets_helper/javascript_tag_spec.rb
|
560
|
+
- spec/unit/hanami/helpers/assets_helper/stylesheet_tag_spec.rb
|
561
|
+
- spec/unit/hanami/helpers/assets_helper/video_tag_spec.rb
|
553
562
|
- spec/unit/hanami/helpers/form_helper_spec.rb
|
554
563
|
- spec/unit/hanami/port_spec.rb
|
555
564
|
- spec/unit/hanami/router/errors/not_allowed_error_spec.rb
|