maestrano-connector-rails 0.3.4 → 0.3.5
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: ecb5e0b3c1b1cba58c3e8d59cf9482e9f2d7e8ae
|
4
|
+
data.tar.gz: 370650bd45310a4aa5c38fb8adb275d8807c77e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e1c2fa672cdcacb98241508eac191fdf2c8285da9c839384bf8ca43cd4b348959e0a4b0eedfb1f2a565c3604f385c051e95c42beeaf0864ed290ff3afbe6401
|
7
|
+
data.tar.gz: 2226a0f6777653327da0d79d6a4023a7d01e2385ce94c74eee95b28b7f92bdc1ef948ba513e277358d5ae0b747af4d61c2aba8ea97842fd4fd22dc6c49ad12a3
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.5
|
@@ -74,7 +74,7 @@ module Maestrano::Connector::Rails::Concerns::ComplexEntity
|
|
74
74
|
def get_connec_entities(client, last_synchronization, organization, opts={})
|
75
75
|
entities = ActiveSupport::HashWithIndifferentAccess.new
|
76
76
|
|
77
|
-
self.connec_entities_names.each do |connec_entity_name|
|
77
|
+
self.class.connec_entities_names.each do |connec_entity_name|
|
78
78
|
sub_entity_instance = "Entities::SubEntities::#{connec_entity_name.titleize.split.join}".constantize.new
|
79
79
|
entities[connec_entity_name] = sub_entity_instance.get_connec_entities(client, last_synchronization, organization, opts)
|
80
80
|
end
|
@@ -84,7 +84,7 @@ module Maestrano::Connector::Rails::Concerns::ComplexEntity
|
|
84
84
|
def get_external_entities(client, last_synchronization, organization, opts={})
|
85
85
|
entities = ActiveSupport::HashWithIndifferentAccess.new
|
86
86
|
|
87
|
-
self.external_entities_names.each do |external_entity_name|
|
87
|
+
self.class.external_entities_names.each do |external_entity_name|
|
88
88
|
sub_entity_instance = "Entities::SubEntities::#{external_entity_name.titleize.split.join}".constantize.new
|
89
89
|
entities[external_entity_name] = sub_entity_instance.get_external_entities(client, last_synchronization, organization, opts)
|
90
90
|
end
|
@@ -2,11 +2,11 @@
|
|
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 0.3.
|
5
|
+
# stub: maestrano-connector-rails 0.3.5 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "maestrano-connector-rails"
|
9
|
-
s.version = "0.3.
|
9
|
+
s.version = "0.3.5"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
@@ -96,7 +96,7 @@ describe Maestrano::Connector::Rails::ComplexEntity do
|
|
96
96
|
|
97
97
|
describe 'get_connec_entities' do
|
98
98
|
before {
|
99
|
-
allow(subject).to receive(:connec_entities_names).and_return(%w(sc_e1 ScE2))
|
99
|
+
allow(subject.class).to receive(:connec_entities_names).and_return(%w(sc_e1 ScE2))
|
100
100
|
}
|
101
101
|
|
102
102
|
it 'calls get_connec_entities on each connec sub complex entities' do
|
@@ -116,7 +116,7 @@ describe Maestrano::Connector::Rails::ComplexEntity do
|
|
116
116
|
|
117
117
|
describe 'get_external_entities' do
|
118
118
|
before {
|
119
|
-
allow(subject).to receive(:external_entities_names).and_return(%w(sc_e1 ScE2))
|
119
|
+
allow(subject.class).to receive(:external_entities_names).and_return(%w(sc_e1 ScE2))
|
120
120
|
}
|
121
121
|
|
122
122
|
it 'calls get_external_entities on each connec sub complex entities' do
|