zuora_rest_client 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fixtures/vcr_cassettes/zuora/create_account_object_success.yml +10 -18
- data/fixtures/vcr_cassettes/zuora/create_account_success.yml +13 -21
- data/fixtures/vcr_cassettes/zuora/delete_account_object_success.yml +43 -75
- data/fixtures/vcr_cassettes/zuora/describe_account.yml +49 -57
- data/fixtures/vcr_cassettes/zuora/describe_account_related_objects.yml +49 -57
- data/fixtures/vcr_cassettes/zuora/describe_all_account_fields.yml +48 -56
- data/fixtures/vcr_cassettes/zuora/describe_all_zobjects.yml +15 -26
- data/fixtures/vcr_cassettes/zuora/describe_exportable_account_fields.yml +49 -57
- data/fixtures/vcr_cassettes/zuora/describe_non_exportable_account_fields.yml +49 -57
- data/fixtures/vcr_cassettes/zuora/describe_non_updateable_account_fields.yml +49 -57
- data/fixtures/vcr_cassettes/zuora/describe_updateable_account_fields.yml +49 -57
- data/fixtures/vcr_cassettes/zuora/get_account_object_success.yml +14 -22
- data/fixtures/vcr_cassettes/zuora/get_account_success.yml +19 -25
- data/fixtures/vcr_cassettes/zuora/get_account_summary_success.yml +17 -25
- data/fixtures/vcr_cassettes/zuora/update_account_object_success.yml +24 -40
- data/fixtures/vcr_cassettes/zuora/update_account_success.yml +29 -43
- data/lib/zuora_rest_client/connection.rb +9 -3
- data/lib/zuora_rest_client/version.rb +1 -1
- data/zuora_rest_client.gemspec +1 -2
- metadata +4 -30
@@ -21,7 +21,9 @@ module ZuoraRestClient
|
|
21
21
|
logger: Logger.new($stdout),
|
22
22
|
log_level: :error,
|
23
23
|
log: true,
|
24
|
-
api_proxy_port: nil
|
24
|
+
api_proxy_port: nil,
|
25
|
+
request_timeout: 120,
|
26
|
+
request_open_timeout: 120 }
|
25
27
|
|
26
28
|
def initialize(username, password, environment = :production, options = {})
|
27
29
|
@username = username
|
@@ -126,7 +128,9 @@ module ZuoraRestClient
|
|
126
128
|
app: 'https://apisandbox.zuora.com' } }
|
127
129
|
|
128
130
|
def app_connection
|
129
|
-
Faraday.new(url: zuora_endpoint.app
|
131
|
+
Faraday.new(url: zuora_endpoint.app, request: {
|
132
|
+
open_timeout: @options[:request_open_timeout] || 120,
|
133
|
+
timeout: @options[:request_timeout] || 120 }) do |faraday|
|
130
134
|
faraday.use FaradayMiddleware::FollowRedirects
|
131
135
|
faraday.use Faraday::Request::BasicAuthentication, @username, @password
|
132
136
|
faraday.request :multipart
|
@@ -175,7 +179,9 @@ module ZuoraRestClient
|
|
175
179
|
rest_endpoint_uri.path = '/'
|
176
180
|
rest_endpoint_uri.port = @options[:api_proxy_port] || 443
|
177
181
|
end
|
178
|
-
Faraday.new(url: rest_endpoint_uri.to_s
|
182
|
+
Faraday.new(url: rest_endpoint_uri.to_s, request: {
|
183
|
+
open_timeout: @options[:request_open_timeout] || 120,
|
184
|
+
timeout: @options[:request_timeout] || 120 }) do |faraday|
|
179
185
|
faraday.use FaradayMiddleware::FollowRedirects
|
180
186
|
faraday.request :multipart
|
181
187
|
faraday.response :detailed_logger, logger
|
data/zuora_rest_client.gemspec
CHANGED
@@ -26,8 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_development_dependency 'rspec', '~> 3.6'
|
27
27
|
spec.add_development_dependency 'dotenv', '~> 2.2', '>= 2.2.1'
|
28
28
|
spec.add_development_dependency 'simplecov', '~> 0.14.1'
|
29
|
-
spec.add_development_dependency 'vcr', '~>
|
30
|
-
spec.add_development_dependency 'webmock', '~> 3.0', '>= 3.0.1'
|
29
|
+
spec.add_development_dependency 'vcr', '~> 4.0'
|
31
30
|
spec.add_development_dependency 'http-cookie', '~> 1.0', '>= 1.0.3'
|
32
31
|
|
33
32
|
spec.add_runtime_dependency 'httpclient', '~> 2.8'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zuora_rest_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Massad
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -92,40 +92,14 @@ dependencies:
|
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: '
|
96
|
-
- - ">="
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
version: 3.0.3
|
95
|
+
version: '4.0'
|
99
96
|
type: :development
|
100
97
|
prerelease: false
|
101
98
|
version_requirements: !ruby/object:Gem::Requirement
|
102
99
|
requirements:
|
103
100
|
- - "~>"
|
104
101
|
- !ruby/object:Gem::Version
|
105
|
-
version: '
|
106
|
-
- - ">="
|
107
|
-
- !ruby/object:Gem::Version
|
108
|
-
version: 3.0.3
|
109
|
-
- !ruby/object:Gem::Dependency
|
110
|
-
name: webmock
|
111
|
-
requirement: !ruby/object:Gem::Requirement
|
112
|
-
requirements:
|
113
|
-
- - "~>"
|
114
|
-
- !ruby/object:Gem::Version
|
115
|
-
version: '3.0'
|
116
|
-
- - ">="
|
117
|
-
- !ruby/object:Gem::Version
|
118
|
-
version: 3.0.1
|
119
|
-
type: :development
|
120
|
-
prerelease: false
|
121
|
-
version_requirements: !ruby/object:Gem::Requirement
|
122
|
-
requirements:
|
123
|
-
- - "~>"
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
version: '3.0'
|
126
|
-
- - ">="
|
127
|
-
- !ruby/object:Gem::Version
|
128
|
-
version: 3.0.1
|
102
|
+
version: '4.0'
|
129
103
|
- !ruby/object:Gem::Dependency
|
130
104
|
name: http-cookie
|
131
105
|
requirement: !ruby/object:Gem::Requirement
|