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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c66e6a63d728045df96c11971c2eccdc75c158c473818f1c1839f4b82f6035a8
4
- data.tar.gz: 17de8a2a71b685d11fea6d12835f6f01bfb0942061b82251f4856640f520bc35
3
+ metadata.gz: e8a595fb74c8b504f04681e45d01f90b12dbc9228e7d49cae283a76bfb70b114
4
+ data.tar.gz: 1fa21d7b1cbd2edcf1b64692370125cbc3a293a12857d2fb6200eeae3e7acb8f
5
5
  SHA512:
6
- metadata.gz: 64ae66479cab35115409b2133719e7e6f2d561553a2e4e2a231399f45d10cf41c7536a3f9ac814771cd0301ca647331e2c0981b98c8292e7a7c9e7c1252cdab0
7
- data.tar.gz: 981240ebf2929bd24c494d348e4df2aef805cfab73bc59a0ae65dfa2667b0851f4c5d7dd0cd6ff886e51b42d97d985616e00ff24f9ff4ecc3328e9085a11c8e6
6
+ metadata.gz: 972bcc11b85efbbd4dbdf615343aab42fba3908d1bd3357b379928b98db1a95715513b0ed9c167834102705f3027a216c95a8d641f80e55cf4d399dd55d6e812
7
+ data.tar.gz: 8ad830e6e6722637342d54232eadb69eaec8ebbfa919ae89cc971d155b0eca68aacbfb285339dc21f8cb01870eed0270d60dbe357b05d55e2761f4cbc5822ca1
data/CHANGELOG.md CHANGED
@@ -1,101 +1,125 @@
1
- <!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
1
+ # Changelog
2
2
 
3
- ## 0.7.0 2022-12-23
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
- - Bump dry-schema to `>= 0.13` (@solnic)
9
- - Bump dry-validation to `>= 0.10` (@solnic)
10
- - Bump dry-system to `~> 1.0` (@solnic)
20
+ - Set minimum Ruby version to 3.3. (@alassek)
21
+
22
+ ### Deprecated
23
+
24
+ ### Removed
11
25
 
12
- [Compare v0.6.0...v0.7.0](https://github.com/dry-rb/dry-rails/compare/v0.6.0...v0.7.0)
26
+ - Test dummy apps for Rails 5 and 6. (@citizen428 in #67)
27
+
28
+ ### Fixed
13
29
 
14
- ## 0.6.0 2022-10-20
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
- - Upgrade to zeitwerkified dry-rb deps (issue #55 fixed via #56) (@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)
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
- [Compare v0.5.0...v0.6.0](https://github.com/dry-rb/dry-rails/compare/v0.5.0...v0.6.0)
48
+ - Upgrade to zeitwerkified dry-rb deps. (issue #55 fixed via #56) (@solnic)
22
49
 
23
- ## 0.5.0 2022-02-11
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
- [Compare v0.4.0...v0.5.0](https://github.com/dry-rb/dry-rails/compare/v0.4.0...v0.5.0)
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` (issue #21 closed via #41) (@diegotoral)
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
- [Compare v0.3.0...v0.4.0](https://github.com/dry-rb/dry-rails/compare/v0.3.0...v0.4.0)
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
- ## 0.2.1 2020-08-26
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
- ## 0.2.0 2020-07-21
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
- [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
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` (@solnic)
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
@@ -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,22 +1,22 @@
1
- <!--- this file is synced from dry-rb/template-gem project -->
2
- [gem]: https://rubygems.org/gems/dry-rails
3
- [actions]: https://github.com/dry-rb/dry-rails/actions
4
-
5
- # dry-rails [![Gem Version](https://badge.fury.io/rb/dry-rails.svg)][gem] [![CI Status](https://github.com/dry-rb/dry-rails/workflows/ci/badge.svg)][actions]
1
+ <!--- This file is synced from hanakai-rb/repo-sync -->
6
2
 
7
- ## Links
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
- * [User documentation](https://dry-rb.org/gems/dry-rails)
10
- * [API documentation](http://rubydoc.info/gems/dry-rails)
11
- * [Forum](https://discourse.dry-rb.org)
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]
12
9
 
13
- ## Supported Ruby versions
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]
14
12
 
15
- This library officially supports the following Ruby versions:
13
+ ## Links
16
14
 
17
- * MRI `>= 2.7.0`
18
- * 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)
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
- # 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"
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"
@@ -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.7.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.7.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-12-24 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
@@ -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
- - piotr.solnica@gmail.com
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
- post_install_message:
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: 2.7.0
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.3.26
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: []