dry-rails 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -2
- data/dry-rails.gemspec +1 -1
- data/lib/dry/rails/boot/controller_helpers.rb +4 -0
- data/lib/dry/rails/boot/safe_params.rb +4 -0
- data/lib/dry/rails/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e853e8026daabc0a1de0d23f9e5d84382a53a4a9b300d566ef5f9f3ef593d46
|
4
|
+
data.tar.gz: 9a9528dcdf6efc93f83ce4edd85a1dbda4af5c13246cec3ac9904a73e7be1ce8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58cf1ca8752e0ceb85ca84defa3d2b349dee5973c0c07370130998d624a9a3ffc881800a1a41cba1a8ffddc896878f13e87de39e9c6586b8f5648d6201f3b55b
|
7
|
+
data.tar.gz: 8161ac7cbd6eb16665373e9496664a13a0efd650793dc948e0b88f39d05a062976bcf3b519212815fc021368d62cfc9afe8ddedf180cdd0f6368274d40bfa1e1
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,18 @@
|
|
1
|
-
##
|
1
|
+
## 0.2.1 2020-08-26
|
2
|
+
|
3
|
+
|
4
|
+
### Added
|
5
|
+
|
6
|
+
- Controller features now support `ActionControll::API` too (issue #35 closed via #36) (@rinaldifonseca)
|
7
|
+
|
8
|
+
### Fixed
|
9
|
+
|
10
|
+
- Fix dry-system dependency to 0.17.0, to avoid incompatibilities with 0.18.0 (@timriley)
|
11
|
+
|
12
|
+
|
13
|
+
[Compare v0.2.0...v0.2.1](https://github.com/dry-rb/dry-rails/compare/v0.2.0...v0.2.1)
|
14
|
+
|
15
|
+
## 0.2.0 2020-07-21
|
2
16
|
|
3
17
|
|
4
18
|
### Added
|
@@ -14,7 +28,7 @@
|
|
14
28
|
|
15
29
|
- The `:env` dry-system plugin is now enabled by default (fixes #28 via #30) (@solnic)
|
16
30
|
|
17
|
-
[Compare v0.1.0...
|
31
|
+
[Compare v0.1.0...v0.2.0](https://github.com/dry-rb/dry-rails/compare/v0.1.0...v0.2.0)
|
18
32
|
|
19
33
|
## 0.1.0 2020-03-30
|
20
34
|
|
data/dry-rails.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
|
30
30
|
# to update dependencies edit project.yml
|
31
31
|
spec.add_runtime_dependency "dry-schema", "~> 1.5"
|
32
|
-
spec.add_runtime_dependency "dry-system", "~> 0.17"
|
32
|
+
spec.add_runtime_dependency "dry-system", "~> 0.17.0"
|
33
33
|
spec.add_runtime_dependency "dry-validation", "~> 1.5"
|
34
34
|
|
35
35
|
spec.add_development_dependency "bundler"
|
@@ -7,5 +7,9 @@ Dry::System.register_component(:controller_helpers, provider: :rails) do
|
|
7
7
|
|
8
8
|
start do
|
9
9
|
ApplicationController.include(Dry::Rails::Features::ControllerHelpers)
|
10
|
+
|
11
|
+
if defined?(ActionController::API)
|
12
|
+
ActionController::API.include(Dry::Rails::Features::ControllerHelpers)
|
13
|
+
end
|
10
14
|
end
|
11
15
|
end
|
@@ -7,5 +7,9 @@ Dry::System.register_component(:safe_params, provider: :rails) do
|
|
7
7
|
|
8
8
|
start do
|
9
9
|
ApplicationController.include(Dry::Rails::Features::SafeParams)
|
10
|
+
|
11
|
+
if defined?(ActionController::API)
|
12
|
+
ActionController::API.include(Dry::Rails::Features::SafeParams)
|
13
|
+
end
|
10
14
|
end
|
11
15
|
end
|
data/lib/dry/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Solnica
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-schema
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.17.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 0.17.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: dry-validation
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|