active_zuora 2.5.4 → 2.6.0

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: 5e211dcf5069dcdc2f41d7d7fe921486c8805897732a310711b627f82d878379
4
- data.tar.gz: e943136234e2859ee4d6e5253b8cdb22ca0c313c44e4c37f7eb012b00bea0e83
3
+ metadata.gz: 0062452244ebd1717b59ec9198f538144178ff38be926a0ec2f48882ba1aabcb
4
+ data.tar.gz: '080dc069b8587830d38b8b735c614536c171e5945812611f0f03e8ecf4e9d21f'
5
5
  SHA512:
6
- metadata.gz: 7a059e90a17ed87aa1b8bd4b83ed23ee47d0befc8879a1d7a8c77845fd8652c79d4494cee2b7ff9a812c22f9ce73a9acfd975a98973f6123099c2af136254d70
7
- data.tar.gz: 54c4f18ebd4a6ead46686de34c7821c4605fbd642f7091f08f6404c14d7706011482e165e0e4d07423e55cc7b3b973f4c04e538584a5d2e3df1f948afdfa1111
6
+ metadata.gz: 0a5327fe797ae221fe76111a0c0ed00be25b923c81425c193a518273e5568ac095e1b13161e3784c8046f1b2a1e7e2545c95f11cf476eaedcfbbc601d5190b7b
7
+ data.tar.gz: b2f3250dfd3a66f4ed0efbb2cc7093d2b78cf4c9b081c9cadd971d56853c74283f8e09634b44fcd3502055c84a6744de87b8950ca736856b72111fbbb71b0448
@@ -52,7 +52,12 @@ module ActiveZuora
52
52
  end
53
53
 
54
54
  def clear_changed_attributes
55
- changed_attributes.clear
55
+ if ActiveSupport.version.to_s.to_f >= 5.2
56
+ clear_changes_information
57
+ else
58
+ changed_attributes.clear
59
+ end
60
+
56
61
  # If we have any fields that are also Base objects,
57
62
  # clear their attributes as well.
58
63
  fields.each { |field| field.clear_changed_attributes(send(field.name)) }
@@ -226,7 +226,11 @@ module ActiveZuora
226
226
  # SOAP namespaces.
227
227
  attributes.delete_if { |key, value| key.to_s.start_with? "@" }
228
228
  # Instantiate the zobject class, but don't track the changes.
229
- zobject_class.new(attributes).tap { |record| record.changed_attributes.clear }
229
+ if ActiveSupport.version.to_s.to_f >= 5.2
230
+ zobject_class.new(attributes).tap { |record| record.clear_changes_information }
231
+ else
232
+ zobject_class.new(attributes).tap { |record| record.changed_attributes.clear }
233
+ end
230
234
  end
231
235
  end
232
236
 
@@ -1,3 +1,3 @@
1
1
  module ActiveZuora
2
- VERSION = "2.5.4"
2
+ VERSION = "2.6.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_zuora
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.4
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ed Lebert
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-03-23 00:00:00.000000000 Z
12
+ date: 2019-10-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: savon
@@ -163,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
163
  version: '0'
164
164
  requirements: []
165
165
  rubyforge_project:
166
- rubygems_version: 2.7.6
166
+ rubygems_version: 2.7.10
167
167
  signing_key:
168
168
  specification_version: 4
169
169
  summary: ActiveZuora - Zuora API that looks and feels like ActiveRecord.