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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c3503a4784fff4602afd40a4617ec013c95a69b71308dabd5c2e8daf90901337
4
- data.tar.gz: 271597c911b36d298bc741350abf4ae8c8f78e2c41f6ae2a0bfe467fb2666eba
3
+ metadata.gz: 6e853e8026daabc0a1de0d23f9e5d84382a53a4a9b300d566ef5f9f3ef593d46
4
+ data.tar.gz: 9a9528dcdf6efc93f83ce4edd85a1dbda4af5c13246cec3ac9904a73e7be1ce8
5
5
  SHA512:
6
- metadata.gz: 801d04d9a2d3860c790ff3a5e7f8f0573bb9432c7d26ba62e833915b85f46021930ad08821c04271c51ee2c1cd82a8fe7031fbe27053e15c8df81fe4d84e4232
7
- data.tar.gz: 9bbb63b8b0f50ceef021dd2dbc5a0d65dae979c9f239a39e68215619c85cf18a6445db8f0f618c8c2c7f48b1de2a344a547e763009dc9ebf32e1c3c411c5b904
6
+ metadata.gz: 58cf1ca8752e0ceb85ca84defa3d2b349dee5973c0c07370130998d624a9a3ffc881800a1a41cba1a8ffddc896878f13e87de39e9c6586b8f5648d6201f3b55b
7
+ data.tar.gz: 8161ac7cbd6eb16665373e9496664a13a0efd650793dc948e0b88f39d05a062976bcf3b519212815fc021368d62cfc9afe8ddedf180cdd0f6368274d40bfa1e1
@@ -1,4 +1,18 @@
1
- ## unreleased
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...master](https://github.com/dry-rb/dry-rails/compare/v0.1.0...master)
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
 
@@ -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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Dry
4
4
  module Rails
5
- VERSION = "0.2.0"
5
+ VERSION = "0.2.1"
6
6
  end
7
7
  end
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.0
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-07-21 00:00:00.000000000 Z
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: '0.17'
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: '0.17'
40
+ version: 0.17.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: dry-validation
43
43
  requirement: !ruby/object:Gem::Requirement