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: 9cb1bfc6c5708240c5117381e7b67d0187984df6
4
- data.tar.gz: 90409ae0cea6bb561eefb3e652703994691fadb9
3
+ metadata.gz: 1579f5bdcf4744c155f8a0802eff802217ffc3d0
4
+ data.tar.gz: 01a4158c657caf8de761bfdc5eaf0c046b2af66b
5
5
  SHA512:
6
- metadata.gz: cdc0ee68b9c6e1310aaaad7cdfb12aec895477f1ff5d6990b42887521652766cbacc9e057a605b5fe8d913cc713e052162b4b1afa476e9f171a7c7f12004465e
7
- data.tar.gz: a58368863fe6abd409d19d32e05243f4375cb5ffaf35e51acb0b9038e05ab9a3c43bc44edab2af33ad4021025c3ba5422177252b96e58821b95953ee38ded256
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
- code << " attribute :#{a.name}, :#{a.type}\n"
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
@@ -1,3 +1,3 @@
1
1
  module JsonapiCompliable
2
- VERSION = "0.10.5"
2
+ VERSION = "0.10.6"
3
3
  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.5
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-18 00:00:00.000000000 Z
12
+ date: 2017-10-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jsonapi-serializable