aggcat 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/lib/aggcat/client.rb CHANGED
@@ -68,8 +68,10 @@ module Aggcat
68
68
  end
69
69
 
70
70
  def delete_customer
71
- accounts[:result][:account_list].values.flatten.each do |account|
72
- delete_account(account[:account_id])
71
+ if accounts[:result][:account_list]
72
+ accounts[:result][:account_list].values.flatten.each do |account|
73
+ delete_account(account[:account_id])
74
+ end
73
75
  end
74
76
  delete('/customers')
75
77
  end
@@ -1,3 +1,3 @@
1
1
  module Aggcat
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aggcat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: