zuora_connect 1.7.70 → 1.7.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/zuora_connect/app_instance_base.rb +12 -7
- data/db/migrate/20100718151733_create_connect_app_instances.rb +1 -1
- data/db/migrate/20101024162319_add_tokens_to_app_instance.rb +1 -1
- data/db/migrate/20101024220705_add_token_to_app_instance.rb +1 -1
- data/db/migrate/20110131211919_add_sessions_table.rb +1 -1
- data/db/migrate/20110411200303_add_expiration_to_app_instance.rb +1 -1
- data/db/migrate/20110413191512_add_new_api_token.rb +1 -1
- data/db/migrate/20110503003602_add_catalog_data_to_app_instance.rb +1 -1
- data/db/migrate/20110503003603_add_catalog_mappings_to_app_instance.rb +1 -1
- data/db/migrate/20110503003604_catalog_default.rb +1 -1
- data/db/migrate/20180301052853_add_catalog_attempted_at.rb +1 -1
- data/db/migrate/20181206162339_add_fields_to_instance.rb +1 -1
- data/lib/zuora_connect/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cb12b36b11cca5b692114f1757bbcf46ebe513c
|
4
|
+
data.tar.gz: 8d2849ed5052a8c4f2356d823e0f91359b738a2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bd61e4e04378d305ce498782d28c84eb5a6a865b77629880981234d0d0a289f24aabe3086a18c241ba07906f69190d4786fd6c64080f5602375b19ee1bd9639
|
7
|
+
data.tar.gz: 7833808a65a37afd708004af4dd4c28bd22ef4725dc610d7bc33f5d1bdc7c27eefc97258a0bac5a00f29feaa4809a128229109a51ecb09d3baf1115cecc9f34f
|
@@ -41,6 +41,8 @@ module ZuoraConnect
|
|
41
41
|
if defined?(Redis.current)
|
42
42
|
Redis.current.zadd("APILimits", 9999999999, "placeholder")
|
43
43
|
Redis.current.zadd("InstanceRefreshing", 9999999999, "placeholder")
|
44
|
+
end
|
45
|
+
if defined?(Resque.redis)
|
44
46
|
Resque.redis.zadd("PauseQueue", 9999999999, "placeholder")
|
45
47
|
end
|
46
48
|
end
|
@@ -49,7 +51,10 @@ module ZuoraConnect
|
|
49
51
|
begin
|
50
52
|
Apartment::Tenant.switch!(self.id) if self.persisted?
|
51
53
|
rescue Apartment::TenantNotFound => ex
|
52
|
-
|
54
|
+
begin
|
55
|
+
Apartment::Tenant.create(self.id.to_s)
|
56
|
+
rescue Apartment::TenantExists => ex
|
57
|
+
end
|
53
58
|
retry
|
54
59
|
end
|
55
60
|
if migrate && ActiveRecord::Migrator.needs_migration?
|
@@ -235,15 +240,16 @@ module ZuoraConnect
|
|
235
240
|
elsif type == "stats"
|
236
241
|
begin
|
237
242
|
Resque.redis.ping
|
243
|
+
@resque = Resque.info
|
238
244
|
@data = {
|
239
245
|
app_name: ZuoraConnect::Telegraf.app_name,
|
240
246
|
url: "dummy",
|
241
247
|
Resque:{
|
242
|
-
Jobs_Finished:
|
243
|
-
Jobs_Failed:
|
244
|
-
Jobs_Pending:
|
245
|
-
Workers_Active:
|
246
|
-
Workers_Total:
|
248
|
+
Jobs_Finished: @resque[:processed] ,
|
249
|
+
Jobs_Failed: @resque[:failed],
|
250
|
+
Jobs_Pending: @resque[:pending],
|
251
|
+
Workers_Active: @resque[:working],
|
252
|
+
Workers_Total: @resque[:workers]
|
247
253
|
}
|
248
254
|
}
|
249
255
|
rescue
|
@@ -483,7 +489,6 @@ module ZuoraConnect
|
|
483
489
|
Rails.logger.debug("[#{self.id}] Caching AppInstance")
|
484
490
|
Redis.current.setex("AppInstance:#{self.id}", INSTANCE_REDIS_CACHE_PERIOD.to_i, self.encrypt_data(data: self.save_data))
|
485
491
|
end
|
486
|
-
Redis.current.del("Deleted:#{self.id}")
|
487
492
|
end
|
488
493
|
end
|
489
494
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class AddTokensToAppInstance < ActiveRecord::Migration
|
1
|
+
class AddTokensToAppInstance < ActiveRecord::Migration[4.2]
|
2
2
|
def change
|
3
3
|
add_column :zuora_connect_app_instances, :access_token, :string unless column_exists? :zuora_connect_app_instances, :access_token
|
4
4
|
add_column :zuora_connect_app_instances, :refresh_token, :string unless column_exists? :zuora_connect_app_instances, :refresh_token
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class AddExpirationToAppInstance < ActiveRecord::Migration
|
1
|
+
class AddExpirationToAppInstance < ActiveRecord::Migration[4.2]
|
2
2
|
def change
|
3
3
|
add_column :zuora_connect_app_instances, :oauth_expires_at, :datetime unless column_exists? :zuora_connect_app_instances, :oauth_expires_at
|
4
4
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class AddCatalogDataToAppInstance < ActiveRecord::Migration
|
1
|
+
class AddCatalogDataToAppInstance < ActiveRecord::Migration[4.2]
|
2
2
|
def change
|
3
3
|
add_column :zuora_connect_app_instances, :catalog_updated_at, :datetime unless column_exists? :zuora_connect_app_instances, :catalog_updated_at
|
4
4
|
add_column :zuora_connect_app_instances, :catalog, :jsonb, default: {} unless column_exists? :zuora_connect_app_instances, :catalog
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class AddCatalogMappingsToAppInstance < ActiveRecord::Migration
|
1
|
+
class AddCatalogMappingsToAppInstance < ActiveRecord::Migration[4.2]
|
2
2
|
def change
|
3
3
|
add_column :zuora_connect_app_instances, :catalog_mapping, :jsonb, default: {} unless column_exists? :zuora_connect_app_instances, :catalog_mapping
|
4
4
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class AddCatalogAttemptedAt < ActiveRecord::Migration
|
1
|
+
class AddCatalogAttemptedAt < ActiveRecord::Migration[4.2]
|
2
2
|
def change
|
3
3
|
add_column :zuora_connect_app_instances, :catalog_update_attempt_at, :datetime unless column_exists? :zuora_connect_app_instances, :catalog_update_attempt_at
|
4
4
|
end
|
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.7.
|
4
|
+
version: 1.7.71
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Connect Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apartment
|