zuora_connect 1.5.06 → 1.5.07

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d61345c4f3cb5961fbabacd154ca3ad82c3ed0c9
4
- data.tar.gz: b9a6d51bb10890b9ddc7b3766107e8381d8f75f0
3
+ metadata.gz: 2b60d15e47948f33ed483660d8d0b3e3bfb2e3fd
4
+ data.tar.gz: 75822aee86c64e18dd5befa34e14891122764c24
5
5
  SHA512:
6
- metadata.gz: c5de3f67c4de4cd712bda849e54ad0029c41a847d9f8192d48fed4cd79100b9e4235a5e235edba7a533c4a6830083f52cc4abd515bea861341fc7a6bcc21db4d
7
- data.tar.gz: 8fb5568176ae360adeebd6c03fabdaa171c0a5d7c7aee815d4876864dc73fb4bb95e852099b2c245a81095de025fcae13726b9021eabdb7886322834612e73f6
6
+ metadata.gz: b1f602d5641a0e92adddf46d4b7f4e3555aa860f2ae8630cbdd771b32c1b14602846dbbc3991221c0c79721bad0e3876103b0a2e65c1f69401f0fab3b421a4a4
7
+ data.tar.gz: bf9f9151fba72f1b0a1e7ff5e3a20550283dcebee7b99ddce79f835373cf9e2dd60fb0c86a2edfaf8b26ecea46d83be4e83d9bc3e4889a56582abc34c8adafdc
@@ -6,17 +6,19 @@ module ZuoraConnect
6
6
  attr_accessor :options, :mode, :logins, :valid, :task_data, :last_refresh, :username, :password, :s3_client, :api_version
7
7
 
8
8
  def init
9
- @options = Hash.new
10
- @logins = Hash.new
11
- @valid = false
12
- self.attr_builder("timezone", ZuoraConnect.configuration.default_time_zone)
13
- self.attr_builder("locale", ZuoraConnect.configuration.default_locale)
14
- PaperTrail.whodunnit = "Backend" if defined?(PaperTrail)
15
- Apartment::Tenant.switch!(self.id)
16
- if(ActiveRecord::Migrator.needs_migration?)
17
- Apartment::Migrator.migrate(self.id)
9
+ if self.persisted?
10
+ @options = Hash.new
11
+ @logins = Hash.new
12
+ @valid = false
13
+ self.attr_builder("timezone", ZuoraConnect.configuration.default_time_zone)
14
+ self.attr_builder("locale", ZuoraConnect.configuration.default_locale)
15
+ PaperTrail.whodunnit = "Backend" if defined?(PaperTrail)
16
+ Apartment::Tenant.switch!(self.id)
17
+ if(ActiveRecord::Migrator.needs_migration?)
18
+ Apartment::Migrator.migrate(self.id)
19
+ end
20
+ Thread.current[:appinstance] = self
18
21
  end
19
- Thread.current[:appinstance] = self
20
22
  end
21
23
 
22
24
  def data_lookup(session: {})
@@ -1,3 +1,4 @@
1
1
  module ZuoraConnect
2
- VERSION = "1.5.06"
2
+ VERSION = "1.5.07"
3
3
  end
4
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.06
4
+ version: 1.5.07
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connect Team