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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88184236f0e40ba9f21bdc404648406f3416afb7
|
4
|
+
data.tar.gz: dded2ceaa2a04481cb8e4c9fbcb9f680acad43eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 731ae04fba9534bccb0cbc3f0a3a21fb0634734b629fce7e5cc709cefec39fd61616ca21e24ab5b1d85593f8fec493138ab106a3ec6f8b3a396362b6bc57450e
|
7
|
+
data.tar.gz: 8d9a954d15fc22891616b0d1c8b9d2a3a11ba32d5d3b9fc45fe1f590ab8da0dc60ff7d224fb355b0301ee08591e04e80e9767a668082ce251e3d5cf09e91d6ee
|
data/lib/apiotics/version.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2018-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|