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 +4 -4
- data/README.md +7 -1
- data/jsonapi_suite.gemspec +1 -1
- data/lib/generators/jsonapi_suite/install_generator.rb +6 -2
- data/lib/jsonapi_suite/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20c30584db58af555eebe8d795d6f2193db7242a
|
4
|
+
data.tar.gz: fddb3f32da3ea124c97997e08e21ce404e63277d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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://
|
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)
|
data/jsonapi_suite.gemspec
CHANGED
@@ -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.
|
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
|
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
|
|
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.
|
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:
|
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.
|
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.
|
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.
|
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
|