hanami 2.0.0.beta2 → 2.0.0.beta4
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 -1
- data/hanami.gemspec +5 -5
- data/lib/hanami/app.rb +4 -4
- data/lib/hanami/assets/{app_configuration.rb → app_config.rb} +10 -10
- data/lib/hanami/assets/{configuration.rb → config.rb} +4 -4
- data/lib/hanami/{configuration → config}/actions/content_security_policy.rb +2 -2
- data/lib/hanami/{configuration → config}/actions/cookies.rb +6 -5
- data/lib/hanami/{configuration → config}/actions/sessions.rb +2 -2
- data/lib/hanami/{configuration → config}/actions.rb +11 -12
- data/lib/hanami/{configuration → config}/logger.rb +2 -2
- data/lib/hanami/config/null_config.rb +14 -0
- data/lib/hanami/{configuration → config}/router.rb +8 -8
- data/lib/hanami/{configuration → config}/sessions.rb +2 -2
- data/lib/hanami/{configuration → config}/views.rb +10 -10
- data/lib/hanami/{configuration.rb → config.rb} +30 -30
- data/lib/hanami/errors.rb +3 -0
- data/lib/hanami/extensions/action/slice_configured_action.rb +1 -1
- data/lib/hanami/providers/inflector.rb +0 -2
- data/lib/hanami/providers/logger.rb +1 -3
- data/lib/hanami/providers/rack.rb +0 -2
- data/lib/hanami/providers/routes.rb +0 -2
- data/lib/hanami/routes.rb +48 -21
- data/lib/hanami/settings/env_store.rb +3 -3
- data/lib/hanami/settings.rb +87 -5
- data/lib/hanami/slice/routing/middleware/stack.rb +45 -1
- data/lib/hanami/slice.rb +52 -37
- data/lib/hanami/slice_configurable.rb +1 -1
- data/lib/hanami/slice_registrar.rb +6 -0
- data/lib/hanami/version.rb +1 -1
- data/lib/hanami.rb +0 -1
- data/spec/{new_integration → integration}/action/cookies_spec.rb +0 -0
- data/spec/{new_integration → integration}/action/csrf_protection_spec.rb +0 -0
- data/spec/{new_integration → integration}/action/routes_spec.rb +3 -5
- data/spec/{new_integration → integration}/action/sessions_spec.rb +0 -0
- data/spec/{new_integration → integration}/action/slice_configuration_spec.rb +0 -0
- data/spec/{new_integration → integration}/action/view_integration_spec.rb +0 -0
- data/spec/{new_integration → integration}/action/view_rendering/automatic_rendering_spec.rb +0 -0
- data/spec/{new_integration → integration}/action/view_rendering/paired_view_inference_spec.rb +0 -0
- data/spec/{new_integration → integration}/action/view_rendering_spec.rb +0 -0
- data/spec/{new_integration → integration}/code_loading/loading_from_app_spec.rb +0 -0
- data/spec/{new_integration → integration}/code_loading/loading_from_lib_spec.rb +0 -0
- data/spec/{new_integration → integration}/code_loading/loading_from_slice_spec.rb +0 -0
- data/spec/{new_integration → integration}/container/application_routes_helper_spec.rb +1 -3
- data/spec/{new_integration → integration}/container/auto_injection_spec.rb +0 -0
- data/spec/{new_integration → integration}/container/auto_registration_spec.rb +0 -0
- data/spec/{new_integration → integration}/container/autoloader_spec.rb +0 -0
- data/spec/{new_integration → integration}/container/imports_spec.rb +0 -0
- data/spec/{new_integration → integration}/container/prepare_container_spec.rb +2 -0
- data/spec/{new_integration → integration}/container/shutdown_spec.rb +0 -0
- data/spec/{new_integration → integration}/container/standard_bootable_components_spec.rb +0 -0
- data/spec/{new_integration → integration}/dotenv_loading_spec.rb +0 -0
- data/spec/integration/rack_app/body_parser_spec.rb +108 -0
- data/spec/{new_integration → integration}/rack_app/middleware_spec.rb +37 -15
- data/spec/{new_integration → integration}/rack_app/non_booted_rack_app_spec.rb +3 -5
- data/spec/{new_integration → integration}/rack_app/rack_app_spec.rb +28 -48
- data/spec/integration/settings/access_in_slice_class_body_spec.rb +82 -0
- data/spec/integration/settings/access_to_constants_spec.rb +46 -0
- data/spec/{new_integration → integration}/settings/loading_from_env_spec.rb +0 -0
- data/spec/{new_integration → integration}/settings/settings_component_loading_spec.rb +0 -0
- data/spec/{new_integration/slices/slice_settings_spec.rb → integration/settings/slice_registration_spec.rb} +5 -1
- data/spec/{new_integration → integration}/settings/using_types_spec.rb +4 -11
- data/spec/{new_integration → integration}/setup_spec.rb +20 -0
- data/spec/{new_integration → integration}/slices/external_slice_spec.rb +2 -4
- data/spec/{new_integration → integration}/slices/slice_configuration_spec.rb +0 -0
- data/spec/{new_integration → integration}/slices/slice_loading_spec.rb +0 -0
- data/spec/{new_integration → integration}/slices/slice_routing_spec.rb +5 -13
- data/spec/{new_integration → integration}/slices_spec.rb +0 -0
- data/spec/{new_integration → integration}/view/context/assets_spec.rb +0 -0
- data/spec/{new_integration → integration}/view/context/inflector_spec.rb +0 -0
- data/spec/{new_integration → integration}/view/context/request_spec.rb +0 -0
- data/spec/{new_integration → integration}/view/context/routes_spec.rb +1 -3
- data/spec/{new_integration → integration}/view/context/settings_spec.rb +0 -0
- data/spec/{new_integration → integration}/view/inflector_spec.rb +0 -0
- data/spec/{new_integration → integration}/view/part_namespace_spec.rb +0 -0
- data/spec/{new_integration → integration}/view/path_spec.rb +0 -0
- data/spec/{new_integration → integration}/view/slice_configuration_spec.rb +0 -0
- data/spec/{new_integration → integration}/view/template_spec.rb +0 -0
- data/spec/{new_integration → integration}/view/views_spec.rb +0 -0
- data/spec/support/app_integration.rb +18 -15
- data/spec/unit/hanami/{configuration → config}/actions/content_security_policy_spec.rb +10 -10
- data/spec/unit/hanami/{configuration → config}/actions/cookies_spec.rb +6 -6
- data/spec/unit/hanami/{configuration → config}/actions/csrf_protection_spec.rb +12 -12
- data/spec/unit/hanami/config/actions/default_values_spec.rb +54 -0
- data/spec/unit/hanami/{configuration → config}/actions/sessions_spec.rb +5 -5
- data/spec/unit/hanami/{configuration → config}/actions_spec.rb +13 -25
- data/spec/unit/hanami/{configuration → config}/base_url_spec.rb +2 -2
- data/spec/unit/hanami/{configuration → config}/inflector_spec.rb +2 -2
- data/spec/unit/hanami/{configuration → config}/logger_spec.rb +4 -4
- data/spec/unit/hanami/config/router_spec.rb +44 -0
- data/spec/unit/hanami/{configuration → config}/slices_spec.rb +2 -2
- data/spec/unit/hanami/{configuration → config}/views_spec.rb +15 -27
- data/spec/unit/hanami/{configuration_spec.rb → config_spec.rb} +3 -3
- data/spec/unit/hanami/settings_spec.rb +65 -10
- data/spec/unit/hanami/slice_configurable_spec.rb +21 -2
- data/spec/unit/hanami/version_spec.rb +1 -1
- metadata +162 -294
- data/lib/hanami/configuration/null_configuration.rb +0 -14
- data/lib/hanami/providers/settings.rb +0 -98
- data/lib/hanami/server.rb +0 -29
- data/spec/integration/application_middleware_stack_spec.rb +0 -84
- data/spec/integration/assets/cdn_spec.rb +0 -48
- data/spec/integration/assets/fingerprint_spec.rb +0 -42
- data/spec/integration/assets/helpers_spec.rb +0 -50
- data/spec/integration/assets/serve_spec.rb +0 -70
- data/spec/integration/assets/subresource_integrity_spec.rb +0 -54
- data/spec/integration/body_parsers_spec.rb +0 -50
- data/spec/integration/cli/assets/precompile_spec.rb +0 -147
- data/spec/integration/cli/assets_spec.rb +0 -14
- data/spec/integration/cli/console_spec.rb +0 -105
- data/spec/integration/cli/db/apply_spec.rb +0 -74
- data/spec/integration/cli/db/console_spec.rb +0 -40
- data/spec/integration/cli/db/create_spec.rb +0 -50
- data/spec/integration/cli/db/drop_spec.rb +0 -54
- data/spec/integration/cli/db/migrate_spec.rb +0 -108
- data/spec/integration/cli/db/prepare_spec.rb +0 -36
- data/spec/integration/cli/db/rollback_spec.rb +0 -96
- data/spec/integration/cli/db/version_spec.rb +0 -38
- data/spec/integration/cli/db_spec.rb +0 -21
- data/spec/integration/cli/destroy/action_spec.rb +0 -143
- data/spec/integration/cli/destroy/app_spec.rb +0 -118
- data/spec/integration/cli/destroy/mailer_spec.rb +0 -74
- data/spec/integration/cli/destroy/migration_spec.rb +0 -70
- data/spec/integration/cli/destroy/model_spec.rb +0 -113
- data/spec/integration/cli/destroy_spec.rb +0 -18
- data/spec/integration/cli/generate/action_spec.rb +0 -469
- data/spec/integration/cli/generate/app_spec.rb +0 -215
- data/spec/integration/cli/generate/mailer_spec.rb +0 -189
- data/spec/integration/cli/generate/migration_spec.rb +0 -72
- data/spec/integration/cli/generate/model_spec.rb +0 -290
- data/spec/integration/cli/generate/secret_spec.rb +0 -56
- data/spec/integration/cli/generate_spec.rb +0 -19
- data/spec/integration/cli/new/database_spec.rb +0 -235
- data/spec/integration/cli/new/hanami_head_spec.rb +0 -27
- data/spec/integration/cli/new/template_spec.rb +0 -118
- data/spec/integration/cli/new/test_spec.rb +0 -274
- data/spec/integration/cli/new_spec.rb +0 -970
- data/spec/integration/cli/plugins_spec.rb +0 -39
- data/spec/integration/cli/routes_spec.rb +0 -49
- data/spec/integration/cli/server_spec.rb +0 -626
- data/spec/integration/cli/version_spec.rb +0 -85
- data/spec/integration/early_hints_spec.rb +0 -35
- data/spec/integration/handle_exceptions_spec.rb +0 -244
- data/spec/integration/head_spec.rb +0 -89
- data/spec/integration/http_headers_spec.rb +0 -29
- data/spec/integration/mailer_spec.rb +0 -32
- data/spec/integration/middleware_spec.rb +0 -81
- data/spec/integration/mount_applications_spec.rb +0 -88
- data/spec/integration/project_initializers_spec.rb +0 -40
- data/spec/integration/rackup_spec.rb +0 -35
- data/spec/integration/rake/with_minitest_spec.rb +0 -67
- data/spec/integration/rake/with_rspec_spec.rb +0 -69
- data/spec/integration/routing_helpers_spec.rb +0 -61
- data/spec/integration/security/content_security_policy_spec.rb +0 -46
- data/spec/integration/security/csrf_protection_spec.rb +0 -42
- data/spec/integration/security/force_ssl_spec.rb +0 -29
- data/spec/integration/security/x_content_type_options_spec.rb +0 -46
- data/spec/integration/security/x_frame_options_spec.rb +0 -46
- data/spec/integration/security/x_xss_protection_spec.rb +0 -46
- data/spec/integration/send_file_spec.rb +0 -51
- data/spec/integration/sessions_spec.rb +0 -247
- data/spec/integration/static_middleware_spec.rb +0 -21
- data/spec/integration/streaming_spec.rb +0 -41
- data/spec/integration/unsafe_send_file_spec.rb +0 -52
- data/spec/new_integration/settings/access_to_constants_spec.rb +0 -169
- data/spec/support/fixtures/hanami-plugin/Gemfile +0 -8
- data/spec/support/fixtures/hanami-plugin/README.md +0 -35
- data/spec/support/fixtures/hanami-plugin/Rakefile +0 -4
- data/spec/support/fixtures/hanami-plugin/bin/console +0 -15
- data/spec/support/fixtures/hanami-plugin/bin/setup +0 -8
- data/spec/support/fixtures/hanami-plugin/hanami-plugin.gemspec +0 -28
- data/spec/support/fixtures/hanami-plugin/lib/hanami/plugin/cli.rb +0 -19
- data/spec/support/fixtures/hanami-plugin/lib/hanami/plugin/version.rb +0 -7
- data/spec/support/fixtures/hanami-plugin/lib/hanami/plugin.rb +0 -8
- data/spec/unit/hanami/configuration/actions/default_values_spec.rb +0 -52
- data/spec/unit/hanami/routes_spec.rb +0 -25
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.0.0.
|
4
|
+
version: 2.0.0.beta4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -36,28 +36,40 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '0.
|
39
|
+
version: '0.16'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 0.16.1
|
40
43
|
type: :runtime
|
41
44
|
prerelease: false
|
42
45
|
version_requirements: !ruby/object:Gem::Requirement
|
43
46
|
requirements:
|
44
47
|
- - "~>"
|
45
48
|
- !ruby/object:Gem::Version
|
46
|
-
version: '0.
|
49
|
+
version: '0.16'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 0.16.1
|
47
53
|
- !ruby/object:Gem::Dependency
|
48
54
|
name: dry-core
|
49
55
|
requirement: !ruby/object:Gem::Requirement
|
50
56
|
requirements:
|
51
57
|
- - "~>"
|
52
58
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0.
|
59
|
+
version: '0.9'
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 0.9.1
|
54
63
|
type: :runtime
|
55
64
|
prerelease: false
|
56
65
|
version_requirements: !ruby/object:Gem::Requirement
|
57
66
|
requirements:
|
58
67
|
- - "~>"
|
59
68
|
- !ruby/object:Gem::Version
|
60
|
-
version: '0.
|
69
|
+
version: '0.9'
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: 0.9.1
|
61
73
|
- !ruby/object:Gem::Dependency
|
62
74
|
name: dry-inflector
|
63
75
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,40 +96,40 @@ dependencies:
|
|
84
96
|
requirements:
|
85
97
|
- - "~>"
|
86
98
|
- !ruby/object:Gem::Version
|
87
|
-
version: '0.
|
99
|
+
version: '0.27'
|
88
100
|
- - ">="
|
89
101
|
- !ruby/object:Gem::Version
|
90
|
-
version: 0.
|
102
|
+
version: 0.27.2
|
91
103
|
type: :runtime
|
92
104
|
prerelease: false
|
93
105
|
version_requirements: !ruby/object:Gem::Requirement
|
94
106
|
requirements:
|
95
107
|
- - "~>"
|
96
108
|
- !ruby/object:Gem::Version
|
97
|
-
version: '0.
|
109
|
+
version: '0.27'
|
98
110
|
- - ">="
|
99
111
|
- !ruby/object:Gem::Version
|
100
|
-
version: 0.
|
112
|
+
version: 0.27.2
|
101
113
|
- !ruby/object:Gem::Dependency
|
102
114
|
name: dry-monitor
|
103
115
|
requirement: !ruby/object:Gem::Requirement
|
104
116
|
requirements:
|
105
117
|
- - "~>"
|
106
118
|
- !ruby/object:Gem::Version
|
107
|
-
version: '0.
|
119
|
+
version: '0.7'
|
108
120
|
- - ">="
|
109
121
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
122
|
+
version: '0.7'
|
111
123
|
type: :runtime
|
112
124
|
prerelease: false
|
113
125
|
version_requirements: !ruby/object:Gem::Requirement
|
114
126
|
requirements:
|
115
127
|
- - "~>"
|
116
128
|
- !ruby/object:Gem::Version
|
117
|
-
version: '0.
|
129
|
+
version: '0.7'
|
118
130
|
- - ">="
|
119
131
|
- !ruby/object:Gem::Version
|
120
|
-
version: 0.
|
132
|
+
version: '0.7'
|
121
133
|
- !ruby/object:Gem::Dependency
|
122
134
|
name: hanami-cli
|
123
135
|
requirement: !ruby/object:Gem::Requirement
|
@@ -152,14 +164,14 @@ dependencies:
|
|
152
164
|
requirements:
|
153
165
|
- - "~>"
|
154
166
|
- !ruby/object:Gem::Version
|
155
|
-
version: '2.
|
167
|
+
version: '2.6'
|
156
168
|
type: :runtime
|
157
169
|
prerelease: false
|
158
170
|
version_requirements: !ruby/object:Gem::Requirement
|
159
171
|
requirements:
|
160
172
|
- - "~>"
|
161
173
|
- !ruby/object:Gem::Version
|
162
|
-
version: '2.
|
174
|
+
version: '2.6'
|
163
175
|
- !ruby/object:Gem::Dependency
|
164
176
|
name: rspec
|
165
177
|
requirement: !ruby/object:Gem::Requirement
|
@@ -217,19 +229,19 @@ files:
|
|
217
229
|
- hanami.gemspec
|
218
230
|
- lib/hanami.rb
|
219
231
|
- lib/hanami/app.rb
|
220
|
-
- lib/hanami/assets/
|
221
|
-
- lib/hanami/assets/
|
232
|
+
- lib/hanami/assets/app_config.rb
|
233
|
+
- lib/hanami/assets/config.rb
|
222
234
|
- lib/hanami/boot.rb
|
223
|
-
- lib/hanami/
|
224
|
-
- lib/hanami/
|
225
|
-
- lib/hanami/
|
226
|
-
- lib/hanami/
|
227
|
-
- lib/hanami/
|
228
|
-
- lib/hanami/
|
229
|
-
- lib/hanami/
|
230
|
-
- lib/hanami/
|
231
|
-
- lib/hanami/
|
232
|
-
- lib/hanami/
|
235
|
+
- lib/hanami/config.rb
|
236
|
+
- lib/hanami/config/actions.rb
|
237
|
+
- lib/hanami/config/actions/content_security_policy.rb
|
238
|
+
- lib/hanami/config/actions/cookies.rb
|
239
|
+
- lib/hanami/config/actions/sessions.rb
|
240
|
+
- lib/hanami/config/logger.rb
|
241
|
+
- lib/hanami/config/null_config.rb
|
242
|
+
- lib/hanami/config/router.rb
|
243
|
+
- lib/hanami/config/sessions.rb
|
244
|
+
- lib/hanami/config/views.rb
|
233
245
|
- lib/hanami/constants.rb
|
234
246
|
- lib/hanami/errors.rb
|
235
247
|
- lib/hanami/extensions.rb
|
@@ -244,10 +256,8 @@ files:
|
|
244
256
|
- lib/hanami/providers/logger.rb
|
245
257
|
- lib/hanami/providers/rack.rb
|
246
258
|
- lib/hanami/providers/routes.rb
|
247
|
-
- lib/hanami/providers/settings.rb
|
248
259
|
- lib/hanami/rake_tasks.rb
|
249
260
|
- lib/hanami/routes.rb
|
250
|
-
- lib/hanami/server.rb
|
251
261
|
- lib/hanami/settings.rb
|
252
262
|
- lib/hanami/settings/env_store.rb
|
253
263
|
- lib/hanami/setup.rb
|
@@ -262,70 +272,54 @@ files:
|
|
262
272
|
- lib/hanami/slice_registrar.rb
|
263
273
|
- lib/hanami/version.rb
|
264
274
|
- lib/hanami/web/rack_logger.rb
|
265
|
-
- spec/integration/
|
266
|
-
- spec/integration/
|
267
|
-
- spec/integration/
|
268
|
-
- spec/integration/
|
269
|
-
- spec/integration/
|
270
|
-
- spec/integration/
|
271
|
-
- spec/integration/
|
272
|
-
- spec/integration/
|
273
|
-
- spec/integration/
|
274
|
-
- spec/integration/
|
275
|
-
- spec/integration/
|
276
|
-
- spec/integration/
|
277
|
-
- spec/integration/
|
278
|
-
- spec/integration/
|
279
|
-
- spec/integration/
|
280
|
-
- spec/integration/
|
281
|
-
- spec/integration/
|
282
|
-
- spec/integration/
|
283
|
-
- spec/integration/
|
284
|
-
- spec/integration/
|
285
|
-
- spec/integration/
|
286
|
-
- spec/integration/
|
287
|
-
- spec/integration/
|
288
|
-
- spec/integration/
|
289
|
-
- spec/integration/
|
290
|
-
- spec/integration/
|
291
|
-
- spec/integration/
|
292
|
-
- spec/integration/
|
293
|
-
- spec/integration/
|
294
|
-
- spec/integration/
|
295
|
-
- spec/integration/
|
296
|
-
- spec/integration/
|
297
|
-
- spec/integration/
|
298
|
-
- spec/integration/
|
299
|
-
- spec/integration/
|
300
|
-
- spec/integration/
|
301
|
-
- spec/integration/
|
302
|
-
- spec/integration/
|
303
|
-
- spec/integration/
|
304
|
-
- spec/integration/
|
305
|
-
- spec/integration/
|
306
|
-
- spec/integration/
|
307
|
-
- spec/integration/
|
308
|
-
- spec/integration/
|
309
|
-
- spec/integration/
|
310
|
-
- spec/integration/
|
311
|
-
- spec/integration/
|
312
|
-
- spec/integration/
|
313
|
-
- spec/integration/project_initializers_spec.rb
|
314
|
-
- spec/integration/rackup_spec.rb
|
315
|
-
- spec/integration/rake/with_minitest_spec.rb
|
316
|
-
- spec/integration/rake/with_rspec_spec.rb
|
317
|
-
- spec/integration/routing_helpers_spec.rb
|
318
|
-
- spec/integration/security/content_security_policy_spec.rb
|
319
|
-
- spec/integration/security/csrf_protection_spec.rb
|
320
|
-
- spec/integration/security/force_ssl_spec.rb
|
321
|
-
- spec/integration/security/x_content_type_options_spec.rb
|
322
|
-
- spec/integration/security/x_frame_options_spec.rb
|
323
|
-
- spec/integration/security/x_xss_protection_spec.rb
|
324
|
-
- spec/integration/send_file_spec.rb
|
325
|
-
- spec/integration/sessions_spec.rb
|
326
|
-
- spec/integration/static_middleware_spec.rb
|
327
|
-
- spec/integration/streaming_spec.rb
|
328
|
-
- spec/integration/unsafe_send_file_spec.rb
|
275
|
+
- spec/integration/action/cookies_spec.rb
|
276
|
+
- spec/integration/action/csrf_protection_spec.rb
|
277
|
+
- spec/integration/action/routes_spec.rb
|
278
|
+
- spec/integration/action/sessions_spec.rb
|
279
|
+
- spec/integration/action/slice_configuration_spec.rb
|
280
|
+
- spec/integration/action/view_integration_spec.rb
|
281
|
+
- spec/integration/action/view_rendering/automatic_rendering_spec.rb
|
282
|
+
- spec/integration/action/view_rendering/paired_view_inference_spec.rb
|
283
|
+
- spec/integration/action/view_rendering_spec.rb
|
284
|
+
- spec/integration/code_loading/loading_from_app_spec.rb
|
285
|
+
- spec/integration/code_loading/loading_from_lib_spec.rb
|
286
|
+
- spec/integration/code_loading/loading_from_slice_spec.rb
|
287
|
+
- spec/integration/container/application_routes_helper_spec.rb
|
288
|
+
- spec/integration/container/auto_injection_spec.rb
|
289
|
+
- spec/integration/container/auto_registration_spec.rb
|
290
|
+
- spec/integration/container/autoloader_spec.rb
|
291
|
+
- spec/integration/container/imports_spec.rb
|
292
|
+
- spec/integration/container/prepare_container_spec.rb
|
293
|
+
- spec/integration/container/shutdown_spec.rb
|
294
|
+
- spec/integration/container/standard_bootable_components_spec.rb
|
295
|
+
- spec/integration/dotenv_loading_spec.rb
|
296
|
+
- spec/integration/rack_app/body_parser_spec.rb
|
297
|
+
- spec/integration/rack_app/middleware_spec.rb
|
298
|
+
- spec/integration/rack_app/non_booted_rack_app_spec.rb
|
299
|
+
- spec/integration/rack_app/rack_app_spec.rb
|
300
|
+
- spec/integration/settings/access_in_slice_class_body_spec.rb
|
301
|
+
- spec/integration/settings/access_to_constants_spec.rb
|
302
|
+
- spec/integration/settings/loading_from_env_spec.rb
|
303
|
+
- spec/integration/settings/settings_component_loading_spec.rb
|
304
|
+
- spec/integration/settings/slice_registration_spec.rb
|
305
|
+
- spec/integration/settings/using_types_spec.rb
|
306
|
+
- spec/integration/setup_spec.rb
|
307
|
+
- spec/integration/slices/external_slice_spec.rb
|
308
|
+
- spec/integration/slices/slice_configuration_spec.rb
|
309
|
+
- spec/integration/slices/slice_loading_spec.rb
|
310
|
+
- spec/integration/slices/slice_routing_spec.rb
|
311
|
+
- spec/integration/slices_spec.rb
|
312
|
+
- spec/integration/view/context/assets_spec.rb
|
313
|
+
- spec/integration/view/context/inflector_spec.rb
|
314
|
+
- spec/integration/view/context/request_spec.rb
|
315
|
+
- spec/integration/view/context/routes_spec.rb
|
316
|
+
- spec/integration/view/context/settings_spec.rb
|
317
|
+
- spec/integration/view/inflector_spec.rb
|
318
|
+
- spec/integration/view/part_namespace_spec.rb
|
319
|
+
- spec/integration/view/path_spec.rb
|
320
|
+
- spec/integration/view/slice_configuration_spec.rb
|
321
|
+
- spec/integration/view/template_spec.rb
|
322
|
+
- spec/integration/view/views_spec.rb
|
329
323
|
- spec/isolation/hanami/application/already_configured_spec.rb
|
330
324
|
- spec/isolation/hanami/application/inherit_anonymous_class_spec.rb
|
331
325
|
- spec/isolation/hanami/application/inherit_concrete_class_spec.rb
|
@@ -333,83 +327,28 @@ files:
|
|
333
327
|
- spec/isolation/hanami/application/routes/configured_spec.rb
|
334
328
|
- spec/isolation/hanami/application/routes/not_configured_spec.rb
|
335
329
|
- spec/isolation/hanami/boot/success_spec.rb
|
336
|
-
- spec/new_integration/action/cookies_spec.rb
|
337
|
-
- spec/new_integration/action/csrf_protection_spec.rb
|
338
|
-
- spec/new_integration/action/routes_spec.rb
|
339
|
-
- spec/new_integration/action/sessions_spec.rb
|
340
|
-
- spec/new_integration/action/slice_configuration_spec.rb
|
341
|
-
- spec/new_integration/action/view_integration_spec.rb
|
342
|
-
- spec/new_integration/action/view_rendering/automatic_rendering_spec.rb
|
343
|
-
- spec/new_integration/action/view_rendering/paired_view_inference_spec.rb
|
344
|
-
- spec/new_integration/action/view_rendering_spec.rb
|
345
|
-
- spec/new_integration/code_loading/loading_from_app_spec.rb
|
346
|
-
- spec/new_integration/code_loading/loading_from_lib_spec.rb
|
347
|
-
- spec/new_integration/code_loading/loading_from_slice_spec.rb
|
348
|
-
- spec/new_integration/container/application_routes_helper_spec.rb
|
349
|
-
- spec/new_integration/container/auto_injection_spec.rb
|
350
|
-
- spec/new_integration/container/auto_registration_spec.rb
|
351
|
-
- spec/new_integration/container/autoloader_spec.rb
|
352
|
-
- spec/new_integration/container/imports_spec.rb
|
353
|
-
- spec/new_integration/container/prepare_container_spec.rb
|
354
|
-
- spec/new_integration/container/shutdown_spec.rb
|
355
|
-
- spec/new_integration/container/standard_bootable_components_spec.rb
|
356
|
-
- spec/new_integration/dotenv_loading_spec.rb
|
357
|
-
- spec/new_integration/rack_app/middleware_spec.rb
|
358
|
-
- spec/new_integration/rack_app/non_booted_rack_app_spec.rb
|
359
|
-
- spec/new_integration/rack_app/rack_app_spec.rb
|
360
|
-
- spec/new_integration/settings/access_to_constants_spec.rb
|
361
|
-
- spec/new_integration/settings/loading_from_env_spec.rb
|
362
|
-
- spec/new_integration/settings/settings_component_loading_spec.rb
|
363
|
-
- spec/new_integration/settings/using_types_spec.rb
|
364
|
-
- spec/new_integration/setup_spec.rb
|
365
|
-
- spec/new_integration/slices/external_slice_spec.rb
|
366
|
-
- spec/new_integration/slices/slice_configuration_spec.rb
|
367
|
-
- spec/new_integration/slices/slice_loading_spec.rb
|
368
|
-
- spec/new_integration/slices/slice_routing_spec.rb
|
369
|
-
- spec/new_integration/slices/slice_settings_spec.rb
|
370
|
-
- spec/new_integration/slices_spec.rb
|
371
|
-
- spec/new_integration/view/context/assets_spec.rb
|
372
|
-
- spec/new_integration/view/context/inflector_spec.rb
|
373
|
-
- spec/new_integration/view/context/request_spec.rb
|
374
|
-
- spec/new_integration/view/context/routes_spec.rb
|
375
|
-
- spec/new_integration/view/context/settings_spec.rb
|
376
|
-
- spec/new_integration/view/inflector_spec.rb
|
377
|
-
- spec/new_integration/view/part_namespace_spec.rb
|
378
|
-
- spec/new_integration/view/path_spec.rb
|
379
|
-
- spec/new_integration/view/slice_configuration_spec.rb
|
380
|
-
- spec/new_integration/view/template_spec.rb
|
381
|
-
- spec/new_integration/view/views_spec.rb
|
382
330
|
- spec/spec_helper.rb
|
383
331
|
- spec/support/app_integration.rb
|
384
332
|
- spec/support/coverage.rb
|
385
|
-
- spec/support/fixtures/hanami-plugin/Gemfile
|
386
|
-
- spec/support/fixtures/hanami-plugin/README.md
|
387
|
-
- spec/support/fixtures/hanami-plugin/Rakefile
|
388
|
-
- spec/support/fixtures/hanami-plugin/bin/console
|
389
|
-
- spec/support/fixtures/hanami-plugin/bin/setup
|
390
|
-
- spec/support/fixtures/hanami-plugin/hanami-plugin.gemspec
|
391
|
-
- spec/support/fixtures/hanami-plugin/lib/hanami/plugin.rb
|
392
|
-
- spec/support/fixtures/hanami-plugin/lib/hanami/plugin/cli.rb
|
393
|
-
- spec/support/fixtures/hanami-plugin/lib/hanami/plugin/version.rb
|
394
333
|
- spec/support/rspec.rb
|
395
334
|
- spec/support/shared_examples/cli/generate/app.rb
|
396
335
|
- spec/support/shared_examples/cli/generate/migration.rb
|
397
336
|
- spec/support/shared_examples/cli/generate/model.rb
|
398
337
|
- spec/support/shared_examples/cli/new.rb
|
399
|
-
- spec/unit/hanami/
|
400
|
-
- spec/unit/hanami/
|
401
|
-
- spec/unit/hanami/
|
402
|
-
- spec/unit/hanami/
|
403
|
-
- spec/unit/hanami/
|
404
|
-
- spec/unit/hanami/
|
405
|
-
- spec/unit/hanami/
|
406
|
-
- spec/unit/hanami/
|
407
|
-
- spec/unit/hanami/
|
408
|
-
- spec/unit/hanami/
|
409
|
-
- spec/unit/hanami/
|
410
|
-
- spec/unit/hanami/
|
338
|
+
- spec/unit/hanami/config/actions/content_security_policy_spec.rb
|
339
|
+
- spec/unit/hanami/config/actions/cookies_spec.rb
|
340
|
+
- spec/unit/hanami/config/actions/csrf_protection_spec.rb
|
341
|
+
- spec/unit/hanami/config/actions/default_values_spec.rb
|
342
|
+
- spec/unit/hanami/config/actions/sessions_spec.rb
|
343
|
+
- spec/unit/hanami/config/actions_spec.rb
|
344
|
+
- spec/unit/hanami/config/base_url_spec.rb
|
345
|
+
- spec/unit/hanami/config/inflector_spec.rb
|
346
|
+
- spec/unit/hanami/config/logger_spec.rb
|
347
|
+
- spec/unit/hanami/config/router_spec.rb
|
348
|
+
- spec/unit/hanami/config/slices_spec.rb
|
349
|
+
- spec/unit/hanami/config/views_spec.rb
|
350
|
+
- spec/unit/hanami/config_spec.rb
|
411
351
|
- spec/unit/hanami/env_spec.rb
|
412
|
-
- spec/unit/hanami/routes_spec.rb
|
413
352
|
- spec/unit/hanami/settings/env_store_spec.rb
|
414
353
|
- spec/unit/hanami/settings_spec.rb
|
415
354
|
- spec/unit/hanami/slice_configurable_spec.rb
|
@@ -443,70 +382,54 @@ signing_key:
|
|
443
382
|
specification_version: 4
|
444
383
|
summary: The web, with simplicity
|
445
384
|
test_files:
|
446
|
-
- spec/integration/
|
447
|
-
- spec/integration/
|
448
|
-
- spec/integration/
|
449
|
-
- spec/integration/
|
450
|
-
- spec/integration/
|
451
|
-
- spec/integration/
|
452
|
-
- spec/integration/
|
453
|
-
- spec/integration/
|
454
|
-
- spec/integration/
|
455
|
-
- spec/integration/
|
456
|
-
- spec/integration/
|
457
|
-
- spec/integration/
|
458
|
-
- spec/integration/
|
459
|
-
- spec/integration/
|
460
|
-
- spec/integration/
|
461
|
-
- spec/integration/
|
462
|
-
- spec/integration/
|
463
|
-
- spec/integration/
|
464
|
-
- spec/integration/
|
465
|
-
- spec/integration/
|
466
|
-
- spec/integration/
|
467
|
-
- spec/integration/
|
468
|
-
- spec/integration/
|
469
|
-
- spec/integration/
|
470
|
-
- spec/integration/
|
471
|
-
- spec/integration/
|
472
|
-
- spec/integration/
|
473
|
-
- spec/integration/
|
474
|
-
- spec/integration/
|
475
|
-
- spec/integration/
|
476
|
-
- spec/integration/
|
477
|
-
- spec/integration/
|
478
|
-
- spec/integration/
|
479
|
-
- spec/integration/
|
480
|
-
- spec/integration/
|
481
|
-
- spec/integration/
|
482
|
-
- spec/integration/
|
483
|
-
- spec/integration/
|
484
|
-
- spec/integration/
|
485
|
-
- spec/integration/
|
486
|
-
- spec/integration/
|
487
|
-
- spec/integration/
|
488
|
-
- spec/integration/
|
489
|
-
- spec/integration/
|
490
|
-
- spec/integration/
|
491
|
-
- spec/integration/
|
492
|
-
- spec/integration/
|
493
|
-
- spec/integration/
|
494
|
-
- spec/integration/project_initializers_spec.rb
|
495
|
-
- spec/integration/rackup_spec.rb
|
496
|
-
- spec/integration/rake/with_minitest_spec.rb
|
497
|
-
- spec/integration/rake/with_rspec_spec.rb
|
498
|
-
- spec/integration/routing_helpers_spec.rb
|
499
|
-
- spec/integration/security/content_security_policy_spec.rb
|
500
|
-
- spec/integration/security/csrf_protection_spec.rb
|
501
|
-
- spec/integration/security/force_ssl_spec.rb
|
502
|
-
- spec/integration/security/x_content_type_options_spec.rb
|
503
|
-
- spec/integration/security/x_frame_options_spec.rb
|
504
|
-
- spec/integration/security/x_xss_protection_spec.rb
|
505
|
-
- spec/integration/send_file_spec.rb
|
506
|
-
- spec/integration/sessions_spec.rb
|
507
|
-
- spec/integration/static_middleware_spec.rb
|
508
|
-
- spec/integration/streaming_spec.rb
|
509
|
-
- spec/integration/unsafe_send_file_spec.rb
|
385
|
+
- spec/integration/action/cookies_spec.rb
|
386
|
+
- spec/integration/action/csrf_protection_spec.rb
|
387
|
+
- spec/integration/action/routes_spec.rb
|
388
|
+
- spec/integration/action/sessions_spec.rb
|
389
|
+
- spec/integration/action/slice_configuration_spec.rb
|
390
|
+
- spec/integration/action/view_integration_spec.rb
|
391
|
+
- spec/integration/action/view_rendering/automatic_rendering_spec.rb
|
392
|
+
- spec/integration/action/view_rendering/paired_view_inference_spec.rb
|
393
|
+
- spec/integration/action/view_rendering_spec.rb
|
394
|
+
- spec/integration/code_loading/loading_from_app_spec.rb
|
395
|
+
- spec/integration/code_loading/loading_from_lib_spec.rb
|
396
|
+
- spec/integration/code_loading/loading_from_slice_spec.rb
|
397
|
+
- spec/integration/container/application_routes_helper_spec.rb
|
398
|
+
- spec/integration/container/auto_injection_spec.rb
|
399
|
+
- spec/integration/container/auto_registration_spec.rb
|
400
|
+
- spec/integration/container/autoloader_spec.rb
|
401
|
+
- spec/integration/container/imports_spec.rb
|
402
|
+
- spec/integration/container/prepare_container_spec.rb
|
403
|
+
- spec/integration/container/shutdown_spec.rb
|
404
|
+
- spec/integration/container/standard_bootable_components_spec.rb
|
405
|
+
- spec/integration/dotenv_loading_spec.rb
|
406
|
+
- spec/integration/rack_app/body_parser_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/settings/access_in_slice_class_body_spec.rb
|
411
|
+
- spec/integration/settings/access_to_constants_spec.rb
|
412
|
+
- spec/integration/settings/loading_from_env_spec.rb
|
413
|
+
- spec/integration/settings/settings_component_loading_spec.rb
|
414
|
+
- spec/integration/settings/slice_registration_spec.rb
|
415
|
+
- spec/integration/settings/using_types_spec.rb
|
416
|
+
- spec/integration/setup_spec.rb
|
417
|
+
- spec/integration/slices/external_slice_spec.rb
|
418
|
+
- spec/integration/slices/slice_configuration_spec.rb
|
419
|
+
- spec/integration/slices/slice_loading_spec.rb
|
420
|
+
- spec/integration/slices/slice_routing_spec.rb
|
421
|
+
- spec/integration/slices_spec.rb
|
422
|
+
- spec/integration/view/context/assets_spec.rb
|
423
|
+
- spec/integration/view/context/inflector_spec.rb
|
424
|
+
- spec/integration/view/context/request_spec.rb
|
425
|
+
- spec/integration/view/context/routes_spec.rb
|
426
|
+
- spec/integration/view/context/settings_spec.rb
|
427
|
+
- spec/integration/view/inflector_spec.rb
|
428
|
+
- spec/integration/view/part_namespace_spec.rb
|
429
|
+
- spec/integration/view/path_spec.rb
|
430
|
+
- spec/integration/view/slice_configuration_spec.rb
|
431
|
+
- spec/integration/view/template_spec.rb
|
432
|
+
- spec/integration/view/views_spec.rb
|
510
433
|
- spec/isolation/hanami/application/already_configured_spec.rb
|
511
434
|
- spec/isolation/hanami/application/inherit_anonymous_class_spec.rb
|
512
435
|
- spec/isolation/hanami/application/inherit_concrete_class_spec.rb
|
@@ -514,83 +437,28 @@ test_files:
|
|
514
437
|
- spec/isolation/hanami/application/routes/configured_spec.rb
|
515
438
|
- spec/isolation/hanami/application/routes/not_configured_spec.rb
|
516
439
|
- spec/isolation/hanami/boot/success_spec.rb
|
517
|
-
- spec/new_integration/action/cookies_spec.rb
|
518
|
-
- spec/new_integration/action/csrf_protection_spec.rb
|
519
|
-
- spec/new_integration/action/routes_spec.rb
|
520
|
-
- spec/new_integration/action/sessions_spec.rb
|
521
|
-
- spec/new_integration/action/slice_configuration_spec.rb
|
522
|
-
- spec/new_integration/action/view_integration_spec.rb
|
523
|
-
- spec/new_integration/action/view_rendering/automatic_rendering_spec.rb
|
524
|
-
- spec/new_integration/action/view_rendering/paired_view_inference_spec.rb
|
525
|
-
- spec/new_integration/action/view_rendering_spec.rb
|
526
|
-
- spec/new_integration/code_loading/loading_from_app_spec.rb
|
527
|
-
- spec/new_integration/code_loading/loading_from_lib_spec.rb
|
528
|
-
- spec/new_integration/code_loading/loading_from_slice_spec.rb
|
529
|
-
- spec/new_integration/container/application_routes_helper_spec.rb
|
530
|
-
- spec/new_integration/container/auto_injection_spec.rb
|
531
|
-
- spec/new_integration/container/auto_registration_spec.rb
|
532
|
-
- spec/new_integration/container/autoloader_spec.rb
|
533
|
-
- spec/new_integration/container/imports_spec.rb
|
534
|
-
- spec/new_integration/container/prepare_container_spec.rb
|
535
|
-
- spec/new_integration/container/shutdown_spec.rb
|
536
|
-
- spec/new_integration/container/standard_bootable_components_spec.rb
|
537
|
-
- spec/new_integration/dotenv_loading_spec.rb
|
538
|
-
- spec/new_integration/rack_app/middleware_spec.rb
|
539
|
-
- spec/new_integration/rack_app/non_booted_rack_app_spec.rb
|
540
|
-
- spec/new_integration/rack_app/rack_app_spec.rb
|
541
|
-
- spec/new_integration/settings/access_to_constants_spec.rb
|
542
|
-
- spec/new_integration/settings/loading_from_env_spec.rb
|
543
|
-
- spec/new_integration/settings/settings_component_loading_spec.rb
|
544
|
-
- spec/new_integration/settings/using_types_spec.rb
|
545
|
-
- spec/new_integration/setup_spec.rb
|
546
|
-
- spec/new_integration/slices/external_slice_spec.rb
|
547
|
-
- spec/new_integration/slices/slice_configuration_spec.rb
|
548
|
-
- spec/new_integration/slices/slice_loading_spec.rb
|
549
|
-
- spec/new_integration/slices/slice_routing_spec.rb
|
550
|
-
- spec/new_integration/slices/slice_settings_spec.rb
|
551
|
-
- spec/new_integration/slices_spec.rb
|
552
|
-
- spec/new_integration/view/context/assets_spec.rb
|
553
|
-
- spec/new_integration/view/context/inflector_spec.rb
|
554
|
-
- spec/new_integration/view/context/request_spec.rb
|
555
|
-
- spec/new_integration/view/context/routes_spec.rb
|
556
|
-
- spec/new_integration/view/context/settings_spec.rb
|
557
|
-
- spec/new_integration/view/inflector_spec.rb
|
558
|
-
- spec/new_integration/view/part_namespace_spec.rb
|
559
|
-
- spec/new_integration/view/path_spec.rb
|
560
|
-
- spec/new_integration/view/slice_configuration_spec.rb
|
561
|
-
- spec/new_integration/view/template_spec.rb
|
562
|
-
- spec/new_integration/view/views_spec.rb
|
563
440
|
- spec/spec_helper.rb
|
564
441
|
- spec/support/app_integration.rb
|
565
442
|
- spec/support/coverage.rb
|
566
|
-
- spec/support/fixtures/hanami-plugin/Gemfile
|
567
|
-
- spec/support/fixtures/hanami-plugin/README.md
|
568
|
-
- spec/support/fixtures/hanami-plugin/Rakefile
|
569
|
-
- spec/support/fixtures/hanami-plugin/bin/console
|
570
|
-
- spec/support/fixtures/hanami-plugin/bin/setup
|
571
|
-
- spec/support/fixtures/hanami-plugin/hanami-plugin.gemspec
|
572
|
-
- spec/support/fixtures/hanami-plugin/lib/hanami/plugin/cli.rb
|
573
|
-
- spec/support/fixtures/hanami-plugin/lib/hanami/plugin/version.rb
|
574
|
-
- spec/support/fixtures/hanami-plugin/lib/hanami/plugin.rb
|
575
443
|
- spec/support/rspec.rb
|
576
444
|
- spec/support/shared_examples/cli/generate/app.rb
|
577
445
|
- spec/support/shared_examples/cli/generate/migration.rb
|
578
446
|
- spec/support/shared_examples/cli/generate/model.rb
|
579
447
|
- spec/support/shared_examples/cli/new.rb
|
580
|
-
- spec/unit/hanami/
|
581
|
-
- spec/unit/hanami/
|
582
|
-
- spec/unit/hanami/
|
583
|
-
- spec/unit/hanami/
|
584
|
-
- spec/unit/hanami/
|
585
|
-
- spec/unit/hanami/
|
586
|
-
- spec/unit/hanami/
|
587
|
-
- spec/unit/hanami/
|
588
|
-
- spec/unit/hanami/
|
589
|
-
- spec/unit/hanami/
|
590
|
-
- spec/unit/hanami/
|
591
|
-
- spec/unit/hanami/
|
448
|
+
- spec/unit/hanami/config/actions/content_security_policy_spec.rb
|
449
|
+
- spec/unit/hanami/config/actions/cookies_spec.rb
|
450
|
+
- spec/unit/hanami/config/actions/csrf_protection_spec.rb
|
451
|
+
- spec/unit/hanami/config/actions/default_values_spec.rb
|
452
|
+
- spec/unit/hanami/config/actions/sessions_spec.rb
|
453
|
+
- spec/unit/hanami/config/actions_spec.rb
|
454
|
+
- spec/unit/hanami/config/base_url_spec.rb
|
455
|
+
- spec/unit/hanami/config/inflector_spec.rb
|
456
|
+
- spec/unit/hanami/config/logger_spec.rb
|
457
|
+
- spec/unit/hanami/config/router_spec.rb
|
458
|
+
- spec/unit/hanami/config/slices_spec.rb
|
459
|
+
- spec/unit/hanami/config/views_spec.rb
|
460
|
+
- spec/unit/hanami/config_spec.rb
|
592
461
|
- spec/unit/hanami/env_spec.rb
|
593
|
-
- spec/unit/hanami/routes_spec.rb
|
594
462
|
- spec/unit/hanami/settings/env_store_spec.rb
|
595
463
|
- spec/unit/hanami/settings_spec.rb
|
596
464
|
- spec/unit/hanami/slice_configurable_spec.rb
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "dry/configurable"
|
4
|
-
|
5
|
-
module Hanami
|
6
|
-
class Configuration
|
7
|
-
# NullConfiguration can serve as a fallback configuration object when out-of-gem
|
8
|
-
# configuration objects are not available (specifically, when the hanami-controller or
|
9
|
-
# hanami-view gems are not loaded)
|
10
|
-
class NullConfiguration
|
11
|
-
include Dry::Configurable
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|