dry-rails 0.7.0 → 0.8.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +64 -40
- data/LICENSE +1 -1
- data/README.md +13 -13
- data/dry-rails.gemspec +9 -9
- data/lib/dry/rails/auto_registrars/app.rb +1 -1
- data/lib/dry/rails/container.rb +6 -6
- data/lib/dry/rails/railtie.rb +1 -0
- data/lib/dry/rails/version.rb +1 -1
- metadata +12 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e8a595fb74c8b504f04681e45d01f90b12dbc9228e7d49cae283a76bfb70b114
|
|
4
|
+
data.tar.gz: 1fa21d7b1cbd2edcf1b64692370125cbc3a293a12857d2fb6200eeae3e7acb8f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 972bcc11b85efbbd4dbdf615343aab42fba3908d1bd3357b379928b98db1a95715513b0ed9c167834102705f3027a216c95a8d641f80e55cf4d399dd55d6e812
|
|
7
|
+
data.tar.gz: 8ad830e6e6722637342d54232eadb69eaec8ebbfa919ae89cc971d155b0eca68aacbfb285339dc21f8cb01870eed0270d60dbe357b05d55e2761f4cbc5822ca1
|
data/CHANGELOG.md
CHANGED
|
@@ -1,101 +1,125 @@
|
|
|
1
|
-
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Break Versioning](https://www.taoensso.com/break-versioning).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
[Unreleased]: https://github.com/dry-rb/dry-rails/compare/v0.8.0...main
|
|
11
|
+
|
|
12
|
+
## [0.8.0] - 2026-09-15
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- Test dummy app for Rails 8. (@citizen428 in #67)
|
|
5
17
|
|
|
6
18
|
### Changed
|
|
7
19
|
|
|
8
|
-
-
|
|
9
|
-
|
|
10
|
-
|
|
20
|
+
- Set minimum Ruby version to 3.3. (@alassek)
|
|
21
|
+
|
|
22
|
+
### Deprecated
|
|
23
|
+
|
|
24
|
+
### Removed
|
|
11
25
|
|
|
12
|
-
|
|
26
|
+
- Test dummy apps for Rails 5 and 6. (@citizen428 in #67)
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
13
29
|
|
|
14
|
-
|
|
30
|
+
### Security
|
|
15
31
|
|
|
32
|
+
[0.8.0]: https://github.com/dry-rb/dry-rails/compare/v0.7.0...v0.8.0
|
|
33
|
+
|
|
34
|
+
## [0.7.0] - 2022-12-23
|
|
16
35
|
|
|
17
36
|
### Changed
|
|
18
37
|
|
|
19
|
-
-
|
|
38
|
+
- Bump dry-schema to `>= 0.13`. (@solnic)
|
|
39
|
+
- Bump dry-validation to `>= 0.10`. (@solnic)
|
|
40
|
+
- Bump dry-system to `~> 1.0`. (@solnic)
|
|
41
|
+
|
|
42
|
+
[0.7.0]: https://github.com/dry-rb/dry-rails/compare/v0.6.0...v0.7.0
|
|
43
|
+
|
|
44
|
+
## [0.6.0] - 2022-10-20
|
|
45
|
+
|
|
46
|
+
### Changed
|
|
20
47
|
|
|
21
|
-
|
|
48
|
+
- Upgrade to zeitwerkified dry-rb deps. (issue #55 fixed via #56) (@solnic)
|
|
22
49
|
|
|
23
|
-
|
|
50
|
+
[0.6.0]: https://github.com/dry-rb/dry-rails/compare/v0.5.0...v0.6.0
|
|
24
51
|
|
|
52
|
+
## [0.5.0] - 2022-02-11
|
|
25
53
|
|
|
26
54
|
### Changed
|
|
27
55
|
|
|
28
|
-
- dry-system dependency was bumped to >= 0.23 (via #52) (@solnic)
|
|
56
|
+
- dry-system dependency was bumped to >= 0.23. (via #52) (@solnic)
|
|
29
57
|
|
|
30
|
-
[
|
|
58
|
+
[0.5.0]: https://github.com/dry-rb/dry-rails/compare/v0.4.0...v0.5.0
|
|
31
59
|
|
|
32
|
-
## 0.4.0 2021-12-23
|
|
60
|
+
## [0.4.0] - 2021-12-23
|
|
33
61
|
|
|
34
62
|
This is a big update - please also read dry-system [CHANGELOG](https://github.com/dry-rb/dry-system/blob/master/CHANGELOG.md) versions 0.20 and 0.21.
|
|
35
63
|
|
|
36
64
|
### Added
|
|
37
65
|
|
|
38
|
-
- It's now possible to configure container constant name via `config.constainer_const_name
|
|
66
|
+
- It's now possible to configure container constant name via `config.constainer_const_name`. (issue #21 closed via #41) (@diegotoral)
|
|
39
67
|
|
|
40
68
|
### Fixed
|
|
41
69
|
|
|
42
|
-
- `config.auto_inject_constant` is now cleared during code reloading (see #40 for more info) (@diegotoral)
|
|
70
|
+
- `config.auto_inject_constant` is now cleared during code reloading. (see #40 for more info) (@diegotoral)
|
|
43
71
|
|
|
44
72
|
### Changed
|
|
45
73
|
|
|
46
|
-
- Updated to work with dry-system 0.21 (via #48 and #50) (@zlw + @solnic)
|
|
47
|
-
- dry-system dependency was bumped to >= 0.23 (via #52) (@solnic)
|
|
74
|
+
- Updated to work with dry-system 0.21. (via #48 and #50) (@zlw + @solnic)
|
|
75
|
+
- dry-system dependency was bumped to >= 0.23. (via #52) (@solnic)
|
|
48
76
|
|
|
49
|
-
[
|
|
50
|
-
|
|
51
|
-
## 0.3.0 2020-08-26
|
|
77
|
+
[0.4.0]: https://github.com/dry-rb/dry-rails/compare/v0.3.0...v0.4.0
|
|
52
78
|
|
|
79
|
+
## [0.3.0] - 2020-08-26
|
|
53
80
|
|
|
54
81
|
### Changed
|
|
55
82
|
|
|
56
|
-
- Use dry-system 0.18.0 and configure new `bootable_dirs` setting appropriately (@timriley in #38)
|
|
57
|
-
|
|
58
|
-
[Compare v0.2.1...v0.3.0](https://github.com/dry-rb/dry-rails/compare/v0.2.1...v0.3.0)
|
|
83
|
+
- Use dry-system 0.18.0 and configure new `bootable_dirs` setting appropriately. (@timriley in #38)
|
|
59
84
|
|
|
60
|
-
|
|
85
|
+
[0.3.0]: https://github.com/dry-rb/dry-rails/compare/v0.2.1...v0.3.0
|
|
61
86
|
|
|
87
|
+
## [0.2.1] - 2020-08-26
|
|
62
88
|
|
|
63
89
|
### Added
|
|
64
90
|
|
|
65
|
-
- Controller features now support `ActionControll::API` too (issue #35 closed via #36) (@rinaldifonseca)
|
|
91
|
+
- Controller features now support `ActionControll::API` too. (issue #35 closed via #36) (@rinaldifonseca)
|
|
66
92
|
|
|
67
93
|
### Fixed
|
|
68
94
|
|
|
69
|
-
- Fix dry-system dependency to 0.17.0, to avoid incompatibilities with 0.18.0 (@timriley)
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
[Compare v0.2.0...v0.2.1](https://github.com/dry-rb/dry-rails/compare/v0.2.0...v0.2.1)
|
|
95
|
+
- Fix dry-system dependency to 0.17.0, to avoid incompatibilities with 0.18.0. (@timriley)
|
|
73
96
|
|
|
74
|
-
|
|
97
|
+
[0.2.1]: https://github.com/dry-rb/dry-rails/compare/v0.2.0...v0.2.1
|
|
75
98
|
|
|
99
|
+
## [0.2.0] - 2020-07-21
|
|
76
100
|
|
|
77
101
|
### Added
|
|
78
102
|
|
|
79
|
-
- You can now configure auto_inject constant name via `config.auto_inject_constant` - previously it was hardcoded as `"Import"`, now it's configured as `"Deps"` by default (issue #18 closed via #29) (@diegotoral)
|
|
103
|
+
- You can now configure auto_inject constant name via `config.auto_inject_constant` - previously it was hardcoded as `"Import"`, now it's configured as `"Deps"` by default. (issue #18 closed via #29) (@diegotoral)
|
|
80
104
|
|
|
81
105
|
### Fixed
|
|
82
106
|
|
|
83
|
-
- Resolving `Container` constant looks it up only within the application namespace (see #22 for more information) (@jandudulski)
|
|
84
|
-
- [safe_params] defining multiple schemas works as expected (issue #23 fixed via 24) (@gotar)
|
|
107
|
+
- Resolving `Container` constant looks it up only within the application namespace. (see #22 for more information) (@jandudulski)
|
|
108
|
+
- [safe_params] defining multiple schemas works as expected. (issue #23 fixed via 24) (@gotar)
|
|
85
109
|
|
|
86
110
|
### Changed
|
|
87
111
|
|
|
88
|
-
- The `:env` dry-system plugin is now enabled by default (fixes #28 via #30) (@solnic)
|
|
112
|
+
- The `:env` dry-system plugin is now enabled by default. (fixes #28 via #30) (@solnic)
|
|
89
113
|
|
|
90
|
-
[
|
|
114
|
+
[0.2.0]: https://github.com/dry-rb/dry-rails/compare/v0.1.0...v0.2.0
|
|
91
115
|
|
|
92
|
-
## 0.1.0 2020-03-30
|
|
116
|
+
## 0.1.0 - 2020-03-30
|
|
93
117
|
|
|
94
118
|
This is based on dry-system-rails that dry-rails replaces.
|
|
95
119
|
|
|
96
120
|
### Added
|
|
97
121
|
|
|
98
|
-
- `config.features` setting which is an array with feature identifiers that you want the railtie to boot (@solnic)
|
|
99
|
-
- `:application_contract` feature which defines `ApplicationContract` within the application namespace and configured to work with `I18n
|
|
100
|
-
- `:safe_params` feature which extends `ApplicationController` with `schema` DSL and exposes `safe_params` controller helper (@solnic)
|
|
101
|
-
- `:controller_helpers` feature which adds `ApplicationController#{resolve,container}` shortcuts (@solnic)
|
|
122
|
+
- `config.features` setting which is an array with feature identifiers that you want the railtie to boot. (@solnic)
|
|
123
|
+
- `:application_contract` feature which defines `ApplicationContract` within the application namespace and configured to work with `I18n`. (@solnic)
|
|
124
|
+
- `:safe_params` feature which extends `ApplicationController` with `schema` DSL and exposes `safe_params` controller helper. (@solnic)
|
|
125
|
+
- `:controller_helpers` feature which adds `ApplicationController#{resolve,container}` shortcuts. (@solnic)
|
data/LICENSE
CHANGED
data/README.md
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
<!---
|
|
2
|
-
[gem]: https://rubygems.org/gems/dry-rails
|
|
3
|
-
[actions]: https://github.com/dry-rb/dry-rails/actions
|
|
4
|
-
|
|
5
|
-
# dry-rails [][gem] [][actions]
|
|
1
|
+
<!--- This file is synced from hanakai-rb/repo-sync -->
|
|
6
2
|
|
|
7
|
-
|
|
3
|
+
[actions]: https://github.com/dry-rb/dry-rails/actions
|
|
4
|
+
[chat]: https://discord.gg/naQApPAsZB
|
|
5
|
+
[forum]: https://discourse.hanamirb.org
|
|
6
|
+
[rubygem]: https://rubygems.org/gems/dry-rails
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
* [API documentation](http://rubydoc.info/gems/dry-rails)
|
|
11
|
-
* [Forum](https://discourse.dry-rb.org)
|
|
8
|
+
# dry-rails [][rubygem] [][actions]
|
|
12
9
|
|
|
13
|
-
|
|
10
|
+
[][forum]
|
|
11
|
+
[][chat]
|
|
14
12
|
|
|
15
|
-
|
|
13
|
+
## Links
|
|
16
14
|
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
- [User documentation](https://dry-rb.org/gems/dry-rails)
|
|
16
|
+
- [API documentation](http://rubydoc.info/gems/dry-rails)
|
|
17
|
+
- [Forum](https://discourse.dry-rb.org)
|
|
19
18
|
|
|
20
19
|
## License
|
|
21
20
|
|
|
22
21
|
See `LICENSE` file.
|
|
22
|
+
|
data/dry-rails.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
#
|
|
3
|
+
# This file is synced from hanakai-rb/repo-sync. To update it, edit repo-sync.yml.
|
|
4
4
|
|
|
5
5
|
lib = File.expand_path("lib", __dir__)
|
|
6
6
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
@@ -8,8 +8,8 @@ require "dry/rails/version"
|
|
|
8
8
|
|
|
9
9
|
Gem::Specification.new do |spec|
|
|
10
10
|
spec.name = "dry-rails"
|
|
11
|
-
spec.authors = ["
|
|
12
|
-
spec.email = ["
|
|
11
|
+
spec.authors = ["Hanakai team"]
|
|
12
|
+
spec.email = ["info@hanakai.org"]
|
|
13
13
|
spec.license = "MIT"
|
|
14
14
|
spec.version = Dry::Rails::VERSION.dup
|
|
15
15
|
|
|
@@ -17,22 +17,22 @@ Gem::Specification.new do |spec|
|
|
|
17
17
|
spec.description = "dry-rails provides the official integration of dry-rb gems with Ruby on Rails framework."
|
|
18
18
|
spec.homepage = "https://dry-rb.org/gems/dry-rails"
|
|
19
19
|
spec.files = Dir["CHANGELOG.md", "LICENSE", "README.md", "dry-rails.gemspec", "lib/**/*"]
|
|
20
|
-
spec.bindir = "
|
|
21
|
-
spec.executables = []
|
|
20
|
+
spec.bindir = "exe"
|
|
21
|
+
spec.executables = Dir["exe/*"].map { |f| File.basename(f) }
|
|
22
22
|
spec.require_paths = ["lib"]
|
|
23
23
|
|
|
24
|
-
spec.
|
|
24
|
+
spec.extra_rdoc_files = ["README.md", "CHANGELOG.md", "LICENSE"]
|
|
25
|
+
|
|
25
26
|
spec.metadata["changelog_uri"] = "https://github.com/dry-rb/dry-rails/blob/main/CHANGELOG.md"
|
|
26
27
|
spec.metadata["source_code_uri"] = "https://github.com/dry-rb/dry-rails"
|
|
27
28
|
spec.metadata["bug_tracker_uri"] = "https://github.com/dry-rb/dry-rails/issues"
|
|
29
|
+
spec.metadata["funding_uri"] = "https://github.com/sponsors/hanami"
|
|
28
30
|
|
|
29
|
-
spec.required_ruby_version = ">=
|
|
31
|
+
spec.required_ruby_version = ">= 3.3"
|
|
30
32
|
|
|
31
|
-
# to update dependencies edit project.yml
|
|
32
33
|
spec.add_runtime_dependency "dry-schema", "~> 1.7"
|
|
33
34
|
spec.add_runtime_dependency "dry-system", "~> 1.0", "< 2"
|
|
34
35
|
spec.add_runtime_dependency "dry-validation", "~> 1.5"
|
|
35
|
-
|
|
36
36
|
spec.add_development_dependency "bundler"
|
|
37
37
|
spec.add_development_dependency "rake"
|
|
38
38
|
spec.add_development_dependency "rspec"
|
data/lib/dry/rails/container.rb
CHANGED
|
@@ -26,8 +26,8 @@ module Dry
|
|
|
26
26
|
# @api public
|
|
27
27
|
# @!scope class
|
|
28
28
|
setting :features,
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
default: %i[application_contract safe_params controller_helpers],
|
|
30
|
+
reader: true
|
|
31
31
|
|
|
32
32
|
# @overload config.auto_inject_constant=(auto_inject_constant)
|
|
33
33
|
# Set a custom import constant name
|
|
@@ -37,8 +37,8 @@ module Dry
|
|
|
37
37
|
# @api public
|
|
38
38
|
# @!scope class
|
|
39
39
|
setting :auto_inject_constant,
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
default: "Deps",
|
|
41
|
+
reader: true
|
|
42
42
|
|
|
43
43
|
# @overload config.container_constant=(container_constant)
|
|
44
44
|
# Set a custom container constant
|
|
@@ -48,8 +48,8 @@ module Dry
|
|
|
48
48
|
# @api public
|
|
49
49
|
# @!scope class
|
|
50
50
|
setting :container_constant,
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
default: "Container",
|
|
52
|
+
reader: true
|
|
53
53
|
|
|
54
54
|
# @!endgroup
|
|
55
55
|
|
data/lib/dry/rails/railtie.rb
CHANGED
data/lib/dry/rails/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dry-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
bindir: bin
|
|
7
|
+
- Hanakai team
|
|
8
|
+
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: dry-schema
|
|
@@ -103,10 +102,13 @@ dependencies:
|
|
|
103
102
|
description: dry-rails provides the official integration of dry-rb gems with Ruby
|
|
104
103
|
on Rails framework.
|
|
105
104
|
email:
|
|
106
|
-
-
|
|
105
|
+
- info@hanakai.org
|
|
107
106
|
executables: []
|
|
108
107
|
extensions: []
|
|
109
|
-
extra_rdoc_files:
|
|
108
|
+
extra_rdoc_files:
|
|
109
|
+
- CHANGELOG.md
|
|
110
|
+
- LICENSE
|
|
111
|
+
- README.md
|
|
110
112
|
files:
|
|
111
113
|
- CHANGELOG.md
|
|
112
114
|
- LICENSE
|
|
@@ -128,11 +130,10 @@ homepage: https://dry-rb.org/gems/dry-rails
|
|
|
128
130
|
licenses:
|
|
129
131
|
- MIT
|
|
130
132
|
metadata:
|
|
131
|
-
allowed_push_host: https://rubygems.org
|
|
132
133
|
changelog_uri: https://github.com/dry-rb/dry-rails/blob/main/CHANGELOG.md
|
|
133
134
|
source_code_uri: https://github.com/dry-rb/dry-rails
|
|
134
135
|
bug_tracker_uri: https://github.com/dry-rb/dry-rails/issues
|
|
135
|
-
|
|
136
|
+
funding_uri: https://github.com/sponsors/hanami
|
|
136
137
|
rdoc_options: []
|
|
137
138
|
require_paths:
|
|
138
139
|
- lib
|
|
@@ -140,15 +141,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
140
141
|
requirements:
|
|
141
142
|
- - ">="
|
|
142
143
|
- !ruby/object:Gem::Version
|
|
143
|
-
version:
|
|
144
|
+
version: '3.3'
|
|
144
145
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
146
|
requirements:
|
|
146
147
|
- - ">="
|
|
147
148
|
- !ruby/object:Gem::Version
|
|
148
149
|
version: '0'
|
|
149
150
|
requirements: []
|
|
150
|
-
rubygems_version: 3.
|
|
151
|
-
signing_key:
|
|
151
|
+
rubygems_version: 3.6.9
|
|
152
152
|
specification_version: 4
|
|
153
153
|
summary: The official dry-rb railtie for Ruby on Rails
|
|
154
154
|
test_files: []
|