maestrano-connector-rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +1 -0
- data/DEVELOPER.md +10 -0
- data/Gemfile +18 -0
- data/Gemfile.lock +222 -0
- data/LICENSE +21 -0
- data/README.md +138 -0
- data/Rakefile +37 -0
- data/VERSION +1 -0
- data/app/controllers/maestrano/account/group_users_controller.rb +20 -0
- data/app/controllers/maestrano/account/groups_controller.rb +22 -0
- data/app/controllers/maestrano/application_controller.rb +7 -0
- data/app/controllers/maestrano/auth/saml_controller.rb +31 -0
- data/app/controllers/maestrano/sessions_controller.rb +15 -0
- data/app/helpers/maestrano/connector/rails/session_helper.rb +17 -0
- data/app/jobs/maestrano/connector/rails/synchronization_job.rb +49 -0
- data/app/models/maestrano/connector/rails/complex_entity.rb +175 -0
- data/app/models/maestrano/connector/rails/concerns/entity.rb +231 -0
- data/app/models/maestrano/connector/rails/concerns/external.rb +13 -0
- data/app/models/maestrano/connector/rails/connector_logger.rb +9 -0
- data/app/models/maestrano/connector/rails/entity.rb +5 -0
- data/app/models/maestrano/connector/rails/external.rb +5 -0
- data/app/models/maestrano/connector/rails/id_map.rb +6 -0
- data/app/models/maestrano/connector/rails/organization.rb +60 -0
- data/app/models/maestrano/connector/rails/sub_entity_base.rb +32 -0
- data/app/models/maestrano/connector/rails/synchronization.rb +38 -0
- data/app/models/maestrano/connector/rails/user.rb +25 -0
- data/app/models/maestrano/connector/rails/user_organization_rel.rb +9 -0
- data/bin/rails +12 -0
- data/config/routes.rb +28 -0
- data/db/migrate/20151122162100_create_maestrano_connector_rails_users.rb +16 -0
- data/db/migrate/20151122162414_create_maestrano_connector_rails_organizations.rb +21 -0
- data/db/migrate/20151122162613_create_maestrano_connector_rails_user_organization_rels.rb +12 -0
- data/db/migrate/20151122163325_create_maestrano_connector_rails_synchronizations.rb +13 -0
- data/db/migrate/20151122163449_create_maestrano_connector_rails_id_maps.rb +18 -0
- data/lib/generators/connector/USAGE +2 -0
- data/lib/generators/connector/complex_entity_generator.rb +19 -0
- data/lib/generators/connector/install_generator.rb +70 -0
- data/lib/generators/connector/templates/admin_controller.rb +48 -0
- data/lib/generators/connector/templates/admin_index.html.erb +51 -0
- data/lib/generators/connector/templates/complex_entity_example/contact.rb +22 -0
- data/lib/generators/connector/templates/complex_entity_example/contact_and_lead.rb +56 -0
- data/lib/generators/connector/templates/complex_entity_example/contact_mapper.rb +17 -0
- data/lib/generators/connector/templates/complex_entity_example/lead.rb +22 -0
- data/lib/generators/connector/templates/complex_entity_example/lead_mapper.rb +15 -0
- data/lib/generators/connector/templates/complex_entity_example/person.rb +23 -0
- data/lib/generators/connector/templates/contact_and_lead.rb +55 -0
- data/lib/generators/connector/templates/entity.rb +48 -0
- data/lib/generators/connector/templates/example_entity.rb +26 -0
- data/lib/generators/connector/templates/external.rb +19 -0
- data/lib/generators/connector/templates/home_controller.rb +17 -0
- data/lib/generators/connector/templates/home_index.html.erb +42 -0
- data/lib/generators/connector/templates/oauth_controller.rb +45 -0
- data/lib/maestrano-connector-rails.rb +1 -0
- data/lib/maestrano/connector/rails.rb +13 -0
- data/maestrano-connector-rails.gemspec +197 -0
- data/maestrano.png +0 -0
- data/spec/dummy/README.md +1 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/admin_controller.rb +48 -0
- data/spec/dummy/app/controllers/application_controller.rb +8 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/controllers/home_controller.rb +17 -0
- data/spec/dummy/app/controllers/oauth_controller.rb +45 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/models/entities/example_entitiy.rb +26 -0
- data/spec/dummy/app/models/maestrano/connector/rails/entity.rb +10 -0
- data/spec/dummy/app/models/maestrano/connector/rails/external.rb +11 -0
- data/spec/dummy/app/views/admin/index.html.erb +51 -0
- data/spec/dummy/app/views/home/index.html.erb +36 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +26 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/maestrano.rb +135 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +9 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20151209134445_create_maestrano_connector_rails_users.maestrano_connector_rails.rb +17 -0
- data/spec/dummy/db/migrate/20151209134446_create_maestrano_connector_rails_organizations.maestrano_connector_rails.rb +22 -0
- data/spec/dummy/db/migrate/20151209134447_create_maestrano_connector_rails_user_organization_rels.maestrano_connector_rails.rb +13 -0
- data/spec/dummy/db/migrate/20151209134448_create_maestrano_connector_rails_synchronizations.maestrano_connector_rails.rb +14 -0
- data/spec/dummy/db/migrate/20151209134449_create_maestrano_connector_rails_id_maps.maestrano_connector_rails.rb +19 -0
- data/spec/dummy/db/schema.rb +83 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/factories.rb +33 -0
- data/spec/jobs/syncrhonization_job_spec.rb +53 -0
- data/spec/models/complex_entity_spec.rb +353 -0
- data/spec/models/connector_logger_spec.rb +21 -0
- data/spec/models/entity_spec.rb +457 -0
- data/spec/models/external_spec.rb +15 -0
- data/spec/models/id_map_spec.rb +12 -0
- data/spec/models/organizaztion_spec.rb +105 -0
- data/spec/models/sub_entity_base_spec.rb +51 -0
- data/spec/models/synchronization_spec.rb +75 -0
- data/spec/models/user_organization_rel_spec.rb +14 -0
- data/spec/models/user_spec.rb +15 -0
- data/spec/spec_helper.rb +19 -0
- metadata +327 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Maestrano::Connector::Rails::External do
|
4
|
+
subject { Maestrano::Connector::Rails::External }
|
5
|
+
|
6
|
+
describe 'external_name' do
|
7
|
+
it { expect(subject.external_name).to eql('Dummy app') }
|
8
|
+
end
|
9
|
+
|
10
|
+
describe 'get_client' do
|
11
|
+
let(:organization) { create(:organization) }
|
12
|
+
|
13
|
+
it { expect(subject.get_client(organization)).to eql(nil) }
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Maestrano::Connector::Rails::IdMap do
|
4
|
+
|
5
|
+
# Indexes
|
6
|
+
it { should have_db_index([:connec_id, :connec_entity, :organization_id]) }
|
7
|
+
it { should have_db_index([:external_id, :external_entity, :organization_id]) }
|
8
|
+
it { should have_db_index([:organization_id]) }
|
9
|
+
|
10
|
+
#Associations
|
11
|
+
it { should belong_to(:organization) }
|
12
|
+
end
|
@@ -0,0 +1,105 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Maestrano::Connector::Rails::Organization do
|
4
|
+
|
5
|
+
# Attributes
|
6
|
+
it { should validate_presence_of(:name) }
|
7
|
+
it { should validate_presence_of(:tenant) }
|
8
|
+
it { should serialize(:synchronized_entities) }
|
9
|
+
|
10
|
+
# Indexes
|
11
|
+
it { should have_db_index([:uid, :tenant]) }
|
12
|
+
|
13
|
+
#Associations
|
14
|
+
it { should have_many(:user_organization_rels) }
|
15
|
+
it { should have_many(:users) }
|
16
|
+
|
17
|
+
describe 'creation' do
|
18
|
+
subject { Maestrano::Connector::Rails::Organization.new }
|
19
|
+
|
20
|
+
it 'initializes the synchronized entities' do
|
21
|
+
entities_list = Maestrano::Connector::Rails::Entity.entities_list
|
22
|
+
expect(subject.synchronized_entities).to include(entities_list.first.to_sym)
|
23
|
+
expect(subject.synchronized_entities).to include(entities_list.last.to_sym)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
describe "instance methods" do
|
28
|
+
subject { create(:organization) }
|
29
|
+
|
30
|
+
describe 'add_member' do
|
31
|
+
|
32
|
+
context "when user is not from the same tenant" do
|
33
|
+
let(:user) { create(:user, tenant: 'zzz') }
|
34
|
+
|
35
|
+
it "does nothing" do
|
36
|
+
expect{
|
37
|
+
subject.add_member(user)
|
38
|
+
}.to change{Maestrano::Connector::Rails::UserOrganizationRel.count}.by(0)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
context "when user is from the same tenant" do
|
43
|
+
let(:user) { create(:user) }
|
44
|
+
|
45
|
+
context "when user is already in the organization" do
|
46
|
+
before { create(:user_organization_rel, user: user, organization: subject) }
|
47
|
+
|
48
|
+
it "does nothing" do
|
49
|
+
expect{
|
50
|
+
subject.add_member(user)
|
51
|
+
}.to change{Maestrano::Connector::Rails::UserOrganizationRel.count}.by(0)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
context "when user is not in the organization yet" do
|
56
|
+
it "does nothing" do
|
57
|
+
expect{
|
58
|
+
subject.add_member(user)
|
59
|
+
}.to change{Maestrano::Connector::Rails::UserOrganizationRel.count}.by(1)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'member?' do
|
66
|
+
let(:user) { create(:user) }
|
67
|
+
|
68
|
+
context "when user is a member of the organization" do
|
69
|
+
before { create(:user_organization_rel, user: user, organization: subject) }
|
70
|
+
|
71
|
+
it { expect(subject.member?(user)).to be(true) }
|
72
|
+
end
|
73
|
+
|
74
|
+
context "when user is not a member of the organization" do
|
75
|
+
it { expect(subject.member?(user)).to be(false) }
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
describe 'remove_member' do
|
80
|
+
let(:user) { create(:user) }
|
81
|
+
|
82
|
+
context "when user is a member of the organization" do
|
83
|
+
before { create(:user_organization_rel, user: user, organization: subject) }
|
84
|
+
|
85
|
+
it "deletes the user_organization_rel" do
|
86
|
+
expect{
|
87
|
+
subject.remove_member(user)
|
88
|
+
}.to change{Maestrano::Connector::Rails::UserOrganizationRel.count}.by(-1)
|
89
|
+
end
|
90
|
+
end
|
91
|
+
context "when user is not a member of the organization" do
|
92
|
+
it "does nothing" do
|
93
|
+
expect{
|
94
|
+
subject.remove_member(user)
|
95
|
+
}.to change{Maestrano::Connector::Rails::UserOrganizationRel.count}.by(0)
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
describe 'from_omniauth' do
|
101
|
+
#TODO
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Maestrano::Connector::Rails::SubEntityBase do
|
4
|
+
subject { Maestrano::Connector::Rails::SubEntityBase.new }
|
5
|
+
|
6
|
+
describe 'external?' do
|
7
|
+
it { expect{ subject.external? }.to raise_error('Not implemented') }
|
8
|
+
end
|
9
|
+
|
10
|
+
describe 'entity_name' do
|
11
|
+
it { expect{ subject.entity_name }.to raise_error('Not implemented') }
|
12
|
+
end
|
13
|
+
|
14
|
+
describe 'map_to' do
|
15
|
+
it { expect{ subject.map_to('name', {}, nil) }.to raise_error('Not implemented') }
|
16
|
+
end
|
17
|
+
|
18
|
+
describe 'external_entity_name' do
|
19
|
+
context 'when entity is external' do
|
20
|
+
before(:each) {
|
21
|
+
allow_any_instance_of(Maestrano::Connector::Rails::SubEntityBase).to receive(:external?).and_return(true)
|
22
|
+
allow_any_instance_of(Maestrano::Connector::Rails::SubEntityBase).to receive(:entity_name).and_return('Name')
|
23
|
+
}
|
24
|
+
|
25
|
+
it 'returns the entity_name' do
|
26
|
+
expect(subject.external_entity_name).to eql('Name')
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
context 'when entity is not external' do
|
31
|
+
it { expect{ subject.external_entity_name }.to raise_error('Not implemented') }
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
describe 'connec_entity_name' do
|
36
|
+
context 'when entity is not external' do
|
37
|
+
before(:each) {
|
38
|
+
allow_any_instance_of(Maestrano::Connector::Rails::SubEntityBase).to receive(:external?).and_return(false)
|
39
|
+
allow_any_instance_of(Maestrano::Connector::Rails::SubEntityBase).to receive(:entity_name).and_return('Name')
|
40
|
+
}
|
41
|
+
|
42
|
+
it 'returns the entity_name' do
|
43
|
+
expect(subject.connec_entity_name).to eql('Name')
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
context 'when entity is external' do
|
48
|
+
it { expect{ subject.connec_entity_name }.to raise_error('Not implemented') }
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Maestrano::Connector::Rails::Synchronization do
|
4
|
+
|
5
|
+
# Attributes
|
6
|
+
it { should validate_presence_of(:status) }
|
7
|
+
|
8
|
+
# Indexes
|
9
|
+
it { should have_db_index(:organization_id) }
|
10
|
+
|
11
|
+
#Associations
|
12
|
+
it { should belong_to(:organization) }
|
13
|
+
|
14
|
+
describe 'class methods' do
|
15
|
+
subject { Maestrano::Connector::Rails::Synchronization }
|
16
|
+
|
17
|
+
describe 'create_running' do
|
18
|
+
let(:organization) { create(:organization) }
|
19
|
+
|
20
|
+
it 'creates an organization' do
|
21
|
+
expect{ subject.create_running(organization) }.to change{ Maestrano::Connector::Rails::Synchronization.count }.by(1)
|
22
|
+
end
|
23
|
+
|
24
|
+
it { expect(subject.create_running(organization).status).to eql('RUNNING') }
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
describe 'instance methods' do
|
29
|
+
describe 'is_success?' do
|
30
|
+
it { expect(Maestrano::Connector::Rails::Synchronization.new(status: 'SUCCESS').is_success?).to be(true) }
|
31
|
+
it { expect(Maestrano::Connector::Rails::Synchronization.new(status: 'ERROR').is_success?).to be(false) }
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'is_error?' do
|
35
|
+
it { expect(Maestrano::Connector::Rails::Synchronization.new(status: 'ERROR').is_error?).to be(true) }
|
36
|
+
it { expect(Maestrano::Connector::Rails::Synchronization.new(status: 'RUNNING').is_error?).to be(false) }
|
37
|
+
end
|
38
|
+
|
39
|
+
describe 'is_running?' do
|
40
|
+
it { expect(Maestrano::Connector::Rails::Synchronization.new(status: 'RUNNING').is_running?).to be(true) }
|
41
|
+
it { expect(Maestrano::Connector::Rails::Synchronization.new(status: 'ERROR').is_running?).to be(false) }
|
42
|
+
end
|
43
|
+
|
44
|
+
describe 'set_success' do
|
45
|
+
let(:sync) { create(:synchronization, status: 'RUNNING') }
|
46
|
+
|
47
|
+
it 'set the synchronization status to success' do
|
48
|
+
sync.set_success
|
49
|
+
sync.reload
|
50
|
+
expect(sync.status).to eql('SUCCESS')
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe 'set_error' do
|
55
|
+
let(:sync) { create(:synchronization, status: 'RUNNING') }
|
56
|
+
|
57
|
+
it 'set the synchronization status to error with the message' do
|
58
|
+
sync.set_error('msg')
|
59
|
+
sync.reload
|
60
|
+
expect(sync.status).to eql('ERROR')
|
61
|
+
expect(sync.message).to eql('msg')
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'set_partial' do
|
66
|
+
let(:sync) { create(:synchronization, partial: false) }
|
67
|
+
|
68
|
+
it 'set the synchronization status to error with the message' do
|
69
|
+
sync.set_partial
|
70
|
+
sync.reload
|
71
|
+
expect(sync.partial).to be(true)
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Maestrano::Connector::Rails::UserOrganizationRel do
|
4
|
+
|
5
|
+
# Attributes
|
6
|
+
|
7
|
+
# Indexes
|
8
|
+
it { should have_db_index(:user_id) }
|
9
|
+
it { should have_db_index(:organization_id) }
|
10
|
+
|
11
|
+
#Associations
|
12
|
+
it { should belong_to(:user) }
|
13
|
+
it { should belong_to(:organization) }
|
14
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Maestrano::Connector::Rails::User do
|
4
|
+
|
5
|
+
# Attributes
|
6
|
+
it { should validate_presence_of(:email) }
|
7
|
+
it { should validate_presence_of(:tenant) }
|
8
|
+
|
9
|
+
# Indexes
|
10
|
+
it { should have_db_index([:uid, :tenant]) }
|
11
|
+
|
12
|
+
#Associations
|
13
|
+
it { should have_many(:user_organization_rels) }
|
14
|
+
it { should have_many(:organizations) }
|
15
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
ENV['RAILS_ENV'] ||= 'test'
|
2
|
+
|
3
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
4
|
+
require 'rspec/rails'
|
5
|
+
require 'factory_girl_rails'
|
6
|
+
require 'shoulda/matchers'
|
7
|
+
|
8
|
+
Rails.backtrace_cleaner.remove_silencers!
|
9
|
+
|
10
|
+
# Load support files
|
11
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
12
|
+
|
13
|
+
RSpec.configure do |config|
|
14
|
+
config.mock_with :rspec
|
15
|
+
config.use_transactional_fixtures = true
|
16
|
+
config.infer_base_class_for_anonymous_controllers = false
|
17
|
+
config.order = "random"
|
18
|
+
config.include FactoryGirl::Syntax::Methods
|
19
|
+
end
|
metadata
ADDED
@@ -0,0 +1,327 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: maestrano-connector-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Pierre Berard
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-01-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: maestrano-rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.14.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.14.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: hash_mapper
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.2.1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.2.1
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: shoulda
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rdoc
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.12'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.12'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bundler
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: jeweler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 2.0.1
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 2.0.1
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: simplecov
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rspec-rails
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: factory_girl_rails
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: sqlite3
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: shoulda-matchers
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
description: Maestrano is the next generation marketplace for SME applications. See
|
168
|
+
https://maestrano.com for details.
|
169
|
+
email: pierre.berard@maestrano.com
|
170
|
+
executables:
|
171
|
+
- rails
|
172
|
+
extensions: []
|
173
|
+
extra_rdoc_files:
|
174
|
+
- LICENSE
|
175
|
+
- README.md
|
176
|
+
files:
|
177
|
+
- ".rspec"
|
178
|
+
- DEVELOPER.md
|
179
|
+
- Gemfile
|
180
|
+
- Gemfile.lock
|
181
|
+
- LICENSE
|
182
|
+
- README.md
|
183
|
+
- Rakefile
|
184
|
+
- VERSION
|
185
|
+
- app/controllers/maestrano/account/group_users_controller.rb
|
186
|
+
- app/controllers/maestrano/account/groups_controller.rb
|
187
|
+
- app/controllers/maestrano/application_controller.rb
|
188
|
+
- app/controllers/maestrano/auth/saml_controller.rb
|
189
|
+
- app/controllers/maestrano/sessions_controller.rb
|
190
|
+
- app/helpers/maestrano/connector/rails/session_helper.rb
|
191
|
+
- app/jobs/maestrano/connector/rails/synchronization_job.rb
|
192
|
+
- app/models/maestrano/connector/rails/complex_entity.rb
|
193
|
+
- app/models/maestrano/connector/rails/concerns/entity.rb
|
194
|
+
- app/models/maestrano/connector/rails/concerns/external.rb
|
195
|
+
- app/models/maestrano/connector/rails/connector_logger.rb
|
196
|
+
- app/models/maestrano/connector/rails/entity.rb
|
197
|
+
- app/models/maestrano/connector/rails/external.rb
|
198
|
+
- app/models/maestrano/connector/rails/id_map.rb
|
199
|
+
- app/models/maestrano/connector/rails/organization.rb
|
200
|
+
- app/models/maestrano/connector/rails/sub_entity_base.rb
|
201
|
+
- app/models/maestrano/connector/rails/synchronization.rb
|
202
|
+
- app/models/maestrano/connector/rails/user.rb
|
203
|
+
- app/models/maestrano/connector/rails/user_organization_rel.rb
|
204
|
+
- bin/rails
|
205
|
+
- config/routes.rb
|
206
|
+
- db/migrate/20151122162100_create_maestrano_connector_rails_users.rb
|
207
|
+
- db/migrate/20151122162414_create_maestrano_connector_rails_organizations.rb
|
208
|
+
- db/migrate/20151122162613_create_maestrano_connector_rails_user_organization_rels.rb
|
209
|
+
- db/migrate/20151122163325_create_maestrano_connector_rails_synchronizations.rb
|
210
|
+
- db/migrate/20151122163449_create_maestrano_connector_rails_id_maps.rb
|
211
|
+
- lib/generators/connector/USAGE
|
212
|
+
- lib/generators/connector/complex_entity_generator.rb
|
213
|
+
- lib/generators/connector/install_generator.rb
|
214
|
+
- lib/generators/connector/templates/admin_controller.rb
|
215
|
+
- lib/generators/connector/templates/admin_index.html.erb
|
216
|
+
- lib/generators/connector/templates/complex_entity_example/contact.rb
|
217
|
+
- lib/generators/connector/templates/complex_entity_example/contact_and_lead.rb
|
218
|
+
- lib/generators/connector/templates/complex_entity_example/contact_mapper.rb
|
219
|
+
- lib/generators/connector/templates/complex_entity_example/lead.rb
|
220
|
+
- lib/generators/connector/templates/complex_entity_example/lead_mapper.rb
|
221
|
+
- lib/generators/connector/templates/complex_entity_example/person.rb
|
222
|
+
- lib/generators/connector/templates/contact_and_lead.rb
|
223
|
+
- lib/generators/connector/templates/entity.rb
|
224
|
+
- lib/generators/connector/templates/example_entity.rb
|
225
|
+
- lib/generators/connector/templates/external.rb
|
226
|
+
- lib/generators/connector/templates/home_controller.rb
|
227
|
+
- lib/generators/connector/templates/home_index.html.erb
|
228
|
+
- lib/generators/connector/templates/oauth_controller.rb
|
229
|
+
- lib/maestrano-connector-rails.rb
|
230
|
+
- lib/maestrano/connector/rails.rb
|
231
|
+
- maestrano-connector-rails.gemspec
|
232
|
+
- maestrano.png
|
233
|
+
- spec/dummy/README.md
|
234
|
+
- spec/dummy/Rakefile
|
235
|
+
- spec/dummy/app/assets/images/.keep
|
236
|
+
- spec/dummy/app/assets/javascripts/application.js
|
237
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
238
|
+
- spec/dummy/app/controllers/admin_controller.rb
|
239
|
+
- spec/dummy/app/controllers/application_controller.rb
|
240
|
+
- spec/dummy/app/controllers/concerns/.keep
|
241
|
+
- spec/dummy/app/controllers/home_controller.rb
|
242
|
+
- spec/dummy/app/controllers/oauth_controller.rb
|
243
|
+
- spec/dummy/app/helpers/application_helper.rb
|
244
|
+
- spec/dummy/app/mailers/.keep
|
245
|
+
- spec/dummy/app/models/.keep
|
246
|
+
- spec/dummy/app/models/concerns/.keep
|
247
|
+
- spec/dummy/app/models/entities/example_entitiy.rb
|
248
|
+
- spec/dummy/app/models/maestrano/connector/rails/entity.rb
|
249
|
+
- spec/dummy/app/models/maestrano/connector/rails/external.rb
|
250
|
+
- spec/dummy/app/views/admin/index.html.erb
|
251
|
+
- spec/dummy/app/views/home/index.html.erb
|
252
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
253
|
+
- spec/dummy/bin/bundle
|
254
|
+
- spec/dummy/bin/rails
|
255
|
+
- spec/dummy/bin/rake
|
256
|
+
- spec/dummy/bin/setup
|
257
|
+
- spec/dummy/config.ru
|
258
|
+
- spec/dummy/config/application.rb
|
259
|
+
- spec/dummy/config/boot.rb
|
260
|
+
- spec/dummy/config/database.yml
|
261
|
+
- spec/dummy/config/environment.rb
|
262
|
+
- spec/dummy/config/environments/development.rb
|
263
|
+
- spec/dummy/config/environments/production.rb
|
264
|
+
- spec/dummy/config/environments/test.rb
|
265
|
+
- spec/dummy/config/initializers/assets.rb
|
266
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
267
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
268
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
269
|
+
- spec/dummy/config/initializers/inflections.rb
|
270
|
+
- spec/dummy/config/initializers/maestrano.rb
|
271
|
+
- spec/dummy/config/initializers/mime_types.rb
|
272
|
+
- spec/dummy/config/initializers/session_store.rb
|
273
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
274
|
+
- spec/dummy/config/locales/en.yml
|
275
|
+
- spec/dummy/config/routes.rb
|
276
|
+
- spec/dummy/config/secrets.yml
|
277
|
+
- spec/dummy/db/development.sqlite3
|
278
|
+
- spec/dummy/db/migrate/20151209134445_create_maestrano_connector_rails_users.maestrano_connector_rails.rb
|
279
|
+
- spec/dummy/db/migrate/20151209134446_create_maestrano_connector_rails_organizations.maestrano_connector_rails.rb
|
280
|
+
- spec/dummy/db/migrate/20151209134447_create_maestrano_connector_rails_user_organization_rels.maestrano_connector_rails.rb
|
281
|
+
- spec/dummy/db/migrate/20151209134448_create_maestrano_connector_rails_synchronizations.maestrano_connector_rails.rb
|
282
|
+
- spec/dummy/db/migrate/20151209134449_create_maestrano_connector_rails_id_maps.maestrano_connector_rails.rb
|
283
|
+
- spec/dummy/db/schema.rb
|
284
|
+
- spec/dummy/lib/assets/.keep
|
285
|
+
- spec/dummy/log/.keep
|
286
|
+
- spec/dummy/public/404.html
|
287
|
+
- spec/dummy/public/422.html
|
288
|
+
- spec/dummy/public/500.html
|
289
|
+
- spec/dummy/public/favicon.ico
|
290
|
+
- spec/factories.rb
|
291
|
+
- spec/jobs/syncrhonization_job_spec.rb
|
292
|
+
- spec/models/complex_entity_spec.rb
|
293
|
+
- spec/models/connector_logger_spec.rb
|
294
|
+
- spec/models/entity_spec.rb
|
295
|
+
- spec/models/external_spec.rb
|
296
|
+
- spec/models/id_map_spec.rb
|
297
|
+
- spec/models/organizaztion_spec.rb
|
298
|
+
- spec/models/sub_entity_base_spec.rb
|
299
|
+
- spec/models/synchronization_spec.rb
|
300
|
+
- spec/models/user_organization_rel_spec.rb
|
301
|
+
- spec/models/user_spec.rb
|
302
|
+
- spec/spec_helper.rb
|
303
|
+
homepage: http://github.com/maestrano/maestrano-connector-rails
|
304
|
+
licenses:
|
305
|
+
- MIT
|
306
|
+
metadata: {}
|
307
|
+
post_install_message:
|
308
|
+
rdoc_options: []
|
309
|
+
require_paths:
|
310
|
+
- lib
|
311
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
312
|
+
requirements:
|
313
|
+
- - ">="
|
314
|
+
- !ruby/object:Gem::Version
|
315
|
+
version: '0'
|
316
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
317
|
+
requirements:
|
318
|
+
- - ">="
|
319
|
+
- !ruby/object:Gem::Version
|
320
|
+
version: '0'
|
321
|
+
requirements: []
|
322
|
+
rubyforge_project:
|
323
|
+
rubygems_version: 2.4.6
|
324
|
+
signing_key:
|
325
|
+
specification_version: 4
|
326
|
+
summary: Rails framework to build connector with Maestrano
|
327
|
+
test_files: []
|