active_zuora 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/VERSION +1 -1
- data/active_zuora.gemspec +4 -5
- data/lib/zuora_client.rb +9 -14
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MWMwY2FhMTkzNmU3ZmYyNWJiYTEyMTM1Yjk1M2FmNjdhOWRjMjJlYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzdlYTQ5ZTQ0ODEwYzM2MzY4NDU2MzI0Njk1Nzk2NjE2N2MxOTg3Nw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MGYyOTcxY2IyOTI3N2MwMDM4ZGEzMzBhZWEyZjJkNTJhMDc0Y2RkZGE3MWY1
|
10
|
+
NmU1YWUzMzQ3YjBiZTJhZjZkZjk2OGZkYjc4ODU1ZTM2OGIwNDQzOWI1NWQw
|
11
|
+
MGYyODM3NjI0NzkzZDg4OTlmMzVmNjJhYWY1OGI0ZmIyOWEwNjg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NWQxMzY4YTA4M2Q2YTVmOTQ4OTNiNDdiMDhhNTI1NTA5MTI4YTAyZDk3MDZj
|
14
|
+
NWZkYjFmMmRkN2EzODRjODA3YzM5M2Y3NTJjM2ZlOWE0MjQ2MjNkYTI2OGVk
|
15
|
+
NGQ5ZDk3MGM3YzZmZTViZDkyMjc3OGEwNDliODE0MGNhNTFmZmU=
|
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.5.
|
9
|
+
s.version = "1.5.1"
|
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,10 +63,9 @@ 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
|
s.add_dependency('soap4r-ng')
|
69
|
-
s.add_dependency('json_pure')
|
70
69
|
s.add_development_dependency('rake')
|
71
70
|
s.add_development_dependency('test-unit')
|
72
71
|
end
|
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.5.
|
4
|
+
version: 1.5.1
|
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: soap4r-ng
|
@@ -26,20 +26,6 @@ dependencies:
|
|
26
26
|
- - ! '>='
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: '0'
|
29
|
-
- !ruby/object:Gem::Dependency
|
30
|
-
name: json_pure
|
31
|
-
requirement: !ruby/object:Gem::Requirement
|
32
|
-
requirements:
|
33
|
-
- - ! '>='
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version: '0'
|
36
|
-
type: :runtime
|
37
|
-
prerelease: false
|
38
|
-
version_requirements: !ruby/object:Gem::Requirement
|
39
|
-
requirements:
|
40
|
-
- - ! '>='
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: '0'
|
43
29
|
- !ruby/object:Gem::Dependency
|
44
30
|
name: rake
|
45
31
|
requirement: !ruby/object:Gem::Requirement
|