apiotics 0.1.78 → 0.1.79

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: d176b8ba14f02ef01f607bfbeef2e5cef88de73a
4
- data.tar.gz: 194b175bf41939743cd278d016fe36eae1b22a76
3
+ metadata.gz: ab91fb65b20c08c6d16cfbbfee1b117da8bb3c0d
4
+ data.tar.gz: 2aa0134f69855caeea451e294ad3625658d32e23
5
5
  SHA512:
6
- metadata.gz: 883edd28fa04eca0f77f82b41ca3e7fc1b411b61b5e9f548a7558474e771bbf0b2ed72371f5396285549809c1517761c8cbd56b8c7925270bbf976eb9135ee46
7
- data.tar.gz: 16edbe99deca3c03c8a648616613d754c093c3d63d84b338cb3e648a0b74998a0e998f0d90d28a809985b16bd529ebd04e0aba6c36f474b493521fa0cb209c66
6
+ metadata.gz: 38d966844b7170c6d53c2386b3f969741d985e2f9af0ccab2d9f35bcd3340059727dfd0727266c09e579422af89eee0e09f600f13eded4e719d17f771bd7841f
7
+ data.tar.gz: fab7e9320d35f8a58344a591363078c81ef1e686798f539c1bd1c80eeb1c568a3a42313bf6ab181e3509f800dc377bb14878a98c8d52f08c5c09c4826b077bb7
@@ -1,7 +1,7 @@
1
1
  module Apiotics
2
2
  class Configuration
3
3
 
4
- attr_accessor :public_key, :private_key, :local_logging, :targets, :local_port, :server, :server_port, :portal, :push, :tls, :verify_peer, :handshake, :parents, :interface_kinds
4
+ attr_accessor :public_key, :private_key, :local_logging, :targets, :local_port, :server, :server_port, :portal, :push, :tls, :verify_peer, :handshake, :parents, :reduced_metadata, :interface_kinds
5
5
 
6
6
  def initialize
7
7
  @public_key = nil
@@ -17,6 +17,7 @@ module Apiotics
17
17
  @verify_peer = true
18
18
  @handshake = true
19
19
  @parents = {}
20
+ @reduced_metadata = false
20
21
  @interface_kinds = {
21
22
  "string" => "string",
22
23
  "text" => "string",
@@ -18,12 +18,14 @@ module Apiotics
18
18
  begin
19
19
  find_record
20
20
  @methods.each do |k,v|
21
- @record.send(("#{k}_action=").to_sym, @action)
22
21
  @type = @record.class.columns_hash[k].type
23
22
  #change_value
24
23
  @record.send("#{k}=".to_sym, v)
25
- @record.send("#{k}_timestamp=".to_sym, @timestamp)
26
- @record.send("#{k}_status=".to_sym, @status)
24
+ unless Apiotics.configuration.reduced_metadata == true
25
+ @record.send(("#{k}_action=").to_sym, @action)
26
+ @record.send("#{k}_timestamp=".to_sym, @timestamp)
27
+ @record.send("#{k}_status=".to_sym, @status)
28
+ end
27
29
  end
28
30
  if @action == "set-complete"
29
31
  set_complete
@@ -1,3 +1,3 @@
1
1
  module Apiotics
2
- VERSION = '0.1.78'
2
+ VERSION = '0.1.79'
3
3
  end
@@ -5,10 +5,12 @@ class Create<%= plural_class_name %> < ActiveRecord::Migration[5.1]
5
5
  <% if @attribute_map[v] != nil %>t.<%= @attribute_map[v]["kind"] %> :<%= k %>, limit: <%= @attribute_map[v]["limit"] %><% else %>t.<%= v %> :<%= k %><% end %>
6
6
  t.boolean :<%= k %>_ack
7
7
  t.boolean :<%= k %>_complete
8
+ <% unless Apiotics.configuration.reduced_metadata == true %>
8
9
  t.string :<%= k %>_timestamp
9
10
  t.string :<%= k %>_status
10
11
  t.string :<%= k %>_action
11
12
  <% end %>
13
+ <% end %>
12
14
  t.integer :<%= parent.underscore.downcase.gsub(" ", "_") + "_id" %>
13
15
  t.timestamps
14
16
  end
@@ -8,4 +8,5 @@ Apiotics.configure do |config|
8
8
  config.verify_peer = true
9
9
  config.handshake = true
10
10
  config.local_logging = false
11
+ config.reduced_metadata = false
11
12
  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.1.78
4
+ version: 0.1.79
5
5
  platform: ruby
6
6
  authors:
7
7
  - MicroArx Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-01 00:00:00.000000000 Z
11
+ date: 2017-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails