apiotics 0.2.24 → 0.2.25

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: c94ba6721fc9403df4bc78580b918cf15bff2586
4
- data.tar.gz: 408a08f5bf1a7965b190ef7fd42577e9052cc0d4
3
+ metadata.gz: 88184236f0e40ba9f21bdc404648406f3416afb7
4
+ data.tar.gz: dded2ceaa2a04481cb8e4c9fbcb9f680acad43eb
5
5
  SHA512:
6
- metadata.gz: ec7cbcecb49869c844e51941c5f09f4c6aef8865d9872b5fea5d4e3f0d0b94bb1fc0a062f6a3c73bfdf8e65a2408e0db5338333add8b42ef28f7897f7352fce3
7
- data.tar.gz: f1221ea7f7caa3c46a4127cee4c88faddb7b9f6383143014ca4aff0bae08ae4fb6f3004e6d18378c6325e54778decfd8dbbadc2fca8bf5d8777e45eca53b6b96
6
+ metadata.gz: 731ae04fba9534bccb0cbc3f0a3a21fb0634734b629fce7e5cc709cefec39fd61616ca21e24ab5b1d85593f8fec493138ab106a3ec6f8b3a396362b6bc57450e
7
+ data.tar.gz: 8d9a954d15fc22891616b0d1c8b9d2a3a11ba32d5d3b9fc45fe1f590ab8da0dc60ff7d224fb355b0301ee08591e04e80e9767a668082ce251e3d5cf09e91d6ee
@@ -1,3 +1,3 @@
1
1
  module Apiotics
2
- VERSION = '0.2.24'
2
+ VERSION = '0.2.25'
3
3
  end
@@ -14,8 +14,7 @@ module Apiotics
14
14
  "uint32_t" => {"kind" => "integer", "limit" => 8},
15
15
  "int16_t" => {"kind" => "integer", "limit" => 2},
16
16
  "int32_t" => {"kind" => "integer", "limit" => 4},
17
- "int_64t" => {"kind" => "integer", "limit" => 8},
18
- "json" => {"kind" => "text"}
17
+ "int_64t" => {"kind" => "integer", "limit" => 8}
19
18
  }
20
19
  template "create_table.rb.erb", "db/migrate/#{date_string}_create_#{plural_name}.rb"
21
20
  sleep 1
@@ -27,6 +27,12 @@
27
27
  <% a = Apiotics.get_attributes(module_name,key) %>
28
28
  <% if a[:attributes][interface][:type] == "enum" %>
29
29
  <%%= fields.input :<%= interface %>, collection: <%= a[:attributes][interface][:values] %> %>
30
+ <% elsif a[:attributes][interface][:type] == "json" %>
31
+ <%%= fields.simple_fields_for :<%= interface %> do |json_f| %>
32
+ <%%= <%= interface %>.each do |k,v|
33
+ <%%= json_f.input k.to_sym %>
34
+ <%%= end %>
35
+ <% end %>
30
36
  <% else %>
31
37
  <%%= fields.input :<%= interface %> %>
32
38
  <% end %>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apiotics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.24
4
+ version: 0.2.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - MicroArx Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-18 00:00:00.000000000 Z
11
+ date: 2018-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails