jsonapi_utils 0.1.1 → 0.1.2
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 +4 -4
- data/lib/jsonapi_utils/version.rb +1 -1
- data/lib/jsonapi_utils.rb +2 -2
- metadata +2 -4
- data/.CODE_OF_CONDUCT.md.swp +0 -0
- data/.jsonapi_utils.gemspec.swp +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 960530e5ee89d345ccbe0335ac56e115730dec18
|
|
4
|
+
data.tar.gz: a8e07ef9f5d9f06f758f3e421c6c06dbdefe22be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cc5cea0ae673bd0b1b700214a52eedd5ed0e26e1544fb0755eba53c0d191f623047bdae31a9a92b6a3f6dc7fb86ff9ff4c59674368aae910aa7dfdec57a35b18
|
|
7
|
+
data.tar.gz: 4ec916f7bb433c09d01f366570902dbc41f1122cb4284a1deccdc8773822cc33f3e87c828c448ea0aecedc5a38cb2b0ec1650d7f2baef04d7a78f017e5a0fa78
|
data/lib/jsonapi_utils.rb
CHANGED
|
@@ -8,7 +8,7 @@ module JsonapiUtils
|
|
|
8
8
|
extend ActiveSupport::Concern
|
|
9
9
|
|
|
10
10
|
include do
|
|
11
|
-
helper_method :jsonapi_serialize
|
|
11
|
+
helper_method :jsonapi_serialize
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
def jsonapi_render(options)
|
|
@@ -30,7 +30,7 @@ module JsonapiUtils
|
|
|
30
30
|
@resource = turn_into_resource(records, options)
|
|
31
31
|
results.add_result(JSONAPI::ResourceOperationResult.new(:ok, @resource))
|
|
32
32
|
end
|
|
33
|
-
create_response_document(results
|
|
33
|
+
create_response_document(results).contents
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
def jsonapi_error(exception)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jsonapi_utils
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tiago Guedes
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-09-
|
|
11
|
+
date: 2015-09-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -60,9 +60,7 @@ executables: []
|
|
|
60
60
|
extensions: []
|
|
61
61
|
extra_rdoc_files: []
|
|
62
62
|
files:
|
|
63
|
-
- ".CODE_OF_CONDUCT.md.swp"
|
|
64
63
|
- ".gitignore"
|
|
65
|
-
- ".jsonapi_utils.gemspec.swp"
|
|
66
64
|
- ".rspec"
|
|
67
65
|
- ".travis.yml"
|
|
68
66
|
- CODE_OF_CONDUCT.md
|
data/.CODE_OF_CONDUCT.md.swp
DELETED
|
Binary file
|
data/.jsonapi_utils.gemspec.swp
DELETED
|
Binary file
|