dry-rails 0.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff456104e9451dc6e15a13351762d90a41a1e295910dadb7cca4fb231fbab7b1
4
- data.tar.gz: 819517fa2d3847bbe70af131583ebf0363117f7c4c86bc6f350c4583442f4184
3
+ metadata.gz: e8a595fb74c8b504f04681e45d01f90b12dbc9228e7d49cae283a76bfb70b114
4
+ data.tar.gz: 1fa21d7b1cbd2edcf1b64692370125cbc3a293a12857d2fb6200eeae3e7acb8f
5
5
  SHA512:
6
- metadata.gz: a9a73cbde77855ff662285c17d9edd57e5a31b1c93ba38fbde092d6b65a883d51badcd18978d8e54e8fd45893c457ecef1fbd31ff1816a3c7e3285b7c6ebc692
7
- data.tar.gz: 2b6eac3c402435b0fa9ed3395b739186b8d57056ac13416864e8ce09594d6220dad66471bac2813d9e6d64eacab96cfa93a2e964bc38bc2252c8b3e549576b18
6
+ metadata.gz: 972bcc11b85efbbd4dbdf615343aab42fba3908d1bd3357b379928b98db1a95715513b0ed9c167834102705f3027a216c95a8d641f80e55cf4d399dd55d6e812
7
+ data.tar.gz: 8ad830e6e6722637342d54232eadb69eaec8ebbfa919ae89cc971d155b0eca68aacbfb285339dc21f8cb01870eed0270d60dbe357b05d55e2761f4cbc5822ca1
data/CHANGELOG.md CHANGED
@@ -1,90 +1,125 @@
1
- <!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
1
+ # Changelog
2
2
 
3
- ## 0.6.0 2022-10-20
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).
5
7
 
6
- ### Changed
8
+ ## [Unreleased]
7
9
 
