tessitura_rest 1.1.1 → 1.1.2

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
  SHA256:
3
- metadata.gz: 7e9c1cb0fd2da2fc334954e4a28b1a05188a2a0e96eac9e6965d9a54706c927f
4
- data.tar.gz: db497ddfa592bf06b9519f39dcfa2ec4235bcc507903b8bf12ac76bb9da26ce8
3
+ metadata.gz: d389659acbd0708676aa00cd8349f0baf3d8eec0e444f0f72caa663c36bec033
4
+ data.tar.gz: c3280a330937ced3c7e5a84c882e28f7909321da1abfb93a336cb4224238db28
5
5
  SHA512:
6
- metadata.gz: d80851535ed5c930f231efa350bafbb97f3ec447c469c9e30b96c1367f34e23f644f6dc1e0ad965072db48a5460ce4f9f208b34010ae9cb8fabca11365153443
7
- data.tar.gz: 6a0838ac6f0fd0a8b0a86934b2ff97756b709603ae013c647e214f766903e4259730747407d25dd548cb2ba32b63b25bfc395819eba9278cca65d16b65283537
6
+ metadata.gz: 879249884e531e398661825bd58f1675f34598bc9e2b9a9a4c408781f1b16ebf43bad8c241fcd6cc2b94402b42a042edfb6e221782a660de7ba8b849d1285418
7
+ data.tar.gz: d839caa1ba44bb4d113862c3c66bb9b2489d225d4b9e9af023484d88b7624aea1400fa2a4d31e9f53cfcdaaf673449c4f1ee05480b2d7777c7b546c14485f6f2
@@ -105,6 +105,7 @@ module Constituents
105
105
 
106
106
  def update_household(params, current, options={})
107
107
  constituents = current['Affiliates'].map{|c| c['RelatedConstituentId']}
108
+ update = []
108
109
  constituents.each_with_index do |constituent, i|
109
110
  snapshot = get_constituent_snapshot(constituent)
110
111
  parameters =
@@ -133,8 +134,9 @@ module Constituents
133
134
  }
134
135
  options.merge!(basic_auth: @auth, headers: @headers)
135
136
  options.merge!(:body => parameters)
136
- self.class.put(base_api_endpoint("CRM/Constituents/#{constituent}"), options)
137
+ update << self.class.put(base_api_endpoint("CRM/Constituents/#{constituent}"), options)
137
138
  end
139
+ update.last if update.present?
138
140
  end
139
141
 
140
142
 
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '1.1.1'.freeze
2
+ VERSION = '1.1.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tessitura_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brittany Martin, Danielle Greaves, Craig Donavin, Patrick FitzGerald
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-19 00:00:00.000000000 Z
11
+ date: 2021-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler