mno-enterprise-core 3.1.4 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/mno_enterprise/logo-intuit.png +0 -0
- data/app/assets/images/mno_enterprise/main-logo.png +0 -0
- data/app/assets/stylesheets/mno_enterprise/mail.css +1 -4
- data/app/controllers/mno_enterprise/application_controller.rb +1 -1
- data/app/helpers/mno_enterprise/application_helper.rb +7 -7
- data/app/models/mno_enterprise/app.rb +12 -3
- data/app/models/mno_enterprise/app_answer.rb +13 -0
- data/app/models/mno_enterprise/app_comment.rb +10 -0
- data/app/models/mno_enterprise/app_feedback.rb +7 -0
- data/app/models/mno_enterprise/app_question.rb +9 -0
- data/app/models/mno_enterprise/app_review.rb +7 -0
- data/app/models/mno_enterprise/base_resource.rb +6 -1
- data/app/models/mno_enterprise/identity.rb +24 -0
- data/app/models/mno_enterprise/impac/alert.rb +10 -0
- data/app/models/mno_enterprise/impac/dashboard.rb +10 -11
- data/app/models/mno_enterprise/impac/kpi.rb +4 -2
- data/app/models/mno_enterprise/impac/widget.rb +4 -1
- data/app/models/mno_enterprise/team.rb +1 -33
- data/app/models/mno_enterprise/user.rb +109 -28
- data/app/views/system_notifications/email-change.html.erb +27 -0
- data/app/views/system_notifications/email-change.text.erb +10 -0
- data/app/views/system_notifications/password-change.html.erb +25 -0
- data/app/views/system_notifications/password-change.text.erb +7 -0
- data/app/views/system_notifications/reconfirmation-instructions.html.erb +7 -5
- data/app/views/system_notifications/reconfirmation-instructions.text.erb +3 -2
- data/config/initializers/config.rb +5 -0
- data/config/locales/models/user/en.yml +5 -0
- data/config/locales/templates/components/en.yml +9 -0
- data/config/locales/templates/dashboard/en.yml +14 -0
- data/config/locales/templates/dashboard/marketplace/en.yml +111 -8
- data/config/locales/templates/dashboard/organization/en.yml +1 -0
- data/config/locales/templates/impac/dock/en.yml +28 -0
- data/config/locales/views/auth/shared/en.yml +1 -2
- data/config/locales/views/webhook/o_auth/providers/en.yml +11 -6
- data/lib/devise/hooks/lockable.rb +13 -0
- data/lib/devise/models/remote_authenticatable.rb +31 -5
- data/lib/generators/mno_enterprise/install/install_generator.rb +7 -0
- data/lib/generators/mno_enterprise/install/templates/Procfile +1 -1
- data/lib/generators/mno_enterprise/install/templates/Procfile.dev +1 -1
- data/lib/generators/mno_enterprise/install/templates/config/application.yml +17 -0
- data/lib/generators/mno_enterprise/install/templates/config/initializers/mno_enterprise.rb +8 -3
- data/lib/generators/mno_enterprise/install/templates/config/newrelic.yml +46 -0
- data/lib/generators/mno_enterprise/install/templates/config/puma.rb +56 -0
- data/lib/generators/mno_enterprise/install/templates/config/settings/production.yml +1 -1
- data/lib/generators/mno_enterprise/install/templates/config/settings/uat.yml +1 -1
- data/lib/generators/mno_enterprise/install/templates/config/settings.yml +21 -0
- data/lib/generators/mno_enterprise/install/templates/stylesheets/variables.less +3 -0
- data/lib/her_extension/model/associations/association_proxy.rb +10 -6
- data/lib/mno_enterprise/concerns/controllers/auth/confirmations_controller.rb +1 -1
- data/lib/mno_enterprise/concerns/controllers/auth/omniauth_callbacks_controller.rb +203 -0
- data/lib/mno_enterprise/concerns/models/ability.rb +28 -0
- data/lib/mno_enterprise/concerns/models/app_instance.rb +22 -4
- data/lib/mno_enterprise/concerns/models/intercom_user.rb +28 -0
- data/lib/mno_enterprise/concerns/models/organization.rb +14 -1
- data/lib/mno_enterprise/concerns/models/team.rb +67 -0
- data/lib/mno_enterprise/core.rb +22 -3
- data/lib/mno_enterprise/impac_client.rb +19 -0
- data/lib/mno_enterprise/mail_adapters/mandrill_adapter.rb +4 -1
- data/lib/mno_enterprise/testing_support/factories/app_review.rb +51 -0
- data/lib/mno_enterprise/testing_support/factories/apps.rb +12 -10
- data/lib/mno_enterprise/testing_support/factories/identity.rb +9 -0
- data/lib/mno_enterprise/testing_support/factories/impac/alerts.rb +18 -0
- data/lib/mno_enterprise/testing_support/factories/impac/kpis.rb +5 -9
- data/lib/mno_enterprise/testing_support/factories/users.rb +4 -0
- data/lib/mno_enterprise/testing_support/jpi_v1_test_helper.rb +39 -0
- data/lib/mno_enterprise/testing_support/organizations_shared_helpers.rb +2 -1
- data/lib/mno_enterprise/testing_support/shared_examples/jpi_v1_admin.rb +38 -0
- data/lib/mno_enterprise/version.rb +1 -1
- data/spec/lib/devise/model/remote_authenticable_spec.rb +76 -0
- data/spec/lib/mno_enterprise/impac_client_spec.rb +31 -0
- data/spec/mno_enterprise_spec.rb +7 -8
- data/spec/models/mno_enterprise/app_spec.rb +1 -1
- data/spec/models/mno_enterprise/identity_spec.rb +39 -0
- data/spec/models/mno_enterprise/organization_spec.rb +19 -2
- data/spec/models/mno_enterprise/user_spec.rb +238 -0
- metadata +86 -22
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mno-enterprise-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arnaud Lachaume
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-06-
|
12
|
+
date: 2017-06-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -60,33 +60,19 @@ dependencies:
|
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 0.10.0
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '3.0'
|
69
|
-
type: :runtime
|
70
|
-
prerelease: false
|
71
|
-
version_requirements: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '3.0'
|
76
|
-
- !ruby/object:Gem::Dependency
|
77
|
-
name: cancancan
|
63
|
+
name: httparty
|
78
64
|
requirement: !ruby/object:Gem::Requirement
|
79
65
|
requirements:
|
80
66
|
- - "~>"
|
81
67
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
68
|
+
version: '0.11'
|
83
69
|
type: :runtime
|
84
70
|
prerelease: false
|
85
71
|
version_requirements: !ruby/object:Gem::Requirement
|
86
72
|
requirements:
|
87
73
|
- - "~>"
|
88
74
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
75
|
+
version: '0.11'
|
90
76
|
- !ruby/object:Gem::Dependency
|
91
77
|
name: countries
|
92
78
|
requirement: !ruby/object:Gem::Requirement
|
@@ -183,6 +169,48 @@ dependencies:
|
|
183
169
|
- - ">="
|
184
170
|
- !ruby/object:Gem::Version
|
185
171
|
version: 6.5.1
|
172
|
+
- !ruby/object:Gem::Dependency
|
173
|
+
name: devise
|
174
|
+
requirement: !ruby/object:Gem::Requirement
|
175
|
+
requirements:
|
176
|
+
- - "~>"
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: '3.0'
|
179
|
+
type: :runtime
|
180
|
+
prerelease: false
|
181
|
+
version_requirements: !ruby/object:Gem::Requirement
|
182
|
+
requirements:
|
183
|
+
- - "~>"
|
184
|
+
- !ruby/object:Gem::Version
|
185
|
+
version: '3.0'
|
186
|
+
- !ruby/object:Gem::Dependency
|
187
|
+
name: cancancan
|
188
|
+
requirement: !ruby/object:Gem::Requirement
|
189
|
+
requirements:
|
190
|
+
- - "~>"
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: '1.10'
|
193
|
+
type: :runtime
|
194
|
+
prerelease: false
|
195
|
+
version_requirements: !ruby/object:Gem::Requirement
|
196
|
+
requirements:
|
197
|
+
- - "~>"
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: '1.10'
|
200
|
+
- !ruby/object:Gem::Dependency
|
201
|
+
name: omniauth
|
202
|
+
requirement: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - "~>"
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: 1.3.1
|
207
|
+
type: :runtime
|
208
|
+
prerelease: false
|
209
|
+
version_requirements: !ruby/object:Gem::Requirement
|
210
|
+
requirements:
|
211
|
+
- - "~>"
|
212
|
+
- !ruby/object:Gem::Version
|
213
|
+
version: 1.3.1
|
186
214
|
- !ruby/object:Gem::Dependency
|
187
215
|
name: mandrill-api
|
188
216
|
requirement: !ruby/object:Gem::Requirement
|
@@ -257,14 +285,20 @@ dependencies:
|
|
257
285
|
requirements:
|
258
286
|
- - "~>"
|
259
287
|
- !ruby/object:Gem::Version
|
260
|
-
version: 1.0
|
288
|
+
version: '1.0'
|
289
|
+
- - "<"
|
290
|
+
- !ruby/object:Gem::Version
|
291
|
+
version: '1.3'
|
261
292
|
type: :runtime
|
262
293
|
prerelease: false
|
263
294
|
version_requirements: !ruby/object:Gem::Requirement
|
264
295
|
requirements:
|
265
296
|
- - "~>"
|
266
297
|
- !ruby/object:Gem::Version
|
267
|
-
version: 1.0
|
298
|
+
version: '1.0'
|
299
|
+
- - "<"
|
300
|
+
- !ruby/object:Gem::Version
|
301
|
+
version: '1.3'
|
268
302
|
- !ruby/object:Gem::Dependency
|
269
303
|
name: sparkpost
|
270
304
|
requirement: !ruby/object:Gem::Requirement
|
@@ -289,6 +323,7 @@ files:
|
|
289
323
|
- LICENSE
|
290
324
|
- Rakefile
|
291
325
|
- app/assets/images/mno_enterprise/login-background.jpg
|
326
|
+
- app/assets/images/mno_enterprise/logo-intuit.png
|
292
327
|
- app/assets/images/mno_enterprise/main-logo.png
|
293
328
|
- app/assets/stylesheets/mno_enterprise/mail.css
|
294
329
|
- app/controllers/mno_enterprise/application_controller.rb
|
@@ -296,13 +331,20 @@ files:
|
|
296
331
|
- app/helpers/mno_enterprise/impersonate_helper.rb
|
297
332
|
- app/models/mno_enterprise/ability.rb
|
298
333
|
- app/models/mno_enterprise/app.rb
|
334
|
+
- app/models/mno_enterprise/app_answer.rb
|
335
|
+
- app/models/mno_enterprise/app_comment.rb
|
336
|
+
- app/models/mno_enterprise/app_feedback.rb
|
299
337
|
- app/models/mno_enterprise/app_instance.rb
|
300
338
|
- app/models/mno_enterprise/app_instances_sync.rb
|
339
|
+
- app/models/mno_enterprise/app_question.rb
|
340
|
+
- app/models/mno_enterprise/app_review.rb
|
301
341
|
- app/models/mno_enterprise/arrears_situation.rb
|
302
342
|
- app/models/mno_enterprise/audit_event.rb
|
303
343
|
- app/models/mno_enterprise/base_resource.rb
|
304
344
|
- app/models/mno_enterprise/credit_card.rb
|
305
345
|
- app/models/mno_enterprise/deletion_request.rb
|
346
|
+
- app/models/mno_enterprise/identity.rb
|
347
|
+
- app/models/mno_enterprise/impac/alert.rb
|
306
348
|
- app/models/mno_enterprise/impac/dashboard.rb
|
307
349
|
- app/models/mno_enterprise/impac/dashboard_provisioner.rb
|
308
350
|
- app/models/mno_enterprise/impac/kpi.rb
|
@@ -319,10 +361,14 @@ files:
|
|
319
361
|
- app/views/system_notifications/confirmation-instructions.text.erb
|
320
362
|
- app/views/system_notifications/delete-request-instructions.html.erb
|
321
363
|
- app/views/system_notifications/delete-request-instructions.text.erb
|
364
|
+
- app/views/system_notifications/email-change.html.erb
|
365
|
+
- app/views/system_notifications/email-change.text.erb
|
322
366
|
- app/views/system_notifications/organization-invite-existing-user.html.erb
|
323
367
|
- app/views/system_notifications/organization-invite-existing-user.text.erb
|
324
368
|
- app/views/system_notifications/organization-invite-new-user.html.erb
|
325
369
|
- app/views/system_notifications/organization-invite-new-user.text.erb
|
370
|
+
- app/views/system_notifications/password-change.html.erb
|
371
|
+
- app/views/system_notifications/password-change.text.erb
|
326
372
|
- app/views/system_notifications/reconfirmation-instructions.html.erb
|
327
373
|
- app/views/system_notifications/reconfirmation-instructions.text.erb
|
328
374
|
- app/views/system_notifications/registration-instructions.html.erb
|
@@ -382,6 +428,7 @@ files:
|
|
382
428
|
- config/locales/templates/dashboard/teams/id.yml
|
383
429
|
- config/locales/templates/dashboard/teams/zh.yml
|
384
430
|
- config/locales/templates/dashboard/zh.yml
|
431
|
+
- config/locales/templates/impac/dock/en.yml
|
385
432
|
- config/locales/templates/impac/en.yml
|
386
433
|
- config/locales/templates/impac/id.yml
|
387
434
|
- config/locales/templates/impac/modals/en.yml
|
@@ -436,6 +483,7 @@ files:
|
|
436
483
|
- lib/devise/controllers/extension_helpers.rb
|
437
484
|
- lib/devise/extension_routes.rb
|
438
485
|
- lib/devise/hooks/impersonatable.rb
|
486
|
+
- lib/devise/hooks/lockable.rb
|
439
487
|
- lib/devise/hooks/password_expirable.rb
|
440
488
|
- lib/devise/models/password_expirable.rb
|
441
489
|
- lib/devise/models/remote_authenticatable.rb
|
@@ -457,6 +505,8 @@ files:
|
|
457
505
|
- lib/generators/mno_enterprise/install/templates/config/application.yml
|
458
506
|
- lib/generators/mno_enterprise/install/templates/config/initializers/mno_enterprise.rb
|
459
507
|
- lib/generators/mno_enterprise/install/templates/config/mno_enterprise_styleguide.yml
|
508
|
+
- lib/generators/mno_enterprise/install/templates/config/newrelic.yml
|
509
|
+
- lib/generators/mno_enterprise/install/templates/config/puma.rb
|
460
510
|
- lib/generators/mno_enterprise/install/templates/config/settings.yml
|
461
511
|
- lib/generators/mno_enterprise/install/templates/config/settings/development.yml
|
462
512
|
- lib/generators/mno_enterprise/install/templates/config/settings/production.yml
|
@@ -496,6 +546,7 @@ files:
|
|
496
546
|
- lib/mno_enterprise/concerns/controllers/angular_csrf.rb
|
497
547
|
- lib/mno_enterprise/concerns/controllers/auth.rb
|
498
548
|
- lib/mno_enterprise/concerns/controllers/auth/confirmations_controller.rb
|
549
|
+
- lib/mno_enterprise/concerns/controllers/auth/omniauth_callbacks_controller.rb
|
499
550
|
- lib/mno_enterprise/concerns/controllers/auth/passwords_controller.rb
|
500
551
|
- lib/mno_enterprise/concerns/controllers/auth/registrations_controller.rb
|
501
552
|
- lib/mno_enterprise/concerns/controllers/auth/sessions_controller.rb
|
@@ -504,10 +555,13 @@ files:
|
|
504
555
|
- lib/mno_enterprise/concerns/models.rb
|
505
556
|
- lib/mno_enterprise/concerns/models/ability.rb
|
506
557
|
- lib/mno_enterprise/concerns/models/app_instance.rb
|
558
|
+
- lib/mno_enterprise/concerns/models/intercom_user.rb
|
507
559
|
- lib/mno_enterprise/concerns/models/organization.rb
|
560
|
+
- lib/mno_enterprise/concerns/models/team.rb
|
508
561
|
- lib/mno_enterprise/core.rb
|
509
562
|
- lib/mno_enterprise/database_extendable.rb
|
510
563
|
- lib/mno_enterprise/engine.rb
|
564
|
+
- lib/mno_enterprise/impac_client.rb
|
511
565
|
- lib/mno_enterprise/mail_adapters/adapter.rb
|
512
566
|
- lib/mno_enterprise/mail_adapters/mandrill_adapter.rb
|
513
567
|
- lib/mno_enterprise/mail_adapters/smtp_adapter.rb
|
@@ -519,11 +573,14 @@ files:
|
|
519
573
|
- lib/mno_enterprise/testing_support/common_rake.rb
|
520
574
|
- lib/mno_enterprise/testing_support/factories.rb
|
521
575
|
- lib/mno_enterprise/testing_support/factories/app_instances.rb
|
576
|
+
- lib/mno_enterprise/testing_support/factories/app_review.rb
|
522
577
|
- lib/mno_enterprise/testing_support/factories/apps.rb
|
523
578
|
- lib/mno_enterprise/testing_support/factories/arrears_situation.rb
|
524
579
|
- lib/mno_enterprise/testing_support/factories/audit_event.rb
|
525
580
|
- lib/mno_enterprise/testing_support/factories/credit_card.rb
|
526
581
|
- lib/mno_enterprise/testing_support/factories/deletion_request.rb
|
582
|
+
- lib/mno_enterprise/testing_support/factories/identity.rb
|
583
|
+
- lib/mno_enterprise/testing_support/factories/impac/alerts.rb
|
527
584
|
- lib/mno_enterprise/testing_support/factories/impac/dashboards.rb
|
528
585
|
- lib/mno_enterprise/testing_support/factories/impac/kpis.rb
|
529
586
|
- lib/mno_enterprise/testing_support/factories/impac/widgets.rb
|
@@ -539,16 +596,19 @@ files:
|
|
539
596
|
- lib/mno_enterprise/testing_support/mnoe_faraday_test_adapter.rb
|
540
597
|
- lib/mno_enterprise/testing_support/organizations_shared_helpers.rb
|
541
598
|
- lib/mno_enterprise/testing_support/shared_contexts/rake_task.rb
|
599
|
+
- lib/mno_enterprise/testing_support/shared_examples/jpi_v1_admin.rb
|
542
600
|
- lib/mno_enterprise/testing_support/user_action_shared.rb
|
543
601
|
- lib/mno_enterprise/version.rb
|
544
602
|
- lib/tasks/mno_enterprise_tasks.rake
|
545
603
|
- spec/controllers/mno_enterprise/angular_csrf_spec.rb
|
546
604
|
- spec/controllers/mno_enterprise/application_controller_spec.rb
|
547
605
|
- spec/controllers/mno_enterprise/i18n_spec.rb
|
606
|
+
- spec/lib/devise/model/remote_authenticable_spec.rb
|
548
607
|
- spec/lib/her_extension/her_orm_adapter.rb
|
549
608
|
- spec/lib/her_extension/model/relation_spec.rb
|
550
609
|
- spec/lib/mandrill_client_spec.rb
|
551
610
|
- spec/lib/mno_enterprise/core_engine_spec.rb
|
611
|
+
- spec/lib/mno_enterprise/impac_client_spec.rb
|
552
612
|
- spec/lib/mno_enterprise/mail_adapters/adapter_spec.rb
|
553
613
|
- spec/lib/mno_enterprise/mail_adapters/mandrill_adapter_spec.rb
|
554
614
|
- spec/lib/mno_enterprise/mail_adapters/smtp_adapter_spec.rb
|
@@ -561,6 +621,7 @@ files:
|
|
561
621
|
- spec/models/mno_enterprise/app_spec.rb
|
562
622
|
- spec/models/mno_enterprise/base_resource_spec.rb
|
563
623
|
- spec/models/mno_enterprise/deletion_request_spec.rb
|
624
|
+
- spec/models/mno_enterprise/identity_spec.rb
|
564
625
|
- spec/models/mno_enterprise/impac/dashboard_spec.rb
|
565
626
|
- spec/models/mno_enterprise/invoice_spec.rb
|
566
627
|
- spec/models/mno_enterprise/organization_spec.rb
|
@@ -587,7 +648,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
587
648
|
version: '0'
|
588
649
|
requirements: []
|
589
650
|
rubyforge_project:
|
590
|
-
rubygems_version: 2.
|
651
|
+
rubygems_version: 2.6.8
|
591
652
|
signing_key:
|
592
653
|
specification_version: 4
|
593
654
|
summary: Maestrano Enterprise - Core functionnality
|
@@ -597,6 +658,7 @@ test_files:
|
|
597
658
|
- spec/models/mno_enterprise/app_instance_spec.rb
|
598
659
|
- spec/models/mno_enterprise/impac/dashboard_spec.rb
|
599
660
|
- spec/models/mno_enterprise/deletion_request_spec.rb
|
661
|
+
- spec/models/mno_enterprise/identity_spec.rb
|
600
662
|
- spec/models/mno_enterprise/ability_spec.rb
|
601
663
|
- spec/models/mno_enterprise/invoice_spec.rb
|
602
664
|
- spec/models/mno_enterprise/user_spec.rb
|
@@ -609,6 +671,8 @@ test_files:
|
|
609
671
|
- spec/lib/mno_enterprise/mail_adapters/adapter_spec.rb
|
610
672
|
- spec/lib/mno_enterprise/mail_client_spec.rb
|
611
673
|
- spec/lib/mno_enterprise/core_engine_spec.rb
|
674
|
+
- spec/lib/mno_enterprise/impac_client_spec.rb
|
675
|
+
- spec/lib/devise/model/remote_authenticable_spec.rb
|
612
676
|
- spec/lib/her_extension/her_orm_adapter.rb
|
613
677
|
- spec/lib/her_extension/model/relation_spec.rb
|
614
678
|
- spec/lib/mandrill_client_spec.rb
|