8
- - Upgrade to zeitwerkified dry-rb deps (issue #55 fixed via #56) (@solnic)
10
+ [Unreleased]: https://github.com/dry-rb/dry-rails/compare/v0.8.0...main
9
11
 
10
- [Compare v0.5.0...v0.6.0](https://github.com/dry-rb/dry-rails/compare/v0.5.0...v0.6.0)
12
+ ## [0.8.0] - 2026-09-15
11
13
 
12
- ## 0.5.0 2022-02-11
14
+ ### Added
13
15
 
16
+ - Test dummy app for Rails 8. (@citizen428 in #67)
14
17
 
15
18
  ### Changed
16
19
 
17
- - dry-system dependency was bumped to >= 0.23 (via #52) (@solnic)
20
+ - Set minimum Ruby version to 3.3. (@alassek)
18
21
 
19
- [Compare v0.4.0...v0.5.0](https://github.com/dry-rb/dry-rails/compare/v0.4.0...v0.5.0)
22
+ ### Deprecated
20
23
 
21
- ## 0.4.0 2021-12-23
24
+ ### Removed
22
25
 
23
- 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.
26
+ - Test dummy apps for Rails 5 and 6. (@citizen428 in #67)
24
27
 
25
- ### Added
28
+ ### Fixed
26
29
 
27
- - It's now possible to configure container constant name via `config.constainer_const_name` (issue #21 closed via #41) (@diegotoral)
30
+ ### Security
28
31
 
29
- ### Fixed
32
+ [0.8.0]: https://github.com/dry-rb/dry-rails/compare/v0.7.0...v0.8.0
30
33
 
31
- - `config.auto_inject_constant` is now cleared during code reloading (see #40 for more info) (@diegotoral)
34
+ ## [0.7.0] - 2022-12-23
32
35
 
33
36
  ### Changed
34
37
 
35
- - Updated to work with dry-system 0.21 (via #48 and #50) (@zlw + @solnic)
36
- - dry-system dependency was bumped to >= 0.23 (via #52) (@solnic)
38
+ - Bump dry-schema to `>= 0.13`. (@solnic)
39
+ - Bump dry-validation to `>= 0.10`. (@solnic)
40
+ - Bump dry-system to `~> 1.0`. (@solnic)
37
41
 
38
- [Compare v0.3.0...v0.4.0](https://github.com/dry-rb/dry-rails/compare/v0.3.0...v0.4.0)
42
+ [0.7.0]: https://github.com/dry-rb/dry-rails/compare/v0.6.0...v0.7.0
39
43
 
40
- ## 0.3.0 2020-08-26
44
+ ## [0.6.0] - 2022-10-20
41
45
 
46
+ ### Changed
47
+
48
+ - Upgrade to zeitwerkified dry-rb deps. (issue #55 fixed via #56) (@solnic)
49
+
50
+ [0.6.0]: https://github.com/dry-rb/dry-rails/compare/v0.5.0...v0.6.0
51
+
52
+ ## [0.5.0] - 2022-02-11
42
53
 
43
54
  ### Changed
44
55
 
45
- - Use dry-system 0.18.0 and configure new `bootable_dirs` setting appropriately (@timriley in #38)
56
+ - dry-system dependency was bumped to >= 0.23. (via #52) (@solnic)
46
57
 
47
- [Compare v0.2.1...v0.3.0](https://github.com/dry-rb/dry-rails/compare/v0.2.1...v0.3.0)
58
+ [0.5.0]: https://github.com/dry-rb/dry-rails/compare/v0.4.0...v0.5.0
48
59
 
49
- ## 0.2.1 2020-08-26
60
+ ## [0.4.0] - 2021-12-23
50
61
 
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.
51
63
 
52
64
  ### Added
53
65
 
54
- - Controller features now support `ActionControll::API` too (issue #35 closed via #36) (@rinaldifonseca)
66
+ - It's now possible to configure container constant name via `config.constainer_const_name`. (issue #21 closed via #41) (@diegotoral)
55
67
 
56
68
  ### Fixed
57
69
 
58
- - Fix dry-system dependency to 0.17.0, to avoid incompatibilities with 0.18.0 (@timriley)
70
+ - `config.auto_inject_constant` is now cleared during code reloading. (see #40 for more info) (@diegotoral)
71
+
72
+ ### Changed
59
73
 
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)
76
+
77
+ [0.4.0]: https://github.com/dry-rb/dry-rails/compare/v0.3.0...v0.4.0
78
+
79
+ ## [0.3.0] - 2020-08-26
80
+
81
+ ### Changed
82
+
83
+ - Use dry-system 0.18.0 and configure new `bootable_dirs` setting appropriately. (@timriley in #38)
84
+
85
+ [0.3.0]: https://github.com/dry-rb/dry-rails/compare/v0.2.1...v0.3.0
86
+
87
+ ## [0.2.1] - 2020-08-26
88
+
89
+ ### Added
90
+
91
+ - Controller features now support `ActionControll::API` too. (issue #35 closed via #36) (@rinaldifonseca)
92
+
93
+ ### Fixed
60
94
 
61
- [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)
62
96
 
63
- ## 0.2.0 2020-07-21
97
+ [0.2.1]: https://github.com/dry-rb/dry-rails/compare/v0.2.0...v0.2.1
64
98
 
99
+ ## [0.2.0] - 2020-07-21
65
100
 
66
101
  ### Added
67
102
 
68
- - 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)
69
104
 
70
105
  ### Fixed
71
106
 
72
- - Resolving `Container` constant looks it up only within the application namespace (see #22 for more information) (@jandudulski)
73
- - [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)
74
109
 
75
110
  ### Changed
76
111
 
77
- - 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)
78
113
 
79
- [Compare v0.1.0...v0.2.0](https://github.com/dry-rb/dry-rails/compare/v0.1.0...v0.2.0)
114
+ [0.2.0]: https://github.com/dry-rb/dry-rails/compare/v0.1.0...v0.2.0
80
115
 
81
- ## 0.1.0 2020-03-30
116
+ ## 0.1.0 - 2020-03-30
82
117
 
83
118
  This is based on dry-system-rails that dry-rails replaces.
84
119
 
85
120
  ### Added
86
121
 
87
- - `config.features` setting which is an array with feature identifiers that you want the railtie to boot (@solnic)
88
- - `:application_contract` feature which defines `ApplicationContract` within the application namespace and configured to work with `I18n` (@solnic)
89
- - `:safe_params` feature which extends `ApplicationController` with `schema` DSL and exposes `safe_params` controller helper (@solnic)
90
- - `: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
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015-2022 dry-rb team
3
+ Copyright (c) 2015-2026 Hanakai team
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
  this software and associated documentation files (the "Software"), to deal in
data/README.md CHANGED
@@ -1,30 +1,22 @@
1
- <!--- this file is synced from dry-rb/template-gem project -->
2
- [gem]: https://rubygems.org/gems/dry-rails
1
+ <!--- This file is synced from hanakai-rb/repo-sync -->
2
+
3
3
  [actions]: https://github.com/dry-rb/dry-rails/actions
4
- [codacy]: https://www.codacy.com/gh/dry-rb/dry-rails
5
- [chat]: https://dry-rb.zulipchat.com
6
- [inchpages]: http://inch-ci.org/github/dry-rb/dry-rails
4
+ [chat]: https://discord.gg/naQApPAsZB
5
+ [forum]: https://discourse.hanamirb.org
6
+ [rubygem]: https://rubygems.org/gems/dry-rails
7
7
 
8
- # dry-rails [![Join the chat at https://dry-rb.zulipchat.com](https://img.shields.io/badge/dry--rb-join%20chat-%23346b7a.svg)][chat]
8
+ # dry-rails [![Gem Version](https://badge.fury.io/rb/dry-rails.svg)][rubygem] [![CI Status](https://github.com/dry-rb/dry-rails/workflows/CI/badge.svg)][actions]
9
9
 
10
- [![Gem Version](https://badge.fury.io/rb/dry-rails.svg)][gem]
11
- [![CI Status](https://github.com/dry-rb/dry-rails/workflows/ci/badge.svg)][actions]
12
- [![Codacy Badge](https://api.codacy.com/project/badge/Grade/d4677ea0c4c2497bb1af1b3ac31552f4)][codacy]
13
- [![Codacy Badge](https://api.codacy.com/project/badge/Coverage/d4677ea0c4c2497bb1af1b3ac31552f4)][codacy]
14
- [![Inline docs](http://inch-ci.org/github/dry-rb/dry-rails.svg?branch=main)][inchpages]
10
+ [![Forum](https://img.shields.io/badge/Forum-dc360f?logo=discourse&logoColor=white)][forum]
11
+ [![Chat](https://img.shields.io/badge/Chat-717cf8?logo=discord&logoColor=white)][chat]
15
12
 
16
13
  ## Links
17
14
 
18
- * [User documentation](https://dry-rb.org/gems/dry-rails)
19
- * [API documentation](http://rubydoc.info/gems/dry-rails)
20
-
21
- ## Supported Ruby versions
22
-
23
- This library officially supports the following Ruby versions:
24
-
25
- * MRI `>= 2.7.0`
26
- * jruby `>= 9.3` (postponed until 2.7 is supported)
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)
27
18
 
28
19
  ## License
29
20
 
30
21
  See `LICENSE` file.
22
+
data/dry-rails.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # this file is synced from dry-rb/template-gem project
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 = ["Piotr Solnica"]
12
- spec.email = ["piotr.solnica@gmail.com"]
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 = "bin"
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.metadata["allowed_push_host"] = "https://rubygems.org"
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 = ">= 2.7.0"
30
-
31
- # to update dependencies edit project.yml
32
- spec.add_runtime_dependency "dry-schema", "~> 1.11", ">= 1.11.2"
33
- spec.add_runtime_dependency "dry-system", "~> 0.27", ">= 0.27.2"
34
- spec.add_runtime_dependency "dry-validation", "~> 1.9", ">= 1.9.0"
31
+ spec.required_ruby_version = ">= 3.3"
35
32
 
33
+ spec.add_runtime_dependency "dry-schema", "~> 1.7"
34
+ spec.add_runtime_dependency "dry-system", "~> 1.0", "< 2"
35
+ spec.add_runtime_dependency "dry-validation", "~> 1.5"
36
36
  spec.add_development_dependency "bundler"
37
37
  spec.add_development_dependency "rake"
38
38
  spec.add_development_dependency "rspec"
@@ -23,7 +23,7 @@ module Dry
23
23
  path = super
24
24
  return path unless dir.start_with?("app")
25
25
 
26
- path.split("/")[1..-1].join("/")
26
+ path.split("/")[1..].join("/")
27
27
  end
28
28
  end
29
29
  end
@@ -26,8 +26,8 @@ module Dry
26
26
  # @api public
27
27
  # @!scope class
28
28
  setting :features,
29
- default: %i[application_contract safe_params controller_helpers],
30
- reader: true
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
- default: "Deps",
41
- reader: true
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
- default: "Container",
52
- reader: true
51
+ default: "Container",
52
+ reader: true
53
53
 
54
54
  # @!endgroup
55
55
 
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "rails"
3
4
  require "rails/railtie"
4
5
 
5
6
  module Dry
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Dry
4
4
  module Rails
5
- VERSION = "0.6.0"
5
+ VERSION = "0.8.0"
6
6
  end
7
7
  end
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.6.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
- - Piotr Solnica
8
- autorequire:
9
- bindir: bin
7
+ - Hanakai team
8
+ bindir: exe
10
9
  cert_chain: []
11
- date: 2022-10-20 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: dry-schema
@@ -16,60 +15,48 @@ dependencies:
16
15
  requirements:
17
16
  - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: '1.11'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 1.11.2
18
+ version: '1.7'
23
19
  type: :runtime
24
20
  prerelease: false
25
21
  version_requirements: !ruby/object:Gem::Requirement
26
22
  requirements:
27
23
  - - "~>"
28
24
  - !ruby/object:Gem::Version
29
- version: '1.11'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 1.11.2
25
+ version: '1.7'
33
26
  - !ruby/object:Gem::Dependency
34
27
  name: dry-system
35
28
  requirement: !ruby/object:Gem::Requirement
36
29
  requirements:
37
30
  - - "~>"
38
31
  - !ruby/object:Gem::Version
39
- version: '0.27'
40
- - - ">="
32
+ version: '1.0'
33
+ - - "<"
41
34
  - !ruby/object:Gem::Version
42
- version: 0.27.2
35
+ version: '2'
43
36
  type: :runtime
44
37
  prerelease: false
45
38
  version_requirements: !ruby/object:Gem::Requirement
46
39
  requirements:
47
40
  - - "~>"
48
41
  - !ruby/object:Gem::Version
49
- version: '0.27'
50
- - - ">="
42
+ version: '1.0'
43
+ - - "<"
51
44
  - !ruby/object:Gem::Version
52
- version: 0.27.2
45
+ version: '2'
53
46
  - !ruby/object:Gem::Dependency
54
47
  name: dry-validation
55
48
  requirement: !ruby/object:Gem::Requirement
56
49
  requirements:
57
50
  - - "~>"
58
51
  - !ruby/object:Gem::Version
59
- version: '1.9'
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: 1.9.0
52
+ version: '1.5'
63
53
  type: :runtime
64
54
  prerelease: false
65
55
  version_requirements: !ruby/object:Gem::Requirement
66
56
  requirements:
67
57
  - - "~>"
68
58
  - !ruby/object:Gem::Version
69
- version: '1.9'
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- version: 1.9.0
59
+ version: '1.5'
73
60
  - !ruby/object:Gem::Dependency
74
61
  name: bundler
75
62
  requirement: !ruby/object:Gem::Requirement
@@ -115,10 +102,13 @@ dependencies:
115
102
  description: dry-rails provides the official integration of dry-rb gems with Ruby
116
103
  on Rails framework.
117
104
  email:
118
- - piotr.solnica@gmail.com
105
+ - info@hanakai.org
119
106
  executables: []
120
107
  extensions: []
121
- extra_rdoc_files: []
108
+ extra_rdoc_files:
109
+ - CHANGELOG.md
110
+ - LICENSE
111
+ - README.md
122
112
  files:
123
113
  - CHANGELOG.md
124
114
  - LICENSE
@@ -140,11 +130,10 @@ homepage: https://dry-rb.org/gems/dry-rails
140
130
  licenses:
141
131
  - MIT
142
132
  metadata:
143
- allowed_push_host: https://rubygems.org
144
133
  changelog_uri: https://github.com/dry-rb/dry-rails/blob/main/CHANGELOG.md
145
134
  source_code_uri: https://github.com/dry-rb/dry-rails
146
135
  bug_tracker_uri: https://github.com/dry-rb/dry-rails/issues
147
- post_install_message:
136
+ funding_uri: https://github.com/sponsors/hanami
148
137
  rdoc_options: []
149
138
  require_paths:
150
139
  - lib
@@ -152,15 +141,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
152
141
  requirements:
153
142
  - - ">="
154
143
  - !ruby/object:Gem::Version
155
- version: 2.7.0
144
+ version: '3.3'
156
145
  required_rubygems_version: !ruby/object:Gem::Requirement
157
146
  requirements:
158
147
  - - ">="
159
148
  - !ruby/object:Gem::Version
160
149
  version: '0'
161
150
  requirements: []
162
- rubygems_version: 3.1.6
163
- signing_key:
151
+ rubygems_version: 3.6.9
164
152
  specification_version: 4
165
153
  summary: The official dry-rb railtie for Ruby on Rails
166
154
  test_files: []