hanami 2.2.0.beta1 → 2.2.0.beta2
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/hanami.gemspec +2 -2
- data/lib/hanami/constants.rb +4 -0
- data/lib/hanami/helpers/form_helper/form_builder.rb +2 -2
- data/lib/hanami/provider/source.rb +16 -0
- data/lib/hanami/provider_registrar.rb +4 -2
- data/lib/hanami/providers/assets.rb +3 -3
- data/lib/hanami/providers/db/adapter.rb +8 -1
- data/lib/hanami/providers/db/adapters.rb +8 -2
- data/lib/hanami/providers/db/config.rb +17 -21
- data/lib/hanami/providers/db/gateway.rb +70 -0
- data/lib/hanami/providers/db/sql_adapter.rb +25 -5
- data/lib/hanami/providers/db.rb +162 -67
- data/lib/hanami/providers/db_logging.rb +3 -3
- data/lib/hanami/providers/inflector.rb +1 -1
- data/lib/hanami/providers/logger.rb +1 -1
- data/lib/hanami/providers/rack.rb +3 -3
- data/lib/hanami/providers/relations.rb +5 -5
- data/lib/hanami/providers/routes.rb +2 -2
- data/lib/hanami/version.rb +1 -1
- data/spec/integration/db/commands_spec.rb +80 -0
- data/spec/integration/db/db_slices_spec.rb +9 -4
- data/spec/integration/db/db_spec.rb +32 -7
- data/spec/integration/db/gateways_spec.rb +320 -0
- data/spec/integration/db/mappers_spec.rb +84 -0
- data/spec/integration/db/relations_spec.rb +60 -0
- data/spec/unit/hanami/helpers/form_helper_spec.rb +4 -4
- data/spec/unit/hanami/providers/db/config/default_config_spec.rb +1 -8
- data/spec/unit/hanami/providers/db/config_spec.rb +1 -51
- data/spec/unit/hanami/version_spec.rb +1 -1
- metadata +17 -7
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.2.0.
|
4
|
+
version: 2.2.0.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -134,14 +134,14 @@ dependencies:
|
|
134
134
|
requirements:
|
135
135
|
- - '='
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version: 1.1.0.
|
137
|
+
version: 1.1.0.beta2
|
138
138
|
type: :runtime
|
139
139
|
prerelease: false
|
140
140
|
version_requirements: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
142
|
- - '='
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: 1.1.0.
|
144
|
+
version: 1.1.0.beta2
|
145
145
|
- !ruby/object:Gem::Dependency
|
146
146
|
name: dry-logger
|
147
147
|
requirement: !ruby/object:Gem::Requirement
|
@@ -168,14 +168,14 @@ dependencies:
|
|
168
168
|
requirements:
|
169
169
|
- - '='
|
170
170
|
- !ruby/object:Gem::Version
|
171
|
-
version: 2.2.0.
|
171
|
+
version: 2.2.0.beta2
|
172
172
|
type: :runtime
|
173
173
|
prerelease: false
|
174
174
|
version_requirements: !ruby/object:Gem::Requirement
|
175
175
|
requirements:
|
176
176
|
- - '='
|
177
177
|
- !ruby/object:Gem::Version
|
178
|
-
version: 2.2.0.
|
178
|
+
version: 2.2.0.beta2
|
179
179
|
- !ruby/object:Gem::Dependency
|
180
180
|
name: hanami-utils
|
181
181
|
requirement: !ruby/object:Gem::Requirement
|
@@ -299,12 +299,14 @@ files:
|
|
299
299
|
- lib/hanami/middleware/render_errors.rb
|
300
300
|
- lib/hanami/port.rb
|
301
301
|
- lib/hanami/prepare.rb
|
302
|
+
- lib/hanami/provider/source.rb
|
302
303
|
- lib/hanami/provider_registrar.rb
|
303
304
|
- lib/hanami/providers/assets.rb
|
304
305
|
- lib/hanami/providers/db.rb
|
305
306
|
- lib/hanami/providers/db/adapter.rb
|
306
307
|
- lib/hanami/providers/db/adapters.rb
|
307
308
|
- lib/hanami/providers/db/config.rb
|
309
|
+
- lib/hanami/providers/db/gateway.rb
|
308
310
|
- lib/hanami/providers/db/sql_adapter.rb
|
309
311
|
- lib/hanami/providers/db_logging.rb
|
310
312
|
- lib/hanami/providers/inflector.rb
|
@@ -358,12 +360,16 @@ files:
|
|
358
360
|
- spec/integration/container/standard_providers/rack_provider_spec.rb
|
359
361
|
- spec/integration/container/standard_providers_spec.rb
|
360
362
|
- spec/integration/db/auto_registration_spec.rb
|
363
|
+
- spec/integration/db/commands_spec.rb
|
361
364
|
- spec/integration/db/db_inflector_spec.rb
|
362
365
|
- spec/integration/db/db_slices_spec.rb
|
363
366
|
- spec/integration/db/db_spec.rb
|
367
|
+
- spec/integration/db/gateways_spec.rb
|
364
368
|
- spec/integration/db/logging_spec.rb
|
369
|
+
- spec/integration/db/mappers_spec.rb
|
365
370
|
- spec/integration/db/provider_config_spec.rb
|
366
371
|
- spec/integration/db/provider_spec.rb
|
372
|
+
- spec/integration/db/relations_spec.rb
|
367
373
|
- spec/integration/db/repo_spec.rb
|
368
374
|
- spec/integration/db/slices_importing_from_parent.rb
|
369
375
|
- spec/integration/dotenv_loading_spec.rb
|
@@ -480,7 +486,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
480
486
|
- !ruby/object:Gem::Version
|
481
487
|
version: '0'
|
482
488
|
requirements: []
|
483
|
-
rubygems_version: 3.5.
|
489
|
+
rubygems_version: 3.5.16
|
484
490
|
signing_key:
|
485
491
|
specification_version: 4
|
486
492
|
summary: The web, with simplicity
|
@@ -513,12 +519,16 @@ test_files:
|
|
513
519
|
- spec/integration/container/standard_providers/rack_provider_spec.rb
|
514
520
|
- spec/integration/container/standard_providers_spec.rb
|
515
521
|
- spec/integration/db/auto_registration_spec.rb
|
522
|
+
- spec/integration/db/commands_spec.rb
|
516
523
|
- spec/integration/db/db_inflector_spec.rb
|
517
524
|
- spec/integration/db/db_slices_spec.rb
|
518
525
|
- spec/integration/db/db_spec.rb
|
526
|
+
- spec/integration/db/gateways_spec.rb
|
519
527
|
- spec/integration/db/logging_spec.rb
|
528
|
+
- spec/integration/db/mappers_spec.rb
|
520
529
|
- spec/integration/db/provider_config_spec.rb
|
521
530
|
- spec/integration/db/provider_spec.rb
|
531
|
+
- spec/integration/db/relations_spec.rb
|
522
532
|
- spec/integration/db/repo_spec.rb
|
523
533
|
- spec/integration/db/slices_importing_from_parent.rb
|
524
534
|
- spec/integration/dotenv_loading_spec.rb
|