jsonapi_errors_handler 0.1.2 → 0.1.3

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: 4a2f52ab77c66d7116cda41a5cb4e087a94621967689382b7de9466fa270c0ac
4
- data.tar.gz: 9efb9e2a227bc6efe491573ca8b675cf53c770b8b437ed5e9523dffbc60e9628
3
+ metadata.gz: be0edf1d16a4261957124f01fcca46348e2d06ee0e8209e8d11be95123ba02e4
4
+ data.tar.gz: ac6b06af16682956832c0fc22fc4a507d169f21e5347e671ba554b18292a03d8
5
5
  SHA512:
6
- metadata.gz: 0f0e2fedb96b9cef8d8f606bf3bd76cb0e40909ce6b82d707fa95ad853188cb196e814ad97af089c9f3780831c148edd971da0df3b11f76b26776fc8c7359098
7
- data.tar.gz: 6014da1d66dbb431b944b44f74d249510c7236db2802ee728d21ddb337b259a41d7a96bbcf0a0893e98bf009094ba78c5d1061d8d1485847e74a6d0da2e8c0cb
6
+ metadata.gz: a7de58a83c26c50895fa89f2ec5205986f675e97f198aacd4099cc52c7881428ed8e88af6e5b7d6ca44a15ffcb2dda4b014880c504026f4ac376de27329167dc
7
+ data.tar.gz: 1d085d33cf7c34387d5c0a24cce39b12f4a47f8e134eb91f2d8f7a044451eca1c0f95d318f35934b3fb6a2131600c9f781f68d104cd05766ebc4ae1ed1190cd3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jsonapi_errors_handler (0.1.1)
4
+ jsonapi_errors_handler (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -32,4 +32,4 @@ DEPENDENCIES
32
32
  rspec (~> 3.0)
33
33
 
34
34
  BUNDLED WITH
35
- 1.16.6
35
+ 1.17.3
@@ -13,7 +13,7 @@ module JsonapiErrorsHandler
13
13
  @source = KeysStringifier.call(source)
14
14
  end
15
15
 
16
- def to_h
16
+ def serializable_hash
17
17
  {
18
18
  status: status,
19
19
  title: title,
@@ -22,12 +22,12 @@ module JsonapiErrorsHandler
22
22
  }
23
23
  end
24
24
 
25
- def serializable_hash
26
- to_h
25
+ def to_h
26
+ serializable_hash
27
27
  end
28
28
 
29
29
  def to_s
30
- to_h.to_s
30
+ serializable_hash.to_s
31
31
  end
32
32
 
33
33
  attr_reader :title, :detail, :status, :source
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JsonapiErrorsHandler
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonapi_errors_handler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Wilgosz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-25 00:00:00.000000000 Z
11
+ date: 2019-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -109,8 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  requirements: []
112
- rubyforge_project:
113
- rubygems_version: 2.7.8
112
+ rubygems_version: 3.0.3
114
113
  signing_key:
115
114
  specification_version: 4
116
115
  summary: A JSON API error handler for ruby applications.