json_api_errors 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 85d06f167f7623264a1e0da8cf01dccba411f60a
4
- data.tar.gz: 5c00220d6f9251084aef53416805de62f2b0a718
3
+ metadata.gz: 1782de7c251ad96ae4a9e33d764f676f9bc60ba9
4
+ data.tar.gz: f96c6f0fa506d33b02f1a2d9bb46248c5a2fa14a
5
5
  SHA512:
6
- metadata.gz: fbb9c009e3ca161a76249452e1d20994f9b08a22aeef1b414ed5516771d3c12a46775aeab98dfb3143c9fded10a7f72f07ff90bed55d608f8a9a00709d9d22dd
7
- data.tar.gz: a96ac527f00904eb7e8f41554d2b646b0ba683bb78eb539a0f4f08add6ca1d6df3b83d019bccefb0866c39110b03e5e905073fd8b365b63d334d5659a3f59c04
6
+ metadata.gz: 274a91311160001591ca567d52921e14af70f6232879ae3a1ba30e4f075aefed986164b3812d8552d90be5bcd8481cb54ed8c62eadd5efa3b7ff3166d1196830
7
+ data.tar.gz: c32b0fea959b2f31929f7d430c93977dfa4e1a620516f6697954bf1db9110aa111427c8dd680e90636de9731f4e37ab3303f269b463ebe5a330d5c7483b7cdda
Binary file
@@ -32,21 +32,12 @@ module JsonApiErrors
32
32
  @template = template
33
33
  end
34
34
 
35
- def_delegators :template, :id,
36
- :status,
37
- :code,
38
- :links,
39
- :title,
40
- :detail,
41
- :source,
42
- :meta
43
-
44
35
  def call
45
- template.call
36
+ @cached_error ||= template.call
46
37
  end
47
38
 
48
39
  def status_code
49
- status.to_s
40
+ call[:status]
50
41
  end
51
42
  end
52
43
  end
@@ -1,3 +1,3 @@
1
1
  module JsonApiErrors
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_api_errors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - byelipk
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-08-13 00:00:00.000000000 Z
11
+ date: 2015-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -70,7 +70,7 @@ files:
70
70
  - Rakefile
71
71
  - bin/console
72
72
  - bin/setup
73
- - json_api_errors-0.1.4.gem
73
+ - json_api_errors-0.1.5.gem
74
74
  - json_api_errors.gemspec
75
75
  - lib/json_api_errors.rb
76
76
  - lib/json_api_errors/error.rb
Binary file