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 +4 -4
- data/lib/active_zuora/fields.rb +6 -1
- data/lib/active_zuora/relation.rb +5 -1
- data/lib/active_zuora/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0062452244ebd1717b59ec9198f538144178ff38be926a0ec2f48882ba1aabcb
|
4
|
+
data.tar.gz: '080dc069b8587830d38b8b735c614536c171e5945812611f0f03e8ecf4e9d21f'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a5327fe797ae221fe76111a0c0ed00be25b923c81425c193a518273e5568ac095e1b13161e3784c8046f1b2a1e7e2545c95f11cf476eaedcfbbc601d5190b7b
|
7
|
+
data.tar.gz: b2f3250dfd3a66f4ed0efbb2cc7093d2b78cf4c9b081c9cadd971d56853c74283f8e09634b44fcd3502055c84a6744de87b8950ca736856b72111fbbb71b0448
|
data/lib/active_zuora/fields.rb
CHANGED
@@ -52,7 +52,12 @@ module ActiveZuora
|
|
52
52
|
end
|
53
53
|
|
54
54
|
def clear_changed_attributes
|
55
|
-
|
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
|
-
|
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
|
|
data/lib/active_zuora/version.rb
CHANGED
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.
|
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:
|
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.
|
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.
|