zuora_connect 1.5.305 → 1.5.306

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: 3cd44c8a882088f086007f472631c8ca7247b1d3
4
- data.tar.gz: 3f8611a667f58906a2a89a313a45504d80677513
3
+ metadata.gz: 9c08b49e16159478638184c40aae22936e79c623
4
+ data.tar.gz: e792811b1dc502e67cf28b61df90600d3fb24469
5
5
  SHA512:
6
- metadata.gz: 7c9320a3166b1b05a17e65398caa8f640736531431f9e79cf8842b7827631c2bd4c3fcad7cf4f42109ce19c2daca651dd2328cbafbd6821507270aeaa1437181
7
- data.tar.gz: 9e763a35ed59d24a5542a6d31030ea79ee7aa55cd8bb955b0c5297ad9c5635c13250b78f71b1a27652c71d35fb087811a7c81a926bdef25837438df3d49a4841
6
+ metadata.gz: 811fd54b2f1e52b41fe8270826d99da1ef1ac285324925ae06fe0ecdb39586c939c97647c6c43693231182db378d8e913dea533abbd8b4d37eea89fcb198d45b
7
+ data.tar.gz: 52653ea897ae382dc0a87febdff212a624130480c954dc74ad671c96ad4aaa908b09249cd7aa17911b05fbd1d598624788d31fefe777832712a1398ec7be1fe9
@@ -198,8 +198,10 @@ module ZuoraConnect
198
198
  #### START Connect OAUTH methods ####
199
199
  def check_oauth_state(method)
200
200
  #Refresh token if already expired
201
- Rails.logger.debug("[#{self.id}] Before '#{method}' method check Oauth state")
202
- self.refresh_oauth if self.oauth_expired?
201
+ if self.oauth_expired?
202
+ Rails.logger.debug("[#{self.id}] Before '#{method}' method, Oauth expired")
203
+ self.refresh_oauth
204
+ end
203
205
  end
204
206
 
205
207
  def oauth_expired?
@@ -477,7 +479,7 @@ module ZuoraConnect
477
479
 
478
480
  case object
479
481
  when :product
480
- if object_id.blank?
482
+ if object_id.nil?
481
483
  string =
482
484
  "SELECT "\
483
485
  "json_object_agg(product_id, product #{child_objects ? '' : '- \'productRatePlans\''}) AS item "\
@@ -509,7 +511,7 @@ module ZuoraConnect
509
511
  end
510
512
 
511
513
  when :rateplan
512
- if object_id.blank?
514
+ if object_id.nil?
513
515
  string =
514
516
  "SELECT "\
515
517
  "json_object_agg(rateplan_id, rateplan #{child_objects ? '' : '- \'productRatePlanCharges\''}) AS item "\
@@ -543,7 +545,7 @@ module ZuoraConnect
543
545
  end
544
546
 
545
547
  when :charge
546
- if object_id.blank?
548
+ if object_id.nil?
547
549
  string =
548
550
  "SELECT "\
549
551
  "json_object_agg(charge_id, charge) as item "\
@@ -1,4 +1,4 @@
1
1
  module ZuoraConnect
2
- VERSION = "1.5.305"
2
+ VERSION = "1.5.306"
3
3
  end
4
4
 
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.305
4
+ version: 1.5.306
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-02-27 00:00:00.000000000 Z
11
+ date: 2018-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apartment