request_handler 2.1.1 → 2.2.0

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: f859646a0aa398cdae621ee5fa65dfc141041f2d7459130e43c6dd187f33cd34
4
- data.tar.gz: 58ac3fcdfdace2cef4810ff885cf9f43b98902c37a84aea56489359df14741ed
3
+ metadata.gz: 84a7da676c652eb23c13f36d57e89b8808909c404a6874fb76b2f7c56a72b8f7
4
+ data.tar.gz: 8aeea4b06cfacba6ef4553974c07e705b6482753cd49bb3322d18c1a86faeb1b
5
5
  SHA512:
6
- metadata.gz: 246011e015199ccabf514606819ee30ff53784e658f756fb891c3dba75b8af20a962910c4251401a9b770f194c06a089c15f2f10e1eadd78061128bba8c49872
7
- data.tar.gz: ab07fa30b9095bcc7dbc41cd5fe948e80fa84d55252fb9b02b6a8ea656324f4c597d7e469b6d70b976b66a08f013f66feb71fbe141208deb71bc82a491292502
6
+ metadata.gz: f9ac556ccfe78a670a5733cae9cb1ca2b3030119150feab16b73953336621e25657f6f9598c8e50d93cd9fcae05c633d65a9c96f6002c6fd09d3789706a92b24
7
+ data.tar.gz: f1d9f617c904954c7029d3d065ddeb2ab19f6a232b9f54bc2e03d528f0be02e77edec90971002c003bad1bfbd8fc4f01094c562526c3baa80c7bc54ea8fcb2f0
data/.circleci/config.yml CHANGED
@@ -19,7 +19,6 @@ common_steps: &common_steps
19
19
  - vendor/bundle
20
20
 
21
21
  - run: ruby -v
22
- - run: bundle exec danger
23
22
  - run:
24
23
  name: run tests
25
24
  command: |
@@ -42,24 +41,24 @@ common_steps: &common_steps
42
41
 
43
42
  version: 2
44
43
  jobs:
45
- ruby-2.4:
44
+ ruby-2.6:
46
45
  docker:
47
- - image: circleci/ruby:2.4
46
+ - image: circleci/ruby:2.6
48
47
  steps:
49
48
  *common_steps
50
- ruby-2.5:
49
+ ruby-2.7:
51
50
  docker:
52
- - image: circleci/ruby:2.5
51
+ - image: circleci/ruby:2.7
53
52
  steps:
54
53
  *common_steps
55
- jruby-9.2:
54
+ jruby-9.3:
56
55
  docker:
57
- - image: circleci/jruby:9.2
56
+ - image: circleci/jruby:9.3
58
57
  steps:
59
58
  *common_steps
60
- jruby-9.2-indy:
59
+ jruby-9.3-indy:
61
60
  docker:
62
- - image: circleci/jruby:9.2
61
+ - image: circleci/jruby:9.3
63
62
  environment:
64
63
  JRUBY_OPTS: '-Xcompile.invokedynamic=true'
65
64
  steps:
@@ -69,7 +68,7 @@ workflows:
69
68
  version: 2
70
69
  build:
71
70
  jobs:
72
- - ruby-2.4
73
- - ruby-2.5
74
- - jruby-9.2
75
- - jruby-9.2-indy
71
+ - ruby-2.6
72
+ - ruby-2.7
73
+ - jruby-9.3
74
+ - jruby-9.3-indy
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [2.2.0] - 2022-02-25
10
+ ### Changed
11
+ - The definition engine now makes use of the translated error messages to return more useful messages
12
+
9
13
  ## [2.1.1] - 2021-06-14
10
14
  ### Fixed
11
15
  - Change error object's source attribute from `param` to `parameters` to align with JSONAPI specification
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "request_handler/builder/base"
3
+ require 'request_handler/builder/base'
4
4
 
5
5
  module RequestHandler
6
6
  module Builder
@@ -24,7 +24,7 @@ module RequestHandler
24
24
  end
25
25
 
26
26
  def self.error_message(validation_error)
27
- validation_error.message
27
+ validation_error.translated_error
28
28
  end
29
29
 
30
30
  def self.error_pointer(validation_error)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RequestHandler
4
- VERSION = '2.1.1'.freeze
4
+ VERSION = '2.2.0'.freeze
5
5
  end
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.description = 'shared base for request_handler using dry-* gems'
15
15
  spec.homepage = 'https://github.com/runtastic/request_handler'
16
16
  spec.license = 'MIT'
17
- spec.required_ruby_version = '~> 2.4'
17
+ spec.required_ruby_version = '~> 2.6'
18
18
 
19
19
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
20
20
  f.match(%r{^(test|spec|features)/})
@@ -44,5 +44,5 @@ Gem::Specification.new do |spec|
44
44
 
45
45
  spec.add_development_dependency 'rack'
46
46
 
47
- spec.add_development_dependency 'definition', '~> 0.5'
47
+ spec.add_development_dependency 'definition', '~> 0.7'
48
48
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: request_handler
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Eger
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-06-14 00:00:00.000000000 Z
12
+ date: 2022-03-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: docile
@@ -241,14 +241,14 @@ dependencies:
241
241
  requirements:
242
242
  - - "~>"
243
243
  - !ruby/object:Gem::Version
244
- version: '0.5'
244
+ version: '0.7'
245
245
  type: :development
246
246
  prerelease: false
247
247
  version_requirements: !ruby/object:Gem::Requirement
248
248
  requirements:
249
249
  - - "~>"
250
250
  - !ruby/object:Gem::Version
251
- version: '0.5'
251
+ version: '0.7'
252
252
  description: shared base for request_handler using dry-* gems
253
253
  email:
254
254
  - andreas.eger@runtastic.com
@@ -327,7 +327,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
327
327
  requirements:
328
328
  - - "~>"
329
329
  - !ruby/object:Gem::Version
330
- version: '2.4'
330
+ version: '2.6'
331
331
  required_rubygems_version: !ruby/object:Gem::Requirement
332
332
  requirements:
333
333
  - - ">="