apiotics 0.1.137 → 0.1.138

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: 492edaf4f10ea5c9dcb04eb1ca3db509d1de0c70
4
- data.tar.gz: 4527a559cb22d08774661570f08216273088c09e
3
+ metadata.gz: 926cd922c98a9768fa045d4ddc33872171581786
4
+ data.tar.gz: 3637e7d3c43c0df5fa4c2507f838639215f0e66b
5
5
  SHA512:
6
- metadata.gz: 4668e46e6f0e3932bd4d551c511538d76d8fc3f8861cd7ca0cd883014d1b91580efb79b258ba5362ba6717e1444de064ecfbb53aab1bac61e3209ba21accfaa7
7
- data.tar.gz: 4bb36491213379f7235249be4dacbff6d719be0f68a85c746f4d58e2da02ae8f0b2d66d8b44894850135b07991d73288f232033a20ef7a3383b8a8c205a9e044
6
+ metadata.gz: 48aad72c6a815f6d3c9104e609be79c15304e21305311a28c4a127dc657cb068be92a57a43e8b599e6a4b6722871cc1092410763b161f193b849c1b7719eab44
7
+ data.tar.gz: 0c6f3cf89156258a04bf30add4a5eea2490fbc5f64d878bc0b1aa348caf8297f10fea76659fdf488eb986adc6e8094c4e22d4548bc96e5533eae883e4ddc2ff3
@@ -1,3 +1,3 @@
1
1
  module Apiotics
2
- VERSION = '0.1.137'
2
+ VERSION = '0.1.138'
3
3
  end
@@ -8,10 +8,13 @@ module <%= module_name %>
8
8
  attr_accessor :skip_extract
9
9
  after_commit :extract, unless: :skip_extract
10
10
  after_commit :channel_push
11
- <% unless @c == nil %><% @c[:attributes].each do |k,v| %><% unless v[:values] == "" || v[:values] == nil %>validates :<%= k.downcase.gsub(" ", "_").underscore %>, inclusion: { in: %w(<%= v[:values].join(" ") %>),
12
- message: "%{value} is not a valid <%= k %>" }<% end %><% unless v[:range] == "" || v[:range] == nil %>
13
- validates :<%= k.gsub(" ", "_").underscore %>, inclusion: { in: <%= v[:range] %>,
14
- message: "%{value} is not within the range <%= v[:range] %>" }<% end %><% end %><% end %>
11
+ <% unless @c == nil %><% @c[:attributes].each do |k,v| %><% unless v[:values] == "" || v[:values] == nil %>
12
+ validates :<%= k.downcase.gsub(" ", "_").underscore %>, inclusion: { in: %w(<%= v[:values].join(" ") %>),
13
+ message: "%{value} is not a valid <%= k %>" }
14
+ <% end %><% unless v[:range] == "" || v[:range] == nil %>
15
+ validates :<%= k.gsub(" ", "_").underscore %>, inclusion: { in: <%= v[:range] %>,
16
+ message: "%{value} is not within the range <%= v[:range] %>" }
17
+ <% end %><% end %><% end %>
15
18
 
16
19
  def sync
17
20
  Apiotics.sync(self)
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.1.137
4
+ version: 0.1.138
5
5
  platform: ruby
6
6
  authors:
7
7
  - MicroArx Corporation