zuora_connect 1.4.44 → 1.4.45
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/zuora_connect/app_instance_base.rb +4 -0
- data/lib/zuora_connect/version.rb +1 -1
- metadata +28 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88b1f90bd46ac53a6ae738e55e47d4a2c7b5601d
|
4
|
+
data.tar.gz: e8f526aeb81690f58f39904c7b20d51b3f04dda1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1b0bcc7e3dff16b6680f7b7640e40a1f92f447f449ea235b12ae53b86adbeb980ac378198ddff4d7062e7bd464a61fe0aea05b4fdf38579d4943baf8935cf4b
|
7
|
+
data.tar.gz: 6b9c5e13a158b330b31ce74c391a322dcaeda94b01b883d410258d8f19a52a4129e702457e5c9a898e7f05caadab1368269637b10ea6907fbec16adab97753fc
|
@@ -363,11 +363,15 @@ module ZuoraConnect
|
|
363
363
|
|
364
364
|
def refresh(session = nil)
|
365
365
|
count ||= 0
|
366
|
+
start = Time.now
|
366
367
|
if self.api_version == "v1"
|
367
368
|
response = HTTParty.get(ZuoraConnect.configuration.url + "/api/#{self.api_version}/tools/tasks/#{self.id}.json",:basic_auth => auth = {:username => self.username, :password => self.password})
|
368
369
|
else
|
369
370
|
response = HTTParty.get(ZuoraConnect.configuration.url + "/api/#{self.api_version}/tools/tasks/#{self.id}.json",:body => {:access_token => self.access_token})
|
370
371
|
end
|
372
|
+
response_time = Time.now - start
|
373
|
+
|
374
|
+
Rails.logger.debug("[#{self.id}] REFRESHING - Connect Request Time #{response_time.round(2).to_s}")
|
371
375
|
if response.code == 200
|
372
376
|
@last_refresh = Time.now.to_i
|
373
377
|
build_task(JSON.parse(response.body), session)
|
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.4.
|
4
|
+
version: 1.4.45
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Connect Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord-session_store
|
@@ -309,44 +309,44 @@ signing_key:
|
|
309
309
|
specification_version: 4
|
310
310
|
summary: Summary of Connect.
|
311
311
|
test_files:
|
312
|
-
- test/
|
312
|
+
- test/zuora_connect_test.rb
|
313
|
+
- test/dummy/public/500.html
|
314
|
+
- test/dummy/public/404.html
|
315
|
+
- test/dummy/public/favicon.ico
|
316
|
+
- test/dummy/public/422.html
|
313
317
|
- test/dummy/Rakefile
|
314
|
-
- test/dummy/
|
315
|
-
- test/dummy/bin/rake
|
316
|
-
- test/dummy/bin/setup
|
317
|
-
- test/dummy/bin/rails
|
318
|
-
- test/dummy/app/assets/javascripts/application.js
|
319
|
-
- test/dummy/app/assets/stylesheets/application.css
|
318
|
+
- test/dummy/README.rdoc
|
320
319
|
- test/dummy/app/views/layouts/application.html.erb
|
321
|
-
- test/dummy/app/controllers/application_controller.rb
|
322
320
|
- test/dummy/app/helpers/application_helper.rb
|
321
|
+
- test/dummy/app/assets/stylesheets/application.css
|
322
|
+
- test/dummy/app/assets/javascripts/application.js
|
323
|
+
- test/dummy/app/controllers/application_controller.rb
|
324
|
+
- test/dummy/bin/rake
|
325
|
+
- test/dummy/bin/bundle
|
326
|
+
- test/dummy/bin/rails
|
327
|
+
- test/dummy/bin/setup
|
323
328
|
- test/dummy/config.ru
|
324
|
-
- test/dummy/
|
325
|
-
- test/dummy/
|
326
|
-
- test/dummy/
|
327
|
-
- test/dummy/public/500.html
|
328
|
-
- test/dummy/public/favicon.ico
|
329
|
-
- test/dummy/config/boot.rb
|
329
|
+
- test/dummy/config/environment.rb
|
330
|
+
- test/dummy/config/secrets.yml
|
331
|
+
- test/dummy/config/application.rb
|
330
332
|
- test/dummy/config/locales/en.yml
|
331
333
|
- test/dummy/config/environments/production.rb
|
332
334
|
- test/dummy/config/environments/development.rb
|
333
335
|
- test/dummy/config/environments/test.rb
|
334
336
|
- test/dummy/config/database.yml
|
335
|
-
- test/dummy/config/secrets.yml
|
336
|
-
- test/dummy/config/routes.rb
|
337
|
-
- test/dummy/config/application.rb
|
338
|
-
- test/dummy/config/initializers/inflections.rb
|
339
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
340
337
|
- test/dummy/config/initializers/mime_types.rb
|
341
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
342
338
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
343
|
-
- test/dummy/config/initializers/
|
339
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
344
340
|
- test/dummy/config/initializers/session_store.rb
|
345
341
|
- test/dummy/config/initializers/cookies_serializer.rb
|
346
|
-
- test/dummy/config/
|
347
|
-
- test/
|
348
|
-
- test/
|
349
|
-
- test/
|
342
|
+
- test/dummy/config/initializers/inflections.rb
|
343
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
344
|
+
- test/dummy/config/initializers/assets.rb
|
345
|
+
- test/dummy/config/boot.rb
|
346
|
+
- test/dummy/config/routes.rb
|
347
|
+
- test/lib/generators/zuora_connect/datatable_generator_test.rb
|
350
348
|
- test/controllers/zuora_connect/api/v1/app_instance_controller_test.rb
|
351
|
-
- test/integration/navigation_test.rb
|
352
349
|
- test/models/zuora_connect/app_instance_test.rb
|
350
|
+
- test/integration/navigation_test.rb
|
351
|
+
- test/fixtures/zuora_connect/app_instances.yml
|
352
|
+
- test/test_helper.rb
|