jsonapi_errors_handler 0.1.7 → 0.1.8

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: df8269ff040273b0368d86c043bf1cd50fb29503be3d4b5207ffba0aa89d27b8
4
- data.tar.gz: 7d85f4979969cf3e914145633c11abc0c6d3ff325671bbe788c614ebb5292d59
3
+ metadata.gz: acb7e97c1a569c15c24d4aed0a05c4ef6e899e6f0ed1d58cd6fa8710bfae094f
4
+ data.tar.gz: b199c617b64f14bb4a4bf88524649218258a4d7f5509f86c42a16045083959f1
5
5
  SHA512:
6
- metadata.gz: 0d18a2f65e6a93525ec2c45a04714efd01fc8894a87f4d54ffce2652e73c6320ae5ed5447db4499c085a4e335a9162186c1a757d8a6ef6fb8c96bf0c7e6fc625
7
- data.tar.gz: 2a3491ecaa2b1c1fcffdbc4d6bcaa430fb80c77c6daa9af55121b4d2ff5532b14781fb07c9a174aeec0e17599700fd50f3629988f99501c1ff0d0f23773186dd
6
+ metadata.gz: 6a07647fdb49aff63686c16bb01e1613581dc3442c3e282defedd7712755090981ea628dfc60c8b46eb99287d49dae54989307fde3630107d274da107d71aea5
7
+ data.tar.gz: c2b45e1789b4708dfb22d39a368c0e7a61b5290d1de02fc3c1e5c1c1acba8c90836b3caccc3c9aff65e2e61c13a37f08c4691d95ff1d9043e9c8e422c60e1226
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jsonapi_errors_handler (0.1.6)
4
+ jsonapi_errors_handler (0.1.7)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -25,7 +25,7 @@ module JsonapiErrorsHandler
25
25
  end
26
26
 
27
27
  def handle_unexpected_error(error)
28
- return raise error unless config.handle_unexpected?
28
+ return raise error unless configuration.handle_unexpected?
29
29
  log_error(error) if respond_to?(:log_error)
30
30
  render_error(::JsonapiErrorsHandler::Errors::StandardError.new)
31
31
  end
@@ -35,11 +35,10 @@ module JsonapiErrorsHandler
35
35
  end
36
36
 
37
37
  def self.configure(&block)
38
- config = Configuration.instance
39
- config.configure(&block)
38
+ Configuration.instance.configure(&block)
40
39
  end
41
40
 
42
- def config
41
+ def configuration
43
42
  Configuration.instance
44
43
  end
45
44
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JsonapiErrorsHandler
4
- VERSION = '0.1.7'
4
+ VERSION = '0.1.8'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonapi_errors_handler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Wilgosz