active_zuora 1.4.20 → 1.4.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/active_zuora.gemspec +4 -4
- data/lib/zuora_client.rb +9 -14
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e499533c06728204bc1728370a84563c78bec70
|
4
|
+
data.tar.gz: 0c6273bb629e0510170c7d7f8389b3190386854f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef8235cadc4d2558e327e60ac30a8608782f4fc8bbfcf912858c34f52cea9dbeaded8428cf516bfb1f7fa2f2f0d67888c03986857a856637403c10bf616f3a93
|
7
|
+
data.tar.gz: b2db9b5f5b2ae9b78fffe274bde0b13fe704afe66ed008995b6d3a18ebd2cdaa53ffc2019b5e1469327fc0bebd15c6cace676b83af0c0b92036516e5601130f3
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.21
|
data/active_zuora.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: active_zuora 1.4.
|
5
|
+
# stub: active_zuora 1.4.21 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "active_zuora"
|
9
|
-
s.version = "1.4.
|
9
|
+
s.version = "1.4.21"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Andy Fleener", "Ed Lebert", "Nate Greene"]
|
14
|
-
s.date = "
|
14
|
+
s.date = "2015-04-10"
|
15
15
|
s.description = "A client for Zuora API"
|
16
16
|
s.email = "andy.fleener@tstmedia.com"
|
17
17
|
s.extra_rdoc_files = [
|
@@ -63,7 +63,7 @@ Gem::Specification.new do |s|
|
|
63
63
|
]
|
64
64
|
s.homepage = "http://github.com/tstmedia/active_zuora"
|
65
65
|
s.requirements = ["none"]
|
66
|
-
s.rubygems_version = "2.
|
66
|
+
s.rubygems_version = "2.4.6"
|
67
67
|
s.summary = "Active Zuora"
|
68
68
|
|
69
69
|
if s.respond_to? :specification_version then
|
data/lib/zuora_client.rb
CHANGED
@@ -122,8 +122,7 @@ module Zuora
|
|
122
122
|
|
123
123
|
def subscribe(obj)
|
124
124
|
begin
|
125
|
-
|
126
|
-
return response
|
125
|
+
@client.api_call(:subscribe, obj)
|
127
126
|
rescue Exception => e
|
128
127
|
puts e.message
|
129
128
|
end
|
@@ -132,41 +131,37 @@ module Zuora
|
|
132
131
|
def create(obj)
|
133
132
|
begin
|
134
133
|
response = @client.api_call(:create,obj)
|
135
|
-
|
134
|
+
save_results_to_hash(response)
|
136
135
|
rescue Exception => e
|
137
|
-
|
136
|
+
[errors: [{message: e.message, code: nil}], object: obj]
|
138
137
|
end
|
139
|
-
result || []
|
140
138
|
end
|
141
139
|
|
142
140
|
def generate(obj)
|
143
141
|
begin
|
144
142
|
response = @client.api_call(:generate,obj)
|
145
|
-
|
143
|
+
save_results_to_hash(response)
|
146
144
|
rescue Exception => e
|
147
|
-
|
145
|
+
[errors: [{message: e.message, code: nil}], object: obj]
|
148
146
|
end
|
149
|
-
result || []
|
150
147
|
end
|
151
148
|
|
152
149
|
def update(obj)
|
153
150
|
begin
|
154
151
|
response = @client.api_call(:update, obj)
|
155
|
-
|
152
|
+
save_results_to_hash(response)
|
156
153
|
rescue Exception => e
|
157
|
-
|
154
|
+
[errors: [{message: e.message, code: nil}], object: obj]
|
158
155
|
end
|
159
|
-
result || []
|
160
156
|
end
|
161
157
|
|
162
158
|
def delete(type, ids)
|
163
159
|
begin
|
164
160
|
response = @client.api_call(:delete, type, ids)
|
165
|
-
|
161
|
+
save_results_to_hash(response)
|
166
162
|
rescue Exception => e
|
167
|
-
|
163
|
+
[errors: [{message: e.message, code: nil}], object: obj]
|
168
164
|
end
|
169
|
-
result || []
|
170
165
|
end
|
171
166
|
|
172
167
|
def amend(obj)
|
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: 1.4.
|
4
|
+
version: 1.4.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Fleener
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2015-04-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: mumboe-soap4r
|
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
requirements:
|
140
140
|
- none
|
141
141
|
rubyforge_project:
|
142
|
-
rubygems_version: 2.
|
142
|
+
rubygems_version: 2.4.6
|
143
143
|
signing_key:
|
144
144
|
specification_version: 4
|
145
145
|
summary: Active Zuora
|