maestrano-connector-rails 2.0.2.pre.RC4 → 2.0.2.pre.RC5
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: 06e3899a9fba9fa9e03d4e4fbb2255e200624ba4
|
4
|
+
data.tar.gz: 93cfdea7d3fb9035bce137b725d6b94045baa62f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 331992468a267ed7f31ca18f3cf3a5cbed9c8ded70621a180c5cc186c668a4011b9c3029af101312e7719e5964519119074a0a22818d6d087496a5dd413b5935
|
7
|
+
data.tar.gz: 9203094743d8549633008baf884c05ea60b476f1997cca322516c36e418e0536c666674659e5f08e00006e3a2088029da230393f2c9297132b4a0c68dfed191a
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.2.pre.
|
1
|
+
2.0.2.pre.RC5
|
@@ -14,13 +14,14 @@ module Maestrano::Connector::Rails
|
|
14
14
|
def initialize
|
15
15
|
super
|
16
16
|
self.synchronized_entities = {}
|
17
|
-
self.set_instance_metadata
|
18
|
-
self.enable_historical_data(true) if self.push_disabled
|
19
17
|
External.entities_list.each do |entity|
|
20
18
|
self.synchronized_entities[entity.to_sym] = {can_push_to_connec: !self.pull_disabled, can_push_to_external: !self.push_disabled}
|
21
19
|
end
|
22
20
|
end
|
23
21
|
|
22
|
+
# Callbacks
|
23
|
+
before_save :update_metadata
|
24
|
+
|
24
25
|
#===================================
|
25
26
|
# Encryptions
|
26
27
|
#===================================
|
@@ -147,8 +148,11 @@ module Maestrano::Connector::Rails
|
|
147
148
|
|
148
149
|
self.push_disabled = response.dig('data', 'metadata', 'push_disabled')
|
149
150
|
self.pull_disabled = response.dig('data', 'metadata', 'pull_disabled')
|
151
|
+
end
|
150
152
|
|
151
|
-
|
153
|
+
def update_metadata
|
154
|
+
self.set_instance_metadata
|
155
|
+
self.enable_historical_data(true) if self.push_disabled
|
152
156
|
end
|
153
157
|
end
|
154
158
|
end
|
@@ -10,7 +10,6 @@ class UpdateOrganizationMetadata < ActiveRecord::Migration
|
|
10
10
|
|
11
11
|
#We also add metadata from MnoHub
|
12
12
|
Maestrano::Connector::Rails::Organization.all.each do |o|
|
13
|
-
o.set_instance_metadata
|
14
13
|
o.reset_synchronized_entities
|
15
14
|
o.enable_historical_data(true) if o.push_disabled
|
16
15
|
end
|
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: maestrano-connector-rails 2.0.2.pre.
|
5
|
+
# stub: maestrano-connector-rails 2.0.2.pre.RC5 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "maestrano-connector-rails".freeze
|
9
|
-
s.version = "2.0.2.pre.
|
9
|
+
s.version = "2.0.2.pre.RC5"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["Maestrano".freeze]
|
14
|
-
s.date = "2017-02-
|
14
|
+
s.date = "2017-02-03"
|
15
15
|
s.description = "Maestrano is the next generation marketplace for SME applications. See https://sme.maestrano.com for details.".freeze
|
16
16
|
s.email = "developers@maestrano.com".freeze
|
17
17
|
s.executables = ["rails".freeze, "rake".freeze]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maestrano-connector-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.2.pre.
|
4
|
+
version: 2.0.2.pre.RC5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maestrano
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|