setsuzoku 0.11.6 → 0.11.7

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: 3e0e78fe9c055eb1696a1df750b36fad06363646e465a3cbe4e86da69cd75215
4
- data.tar.gz: 5f3c4c99f1587492b7c552205a4bfc99ff1b29631346f50206216a397686e90a
3
+ metadata.gz: a0ab91eaa6a9400d9a0647b05050f9c36dfce42b98615e759dbeed9d57c1c386
4
+ data.tar.gz: b7ec53469c182c7defc53af1f4f0aff7a2cf2ee6fba52a78bdd9ee2d8f6364c8
5
5
  SHA512:
6
- metadata.gz: b0d1a53b0552e7cbf2941933a80cce484f1c5c4d606fd806d230692045acb6bb6bd11b42c3427ec603353d4380af690764cfc3f1fe0f5511082fdd0bd0dcb150
7
- data.tar.gz: 3c1f8a24908d294f221bb7bdb8c0d731693b1e43b10e42b4b6457f66dcff3fb7f15d171cead30f8bfbf6ad8098283059c1a476a807261a8868ca9134a7308145
6
+ metadata.gz: 10f9cc0590cd0cb0a02fe4cb03eb59eaba92dabc3534253a91fbbd5d37689b31a3b2c916ddc5c4c589a7a12bc4f3471059c5b3fb9ed40c80ed69bc34e95d735f
7
+ data.tar.gz: 40672dbe7dba68c32013e4052febb2cd1a9988083a36132b9b54f16b7077a17d65c2276a8893229f12c6f0a7babb7e852021f7f4fd36cb15f2a836569efcb740
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- setsuzoku (0.11.6)
4
+ setsuzoku (0.11.7)
5
5
  activesupport (~> 5.0)
6
6
  faraday (~> 0.11)
7
7
  httparty (~> 0.16.4)
@@ -129,8 +129,13 @@ module Setsuzoku
129
129
 
130
130
  # Only save Setsuzoku known fields, and any additional attributes the plugin specifies
131
131
  # in credential_fields_to_update.
132
- if self.credential.respond_to?(:"update_attributes")
133
- self.credential.update_attributes(attrs) && resp.success
132
+ if self.credential.respond_to?(:"update_columns")
133
+ # we issue an update_columns instead of a save/update_attributes
134
+ # so as to only mutate these attributes
135
+ # and not any other fields that may have been set for the credential
136
+ save = self.credential.update_columns(attrs)
137
+ self.credential.touch if save && self.credential.respond_to?(:"touch")
138
+ save && resp.success
134
139
  else
135
140
  resp.success
136
141
  end
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Setsuzoku
5
- VERSION = '0.11.6'
5
+ VERSION = '0.11.7'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: setsuzoku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.6
4
+ version: 0.11.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luke Stadtler