zuora_connect 1.4.0a → 1.4.0b

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: 5a2bce9917263f9e79e86e7f92b0eb3e7b208aa3
4
- data.tar.gz: cef13fbb624e9d6ee81295e352766f9b2d5f9115
3
+ metadata.gz: 51c6b79546e31ef0c4f3a0061808b6edf4c48c6f
4
+ data.tar.gz: c8f4805075a192acc92386393ddc232c9a604dfb
5
5
  SHA512:
6
- metadata.gz: d68a9eefa6b7139ae3b6ede62ceeb027cf6957fe458ff29e05f9227c61e55d15deaf645dc76491111d869d1034c8b1adf562f952042a60d1899f162f2090184e
7
- data.tar.gz: cb18a44be8d166f1ef9f0a2d06ace9a99800b26c83267265164ace509c4d63ec634da84277131527ed61d0a83faf7eb6df0f963c2d28aae7f3c3634a950449fc
6
+ metadata.gz: 405d2545610a910317fc2a0902d8e272147b34673bb1b66a96c564a57e0a76fb90cf67e6c2fb028e98dc2ad5c6acf694fc82d469c21d55b7d4c77a0b506a8219
7
+ data.tar.gz: e1a5927aed0d82c6ed6c0520cb1e0a589669bbbf3caf24fa107b78ba3e327fe6dbae9cdd53a3cf4c80523d23ba63adc1afa7b69daef31c1795df26ac2e87c50c
@@ -11,7 +11,7 @@ module ZuoraConnect
11
11
  self.attr_builder("timezone", ZuoraConnect.configuration.default_time_zone)
12
12
  self.attr_builder("locale", ZuoraConnect.configuration.default_locale)
13
13
  Apartment::Tenant.switch!(self.id)
14
- if( ActiveRecord::Migration.check_pending! != nil)
14
+ if( ActiveRecord::Migrator.needs_migration?)
15
15
  Apartment::Migrator.migrate(self.id)
16
16
  end
17
17
  Thread.current[:appinstance] = self
@@ -27,12 +27,12 @@ module ZuoraConnect
27
27
  $redis.del("Deleted:#{self.id}")
28
28
  end
29
29
 
30
- def decrypt_data(data)
30
+ def decrypt_data(data)
31
31
  return Rails.env == 'development' ? JSON.parse(data) : JSON.parse(encryptor.decrypt_and_verify(CGI::unescape(data)))
32
32
  end
33
33
 
34
- def encrypt_data(data)
35
- return Rails.env == 'development' ? data : encryptor.encrypt_and_sign(data)
34
+ def encrypt_data(data)
35
+ return Rails.env == 'development' ? data : encryptor.encrypt_and_sign(data)
36
36
  end
37
37
 
38
38
  def encryptor
@@ -1,3 +1,3 @@
1
1
  module ZuoraConnect
2
- VERSION = "1.4.0a"
2
+ VERSION = "1.4.0b"
3
3
  end
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.4.0a
4
+ version: 1.4.0b
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connect Team