apiotics 0.2.16 → 0.2.17

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: 092381bfeaebf9bd8a43329b651239a2cde4c2ae
4
- data.tar.gz: 5594a683c7024deae7155bb4e2d12dff1879a662
3
+ metadata.gz: 9d8cf269fbbddb8a9f9a4dec5d4199087b69f6ca
4
+ data.tar.gz: dc4872dff5821858c6bd7c8384684bd3b838321a
5
5
  SHA512:
6
- metadata.gz: 8fe11b3677cb3cb67d50e0bc87bc9d0a66fc10326cddfd334dca05ea7c2a2b8aea0248657af9fe7b28cc97754b45530606322ed53631aeaedbe7825ba4dfc9f2
7
- data.tar.gz: 3bef3347ee5f5a147e8ae91086b4b821eeb2f973f399550d6b23f5624cff0db1cdb99975c09cbbae1b10c8613a36e0be40ea20ae8fb438328bce04b99cf75902
6
+ metadata.gz: ddfcf1ff47ed6805964e63d02953186208669af7c241f2070af863a5eb2411194c0008e1c83993232f1e6c61f588aeab78b4b169988513d2cfc1883a511443e2
7
+ data.tar.gz: da13b27025962a7ec1d3a1cb45c1e47e5c776f26de00015ee89969ee69b9f9f7cc79458d1fd500a194277d6c7513ba392b3c95a9df63ecba7e7ebb78061ab303
@@ -1,3 +1,3 @@
1
1
  module Apiotics
2
- VERSION = '0.2.16'
2
+ VERSION = '0.2.17'
3
3
  end
@@ -2,7 +2,7 @@ class Create<%= plural_class_name %> < ActiveRecord::Migration[5.1]
2
2
  def change
3
3
  create_table :<%= plural_name %> do |t|
4
4
  <% attributes.each do |k,v| %>
5
- <% if @attribute_map[v] != nil %>t.<%= @attribute_map[v]["kind"] %> :<%= k %>, limit: <%= @attribute_map[v]["limit"] %><% else %>t.<%= v %> :<%= k %><% end %>
5
+ <% if @attribute_map[v] != nil && @attribute_map[v]["limit"] != nil %>t.<%= @attribute_map[v]["kind"] %> :<%= k %>, limit: <%= @attribute_map[v]["limit"] %><% elsif @attribute_map[v] != nil %>t.<%= @attribute_map[v]["kind"] %> :<%= k %><% else %>t.<%= v %> :<%= k %><% end %>
6
6
  t.boolean :<%= k %>_ack
7
7
  t.boolean :<%= k %>_complete
8
8
  <% unless Apiotics.configuration.reduced_metadata == true %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apiotics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.16
4
+ version: 0.2.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - MicroArx Corporation