jsonapi_suite 0.6.7 → 0.7.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
  SHA1:
3
- metadata.gz: 958dcb4d91277ed10aad02acf0f21f4d0ab0789f
4
- data.tar.gz: 29c1196b1f6211ec627ddfb88147c2d3ffb5450c
3
+ metadata.gz: 20c30584db58af555eebe8d795d6f2193db7242a
4
+ data.tar.gz: fddb3f32da3ea124c97997e08e21ce404e63277d
5
5
  SHA512:
6
- metadata.gz: 5a53116286cc3d7f4d32aaa19915a184d8608d4ac2dc06ded62147d7bde0654aef8cf0dff763fa7a2b96f4d6b02216d96b0f215c585d6e66f7b7c0813ce25da8
7
- data.tar.gz: a80a9a55314cad23ed685da79c6bea4320c7b5b5b82351c8e459d94a0f819fbe83de6dbca962af4a63265fbd8d8caad04f6b4d49acc4fd7dba94ad64e82e22bb
6
+ metadata.gz: 4436e2b3f93992f3c7e3323724335c7f0ea29f35f0115aaec3c9e7662d4c7340fc6e3f5857c82d899342e0b2a07d43304bf27f63a0e925fa82c50bc341abc403
7
+ data.tar.gz: b26fde744e318d8375185e5c864bb40ec837c152bc3150c647984d80dff88cb957efe6c54d11d6b56f59bfeab991c7669514d8ad1660145b28e78ca1e146680c
data/README.md CHANGED
@@ -10,6 +10,12 @@ Easily build jsonapi.org-compatible APIs in Rails.
10
10
 
11
11
  [View YARD documentation](https://jsonapi-suite.github.io/jsonapi_compliable)
12
12
 
13
- https://jsonapi-suite.slack.com (ask richmolj@gmail.com for invite)
13
+ [Join the Slack Channel](https://join.slack.com/t/jsonapi-suite/shared_invite/enQtMjkyMTA3MDgxNTQzLWVkMDM3NTlmNTIwODY2YWFkMGNiNzUzZGMzOTY3YmNmZjBhYzIyZWZlZTk4YmI1YTI0Y2M0OTZmZGYwN2QxZjg)
14
+
15
+ Direct Contact: richmolj@gmail.com
14
16
 
15
17
  Supports Rails >= 4.1
18
+
19
+ ### Upgrading
20
+
21
+ When upgrading the [jsonapi_compliable](https://github.com/jsonapi-suite/jsonapi_compliable) dependency to 0.11.x, please see [this note](https://github.com/jsonapi-suite/jsonapi_compliable/blob/master/README.md#upgrading-to-011x)
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.add_dependency 'actionpack', ['>= 4.1', '< 6']
22
22
  spec.add_dependency 'activesupport', ['>= 4.1', '< 6']
23
23
  spec.add_dependency 'strong_resources', '~> 0.6'
24
- spec.add_dependency 'jsonapi_compliable', '~> 0.6'
24
+ spec.add_dependency 'jsonapi_compliable', '~> 0.11'
25
25
  spec.add_dependency 'jsonapi_errorable', '~> 0.6'
26
26
 
27
27
  spec.add_development_dependency "bundler", "~> 1.12"
@@ -32,14 +32,18 @@ module JsonapiSuite
32
32
  unless omit_comments?
33
33
  str << " # Bootstrap jsonapi_suite with relevant modules\n"
34
34
  end
35
- str << " include JsonapiSuite::ControllerMixin\n\n"
35
+ str << " include JsonapiSuite::ControllerMixin\n"
36
+ str << "\n"
37
+ str << " register_exception JsonapiCompliable::Errors::RecordNotFound,\n"
38
+ str << " status: 404\n"
39
+ str << "\n"
36
40
  unless omit_comments?
37
41
  str << " # Catch all exceptions and render a JSONAPI-compliable error payload\n"
38
42
  str << " # For additional documentation, see https://jsonapi-suite.github.io/jsonapi_errorable\n"
39
43
  end
40
44
  str << " rescue_from Exception do |e|\n"
41
45
  str << " handle_exception(e)\n"
42
- str << " end\n"
46
+ str << " end\n\n"
43
47
  str
44
48
  end
45
49
 
@@ -1,3 +1,3 @@
1
1
  module JsonapiSuite
2
- VERSION = "0.6.7"
2
+ VERSION = "0.7.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonapi_suite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.7
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-05 00:00:00.000000000 Z
11
+ date: 2018-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -70,14 +70,14 @@ dependencies:
70
70
  requirements:
71
71
  - - "~>"
72
72
  - !ruby/object:Gem::Version
73
- version: '0.6'
73
+ version: '0.11'
74
74
  type: :runtime
75
75
  prerelease: false
76
76
  version_requirements: !ruby/object:Gem::Requirement
77
77
  requirements:
78
78
  - - "~>"
79
79
  - !ruby/object:Gem::Version
80
- version: '0.6'
80
+ version: '0.11'
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: jsonapi_errorable
83
83
  requirement: !ruby/object:Gem::Requirement
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  version: '0'
179
179
  requirements: []
180
180
  rubyforge_project:
181
- rubygems_version: 2.6.11
181
+ rubygems_version: 2.5.1
182
182
  signing_key:
183
183
  specification_version: 4
184
184
  summary: Collection of gems for jsonapi.org-compatible APIs