jsonapi_compliable 0.10.5 → 0.10.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1579f5bdcf4744c155f8a0802eff802217ffc3d0
|
|
4
|
+
data.tar.gz: 01a4158c657caf8de761bfdc5eaf0c046b2af66b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8f6f4cb39b344a54c85a7eaab74ce3b6b431c3494a5b29741955a790a5ad5d0595078e099f7c5fb2c4096e15d6470690a8cddae9a63262055e01c726504e9b29
|
|
7
|
+
data.tar.gz: e8fab3971524823850fe62654428dabcacd9321878d724aa0c655b1b23b77537fb864a4d69a82ad6c5f6eae2ef95d00e0a1ac1f94073978b887c003a58a122f9
|
|
@@ -90,7 +90,9 @@ module Jsonapi
|
|
|
90
90
|
def generate_strong_resource
|
|
91
91
|
code = " strong_resource :#{file_name} do\n"
|
|
92
92
|
attributes.each do |a|
|
|
93
|
-
|
|
93
|
+
type = a.type
|
|
94
|
+
type = 'string' if type == 'text'
|
|
95
|
+
code << " attribute :#{a.name}, :#{type}\n"
|
|
94
96
|
end
|
|
95
97
|
code << " end\n"
|
|
96
98
|
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
JsonapiSpecHelpers::Payload.register(:<%= file_name %>) do
|
|
33
33
|
<%- attributes.each do |a| -%>
|
|
34
34
|
<%- type = a.type == :boolean ? [TrueClass, FalseClass] : a.type.to_s.classify -%>
|
|
35
|
+
<%- type = String if a.type == :text -%>
|
|
35
36
|
key(:<%= a.name %>, <%= type %>)
|
|
36
37
|
<%- end -%>
|
|
37
38
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jsonapi_compliable
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.10.
|
|
4
|
+
version: 0.10.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lee Richmond
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2017-10-
|
|
12
|
+
date: 2017-10-23 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: jsonapi-serializable
|