maestrano-connector-rails 2.0.2.pre.RC6 → 2.0.2.pre.RC7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +6 -0
- data/DEVELOPER.md +1 -4
- data/Gemfile +2 -32
- data/Rakefile +6 -30
- data/app/models/maestrano/connector/rails/concerns/entity.rb +12 -0
- data/app/models/maestrano/connector/rails/concerns/sub_entity_base.rb +3 -2
- data/app/models/maestrano/connector/rails/id_map.rb +1 -0
- data/app/models/maestrano/connector/rails/services/data_consolidator.rb +4 -4
- data/db/migrate/20170315032224_add_metadata_to_id_map.rb +5 -0
- data/lib/maestrano/connector/rails/version.rb +7 -0
- data/lib/maestrano_connector_rails/factories.rb +1 -0
- data/maestrano-connector-rails.gemspec +44 -308
- metadata +13 -151
- data/VERSION +0 -1
- data/spec/controllers/connec_controller_spec.rb +0 -179
- data/spec/controllers/dependancies_controller_spec.rb +0 -31
- data/spec/controllers/group_users_controller_spec.rb +0 -39
- data/spec/controllers/groups_controller_spec.rb +0 -36
- data/spec/controllers/synchronizations_controller_spec.rb +0 -211
- data/spec/controllers/version_controller_spec.rb +0 -17
- data/spec/dummy/README.md +0 -1
- data/spec/dummy/Rakefile +0 -6
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +0 -13
- data/spec/dummy/app/assets/stylesheets/application.css +0 -15
- data/spec/dummy/app/controllers/application_controller.rb +0 -8
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +0 -2
- 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/.keep +0 -0
- data/spec/dummy/app/views/home/index.html.erb +0 -1
- data/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/spec/dummy/bin/bundle +0 -3
- data/spec/dummy/bin/rails +0 -4
- data/spec/dummy/bin/rake +0 -4
- data/spec/dummy/bin/setup +0 -29
- data/spec/dummy/config.ru +0 -4
- data/spec/dummy/config/application.rb +0 -26
- data/spec/dummy/config/boot.rb +0 -5
- data/spec/dummy/config/database.yml +0 -25
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -41
- data/spec/dummy/config/environments/production.rb +0 -79
- data/spec/dummy/config/environments/test.rb +0 -39
- data/spec/dummy/config/initializers/assets.rb +0 -11
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/config/initializers/cookies_serializer.rb +0 -3
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/dummy/config/initializers/inflections.rb +0 -16
- data/spec/dummy/config/initializers/maestrano.rb +0 -2
- data/spec/dummy/config/initializers/mime_types.rb +0 -4
- data/spec/dummy/config/initializers/session_store.rb +0 -3
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/config/locales/en.yml +0 -23
- data/spec/dummy/config/routes.rb +0 -9
- data/spec/dummy/config/secrets.yml +0 -22
- data/spec/dummy/config/settings.yml +0 -2
- data/spec/dummy/config/settings/development.yml +0 -12
- data/spec/dummy/config/settings/production.yml +0 -1
- data/spec/dummy/config/settings/test.yml +0 -12
- data/spec/dummy/config/settings/uat.yml +0 -1
- data/spec/dummy/db/schema.rb +0 -102
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/public/404.html +0 -67
- data/spec/dummy/public/422.html +0 -67
- data/spec/dummy/public/500.html +0 -66
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/tmp/cache/.gitkeep +0 -0
- data/spec/integration/complex_id_references_spec.rb +0 -249
- data/spec/integration/complex_naming_spec.rb +0 -192
- data/spec/integration/complex_spec.rb +0 -578
- data/spec/integration/connec_to_external_spec.rb +0 -327
- data/spec/integration/external_to_connec_spec.rb +0 -159
- data/spec/integration/id_references_spec.rb +0 -584
- data/spec/integration/singleton_spec.rb +0 -297
- data/spec/jobs/all_synchronizations_job_spec.rb +0 -24
- data/spec/jobs/push_to_connec_job_spec.rb +0 -111
- data/spec/jobs/push_to_connec_worker_spec.rb +0 -37
- data/spec/jobs/synchronization_job_spec.rb +0 -216
- data/spec/models/complex_entity_spec.rb +0 -407
- data/spec/models/connec_helper_spec.rb +0 -588
- data/spec/models/connector_logger_spec.rb +0 -26
- data/spec/models/entity_base_spec.rb +0 -20
- data/spec/models/entity_spec.rb +0 -1078
- data/spec/models/external_spec.rb +0 -27
- data/spec/models/id_map_spec.rb +0 -12
- data/spec/models/organization_spec.rb +0 -243
- data/spec/models/sub_entity_base_spec.rb +0 -155
- data/spec/models/synchronization_spec.rb +0 -106
- data/spec/models/user_organization_rel_spec.rb +0 -14
- data/spec/models/user_spec.rb +0 -15
- data/spec/routing/connec_routing_spec.rb +0 -12
- data/spec/spec_helper.rb +0 -34
- data/template/Procfile +0 -2
- data/template/application-sample.yml +0 -13
- data/template/database.yml +0 -31
- data/template/gitignore +0 -23
- data/template/maestrano.rb +0 -2
- data/template/maestrano_connector_template.rb +0 -135
- data/template/routes.rb +0 -25
- data/template/rubocop.yml +0 -55
- data/template/settings/development.yml +0 -0
- data/template/settings/production.yml +0 -0
- data/template/settings/settings.yml +0 -2
- data/template/settings/test.yml +0 -0
- data/template/settings/uat.yml +0 -0
- data/template/sidekiq.rb +0 -9
- data/template/sidekiq.yml +0 -4
- data/template/spec_helper.rb +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf0aeacbcf0ade3ddda62e58c84aef2f464e49af
|
4
|
+
data.tar.gz: fc0deb05247177b49871feb5e35a24a2058e035a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abca8484da1b3604d0a78d53cdb172958e03bfc220bbd19d56f668cbbb2ada649484ed299f8578a30544b2c4467e9cff591eaacb973b67d4d6f5c6151a610a0d
|
7
|
+
data.tar.gz: 713daa98e070d23f3a9ef15f183224b27310d95d9e295b8f3d6669c2a0acf993341591809ff57c9199161c23da2e43dc2ccdc703f5b56e69e91c556dd0f4d912
|
data/.gitignore
ADDED
data/DEVELOPER.md
CHANGED
@@ -1,10 +1,7 @@
|
|
1
1
|
## Release gem
|
2
2
|
|
3
|
-
|
3
|
+
Edit `lib/maestrano/connector/rails/version.rb` with the new version.
|
4
4
|
|
5
5
|
``` bash
|
6
|
-
gem install jeweler
|
7
|
-
bundle exec rake version:bump:patch
|
8
|
-
bundle exec rake gemspec:release
|
9
6
|
bundle exec rake release
|
10
7
|
```
|
data/Gemfile
CHANGED
@@ -1,39 +1,9 @@
|
|
1
1
|
source 'http://rubygems.org'
|
2
2
|
|
3
|
-
|
4
|
-
gem 'rails', '~> 4.2'
|
5
|
-
|
6
|
-
gem 'maestrano-rails', '~> 1.0.3'
|
7
|
-
|
8
|
-
gem 'attr_encrypted', '~> 1.4.0'
|
9
|
-
gem 'autoprefixer-rails'
|
10
|
-
gem 'bootstrap-sass'
|
11
|
-
gem 'config'
|
12
|
-
gem 'figaro'
|
13
|
-
gem 'haml-rails'
|
14
|
-
gem 'hash_mapper', '>= 0.2.2'
|
15
|
-
|
16
|
-
gem 'sidekiq'
|
17
|
-
# The missing unique jobs for sidekiq
|
18
|
-
gem 'sidekiq-cron'
|
19
|
-
gem 'sidekiq-unique-jobs'
|
20
|
-
gem 'sinatra', require: false
|
21
|
-
gem 'slim'
|
22
|
-
|
3
|
+
gemspec
|
23
4
|
# Add dependencies to develop your gem here.
|
5
|
+
|
24
6
|
group :development do
|
25
7
|
gem 'activerecord-jdbcsqlite3-adapter', platforms: :jruby
|
26
|
-
gem 'bundler'
|
27
|
-
gem 'factory_girl_rails'
|
28
|
-
gem 'github_changelog_generator'
|
29
|
-
gem 'jeweler'
|
30
|
-
gem 'rdoc'
|
31
|
-
gem 'rspec-rails'
|
32
|
-
gem 'rubocop', '~> 0.43'
|
33
|
-
gem 'shoulda'
|
34
|
-
gem 'shoulda-matchers'
|
35
|
-
gem 'simplecov', '>= 0'
|
36
8
|
gem 'sqlite3', platforms: :ruby
|
37
|
-
gem 'timecop'
|
38
|
-
gem 'webmock', '~> 1.24.1'
|
39
9
|
end
|
data/Rakefile
CHANGED
@@ -1,41 +1,17 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
require 'rubygems'
|
4
|
-
require 'bundler'
|
5
1
|
begin
|
6
|
-
|
7
|
-
rescue
|
8
|
-
|
9
|
-
$stderr.puts 'Run `bundle install` to install missing gems'
|
10
|
-
exit e.status_code
|
11
|
-
end
|
12
|
-
require 'rake'
|
13
|
-
|
14
|
-
require 'jeweler'
|
15
|
-
Jeweler::Tasks.new do |gem|
|
16
|
-
# gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
|
17
|
-
gem.name = 'maestrano-connector-rails'
|
18
|
-
gem.homepage = 'http://github.com/maestrano/maestrano-connector-rails'
|
19
|
-
gem.license = 'MIT'
|
20
|
-
gem.summary = 'Rails framework to build connector with Maestrano'
|
21
|
-
gem.description = 'Maestrano is the next generation marketplace for SME applications. See https://sme.maestrano.com for details.'
|
22
|
-
gem.email = 'developers@maestrano.com'
|
23
|
-
gem.authors = ['Maestrano']
|
24
|
-
# dependencies defined in Gemfile
|
2
|
+
require 'bundler/setup'
|
3
|
+
rescue LoadError
|
4
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
25
5
|
end
|
26
|
-
Jeweler::RubygemsDotOrgTasks.new
|
27
6
|
|
28
|
-
|
7
|
+
require 'bundler/gem_tasks'
|
8
|
+
require 'rspec/core/rake_task'
|
29
9
|
require 'rubocop/rake_task'
|
30
|
-
RuboCop::RakeTask.new
|
31
10
|
|
32
11
|
APP_RAKEFILE = File.expand_path('../spec/dummy/Rakefile', __FILE__)
|
33
12
|
load 'rails/tasks/engine.rake'
|
34
13
|
|
35
|
-
|
36
|
-
require 'rspec/core/rake_task'
|
37
|
-
|
38
|
-
desc 'Run all specs in spec directory (excluding plugin specs)'
|
14
|
+
RuboCop::RakeTask.new
|
39
15
|
RSpec::Core::RakeTask.new(spec: 'app:db:test:prepare')
|
40
16
|
|
41
17
|
task default: [:spec, :rubocop]
|
@@ -135,6 +135,10 @@ module Maestrano::Connector::Rails::Concerns::Entity
|
|
135
135
|
true
|
136
136
|
end
|
137
137
|
|
138
|
+
def currency_check_field
|
139
|
+
nil
|
140
|
+
end
|
141
|
+
|
138
142
|
# ----------------------------------------------
|
139
143
|
# Helper methods
|
140
144
|
# ----------------------------------------------
|
@@ -262,6 +266,14 @@ module Maestrano::Connector::Rails::Concerns::Entity
|
|
262
266
|
mapped_external_entities_with_idmaps.select! { |mapped_external_entity_with_idmap| !mapped_external_entity_with_idmap[:idmap].connec_id }
|
263
267
|
end
|
264
268
|
|
269
|
+
if self.class.currency_check_field
|
270
|
+
mapped_external_entities_with_idmaps.each { |mapped_external_entity_with_idmap|
|
271
|
+
id_map = mapped_external_entity_with_idmap[:idmap]
|
272
|
+
next unless id_map&.metadata&.dig(:ignore_currency_update)
|
273
|
+
mapped_external_entity_with_idmap[:entity].delete(self.class.currency_check_field)
|
274
|
+
}
|
275
|
+
end
|
276
|
+
|
265
277
|
proc = ->(mapped_external_entity_with_idmap) { batch_op('post', mapped_external_entity_with_idmap[:entity], nil, self.class.normalize_connec_entity_name(connec_entity_name)) }
|
266
278
|
batch_calls(mapped_external_entities_with_idmaps, proc, connec_entity_name)
|
267
279
|
end
|
@@ -49,14 +49,15 @@ module Maestrano::Connector::Rails::Concerns::SubEntityBase
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
-
def map_to(name, entity,
|
52
|
+
def map_to(name, entity, idmap = nil)
|
53
|
+
first_time_mapped = self.class.external? ? idmap&.last_push_to_connec.nil? : idmap&.last_push_to_external.nil?
|
53
54
|
mapper = first_time_mapped ? self.class.creation_mapper_classes[name] : self.class.mapper_classes[name]
|
54
55
|
raise "Impossible mapping from #{self.class.entity_name} to #{name}" unless mapper
|
55
56
|
|
56
57
|
if self.class.external?
|
57
58
|
map_to_connec_helper(entity, mapper, self.class.references[name] || [])
|
58
59
|
else
|
59
|
-
map_to_external_helper(entity, mapper)
|
60
|
+
map_to_external_helper(entity.merge(idmap: idmap), mapper)
|
60
61
|
end
|
61
62
|
end
|
62
63
|
|
@@ -34,7 +34,7 @@ module Maestrano::Connector::Rails::Services
|
|
34
34
|
entity = unfold_hash[:entity]
|
35
35
|
idmap.update(name: @current_entity.class.object_name_from_connec_entity_hash(entity), connec_id: unfold_hash[:connec_id])
|
36
36
|
idmap.update(external_id: @current_entity.class.id_from_external_entity_hash(external_entities.first)) unless external_entities.empty?
|
37
|
-
return {connec_entities: [{entity: @current_entity.map_to_external(entity), idmap: idmap, id_refs_only_connec_entity: {}}], external_entities: []}
|
37
|
+
return {connec_entities: [{entity: @current_entity.map_to_external(entity.merge(idmap: idmap)), idmap: idmap, id_refs_only_connec_entity: {}}], external_entities: []}
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
@@ -109,7 +109,7 @@ module Maestrano::Connector::Rails::Services
|
|
109
109
|
|
110
110
|
def map_external_entity_with_idmap(external_entity, connec_entity_name, idmap)
|
111
111
|
entity = if @is_a_subentity
|
112
|
-
@current_entity.map_to(connec_entity_name, external_entity, idmap
|
112
|
+
@current_entity.map_to(connec_entity_name, external_entity, idmap)
|
113
113
|
else
|
114
114
|
@current_entity.map_to_connec(external_entity, idmap.last_push_to_connec.nil?)
|
115
115
|
end
|
@@ -118,9 +118,9 @@ module Maestrano::Connector::Rails::Services
|
|
118
118
|
|
119
119
|
def map_connec_entity_with_idmap(connec_entity, external_entity_name, idmap, id_refs_only_connec_entity)
|
120
120
|
entity = if @is_a_subentity
|
121
|
-
@current_entity.map_to(external_entity_name, connec_entity, idmap
|
121
|
+
@current_entity.map_to(external_entity_name, connec_entity, idmap)
|
122
122
|
else
|
123
|
-
@current_entity.map_to_external(connec_entity, idmap.last_push_to_external.nil?)
|
123
|
+
@current_entity.map_to_external(connec_entity.merge(idmap: idmap), idmap.last_push_to_external.nil?)
|
124
124
|
end
|
125
125
|
{entity: entity, idmap: idmap, id_refs_only_connec_entity: id_refs_only_connec_entity}
|
126
126
|
end
|
@@ -1,318 +1,54 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
# stub: maestrano-connector-rails 2.0.2.pre.RC6 ruby lib
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
$:.push File.expand_path("../lib", __FILE__)
|
4
|
+
require 'maestrano/connector/rails/version'
|
6
5
|
|
7
6
|
Gem::Specification.new do |s|
|
8
|
-
s.name
|
9
|
-
s.version
|
7
|
+
s.name = "maestrano-connector-rails"
|
8
|
+
s.version = Maestrano::Connector::Rails::VERSION.dup
|
9
|
+
s.authors = ["Maestrano"]
|
10
|
+
s.email = "developers@maestrano.com"
|
11
|
+
s.summary = "Rails framework to build connector with Maestrano"
|
12
|
+
s.description = "Maestrano is the next generation marketplace for SME applications. See https://sme.maestrano.com for details."
|
13
|
+
s.homepage = "https://github.com/maestrano/maestrano-connector-rails"
|
14
|
+
s.license = "MIT"
|
15
|
+
|
16
|
+
s.required_ruby_version = '>= 2.3.0'
|
17
|
+
s.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(spec|template)/})
|
19
|
+
end
|
20
|
+
s.require_paths = ["lib"]
|
10
21
|
|
11
|
-
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1".freeze) if s.respond_to? :required_rubygems_version=
|
12
|
-
s.require_paths = ["lib".freeze]
|
13
|
-
s.authors = ["Maestrano".freeze]
|
14
|
-
s.date = "2017-02-16"
|
15
|
-
s.description = "Maestrano is the next generation marketplace for SME applications. See https://sme.maestrano.com for details.".freeze
|
16
|
-
s.email = "developers@maestrano.com".freeze
|
17
22
|
s.extra_rdoc_files = [
|
18
23
|
"LICENSE",
|
19
24
|
"README.md"
|
20
25
|
]
|
21
|
-
s.files = [
|
22
|
-
".rspec",
|
23
|
-
".rubocop.yml",
|
24
|
-
".rubocop_todo.yml",
|
25
|
-
".ruby-version",
|
26
|
-
"CHANGELOG.md",
|
27
|
-
"CODESHIP.md",
|
28
|
-
"DEVELOPER.md",
|
29
|
-
"Gemfile",
|
30
|
-
"LICENSE",
|
31
|
-
"README.md",
|
32
|
-
"Rakefile",
|
33
|
-
"VERSION",
|
34
|
-
"app/controllers/maestrano/account/group_users_controller.rb",
|
35
|
-
"app/controllers/maestrano/account/groups_controller.rb",
|
36
|
-
"app/controllers/maestrano/application_controller.rb",
|
37
|
-
"app/controllers/maestrano/auth/saml_controller.rb",
|
38
|
-
"app/controllers/maestrano/connec_controller.rb",
|
39
|
-
"app/controllers/maestrano/dependancies_controller.rb",
|
40
|
-
"app/controllers/maestrano/sessions_controller.rb",
|
41
|
-
"app/controllers/maestrano/synchronizations_controller.rb",
|
42
|
-
"app/controllers/version_controller.rb",
|
43
|
-
"app/helpers/maestrano/connector/rails/entity_helper.rb",
|
44
|
-
"app/helpers/maestrano/connector/rails/session_helper.rb",
|
45
|
-
"app/jobs/maestrano/connector/rails/all_synchronizations_job.rb",
|
46
|
-
"app/jobs/maestrano/connector/rails/push_to_connec_job.rb",
|
47
|
-
"app/jobs/maestrano/connector/rails/push_to_connec_worker.rb",
|
48
|
-
"app/jobs/maestrano/connector/rails/synchronization_job.rb",
|
49
|
-
"app/models/maestrano/connector/rails/complex_entity.rb",
|
50
|
-
"app/models/maestrano/connector/rails/concerns/complex_entity.rb",
|
51
|
-
"app/models/maestrano/connector/rails/concerns/connec_helper.rb",
|
52
|
-
"app/models/maestrano/connector/rails/concerns/connector_logger.rb",
|
53
|
-
"app/models/maestrano/connector/rails/concerns/entity.rb",
|
54
|
-
"app/models/maestrano/connector/rails/concerns/entity_base.rb",
|
55
|
-
"app/models/maestrano/connector/rails/concerns/external.rb",
|
56
|
-
"app/models/maestrano/connector/rails/concerns/sub_entity_base.rb",
|
57
|
-
"app/models/maestrano/connector/rails/connec_helper.rb",
|
58
|
-
"app/models/maestrano/connector/rails/connector_logger.rb",
|
59
|
-
"app/models/maestrano/connector/rails/entity.rb",
|
60
|
-
"app/models/maestrano/connector/rails/entity_base.rb",
|
61
|
-
"app/models/maestrano/connector/rails/exceptions/entity_not_found_error.rb",
|
62
|
-
"app/models/maestrano/connector/rails/exceptions/external_api_error.rb",
|
63
|
-
"app/models/maestrano/connector/rails/external.rb",
|
64
|
-
"app/models/maestrano/connector/rails/id_map.rb",
|
65
|
-
"app/models/maestrano/connector/rails/organization.rb",
|
66
|
-
"app/models/maestrano/connector/rails/services/data_consolidator.rb",
|
67
|
-
"app/models/maestrano/connector/rails/sub_entity_base.rb",
|
68
|
-
"app/models/maestrano/connector/rails/synchronization.rb",
|
69
|
-
"app/models/maestrano/connector/rails/user.rb",
|
70
|
-
"app/models/maestrano/connector/rails/user_organization_rel.rb",
|
71
|
-
"config/routes.rb",
|
72
|
-
"db/migrate/20151122162100_create_users.rb",
|
73
|
-
"db/migrate/20151122162414_create_organizations.rb",
|
74
|
-
"db/migrate/20151122162613_create_user_organization_rels.rb",
|
75
|
-
"db/migrate/20151122163325_create_synchronizations.rb",
|
76
|
-
"db/migrate/20151122163449_create_id_maps.rb",
|
77
|
-
"db/migrate/20160205132857_add_sync_enabled_to_organizations.rb",
|
78
|
-
"db/migrate/20160215103120_add_name_to_id_map.rb",
|
79
|
-
"db/migrate/20160427112250_add_inactive_to_idmaps.rb",
|
80
|
-
"db/migrate/20160614114401_add_date_filtering_limit_to_organization.rb",
|
81
|
-
"db/migrate/20160614160654_add_encryption_on_oauth_keys.rb",
|
82
|
-
"db/migrate/20161011005751_add_unique_index_on_organization_oauth_uid.rb",
|
83
|
-
"db/migrate/20161018155513_add_org_uid_to_organization.rb",
|
84
|
-
"db/migrate/20170202033323_update_organization_metadata.rb",
|
85
|
-
"lib/generators/connector/USAGE",
|
86
|
-
"lib/generators/connector/complex_entity_generator.rb",
|
87
|
-
"lib/generators/connector/install_generator.rb",
|
88
|
-
"lib/generators/connector/templates/complex_entity_example/contact.rb",
|
89
|
-
"lib/generators/connector/templates/complex_entity_example/contact_and_lead.rb",
|
90
|
-
"lib/generators/connector/templates/complex_entity_example/contact_mapper.rb",
|
91
|
-
"lib/generators/connector/templates/complex_entity_example/lead.rb",
|
92
|
-
"lib/generators/connector/templates/complex_entity_example/lead_mapper.rb",
|
93
|
-
"lib/generators/connector/templates/complex_entity_example/person.rb",
|
94
|
-
"lib/generators/connector/templates/entity.rb",
|
95
|
-
"lib/generators/connector/templates/example_entity.rb",
|
96
|
-
"lib/generators/connector/templates/example_entity_spec.rb",
|
97
|
-
"lib/generators/connector/templates/external.rb",
|
98
|
-
"lib/generators/connector/templates/home.js",
|
99
|
-
"lib/generators/connector/templates/home_controller.rb",
|
100
|
-
"lib/generators/connector/templates/home_controller_spec.rb",
|
101
|
-
"lib/generators/connector/templates/home_index.haml",
|
102
|
-
"lib/generators/connector/templates/layouts.haml",
|
103
|
-
"lib/generators/connector/templates/oauth_controller.rb",
|
104
|
-
"lib/generators/connector/templates/shared_entities_controller.rb",
|
105
|
-
"lib/generators/connector/templates/shared_entities_controller_spec.rb",
|
106
|
-
"lib/generators/connector/templates/shared_entities_index.haml",
|
107
|
-
"lib/generators/connector/templates/stylesheets/application.sass",
|
108
|
-
"lib/generators/connector/templates/stylesheets/home.sass",
|
109
|
-
"lib/generators/connector/templates/stylesheets/layout.sass",
|
110
|
-
"lib/generators/connector/templates/stylesheets/spacers.sass",
|
111
|
-
"lib/generators/connector/templates/stylesheets/variables.sass",
|
112
|
-
"lib/generators/connector/templates/synchronizations_controller.rb",
|
113
|
-
"lib/generators/connector/templates/synchronizations_controller_spec.rb",
|
114
|
-
"lib/generators/connector/templates/synchronizations_index.haml",
|
115
|
-
"lib/maestrano/connector/rails.rb",
|
116
|
-
"lib/maestrano_connector_rails.rb",
|
117
|
-
"lib/maestrano_connector_rails/factories.rb",
|
118
|
-
"maestrano-connector-rails.gemspec",
|
119
|
-
"maestrano.png",
|
120
|
-
"release_notes.md",
|
121
|
-
"spec/controllers/connec_controller_spec.rb",
|
122
|
-
"spec/controllers/dependancies_controller_spec.rb",
|
123
|
-
"spec/controllers/group_users_controller_spec.rb",
|
124
|
-
"spec/controllers/groups_controller_spec.rb",
|
125
|
-
"spec/controllers/synchronizations_controller_spec.rb",
|
126
|
-
"spec/controllers/version_controller_spec.rb",
|
127
|
-
"spec/dummy/README.md",
|
128
|
-
"spec/dummy/Rakefile",
|
129
|
-
"spec/dummy/app/assets/images/.keep",
|
130
|
-
"spec/dummy/app/assets/javascripts/application.js",
|
131
|
-
"spec/dummy/app/assets/stylesheets/application.css",
|
132
|
-
"spec/dummy/app/controllers/application_controller.rb",
|
133
|
-
"spec/dummy/app/controllers/concerns/.keep",
|
134
|
-
"spec/dummy/app/helpers/application_helper.rb",
|
135
|
-
"spec/dummy/app/mailers/.keep",
|
136
|
-
"spec/dummy/app/models/.keep",
|
137
|
-
"spec/dummy/app/models/concerns/.keep",
|
138
|
-
"spec/dummy/app/models/entities/.keep",
|
139
|
-
"spec/dummy/app/views/home/index.html.erb",
|
140
|
-
"spec/dummy/app/views/layouts/application.html.erb",
|
141
|
-
"spec/dummy/bin/bundle",
|
142
|
-
"spec/dummy/bin/rails",
|
143
|
-
"spec/dummy/bin/rake",
|
144
|
-
"spec/dummy/bin/setup",
|
145
|
-
"spec/dummy/config.ru",
|
146
|
-
"spec/dummy/config/application.rb",
|
147
|
-
"spec/dummy/config/boot.rb",
|
148
|
-
"spec/dummy/config/database.yml",
|
149
|
-
"spec/dummy/config/environment.rb",
|
150
|
-
"spec/dummy/config/environments/development.rb",
|
151
|
-
"spec/dummy/config/environments/production.rb",
|
152
|
-
"spec/dummy/config/environments/test.rb",
|
153
|
-
"spec/dummy/config/initializers/assets.rb",
|
154
|
-
"spec/dummy/config/initializers/backtrace_silencers.rb",
|
155
|
-
"spec/dummy/config/initializers/cookies_serializer.rb",
|
156
|
-
"spec/dummy/config/initializers/filter_parameter_logging.rb",
|
157
|
-
"spec/dummy/config/initializers/inflections.rb",
|
158
|
-
"spec/dummy/config/initializers/maestrano.rb",
|
159
|
-
"spec/dummy/config/initializers/mime_types.rb",
|
160
|
-
"spec/dummy/config/initializers/session_store.rb",
|
161
|
-
"spec/dummy/config/initializers/wrap_parameters.rb",
|
162
|
-
"spec/dummy/config/locales/en.yml",
|
163
|
-
"spec/dummy/config/routes.rb",
|
164
|
-
"spec/dummy/config/secrets.yml",
|
165
|
-
"spec/dummy/config/settings.yml",
|
166
|
-
"spec/dummy/config/settings/development.yml",
|
167
|
-
"spec/dummy/config/settings/production.yml",
|
168
|
-
"spec/dummy/config/settings/test.yml",
|
169
|
-
"spec/dummy/config/settings/uat.yml",
|
170
|
-
"spec/dummy/db/schema.rb",
|
171
|
-
"spec/dummy/lib/assets/.keep",
|
172
|
-
"spec/dummy/log/.keep",
|
173
|
-
"spec/dummy/public/404.html",
|
174
|
-
"spec/dummy/public/422.html",
|
175
|
-
"spec/dummy/public/500.html",
|
176
|
-
"spec/dummy/public/favicon.ico",
|
177
|
-
"spec/dummy/tmp/cache/.gitkeep",
|
178
|
-
"spec/integration/complex_id_references_spec.rb",
|
179
|
-
"spec/integration/complex_naming_spec.rb",
|
180
|
-
"spec/integration/complex_spec.rb",
|
181
|
-
"spec/integration/connec_to_external_spec.rb",
|
182
|
-
"spec/integration/external_to_connec_spec.rb",
|
183
|
-
"spec/integration/id_references_spec.rb",
|
184
|
-
"spec/integration/singleton_spec.rb",
|
185
|
-
"spec/jobs/all_synchronizations_job_spec.rb",
|
186
|
-
"spec/jobs/push_to_connec_job_spec.rb",
|
187
|
-
"spec/jobs/push_to_connec_worker_spec.rb",
|
188
|
-
"spec/jobs/synchronization_job_spec.rb",
|
189
|
-
"spec/models/complex_entity_spec.rb",
|
190
|
-
"spec/models/connec_helper_spec.rb",
|
191
|
-
"spec/models/connector_logger_spec.rb",
|
192
|
-
"spec/models/entity_base_spec.rb",
|
193
|
-
"spec/models/entity_spec.rb",
|
194
|
-
"spec/models/external_spec.rb",
|
195
|
-
"spec/models/id_map_spec.rb",
|
196
|
-
"spec/models/organization_spec.rb",
|
197
|
-
"spec/models/sub_entity_base_spec.rb",
|
198
|
-
"spec/models/synchronization_spec.rb",
|
199
|
-
"spec/models/user_organization_rel_spec.rb",
|
200
|
-
"spec/models/user_spec.rb",
|
201
|
-
"spec/routing/connec_routing_spec.rb",
|
202
|
-
"spec/spec_helper.rb",
|
203
|
-
"template/Procfile",
|
204
|
-
"template/application-sample.yml",
|
205
|
-
"template/database.yml",
|
206
|
-
"template/gitignore",
|
207
|
-
"template/maestrano.rb",
|
208
|
-
"template/maestrano_connector_template.rb",
|
209
|
-
"template/routes.rb",
|
210
|
-
"template/rubocop.yml",
|
211
|
-
"template/settings/development.yml",
|
212
|
-
"template/settings/production.yml",
|
213
|
-
"template/settings/settings.yml",
|
214
|
-
"template/settings/test.yml",
|
215
|
-
"template/settings/uat.yml",
|
216
|
-
"template/sidekiq.rb",
|
217
|
-
"template/sidekiq.yml",
|
218
|
-
"template/spec_helper.rb"
|
219
|
-
]
|
220
|
-
s.homepage = "http://github.com/maestrano/maestrano-connector-rails".freeze
|
221
|
-
s.licenses = ["MIT".freeze]
|
222
|
-
s.rubygems_version = "2.6.8".freeze
|
223
|
-
s.summary = "Rails framework to build connector with Maestrano".freeze
|
224
26
|
|
225
|
-
|
226
|
-
|
27
|
+
s.add_runtime_dependency('rails', '~> 4.2.7.1')
|
28
|
+
s.add_runtime_dependency('maestrano-rails', '~> 1.0.3')
|
29
|
+
s.add_runtime_dependency('attr_encrypted', '~> 1.4.0')
|
30
|
+
s.add_runtime_dependency('autoprefixer-rails')
|
31
|
+
s.add_runtime_dependency('bootstrap-sass')
|
32
|
+
s.add_runtime_dependency('config')
|
33
|
+
s.add_runtime_dependency('figaro')
|
34
|
+
s.add_runtime_dependency('haml-rails')
|
35
|
+
s.add_runtime_dependency('hash_mapper', '>= 0.2.2')
|
227
36
|
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
s.add_runtime_dependency(%q<bootstrap-sass>.freeze, [">= 0"])
|
234
|
-
s.add_runtime_dependency(%q<config>.freeze, [">= 0"])
|
235
|
-
s.add_runtime_dependency(%q<figaro>.freeze, [">= 0"])
|
236
|
-
s.add_runtime_dependency(%q<haml-rails>.freeze, [">= 0"])
|
237
|
-
s.add_runtime_dependency(%q<hash_mapper>.freeze, [">= 0.2.2"])
|
238
|
-
s.add_runtime_dependency(%q<sidekiq>.freeze, [">= 0"])
|
239
|
-
s.add_runtime_dependency(%q<sidekiq-cron>.freeze, [">= 0"])
|
240
|
-
s.add_runtime_dependency(%q<sidekiq-unique-jobs>.freeze, [">= 0"])
|
241
|
-
s.add_runtime_dependency(%q<sinatra>.freeze, [">= 0"])
|
242
|
-
s.add_runtime_dependency(%q<slim>.freeze, [">= 0"])
|
243
|
-
s.add_development_dependency(%q<activerecord-jdbcsqlite3-adapter>.freeze, [">= 0"])
|
244
|
-
s.add_development_dependency(%q<bundler>.freeze, [">= 0"])
|
245
|
-
s.add_development_dependency(%q<factory_girl_rails>.freeze, [">= 0"])
|
246
|
-
s.add_development_dependency(%q<github_changelog_generator>.freeze, [">= 0"])
|
247
|
-
s.add_development_dependency(%q<jeweler>.freeze, [">= 0"])
|
248
|
-
s.add_development_dependency(%q<rdoc>.freeze, [">= 0"])
|
249
|
-
s.add_development_dependency(%q<rspec-rails>.freeze, [">= 0"])
|
250
|
-
s.add_development_dependency(%q<rubocop>.freeze, ["~> 0.43"])
|
251
|
-
s.add_development_dependency(%q<shoulda>.freeze, [">= 0"])
|
252
|
-
s.add_development_dependency(%q<shoulda-matchers>.freeze, [">= 0"])
|
253
|
-
s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
|
254
|
-
s.add_development_dependency(%q<sqlite3>.freeze, [">= 0"])
|
255
|
-
s.add_development_dependency(%q<timecop>.freeze, [">= 0"])
|
256
|
-
s.add_development_dependency(%q<webmock>.freeze, ["~> 1.24.1"])
|
257
|
-
else
|
258
|
-
s.add_dependency(%q<rails>.freeze, ["~> 4.2"])
|
259
|
-
s.add_dependency(%q<maestrano-rails>.freeze, ["~> 1.0.3"])
|
260
|
-
s.add_dependency(%q<attr_encrypted>.freeze, ["~> 1.4.0"])
|
261
|
-
s.add_dependency(%q<autoprefixer-rails>.freeze, [">= 0"])
|
262
|
-
s.add_dependency(%q<bootstrap-sass>.freeze, [">= 0"])
|
263
|
-
s.add_dependency(%q<config>.freeze, [">= 0"])
|
264
|
-
s.add_dependency(%q<figaro>.freeze, [">= 0"])
|
265
|
-
s.add_dependency(%q<haml-rails>.freeze, [">= 0"])
|
266
|
-
s.add_dependency(%q<hash_mapper>.freeze, [">= 0.2.2"])
|
267
|
-
s.add_dependency(%q<sidekiq>.freeze, [">= 0"])
|
268
|
-
s.add_dependency(%q<sidekiq-cron>.freeze, [">= 0"])
|
269
|
-
s.add_dependency(%q<sidekiq-unique-jobs>.freeze, [">= 0"])
|
270
|
-
s.add_dependency(%q<sinatra>.freeze, [">= 0"])
|
271
|
-
s.add_dependency(%q<slim>.freeze, [">= 0"])
|
272
|
-
s.add_dependency(%q<activerecord-jdbcsqlite3-adapter>.freeze, [">= 0"])
|
273
|
-
s.add_dependency(%q<bundler>.freeze, [">= 0"])
|
274
|
-
s.add_dependency(%q<factory_girl_rails>.freeze, [">= 0"])
|
275
|
-
s.add_dependency(%q<github_changelog_generator>.freeze, [">= 0"])
|
276
|
-
s.add_dependency(%q<jeweler>.freeze, [">= 0"])
|
277
|
-
s.add_dependency(%q<rdoc>.freeze, [">= 0"])
|
278
|
-
s.add_dependency(%q<rspec-rails>.freeze, [">= 0"])
|
279
|
-
s.add_dependency(%q<rubocop>.freeze, ["~> 0.43"])
|
280
|
-
s.add_dependency(%q<shoulda>.freeze, [">= 0"])
|
281
|
-
s.add_dependency(%q<shoulda-matchers>.freeze, [">= 0"])
|
282
|
-
s.add_dependency(%q<simplecov>.freeze, [">= 0"])
|
283
|
-
s.add_dependency(%q<sqlite3>.freeze, [">= 0"])
|
284
|
-
s.add_dependency(%q<timecop>.freeze, [">= 0"])
|
285
|
-
s.add_dependency(%q<webmock>.freeze, ["~> 1.24.1"])
|
286
|
-
end
|
287
|
-
else
|
288
|
-
s.add_dependency(%q<rails>.freeze, ["~> 4.2"])
|
289
|
-
s.add_dependency(%q<maestrano-rails>.freeze, ["~> 1.0.3"])
|
290
|
-
s.add_dependency(%q<attr_encrypted>.freeze, ["~> 1.4.0"])
|
291
|
-
s.add_dependency(%q<autoprefixer-rails>.freeze, [">= 0"])
|
292
|
-
s.add_dependency(%q<bootstrap-sass>.freeze, [">= 0"])
|
293
|
-
s.add_dependency(%q<config>.freeze, [">= 0"])
|
294
|
-
s.add_dependency(%q<figaro>.freeze, [">= 0"])
|
295
|
-
s.add_dependency(%q<haml-rails>.freeze, [">= 0"])
|
296
|
-
s.add_dependency(%q<hash_mapper>.freeze, [">= 0.2.2"])
|
297
|
-
s.add_dependency(%q<sidekiq>.freeze, [">= 0"])
|
298
|
-
s.add_dependency(%q<sidekiq-cron>.freeze, [">= 0"])
|
299
|
-
s.add_dependency(%q<sidekiq-unique-jobs>.freeze, [">= 0"])
|
300
|
-
s.add_dependency(%q<sinatra>.freeze, [">= 0"])
|
301
|
-
s.add_dependency(%q<slim>.freeze, [">= 0"])
|
302
|
-
s.add_dependency(%q<activerecord-jdbcsqlite3-adapter>.freeze, [">= 0"])
|
303
|
-
s.add_dependency(%q<bundler>.freeze, [">= 0"])
|
304
|
-
s.add_dependency(%q<factory_girl_rails>.freeze, [">= 0"])
|
305
|
-
s.add_dependency(%q<github_changelog_generator>.freeze, [">= 0"])
|
306
|
-
s.add_dependency(%q<jeweler>.freeze, [">= 0"])
|
307
|
-
s.add_dependency(%q<rdoc>.freeze, [">= 0"])
|
308
|
-
s.add_dependency(%q<rspec-rails>.freeze, [">= 0"])
|
309
|
-
s.add_dependency(%q<rubocop>.freeze, ["~> 0.43"])
|
310
|
-
s.add_dependency(%q<shoulda>.freeze, [">= 0"])
|
311
|
-
s.add_dependency(%q<shoulda-matchers>.freeze, [">= 0"])
|
312
|
-
s.add_dependency(%q<simplecov>.freeze, [">= 0"])
|
313
|
-
s.add_dependency(%q<sqlite3>.freeze, [">= 0"])
|
314
|
-
s.add_dependency(%q<timecop>.freeze, [">= 0"])
|
315
|
-
s.add_dependency(%q<webmock>.freeze, ["~> 1.24.1"])
|
316
|
-
end
|
317
|
-
end
|
37
|
+
s.add_runtime_dependency('sidekiq', '~> 4.2.9')
|
38
|
+
s.add_runtime_dependency('sidekiq-cron')
|
39
|
+
s.add_runtime_dependency('sidekiq-unique-jobs')
|
40
|
+
s.add_runtime_dependency('sinatra')
|
41
|
+
s.add_runtime_dependency('slim')
|
318
42
|
|
43
|
+
s.add_development_dependency('bundler')
|
44
|
+
s.add_development_dependency('factory_girl_rails')
|
45
|
+
s.add_development_dependency('github_changelog_generator')
|
46
|
+
s.add_development_dependency('rdoc')
|
47
|
+
s.add_development_dependency('rspec-rails')
|
48
|
+
s.add_development_dependency('rubocop', '~> 0.43')
|
49
|
+
s.add_development_dependency('shoulda')
|
50
|
+
s.add_development_dependency('shoulda-matchers')
|
51
|
+
s.add_development_dependency('simplecov', '>= 0')
|
52
|
+
s.add_development_dependency('timecop')
|
53
|
+
s.add_development_dependency('webmock', '~> 1.24.1')
|
54
|
+
end
|