zuora_connect 1.5.35 → 1.5.36
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: e9ed877ac410f8b4bebdf10f7402e49e10513ae0
|
4
|
+
data.tar.gz: abac593c77d04d4c517097f071f5057d5a74332f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db9785297c635733207506125bc42c49f7ddc9d3942d3b930b99473bc4c601ebe97d146a5e7c139b6d5d1d007cc7fbec46860bd070daba06639ba97d3be5a079
|
7
|
+
data.tar.gz: c131cd096b3441295f1f49891859c583dd7720979cbcd2cb4d89e1209b5971a5237dc54a3418797db4ae02a7e9ea4810b14c4c025debd1f2c49ab9d640651978
|
@@ -340,7 +340,17 @@ module ZuoraConnect
|
|
340
340
|
end
|
341
341
|
end
|
342
342
|
end
|
343
|
+
|
343
344
|
session["#{self.id}::task_data"] = self.task_data
|
345
|
+
|
346
|
+
#Redis is not defined strip out old data
|
347
|
+
if !defined?(Redis.current)
|
348
|
+
session["#{self.id}::task_data"].delete('applications')
|
349
|
+
session["#{self.id}::task_data"].select {|k,v| k.include?('login') && v['tenant_type'] == 'Zuora'}.each do |login_key, login_data|
|
350
|
+
session["#{self.id}::task_data"][login_key]['entities'] = login_data['entities'].map {|entity| entity.slice('id', 'tenantId')}
|
351
|
+
end
|
352
|
+
end
|
353
|
+
|
344
354
|
session["#{self.id}::last_refresh"] = self.last_refresh
|
345
355
|
session["appInstance"] = self.id
|
346
356
|
return session
|
@@ -6,6 +6,7 @@ module ZuoraConnect
|
|
6
6
|
|
7
7
|
def authenticate_app_api_request
|
8
8
|
#Skip session for api requests
|
9
|
+
Thread.current[:appinstance] = nil
|
9
10
|
request.session_options[:skip] = true
|
10
11
|
start_time = Time.now
|
11
12
|
if request.headers["API-Token"].present?
|
@@ -24,8 +25,8 @@ module ZuoraConnect
|
|
24
25
|
end
|
25
26
|
|
26
27
|
def authenticate_connect_app_request
|
28
|
+
Thread.current[:appinstance] = nil
|
27
29
|
start_time = Time.now
|
28
|
-
|
29
30
|
if ZuoraConnect.configuration.mode == "Production"
|
30
31
|
if request["data"]
|
31
32
|
setup_instance_via_data
|
@@ -23,7 +23,7 @@ module ZuoraConnect
|
|
23
23
|
Rails.configuration.lograge.custom_options = lambda do |event|
|
24
24
|
exceptions = %w(controller action format id)
|
25
25
|
{
|
26
|
-
appinstance_id: Thread.current[:appinstance].present? ? Thread.current[:appinstance].id :
|
26
|
+
appinstance_id: Thread.current[:appinstance].present? ? Thread.current[:appinstance].id : 0,
|
27
27
|
params: event.payload[:params].except(*exceptions),
|
28
28
|
exception: event.payload[:exception],
|
29
29
|
exception_object: event.payload[:exception_object]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zuora_connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.36
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Connect Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apartment
|
@@ -329,44 +329,44 @@ signing_key:
|
|
329
329
|
specification_version: 4
|
330
330
|
summary: Summary of Connect.
|
331
331
|
test_files:
|
332
|
-
- test/models/zuora_connect/app_instance_test.rb
|
333
|
-
- test/test_helper.rb
|
334
332
|
- test/controllers/zuora_connect/api/v1/app_instance_controller_test.rb
|
333
|
+
- test/dummy/bin/rake
|
334
|
+
- test/dummy/bin/bundle
|
335
|
+
- test/dummy/bin/setup
|
336
|
+
- test/dummy/bin/rails
|
337
|
+
- test/dummy/Rakefile
|
338
|
+
- test/dummy/public/favicon.ico
|
335
339
|
- test/dummy/public/404.html
|
336
340
|
- test/dummy/public/422.html
|
337
341
|
- test/dummy/public/500.html
|
338
|
-
- test/dummy/public/favicon.ico
|
339
|
-
- test/dummy/Rakefile
|
340
|
-
- test/dummy/README.rdoc
|
341
342
|
- test/dummy/app/controllers/application_controller.rb
|
342
|
-
- test/dummy/app/helpers/application_helper.rb
|
343
343
|
- test/dummy/app/views/layouts/application.html.erb
|
344
|
-
- test/dummy/app/
|
344
|
+
- test/dummy/app/helpers/application_helper.rb
|
345
345
|
- test/dummy/app/assets/javascripts/application.js
|
346
|
+
- test/dummy/app/assets/stylesheets/application.css
|
347
|
+
- test/dummy/README.rdoc
|
348
|
+
- test/dummy/config.ru
|
349
|
+
- test/dummy/config/locales/en.yml
|
346
350
|
- test/dummy/config/routes.rb
|
351
|
+
- test/dummy/config/environment.rb
|
352
|
+
- test/dummy/config/database.yml
|
353
|
+
- test/dummy/config/secrets.yml
|
347
354
|
- test/dummy/config/boot.rb
|
348
|
-
- test/dummy/config/
|
349
|
-
- test/dummy/config/
|
350
|
-
- test/dummy/config/
|
355
|
+
- test/dummy/config/environments/production.rb
|
356
|
+
- test/dummy/config/environments/development.rb
|
357
|
+
- test/dummy/config/environments/test.rb
|
358
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
351
359
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
360
|
+
- test/dummy/config/initializers/assets.rb
|
352
361
|
- test/dummy/config/initializers/inflections.rb
|
362
|
+
- test/dummy/config/initializers/session_store.rb
|
363
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
353
364
|
- test/dummy/config/initializers/mime_types.rb
|
354
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
355
365
|
- test/dummy/config/initializers/cookies_serializer.rb
|
356
|
-
- test/dummy/config/environment.rb
|
357
366
|
- test/dummy/config/application.rb
|
358
|
-
- test/
|
359
|
-
- test/
|
360
|
-
- test/
|
361
|
-
- test/dummy/config/environments/test.rb
|
362
|
-
- test/dummy/config/environments/development.rb
|
363
|
-
- test/dummy/config/locales/en.yml
|
364
|
-
- test/dummy/bin/rails
|
365
|
-
- test/dummy/bin/rake
|
366
|
-
- test/dummy/bin/setup
|
367
|
-
- test/dummy/bin/bundle
|
368
|
-
- test/dummy/config.ru
|
367
|
+
- test/lib/generators/zuora_connect/datatable_generator_test.rb
|
368
|
+
- test/test_helper.rb
|
369
|
+
- test/fixtures/zuora_connect/app_instances.yml
|
369
370
|
- test/integration/navigation_test.rb
|
371
|
+
- test/models/zuora_connect/app_instance_test.rb
|
370
372
|
- test/zuora_connect_test.rb
|
371
|
-
- test/fixtures/zuora_connect/app_instances.yml
|
372
|
-
- test/lib/generators/zuora_connect/datatable_generator_test.rb
|