json_api_errors 0.1.6 → 0.1.7

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: 1782de7c251ad96ae4a9e33d764f676f9bc60ba9
4
- data.tar.gz: f96c6f0fa506d33b02f1a2d9bb46248c5a2fa14a
3
+ metadata.gz: 19e2c8914b72421b17cae2329f7f29675a2eec4b
4
+ data.tar.gz: 56b30b175525d9bdc88b69f1904176c9399d52f2
5
5
  SHA512:
6
- metadata.gz: 274a91311160001591ca567d52921e14af70f6232879ae3a1ba30e4f075aefed986164b3812d8552d90be5bcd8481cb54ed8c62eadd5efa3b7ff3166d1196830
7
- data.tar.gz: c32b0fea959b2f31929f7d430c93977dfa4e1a620516f6697954bf1db9110aa111427c8dd680e90636de9731f4e37ab3303f269b463ebe5a330d5c7483b7cdda
6
+ metadata.gz: ec6569ad2b5d361f0da3b07b9f88596cdfbb5b4ea6d63c4c992a6a1f0875ae5333bc1562c00d026fc353591a28c2385a381431844e2e4a0f1e43f8b6e4ee1ecb
7
+ data.tar.gz: ffee7e8183d602d097b3bd9b1d3e91c9d801804c728cf828fcaea26d12ee860e388174a965bad56da42d078947325e06fe5a7233379e342b00d31a07cd58b3c8
Binary file
@@ -33,11 +33,11 @@ module JsonApiErrors
33
33
  end
34
34
 
35
35
  def call
36
- @cached_error ||= template.call
36
+ template.render
37
37
  end
38
38
 
39
39
  def status_code
40
- call[:status]
40
+ template.status
41
41
  end
42
42
  end
43
43
  end
@@ -1,7 +1,7 @@
1
1
  module JsonApiErrors
2
2
  module Templates
3
3
  class Default
4
- def call
4
+ def render
5
5
  {
6
6
  id: id,
7
7
  status: status,
@@ -49,7 +49,7 @@ module JsonApiErrors
49
49
 
50
50
  def meta
51
51
  {
52
- meta: "default-meta"
52
+ about: "default-meta"
53
53
  }
54
54
  end
55
55
  end
@@ -1,3 +1,3 @@
1
1
  module JsonApiErrors
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
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.6
4
+ version: 0.1.7
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-14 00:00:00.000000000 Z
11
+ date: 2015-08-16 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.5.gem
73
+ - json_api_errors-0.1.6.gem
74
74
  - json_api_errors.gemspec
75
75
  - lib/json_api_errors.rb
76
76
  - lib/json_api_errors/error.rb
@@ -104,4 +104,3 @@ signing_key:
104
104
  specification_version: 4
105
105
  summary: A simple wrapper around the JsonAPI Error spec.
106
106
  test_files: []
107
- has_rdoc:
Binary file