maestrano-connector-rails 0.3.4 → 0.3.5

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: 5f9df8b9e24a3d6b1616c9bb26b59aa2a09d4de3
4
- data.tar.gz: 4f3c29cd00285f933969bf2fe808bf88ba908004
3
+ metadata.gz: ecb5e0b3c1b1cba58c3e8d59cf9482e9f2d7e8ae
4
+ data.tar.gz: 370650bd45310a4aa5c38fb8adb275d8807c77e2
5
5
  SHA512:
6
- metadata.gz: ce9beb1f11f820f1804b2b35f77cc402ff02e1976d70e5dc4ff49b1bbf25786efb5b0090e16ad59c93d90dfa6d0e0dac80800cfa2375887775b35a9ecd5489c5
7
- data.tar.gz: 401b8a68a25e374ba92b4b099c00e183f304af587c8952d7dca0bbb61be79586b9bb41a101afc02614dc4751986bec529d323df7df008fe8cb75487e4813afd8
6
+ metadata.gz: 0e1c2fa672cdcacb98241508eac191fdf2c8285da9c839384bf8ca43cd4b348959e0a4b0eedfb1f2a565c3604f385c051e95c42beeaf0864ed290ff3afbe6401
7
+ data.tar.gz: 2226a0f6777653327da0d79d6a4023a7d01e2385ce94c74eee95b28b7f92bdc1ef948ba513e277358d5ae0b747af4d61c2aba8ea97842fd4fd22dc6c49ad12a3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.4
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.4 ruby lib
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.4"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maestrano-connector-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre Berard